api.go 1.7 KB

123456789101112131415161718192021222324252627
  1. package datamodels
  2. import "time"
  3. type Api struct {
  4. ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('Api ID') "`
  5. ApiType int64 `json:"apiType" xorm:"'api_type' bigint comment('Api Type') "`
  6. ApiTitle string `json:"apiTitle" xorm:"'api_title' varchar(127) comment('名称') "`
  7. ApiCode string `json:"apiCode" xorm:"'api_code' varchar(127) comment('编码') "`
  8. ApiParams string `json:"apiParams" xorm:"'api_params' varchar(127) comment('Param') "`
  9. Status int64 `json:"status" xorm:"'status' bigint comment('Status') "`
  10. ApiDesc string `json:"apiDesc" xorm:"'api_desc' varchar(50) comment('描述') "`
  11. BizId int64 `json:"bizId" xorm:"'biz_id' bigint comment('Biz Id') "`
  12. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint comment('Object Id') "`
  13. OamId int64 `json:"oamId" xorm:"'oam_id' bigint comment('Oam Id') "`
  14. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  15. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  16. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  17. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  18. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  19. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  20. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  21. }
  22. func (t *Api) TableName() string {
  23. return "api"
  24. }