知行学院重新架构Golang版后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
697 B

package models
import "database/sql"
//班组结构体
type Teaming struct {
Id int64 `json:"tm_id" bson:"tm_id"`
Name sql.NullString `json:"tm_name" bson:"tm_name"` //'班组名称',
Time int64 `json:"tm_time" bson:"tm_time"`
Set int8 `json:"tm_set" bson:"tm_set"` // '状态(1:启用,2:禁用;3:删除)',
Long int8 `json:"tm_long" bson:"tm_long"` //'倒班人员(1:是;2:否)',
}
//初始化
func (t *Teaming) InitTeam() {
t.Id = 0
t.Name = sql.NullString{"", false} //'班组名称',
t.Time = 0
t.Set = 1 //'状态(1:启用,2:禁用;3:删除)',
t.Long = 2 //'倒班人员(1:是;2:否)',
}