zhangqian
2024-04-29 8b6e1e99dfbfe9c5324ba161cfbd742cd5dd5499
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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"`
}
 
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
}