package models import "database/sql" //分厂&部室栏目 type BranchFactory struct { BfId int64 `json:"bfid" bson:"bfid"` Name sql.NullString `json:"name" bson:"name"` //'分厂名称', Set int8 `json:"set" bson:"set"` //'状态(1:启用;2:禁用;3:删除)', Uid int64 `json:"uid" bson:"bson"` //'创建人', Time int64 `json:"times" bson:"bson"` //写入时间 Attribute int8 `json:"attribute" bson:"attribute"` // '属性(1:私有;2:共享)', Group int64 `json:"group" bson:"group"` //'集团公司', WechatId int64 `json:"wechatid" bson:"wechatid"` //'对照微信id', } func (b *BranchFactory) InitBranchFactory() { b.BfId = 0 b.Name = sql.NullString{"", false} b.Set = 0 b.Uid = 0 b.Time = 0 b.Attribute = 0 b.Group = 0 b.WechatId = 0 }