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.
33 lines
1.6 KiB
33 lines
1.6 KiB
package models
|
|
|
|
import "database/sql"
|
|
|
|
//职务结构
|
|
type Postition struct {
|
|
Id int64 `json:"ps_id" bson:"ps_id"`
|
|
Name sql.NullString `json:"ps_name" bson:"ps_name"` //'职务名称',
|
|
Set int8 `json:"ps_set" bson:"ps_set"` //'职务状态',
|
|
WorkSectionId int64 `json:"ps_ws_id" bson:"ps_ws_id"` //'所属工段',
|
|
DepartId int64 `json:"ps_bf_id" bson:"ps_bf_id"` //'所属分厂',
|
|
Time int64 `json:"ps_time" bson:"ps_time"` //'创建时间',
|
|
EiteTime int64 `json:"ps_eite_time" bson:"ps_eite_time"` //'修改时间',
|
|
UserId int64 `json:"ps_sys_uid" bson:"ps_sys_uid"` //'添加人',
|
|
Weight int32 `json:"ps_weight" bson:"ps_weight"` //'权重',
|
|
GenExa int8 `json:"ps_gen_exa" bson:"ps_gen_exa"` //'统考(1:是;2:否)',
|
|
Group int64 `json:"ps_group" bson:"ps_group"` //'归属集团',
|
|
}
|
|
|
|
//初始化
|
|
func (p *Postition) InitPostition() {
|
|
p.Id = 0
|
|
p.Name = sql.NullString{"", false} //'职务名称',
|
|
p.Set = 1 //'职务状态',
|
|
p.WorkSectionId = 0 //'所属工段',
|
|
p.DepartId = 0 //'所属分厂',
|
|
p.Time = 0 //'创建时间',
|
|
p.EiteTime = 0 //'修改时间',
|
|
p.UserId = 0 //'添加人',
|
|
p.Weight = 0 //'权重',
|
|
p.GenExa = 2 //'统考(1:是;2:否)',
|
|
p.Group = 1 //'归属集团',
|
|
}
|
|
|