biz_object_oam_data.go 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package viewmodels
  2. import "encoding/json"
  3. type BizObjectOAMData 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. OamRules []BizObjectOAMRuleInfo `json:"oamRules"`
  22. OamParams []BizObjectOAMParamsInfo `json:"oamParams"`
  23. }
  24. func (t *BizObjectOAMData) TableName() string {
  25. return "biz_object_oam"
  26. }
  27. func (t *BizObjectOAMData) MarshalBinary() (data []byte, err error){
  28. return json.Marshal(t)
  29. }
  30. func (t *BizObjectOAMData) UnmarshalBinary(data []byte) (err error){
  31. return json.Unmarshal(data, t)
  32. }