package dbstruct type WorkerId struct { Id *int64 `json:"id" bson:"_id"` // 慧用工职业者id表id Mid *int64 `json:"mid" bson:"mid"` // 用户id WorkerId *string `json:"worker_id" bson:"worker_id"` // 职业者id Ct *int64 `json:"ct" bson:"ct"` // 创建时间 Ut *int64 `json:"ut" bson:"ut"` // 更新时间 DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记 } func (p *WorkerId) GetId() int64 { if p == nil || p.Id == nil { return 0 } return *p.Id } func (p *WorkerId) GetWorkerId() string { if p == nil || p.WorkerId == nil { return "" } return *p.WorkerId }