🎉 初始化项目
This commit is contained in:
18
server/model/system/sys_api.go
Normal file
18
server/model/system/sys_api.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"git.echol.cn/loser/ai_proxy/server/global"
|
||||
)
|
||||
|
||||
// SysApi API管理
|
||||
type SysApi struct {
|
||||
global.GVA_MODEL
|
||||
Path string `json:"path" gorm:"comment:API路径;size:255;not null"`
|
||||
Description string `json:"description" gorm:"comment:API描述;size:500"`
|
||||
ApiGroup string `json:"apiGroup" gorm:"comment:API分组;size:100"`
|
||||
Method string `json:"method" gorm:"comment:请求方法;size:20;not null"` // GET/POST/PUT/DELETE
|
||||
}
|
||||
|
||||
func (SysApi) TableName() string {
|
||||
return "sys_apis"
|
||||
}
|
||||
Reference in New Issue
Block a user