yinbentan
2024-07-25 a904aa32e66688ba76c9e4b71b6738b0ba5f5d4f
controllers/request/attendance_request.go
@@ -1,5 +1,14 @@
package request
import (
   "github.com/shopspring/decimal"
   "silkserver/constvar"
)
type TemplateCategoryRequest struct {
   Category constvar.FileTemplateCategory `json:"category"`
}
type GetAttendanceList struct {
   PageInfo
   Keyword string `json:"keyword"`
@@ -8,3 +17,22 @@
type DeleteAttendanceInfo struct {
   Ids []uint `json:"ids"` //记录id
}
type GetAttendanceStatistic struct {
   Month   string `json:"month"` //月份
   Keyword string `json:"keyword"`
}
type UpdateAttendance struct {
   Date             string                    `json:"date"`             //日期
   WorkerId         string                    `json:"workerId"`         //人员id
   Status           constvar.AttendanceStatus `json:"status"`           //状态
   OverTimeDuration decimal.Decimal           `json:"overTimeDuration"` //加班时长
   WorkerName       string                    `json:"workerName"`       //人员姓名
   StartWorkTime    string                    `json:"startWorkTime"`    //上班打卡时间
   EndWorkTime      string                    `json:"endWorkTime"`      //下班打卡时间
   Classes          string                    `json:"classes"`          //班次
   ClassesStartTime string                    `json:"classesStartTime"` //班次开始时间
   ClassesEndTime   string                    `json:"classesEndTime"`   //班次下班时间
   WorkTypeId       uint                      `json:"workTypeId"`       //工种id
}