Skip to content

Commit

Permalink
refactor:修改字段名称以符合golint标准
Browse files Browse the repository at this point in the history
  • Loading branch information
hellolxc committed Oct 9, 2023
1 parent 0359086 commit 12f76c4
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions work/checkin/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ type (
Datas []DayDataItem `json:"datas"`
}

// DayDataItem 日报
DayDataItem struct {
BaseInfo DayBaseInfo `json:"base_info"`
SummaryInfo DaySummaryInfo `json:"summary_info"`
Expand All @@ -95,24 +96,24 @@ type (
Name string `json:"name"`
NameEx string `json:"name_ex"`
DepartsName string `json:"departs_name"`
AcctId string `json:"acctid"`
AcctID string `json:"acctid"`
DayType int64 `json:"day_type"`
RuleInfo DayRuleInfo `json:"rule_info"`
}

// CheckInTime 当日打卡时间
CheckInTime struct {
// DayCheckInTime 当日打卡时间
DayCheckInTime struct {
WorkSec int64 `json:"work_sec"`
OffWorkSec int64 `json:"off_work_sec"`
}

// DayRuleInfo 打卡人员所属规则信息
DayRuleInfo struct {
GroupId int64 `json:"groupid"`
GroupName string `json:"groupname"`
ScheduleId int64 `json:"scheduleid"`
ScheduleName string `json:"schedulename"`
CheckInTimes []CheckInTime `json:"checkintime"`
GroupID int64 `json:"groupid"`
GroupName string `json:"groupname"`
ScheduleID int64 `json:"scheduleid"`
ScheduleName string `json:"schedulename"`
CheckInTimes []DayCheckInTime `json:"checkintime"`
}

// DaySummaryInfo 汇总信息
Expand Down Expand Up @@ -153,7 +154,7 @@ type (
Duration int64 `json:"duration"`
TimeType int64 `json:"time_type"`
Type int64 `json:"type"`
VacationId int64 `json:"vacation_id"`
VacationID int64 `json:"vacation_id"`
Name string `json:"name"`
}

Expand Down Expand Up @@ -200,6 +201,7 @@ type (
Datas []MonthDataItem `json:"datas"`
}

// MonthDataItem 月报数据
MonthDataItem struct {
BaseInfo MonthBaseInfo `json:"base_info"`
SummaryInfo MonthSummaryInfo `json:"summary_info"`
Expand All @@ -214,13 +216,13 @@ type (
Name string `json:"name"`
NameEx string `json:"name_ex"`
DepartsName string `json:"departs_name"`
AcctId string `json:"acctid"`
AcctID string `json:"acctid"`
RuleInfo MonthRuleInfo `json:"rule_info"`
}

// MonthRuleInfo 打卡人员所属规则信息
MonthRuleInfo struct {
GroupId int64 `json:"groupid"`
GroupID int64 `json:"groupid"`
GroupName string `json:"groupname"`
}

Expand Down

0 comments on commit 12f76c4

Please sign in to comment.