api.go 1.5 KB

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