添加了界面及逻辑

This commit is contained in:
zxj
2025-07-22 15:48:12 +08:00
parent 9d14b5499b
commit 5ad82eb224
40 changed files with 2157 additions and 182 deletions
@@ -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