feat: RBAC 基本完成
This commit is contained in:
@@ -13,6 +13,6 @@ type CustomClaims struct {
|
||||
|
||||
type BaseClaims struct {
|
||||
UUID uuid.UUID
|
||||
ID uint
|
||||
ID string
|
||||
Account string
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package request
|
||||
|
||||
type GetMenuTree struct {
|
||||
Category int `json:"category" form:"category"`
|
||||
ParentId string `json:"parentId" form:"parentId"`
|
||||
}
|
||||
@@ -7,3 +7,8 @@ type GetRoleList struct {
|
||||
Code string `json:"code" form:"code"`
|
||||
Name string `json:"name" form:"name"`
|
||||
}
|
||||
|
||||
type GrantMenu struct {
|
||||
RoleId string `json:"roleId"`
|
||||
MenuIds []string `json:"menuIds"`
|
||||
}
|
||||
|
||||
@@ -14,3 +14,13 @@ type GetUserList struct {
|
||||
Account string `json:"account" form:"account"`
|
||||
Phone string `json:"phone" form:"phone"`
|
||||
}
|
||||
|
||||
type ChangePwd struct {
|
||||
Id string `json:"id"`
|
||||
NewPwd string `json:"newPwd"`
|
||||
}
|
||||
|
||||
type GrantRole struct {
|
||||
UserId string `json:"userId"`
|
||||
RoleIds []string `json:"roleIds"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user