...
|
...
|
@@ -92,6 +92,17 @@ func (controller *RoleController) GetRoleRelatedUsers() { |
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *RoleController) RoleRelatedUsers() {
|
|
|
roleService := service.NewRoleService(nil)
|
|
|
getRoleRelatedUsersQuery := &query.GetRoleRelatedUsersQuery{}
|
|
|
controller.Unmarshal(getRoleRelatedUsersQuery)
|
|
|
roleId, _ := controller.GetInt64(":roleId")
|
|
|
getRoleRelatedUsersQuery.RoleId = roleId
|
|
|
getRoleRelatedUsersQuery.OperateInfo = ParseOperateInfo(controller.BaseController)
|
|
|
data, err := roleService.GetRoleRelatedUsers(getRoleRelatedUsersQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *RoleController) GetRoleAccessMenus() {
|
|
|
roleService := service.NewRoleService(nil)
|
|
|
getRoleAccessMenusQuery := &query.GetRoleAccessMenusQuery{}
|
...
|
...
|
|