biz_object_oam_info.go 2.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package viewmodels
  2. import "encoding/json"
  3. type BizObjectOAMInfo struct {
  4. BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('Biz ID') "`
  5. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('Object ID') "`
  6. ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('Object Title') "`
  7. ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Object Type') "`
  8. ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('Object Code') "`
  9. OamId int64 `json:"oamId" xorm:"'oam_id' bigint pk comment('OAM ID') "`
  10. OamTitle string `json:"oamTitle" xorm:"'oam_title' varchar(127) comment('OAMTitle') "`
  11. OamCode string `json:"oamCode" xorm:"'oam_code' varchar(127) comment('OAMCode') "`
  12. OamType int64 `json:"oamType" xorm:"'oam_type' bigint comment('OAM Type') "`
  13. SqlType int64 `json:"sqlType" xorm:"'sql_type' bigint comment('SQL Type') "`
  14. SqlStatement string `json:"sqlStatement" xorm:"'sql_statement' varchar(1023) comment('Statement') "`
  15. SqlSelect string `json:"sqlSelect" xorm:"'sql_select' varchar(1023) comment('Statement') "`
  16. SqlFrom string `json:"sqlFrom" xorm:"'sql_from' varchar(1023) comment('Statement') "`
  17. SqlWhere string `json:"sqlWhere" xorm:"'sql_where' varchar(1023) comment('Statement') "`
  18. SqlCount string `json:"sqlCount" xorm:"'sql_count' varchar(1023) comment('Sql Count') "`
  19. SqlOrder string `json:"sqlOrder" xorm:"'sql_order' varchar(1023) comment('Statement') "`
  20. OamDesc string `json:"oamDesc" xorm:"'oam_desc' varchar(1023) comment('描述') "`
  21. }
  22. func (t *BizObjectOAMInfo) TableName() string {
  23. return "biz_object_oam"
  24. }
  25. func (t *BizObjectOAMInfo) MarshalBinary() (data []byte, err error){
  26. return json.Marshal(t)
  27. }
  28. func (t *BizObjectOAMInfo) UnmarshalBinary(data []byte) (err error){
  29. return json.Unmarshal(data, t)
  30. }