feat✨ 添加api管理
This commit is contained in:
1 parent
70998c424d
commit
d0b2e8d03f
6 files changed
+395
-53
No files matched your search
@@ -39,7 +39,7 @@ func (m *SysApiSearch) Bind(ctx *gin.Context) error {
|
||||
|
||||
type SysApiControl struct {
|
||||
Id int `uri:"id" comment:"编码"` // 编码
|
||||
Name string `json:"name" comment:"名称"`
|
||||
Handle string `json:"handle" comment:"handle"`
|
||||
Title string `json:"title" comment:"标题"`
|
||||
Path string `json:"path" comment:"地址"`
|
||||
Paths string `json:"paths" comment:""`
|
||||
@@ -71,7 +71,7 @@ func (s *SysApiControl) Bind(ctx *gin.Context) error {
|
||||
func (s *SysApiControl) GenerateM() (common.ActiveRecord, error) {
|
||||
return &models.SysApi{
|
||||
Id: s.Id,
|
||||
Name: s.Name,
|
||||
Handle: s.Handle,
|
||||
Title: s.Title,
|
||||
Path: s.Path,
|
||||
Paths: s.Paths,
|
||||
@@ -123,4 +123,4 @@ func (s *SysApiById) Generate() dto.Control {
|
||||
|
||||
func (s *SysApiById) GenerateM() (common.ActiveRecord, error) {
|
||||
return &models.SysApi{}, nil
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user