Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-platform
Commits
9e26c8a0
Commit
9e26c8a0
authored
Sep 09, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加菜单资源配置
parent
0a3a3e78
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
bill-manager/pom.xml
bill-manager/pom.xml
+0
-6
bill-manager/src/main/java/com/mortals/xhx/base/system/role/web/RoleAuthController.java
.../mortals/xhx/base/system/role/web/RoleAuthController.java
+2
-0
bill-manager/src/main/java/com/mortals/xhx/base/system/role/web/RoleController.java
.../com/mortals/xhx/base/system/role/web/RoleController.java
+2
-0
bill-manager/src/main/java/com/mortals/xhx/base/system/role/web/RoleUserController.java
.../mortals/xhx/base/system/role/web/RoleUserController.java
+4
-0
No files found.
bill-manager/pom.xml
View file @
9e26c8a0
...
...
@@ -194,12 +194,6 @@
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
io.swagger
</groupId>
<artifactId>
swagger-annotations
</artifactId>
<version>
1.6.14
</version>
</dependency>
</dependencies>
...
...
bill-manager/src/main/java/com/mortals/xhx/base/system/role/web/RoleAuthController.java
View file @
9e26c8a0
...
...
@@ -41,6 +41,7 @@ public class RoleAuthController extends BaseCRUDJsonBodyMappingController<RoleAu
/**
* 分配资源
*/
@ApiOperation
(
value
=
"分配资源"
)
@PostMapping
(
value
=
"distributionSource"
)
public
String
distributionSource
(
@RequestBody
RoleAuthQuery
query
)
{
try
{
...
...
@@ -60,6 +61,7 @@ public class RoleAuthController extends BaseCRUDJsonBodyMappingController<RoleAu
/**
* 分配菜单
*/
@ApiOperation
(
value
=
"分配菜单"
)
@PostMapping
(
value
=
"distributionMenu"
)
public
String
distributionMenu
(
@RequestBody
RoleAuthQuery
query
)
{
try
{
...
...
bill-manager/src/main/java/com/mortals/xhx/base/system/role/web/RoleController.java
View file @
9e26c8a0
...
...
@@ -11,6 +11,7 @@ import com.mortals.xhx.base.system.role.model.RoleUserEntity;
import
com.mortals.xhx.base.system.role.service.RoleService
;
import
com.mortals.xhx.base.system.role.service.RoleUserService
;
import
com.mortals.xhx.common.code.RoleType
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -53,6 +54,7 @@ public class RoleController extends BaseCRUDJsonBodyMappingController<RoleServic
* @param userId
* @return
*/
@ApiOperation
(
value
=
"根据用户id获取角色名称"
)
@PostMapping
(
"roleNameByUserId"
)
public
String
getRoleNameByUserId
(
@RequestParam
(
value
=
"userId"
)
Long
userId
)
{
try
{
...
...
bill-manager/src/main/java/com/mortals/xhx/base/system/role/web/RoleUserController.java
View file @
9e26c8a0
...
...
@@ -8,6 +8,7 @@ import com.mortals.framework.exception.AppException;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.framework.annotation.ApiUserAuth
;
import
com.mortals.xhx.base.system.role.model.RoleEntity
;
import
com.mortals.xhx.base.system.role.model.RoleUserEntity
;
import
com.mortals.xhx.base.system.role.model.RoleUserQuery
;
...
...
@@ -16,6 +17,7 @@ import com.mortals.xhx.base.system.role.service.RoleUserService;
import
com.mortals.xhx.base.system.user.model.UserEntity
;
import
com.mortals.xhx.base.system.user.model.UserQuery
;
import
com.mortals.xhx.base.system.user.service.UserService
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.beanutils.MethodUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
@@ -94,6 +96,7 @@ public class RoleUserController extends BaseCRUDJsonBodyMappingController<RoleUs
/**
* 分配用户
*/
@ApiOperation
(
value
=
"分配用户"
)
@PostMapping
(
value
=
"distributionUser"
)
public
String
distributionUser
(
@RequestBody
RoleUserQuery
query
)
{
try
{
...
...
@@ -113,6 +116,7 @@ public class RoleUserController extends BaseCRUDJsonBodyMappingController<RoleUs
/**
* 分配角色
*/
@ApiOperation
(
value
=
"分配角色"
)
@PostMapping
(
value
=
"distributionRole"
)
public
String
distributionRole
(
@RequestBody
RoleUserQuery
query
)
{
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment