package models import "database/sql" type Statisday struct { Id int64 `json:"t_id" bson:"t_id"` UserKey int64 `json:"t_user_key" bson:"t_user_key"` //'员工UserKey', UserJson sql.NullString `json:"t_user_json" bson:"t_user_json"` //'员工基础信息', UserGroup int8 `json:"t_user_group" bson:"t_user_group"` // '员工组织', UserDepartment int64 `json:"t_user_bfid" bson:"t_user_bfid"` //'分厂', UserStation int64 `json:"t_user_wp" bson:"t_user_wp"` //'工段', UserPost int64 `json:"t_user_ws" bson:"t_user_ws"` //'职务', UserTeam int64 `json:"t_user_tem" bson:"t_user_tem"` //T '班组', StatisticalTime int64 `json:"t_tiem" bson:"t_tiem"` //'统计时间', UserScore int64 `json:"t_score" bson:"t_score"` // '得分', Group int8 `json:"t_group" bson:"t_group"` // '组织', AddTime int64 `json:"t_add_time" bson:"t_add_time"` //'实际写入时间', } //初始化 func (s *Statisday) InitStatisday() { s.Id = 0 s.UserKey = 0 s.UserJson = sql.NullString{"", false} s.UserGroup = 1 s.UserDepartment = 0 s.UserStation = 0 s.UserPost = 0 s.UserTeam = 0 s.StatisticalTime = 0 s.UserScore = 0 s.Group = 1 s.AddTime = 0 }