1、初始化项目
This commit is contained in:
16
cmd/migrate/migration/models/sys_api.go
Normal file
16
cmd/migrate/migration/models/sys_api.go
Normal file
@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
type SysApi struct {
|
||||
Id int `json:"id" gorm:"primaryKey;autoIncrement;comment:主键编码"`
|
||||
Handle string `json:"handle" gorm:"size:128;comment:handle"`
|
||||
Title string `json:"title" gorm:"size:128;comment:标题"`
|
||||
Path string `json:"path" gorm:"size:128;comment:地址"`
|
||||
Type string `json:"type" gorm:"size:16;comment:接口类型"`
|
||||
Action string `json:"action" gorm:"size:16;comment:请求类型"`
|
||||
ModelTime
|
||||
ControlBy
|
||||
}
|
||||
|
||||
func (SysApi) TableName() string {
|
||||
return "sys_api"
|
||||
}
|
||||
Reference in New Issue
Block a user