feat 添加api管理

This commit is contained in:
wenjianzhang
2021-05-11 18:35:55 +08:00
parent c13d13ccf4
commit 0a3e3be12c
2 changed files with 5 additions and 6 deletions
@@ -44,8 +44,8 @@ type SysApiControl struct {
Path string `json:"path" comment:"地址"`
Paths string `json:"paths" comment:""`
Action string `json:"action" comment:"类型"`
ParentId string `json:"parentId" comment:"按钮id"`
Sort string `json:"sort" comment:"排序"`
ParentId int `json:"parentId" comment:"按钮id"`
Sort int `json:"sort" comment:"排序"`
}
func (s *SysApiControl) Generate() dto.Control {
@@ -70,7 +70,7 @@ func (s *SysApiControl) Bind(ctx *gin.Context) error {
func (s *SysApiControl) GenerateM() (common.ActiveRecord, error) {
return &models.SysApi{
Model: common.Model{Id: s.Id},
Id: s.Id,
Name: s.Name,
Title: s.Title,
Path: s.Path,