添加了界面及逻辑
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.sw.platecabinet.model
|
||||
|
||||
/**
|
||||
* 错误信息 code == 200 成功
|
||||
*/
|
||||
data class ErrorInfo(val code: Int = 200, val msg: String = "") {
|
||||
fun isSuccess(): Boolean {
|
||||
return code == 200
|
||||
}
|
||||
}
|
||||
@@ -26,10 +26,10 @@ data class BindParam(
|
||||
* 会员Id
|
||||
*/
|
||||
@SerializedName("memberId")
|
||||
val memberId: Int? = 0,
|
||||
val memberId: Int? = null,
|
||||
/**
|
||||
*餐盘编号
|
||||
*/
|
||||
@SerializedName("plateNumber")
|
||||
val plateNumber: String? = ""
|
||||
val plateNumber: String? = null
|
||||
) : Parcelable
|
||||
@@ -19,15 +19,15 @@ data class LoginParam(
|
||||
* 会员信息
|
||||
*/
|
||||
@SerializedName("memberId")
|
||||
val memberId: String? = "",
|
||||
val memberId: Int? = null,
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
@SerializedName("password")
|
||||
val password: String? = "",
|
||||
val password: String? = null,
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
@SerializedName("phone")
|
||||
val phone: String? = ""
|
||||
val phone: String? = null
|
||||
) : Parcelable
|
||||
Reference in New Issue
Block a user