api_trans_unit_info.go 2.5 KB

12345678910111213141516171819202122232425262728
  1. package viewmodels
  2. type ApiTransUnitInfo struct {
  3. ModuleId int64 `json:"moduleId" xorm:"'module_id' bigint pk comment('主键ID') "`
  4. ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('ApiId') "`
  5. AtuId int64 `json:"atuId" xorm:"'atu_id' bigint pk comment('AtuId') "`
  6. ModelId int64 `json:"modelId" xorm:"'model_id' bigint comment('ModelId') "`
  7. ModelTitle string `json:"modelTitle" xorm:"'model_title' varchar(127) comment('Model Title') "`
  8. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint comment('ObjectId') "`
  9. ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('Object Title') "`
  10. ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('Object Code') "`
  11. OamId int64 `json:"oamId" xorm:"'oam_id' bigint comment('oamId') "`
  12. OamTitle string `json:"oamTitle" xorm:"'oam_title' varchar(127) comment('OAMTitle') "`
  13. OamCode string `json:"oamCode" xorm:"'oam_code' varchar(127) comment('OAMCode') "`
  14. OamType int64 `json:"oamType" xorm:"'oam_type' bigint comment('Oam Type') "`
  15. SqlType int64 `json:"sqlType" xorm:"'sql_type' bigint comment('Sql Type') "`
  16. SqlStatement string `json:"sqlStatement" xorm:"'sql_statement' varchar(1023) comment('Statement') "`
  17. SqlSelect string `json:"sqlSelect" xorm:"'sql_select' varchar(1023) comment('Statement') "`
  18. SqlFrom string `json:"sqlFrom" xorm:"'sql_from' varchar(1023) comment('Statement') "`
  19. SqlWhere string `json:"sqlWhere" xorm:"'sql_where' varchar(1023) comment('Statement') "`
  20. SqlOrder string `json:"sqlOrder" xorm:"'sql_order' varchar(1023) comment('Statement') "`
  21. OamDesc string `json:"oamDesc" xorm:"'oam_desc' varchar(1023) comment('描述') "`
  22. }
  23. func (t *ApiTransUnitInfo) TableName() string {
  24. return "ps_api_trans_unit"
  25. }