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:
dongliang
2026-04-28 20:23:00 +09:30
parent e44a25e841
commit 98de3f0b46
8 changed files with 20 additions and 548 deletions

View File

@@ -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
}