调整整体架构写法

调整db用法
调整日志用法
调整模版
This commit is contained in:
linwenxiang committed 2021-03-04 23:45:16 +08:00
1 parent 734a48dbb8
commit e2952fa393
137 files changed
+3638 -3544

No files matched your search

+7 -4
View File
@@ -4,10 +4,9 @@ import (
"encoding/json"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/binding"
"go-admin/app/admin/models"
log "github.com/go-admin-team/go-admin-core/logger"
"go-admin/app/admin/models/system"
"go-admin/common/dto"
"go-admin/common/log"
"go-admin/tools"
)
@@ -110,8 +109,8 @@ func (s *SysRoleById) GetId() interface{} {
return s.Id
}
func (s *SysRoleById) GenerateM() (*models.SysRole, error) {
return &models.SysRole{}, nil
func (s *SysRoleById) GenerateM() (*system.SysRole, error) {
return &system.SysRole{}, nil
}
// RoleDataScopeReq 角色数据权限修改
@@ -120,3 +119,7 @@ type RoleDataScopeReq struct {
DataScope string `json:"dataScope" binding:"required"`
DeptIds []int `json:"deptIds"`
}
type DeptIdList struct {
DeptId int `json:"DeptId"`
}