fix: AttendanceStatus补充workStatus/workAtStatus字段

API实际返回验证通过,核心字段完全匹配:
onPunchState/offPunchState/actualOnTime/actualOffTime
补充workStatus和workAtStatus避免Gson解析警告。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
dongliang
2026-04-29 11:14:53 +09:30
parent 15b7b438e4
commit ecd3090a74

View File

@@ -13,8 +13,12 @@ data class AttendanceStatus(
val onPunchState: Int = 0, val onPunchState: Int = 0,
/** 下班打卡状态: 0=未打卡, 1=已打卡 */ /** 下班打卡状态: 0=未打卡, 1=已打卡 */
val offPunchState: Int = 0, val offPunchState: Int = 0,
/** 上班打卡时间 */ /** 上班打卡时间(如 "09:07" */
val actualOnTime: String? = null, val actualOnTime: String? = null,
/** 下班打卡时间 */ /** 下班打卡时间 */
val actualOffTime: String? = null val actualOffTime: String? = null,
/** 工作状态(服务端额外字段,暂未使用) */
val workStatus: Int = 0,
/** 考勤状态(服务端额外字段,暂未使用) */
val workAtStatus: Int = 0
) )