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.
27 lines
955 B
27 lines
955 B
package models
|
|
|
|
import "database/sql"
|
|
|
|
//工段信息
|
|
type WorkSection struct {
|
|
Id int64 `json:"ws_id" bson:"ws_id"`
|
|
Name sql.NullString `json:"ws_name" bson:"ws_name"` // '工段名称',
|
|
Set int8 `json:"ws_set" bson:"ws_set"` // '状态(1:启用;2:禁用;3:删除)',
|
|
DepartId int64 `json:"ws_bf_id" bson:"ws_bf_id"` // '归属分厂',
|
|
Time int64 `json:"ws_time" bson:"ws_time"` // '创建时间',
|
|
UserId int64 `json:"ws_sys_uid" bson:"ws_sys_uid"` // '创建人',
|
|
EiteTime int64 `json:"ws_eite_time" bson:"ws_eite_time"` // '修改时间',
|
|
Group int64 `json:"ws_group" bson:"ws_group"` // '归属集团',
|
|
}
|
|
|
|
//初始化
|
|
func (w *WorkSection) InitWorkSection() {
|
|
w.Id = 0
|
|
w.Name = sql.NullString{"", false}
|
|
w.Set = 1
|
|
w.DepartId = 0
|
|
w.Time = 0
|
|
w.UserId = 0
|
|
w.EiteTime = 0
|
|
w.Group = 1
|
|
}
|
|
|