api.go 560 B

123456789101112131415161718
  1. package models
  2. import "IotAdmin/common/models"
  3. type SysApi struct {
  4. Id int `json:"id" gorm:"primaryKey;autoIncrement;comment:主键编码"`
  5. Handle string `json:"handle" gorm:"size:128;comment:handle"`
  6. Title string `json:"title" gorm:"size:128;comment:标题"`
  7. Path string `json:"path" gorm:"size:128;comment:地址"`
  8. Action string `json:"action" gorm:"size:16;comment:请求类型"`
  9. Type string `json:"type" gorm:"size:16;comment:接口类型"`
  10. models.ControlBy
  11. models.ModelTime
  12. }
  13. func (*SysApi) TableName() string {
  14. return "sys_api"
  15. }