feat✨ apis路径简化
This commit is contained in:
1 parent
8adc79a5f7
commit
dfd460c50b
56 files changed
+471
-665
No files matched your search
+22
-24
@@ -1,28 +1,26 @@
|
||||
package models
|
||||
|
||||
import "go-admin/common/models"
|
||||
|
||||
type SysRole struct {
|
||||
RoleId int `json:"roleId" gorm:"primaryKey;autoIncrement"` // 角色编码
|
||||
RoleName string `json:"roleName" gorm:"size:128;"` // 角色名称
|
||||
Status string `json:"status" gorm:"size:4;"` //
|
||||
RoleKey string `json:"roleKey" gorm:"size:128;"` //角色代码
|
||||
RoleSort int `json:"roleSort" gorm:""` //角色排序
|
||||
Flag string `json:"flag" gorm:"size:128;"` //
|
||||
Remark string `json:"remark" gorm:"size:255;"` //备注
|
||||
Admin bool `json:"admin" gorm:"size:4;"`
|
||||
DataScope string `json:"dataScope" gorm:"size:128;"`
|
||||
models.ModelTime
|
||||
models.ControlBy
|
||||
|
||||
Params string `json:"params" gorm:"-"`
|
||||
MenuIds []int `json:"menuIds" gorm:"-"`
|
||||
DeptIds []int `json:"deptIds" gorm:"-"`
|
||||
}
|
||||
|
||||
func (SysRole) TableName() string {
|
||||
return "sys_role"
|
||||
}
|
||||
//type SysRole struct {
|
||||
// RoleId int `json:"roleId" gorm:"primaryKey;autoIncrement"` // 角色编码
|
||||
// RoleName string `json:"roleName" gorm:"size:128;"` // 角色名称
|
||||
// Status string `json:"status" gorm:"size:4;"` //
|
||||
// RoleKey string `json:"roleKey" gorm:"size:128;"` //角色代码
|
||||
// RoleSort int `json:"roleSort" gorm:""` //角色排序
|
||||
// Flag string `json:"flag" gorm:"size:128;"` //
|
||||
// Remark string `json:"remark" gorm:"size:255;"` //备注
|
||||
// Admin bool `json:"admin" gorm:"size:4;"`
|
||||
// DataScope string `json:"dataScope" gorm:"size:128;"`
|
||||
// models.ModelTime
|
||||
// models.ControlBy
|
||||
//
|
||||
// Params string `json:"params" gorm:"-"`
|
||||
// MenuIds []int `json:"menuIds" gorm:"-"`
|
||||
// DeptIds []int `json:"deptIds" gorm:"-"`
|
||||
//}
|
||||
//
|
||||
//func (SysRole) TableName() string {
|
||||
// return "sys_role"
|
||||
//}
|
||||
|
||||
type MenuIdList struct {
|
||||
MenuId int `json:"menuId"`
|
||||
@@ -240,4 +238,4 @@ type MenuIdList struct {
|
||||
// }
|
||||
//
|
||||
// return true, nil
|
||||
//}
|
||||
//}
|
||||
Reference in new issue
Block a user