package viewmodels import "encoding/json" type BizObjectOAMInfo struct { BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('Biz ID') "` ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('Object ID') "` ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('Object Title') "` ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Object Type') "` ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('Object Code') "` OamId int64 `json:"oamId" xorm:"'oam_id' bigint pk comment('OAM ID') "` OamTitle string `json:"oamTitle" xorm:"'oam_title' varchar(127) comment('OAMTitle') "` OamCode string `json:"oamCode" xorm:"'oam_code' varchar(127) comment('OAMCode') "` OamType int64 `json:"oamType" xorm:"'oam_type' bigint comment('OAM Type') "` SqlType int64 `json:"sqlType" xorm:"'sql_type' bigint comment('SQL Type') "` SqlStatement string `json:"sqlStatement" xorm:"'sql_statement' varchar(1023) comment('Statement') "` SqlSelect string `json:"sqlSelect" xorm:"'sql_select' varchar(1023) comment('Statement') "` SqlFrom string `json:"sqlFrom" xorm:"'sql_from' varchar(1023) comment('Statement') "` SqlWhere string `json:"sqlWhere" xorm:"'sql_where' varchar(1023) comment('Statement') "` SqlCount string `json:"sqlCount" xorm:"'sql_count' varchar(1023) comment('Sql Count') "` SqlOrder string `json:"sqlOrder" xorm:"'sql_order' varchar(1023) comment('Statement') "` OamDesc string `json:"oamDesc" xorm:"'oam_desc' varchar(1023) comment('描述') "` } func (t *BizObjectOAMInfo) TableName() string { return "biz_object_oam" } func (t *BizObjectOAMInfo) MarshalBinary() (data []byte, err error){ return json.Marshal(t) } func (t *BizObjectOAMInfo) UnmarshalBinary(data []byte) (err error){ return json.Unmarshal(data, t) }