Files
zmkgC/internal/app/wxApplet/model/bus_attendance.go

109 lines
6.2 KiB
Go
Raw Permalink Normal View History

2025-07-07 20:11:59 +08:00
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-08-07 16:29:52
// 生成路径: internal/app/wxApplet/model/bus_attendance.go
// 生成人gfast
// desc:考勤
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusAttendanceInfoRes is the golang structure for table bus_attendance.
type BusAttendanceInfoRes struct {
gmeta.Meta `orm:"table:bus_attendance"`
Id uint64 `orm:"id,primary" json:"id"` // 序号
UserName string `orm:"user_name" json:"userName"` // 人员姓名
PacePhoto string `orm:"pace_photo" json:"pacePhoto"` // 人脸照
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
ClockOn string `orm:"clock_on" json:"clockOn"` // 上午打卡
ClockOff string `orm:"clock_off" json:"clockOff"` // 下午打卡
PrintingDate string `orm:"printing_date" json:"printingDate"` // 年月日打卡时间
IsPinch string `orm:"is_pinch" json:"isPinch"` // 打卡状态
Openid string `orm:"openid" json:"openid"` // 微信id
PinchOpenId string `orm:"pinch_openId" json:"pinchOpenId"` // 代打id
ClockRecord string `orm:"clock_record" json:"clockRecord"` // 多次打卡时间记录
PinchUserName string `orm:"pinch_user_name" json:"pinchUserName"` // 代打人姓名
Commuter string `orm:"commuter" json:"commuter"` // 上下班1上班2下班
PunchRange string `orm:"punch_range" json:"punchRange"` // 打卡范围
DailyWage float64 `orm:"daily_wage" json:"dailyWage"` // 日薪
Lng string `orm:"lng" json:"lng"` // 经度
Lat string `orm:"lat" json:"lat"` // 纬度
Location string `orm:"location" json:"location"` // 逆编码地址
Missing *gtime.Time `orm:"missing" json:"missing"` // 逆编码地址
}
type BusAttendanceListRes struct {
Id uint64 `json:"id"`
UserName string `json:"userName"`
PacePhoto string `json:"pacePhoto"`
ProjectId int64 `json:"projectId"`
CreateBy string `json:"createBy"`
UpdateBy string `json:"updateBy"`
CreatedAt *gtime.Time `json:"createdAt"`
ClockOn string `json:"clockOn"`
ClockOff string `json:"clockOff"`
PrintingDate string `json:"printingDate"`
IsPinch string `json:"isPinch"`
Openid string `json:"openid"`
PinchOpenId string `json:"pinchOpenId"`
ClockRecord string `json:"clockRecord"`
PinchUserName string `json:"pinchUserName"`
Commuter string `json:"commuter"`
PunchRange string `json:"punchRange"`
DailyWage float64 `json:"dailyWage"`
Lng string `json:"lng"` // 经度
Lat string `json:"lat"` // 纬度
Location string `json:"location"` // 逆编码地址
}
type AppReissueACardListRes struct {
Id uint64 `json:"id" dc:"主键ID"`
IsPinch string `json:"isPinch" dc:"打卡状态1正常 2迟到 3早退 4缺勤"`
PrintingDate string `json:"printingDate" dc:"日期"`
Week string `json:"week" dc:"星期"`
Commuter int64 `json:"commuter" dc:"上下班状态1上班 2下班"`
}
type AppLocationAttendanceStatisticsOneRes struct {
PrintingDate string `json:"printingDate" dc:"打卡日期"`
Types []string `json:"types" dc:"考勤状态1正常 2迟到 3早退 4缺卡 5提交过补卡申请"`
ClockInTimeRange string `json:"clockInTimeRange" dc:"上下班打卡时间范围"`
Number int `json:"number" dc:"打卡次数"`
WorkingHours float64 `json:"workingHours" dc:"工作时长(单位/小时)"`
List []*AppLocationAttendanceStatisticsTwoRes `json:"list" dc:"上下班打卡明细"`
}
type AppLocationAttendanceStatisticsTwoRes struct {
Id uint64 `json:"id" dc:"主键ID"`
Commuter string `json:"commuter" dc:"上下班状态1上班 2下班"`
CommutingTime string `json:"commutingTime" dc:"上下班时间"`
IsPinch string `json:"isPinch" dc:"打卡状态1正常 2迟到 3早退 4缺勤"`
Location string `json:"location" dc:"打卡详细地址"`
MinutesLate float64 `json:"minutesLate" dc:"迟到分钟数"`
}
type AppResubmitTheExitAttachmentModelRes struct {
gmeta.Meta `orm:"table:bus_attendance"`
Id int64 `json:"id" dc:"考勤打卡的主键ID"`
PrintingDate string `json:"printingDate" dc:"考勤打卡的主键ID"`
Openid string `json:"openid" dc:"openid"`
PacePhoto string `json:"pacePhoto" dc:"人脸照"`
UserName string `json:"userName" dc:"用户名称"`
BzName string `json:"bzName" dc:"班组名称"`
TypeOfWorkName string `json:"typeOfWorkName" dc:"工种名称"`
Status string `json:"status" dc:"1出勤 2半勤 3缺勤 0(请求参数Type是什么就是什么)"`
Number int `json:"number" dc:"当天出勤次数"`
LackOfCard int `json:"lackOfCard" dc:"当天缺卡次数"`
List []*BusAttendanceInfoRes `json:"list"`
}