revert: 删除考勤打卡模块代码,准备重新开发
删除:PunchStatus.kt, PunchApi.kt, PunchFragment.kt, fragment_punch.xml 恢复:HomeFragment(去掉下拉手势/PunchApi/工作状态处理) 恢复:fragment_home.xml(去掉pullDownArea覆盖层) 恢复:nav_main.xml(去掉action_home_to_punch) 恢复:NetworkModule(去掉PunchApi提供者) 考勤模块将按NFC打卡流程重新从需求开始设计开发。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package com.xiaoqu.watch.data.punch
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
/**
|
||||
* 考勤状态数据类
|
||||
* 对应 watchTask/myCurrentAttendance API 返回
|
||||
* 来源:discovery-map.md 考勤章节(已验证字段名)
|
||||
*/
|
||||
data class PunchStatus(
|
||||
/** 上班打卡状态:0=未上班, 1=已上班 */
|
||||
@SerializedName("onPunchState") val onPunchState: Int = 0,
|
||||
/** 下班打卡状态:1=已下班, 其他=未下班 */
|
||||
@SerializedName("offPunchState") val offPunchState: Int = 0,
|
||||
/** 上班打卡时间(API 可能返回,待验证字段名) */
|
||||
@SerializedName("onPunchTime") val onPunchTime: String? = null,
|
||||
/** 下班打卡时间 */
|
||||
@SerializedName("offPunchTime") val offPunchTime: String? = null
|
||||
) {
|
||||
/** 是否已上班 */
|
||||
val isOnDuty: Boolean get() = onPunchState == 1
|
||||
/** 是否已下班 */
|
||||
val isOffDuty: Boolean get() = offPunchState == 1
|
||||
}
|
||||
Reference in New Issue
Block a user