api.go 991 B

1234567891011121314151617
  1. package datamodels
  2. type Api struct {
  3. ModuleId int64 `json:"moduleId" xorm:"'module_id' bigint pk pk comment('Module ID') "`
  4. ApiId int64 `json:"apiId" xorm:"'api_id' bigint pk comment('Api ID') "`
  5. ApiType int64 `json:"apiType" xorm:"'api_type' bigint pk 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. Base
  12. }
  13. func (t *Api) TableName() string {
  14. return "ps_api"
  15. }