提交
This commit is contained in:
39
modules/base/model/base_eps_admin.go
Normal file
39
modules/base/model/base_eps_admin.go
Normal file
@@ -0,0 +1,39 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/cool-team-official/cool-admin-go/cool"
|
||||
)
|
||||
|
||||
const TableNameBaseEpsAdmin = "base_eps_admin"
|
||||
|
||||
// BaseEpsAdmin mapped from table <base_eps_admin>
|
||||
type BaseEpsAdmin struct {
|
||||
Id int `json:"id"`
|
||||
Module string `json:"module" field:"module"`
|
||||
Method string // 请求方法 例如:GET
|
||||
Path string // 请求路径 例如:/welcome
|
||||
Prefix string // 路由前缀 例如:/admin/base/open
|
||||
Summary string // 描述 例如:欢迎页面
|
||||
Tag string // 标签 例如:base 好像暂时不用
|
||||
Dts string // 未知 例如:{} 好像暂时不用
|
||||
}
|
||||
|
||||
// TableName BaseEpsAdmin's table name
|
||||
func (*BaseEpsAdmin) TableName() string {
|
||||
return TableNameBaseEpsAdmin
|
||||
}
|
||||
|
||||
// GroupName BaseEpsAdmin's table group
|
||||
func (*BaseEpsAdmin) GroupName() string {
|
||||
return "default"
|
||||
}
|
||||
|
||||
// NewBaseEpsAdmin create a new BaseEpsAdmin
|
||||
func NewBaseEpsAdmin() *BaseEpsAdmin {
|
||||
return &BaseEpsAdmin{}
|
||||
}
|
||||
|
||||
// init 创建表
|
||||
func init() {
|
||||
cool.CreateTable(&BaseEpsAdmin{})
|
||||
}
|
||||
Reference in New Issue
Block a user