package viewmodel import ( "encoding/json" "time" ) type BizObjectData struct { BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('主键ID') "` BizTitle string `json:"bizTitle" xorm:"'biz_title' varchar(127) comment('Biz Title') "` ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('主键ID') "` ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Type') "` ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('Object Title')"` ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('Object Code') "` Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "` CreatedBy int64 `json:"createdBy" xorm:"'created_by'"` CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"` UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"` UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"` DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"` DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"` DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"` Attrs []BizObjectAttrInfo `json:"attrs"` } func (t *BizObjectData) TableName() string { return "biz_object" } func (t *BizObjectData) MarshalBinary() (data []byte, err error){ return json.Marshal(t) } func (t *BizObjectData) UnmarshalBinary(data []byte) (err error){ return json.Unmarshal(data, t) }