Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fa3546d2
authored
Sep 27, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改路由
1 parent
818beda2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
project-interface/src/main/java/com/dituhui/pea/user/IRole.java
project-interface/src/main/java/com/dituhui/pea/user/IRole.java
View file @
fa3546d
...
...
@@ -5,9 +5,7 @@ import com.dituhui.pea.pojo.PageRequest;
import
com.dituhui.pea.pojo.ResourceInfo
;
import
com.dituhui.pea.pojo.RoleInfo
;
import
com.dituhui.pea.pojo.WebResult
;
import
com.dituhui.pea.pojo.role.UserRoleInfo
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.data.domain.Page
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
...
...
@@ -27,7 +25,7 @@ public interface IRole {
* @param roleInfo 角色信息
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/add"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
pea-user
/role/add"
,
method
=
RequestMethod
.
POST
)
WebResult
<
RoleInfo
>
addRole
(
@RequestBody
RoleInfo
roleInfo
);
...
...
@@ -37,7 +35,7 @@ public interface IRole {
* @param roleInfo 角色信息
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/update"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
pea-user
/role/update"
,
method
=
RequestMethod
.
POST
)
WebResult
<
RoleInfo
>
updateRole
(
@RequestBody
RoleInfo
roleInfo
);
/**
...
...
@@ -46,7 +44,7 @@ public interface IRole {
* @param roleId 角色ID
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/delete"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
pea-user
/role/delete"
,
method
=
RequestMethod
.
POST
)
WebResult
<
Boolean
>
deleteRole
(
@RequestParam
(
"id"
)
String
roleId
);
/**
...
...
@@ -56,7 +54,7 @@ public interface IRole {
* @param userId 用户ID
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/addUser"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
pea-user
/role/addUser"
,
method
=
RequestMethod
.
POST
)
WebResult
<
Boolean
>
addUserRole
(
@RequestParam
(
"id"
)
String
roleId
,
@RequestParam
(
"userId"
)
String
userId
);
/**
...
...
@@ -66,7 +64,7 @@ public interface IRole {
* @param roleId 角色ID
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/deleteUser"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
pea-user
/role/deleteUser"
,
method
=
RequestMethod
.
POST
)
WebResult
<
Boolean
>
deleteUserRole
(
@RequestParam
(
"id"
)
String
roleId
,
@RequestParam
(
"userId"
)
String
userId
);
/**
...
...
@@ -75,7 +73,7 @@ public interface IRole {
* @param resourceInfo 资源信息
* @return
*/
@RequestMapping
(
value
=
"/
v1
/resource/add"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
pea-user
/resource/add"
,
method
=
RequestMethod
.
POST
)
WebResult
<
ResourceInfo
>
addResource
(
@RequestBody
ResourceInfo
resourceInfo
);
/**
...
...
@@ -84,7 +82,7 @@ public interface IRole {
* @param resourceId 资源ID
* @return
*/
@RequestMapping
(
value
=
"/
v1
/resource/delete"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
pea-user
/resource/delete"
,
method
=
RequestMethod
.
POST
)
WebResult
<
Boolean
>
deleteResource
(
@RequestParam
(
"id"
)
String
resourceId
);
/**
...
...
@@ -94,7 +92,7 @@ public interface IRole {
* @param resourceId 资源ID
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/addResource"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
pea-user
/role/addResource"
,
method
=
RequestMethod
.
POST
)
WebResult
<
Boolean
>
addRoleResource
(
@RequestParam
(
"id"
)
String
roleId
,
@RequestParam
(
"resource_id"
)
String
resourceId
);
/**
...
...
@@ -104,7 +102,7 @@ public interface IRole {
* @param resourceIds 资源ID集合
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/replaceResources"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
pea-user
/role/replaceResources"
,
method
=
RequestMethod
.
POST
)
WebResult
<
Boolean
>
replaceRoleResource
(
@RequestParam
(
"id"
)
String
roleId
,
@RequestParam
(
"resource_ids"
)
String
resourceIds
);
/**
...
...
@@ -114,7 +112,7 @@ public interface IRole {
* @param resourceId 资源ID
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/deleteResource"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
pea-user
/role/deleteResource"
,
method
=
RequestMethod
.
POST
)
WebResult
<
Boolean
>
deleteRoleResource
(
@RequestParam
(
"id"
)
String
roleId
,
@RequestParam
(
"resource_id"
)
String
resourceId
);
...
...
@@ -124,7 +122,7 @@ public interface IRole {
* @param pageRequest 分页参数
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/list"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/
pea-user
/role/list"
,
method
=
RequestMethod
.
GET
)
WebResult
<
PageResult
<
RoleInfo
>>
listRole
(
PageRequest
pageRequest
);
/**
...
...
@@ -133,7 +131,7 @@ public interface IRole {
* @param roleId 用户id
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/info"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/
pea-user
/role/info"
,
method
=
RequestMethod
.
GET
)
WebResult
<
RoleInfo
>
info
(
@RequestParam
(
"roleId"
)
String
roleId
);
/**
...
...
@@ -142,6 +140,6 @@ public interface IRole {
* @param userId 用户id
* @return
*/
@RequestMapping
(
value
=
"/
v1
/role/allResource"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/
pea-user
/role/allResource"
,
method
=
RequestMethod
.
GET
)
WebResult
<
List
<
ResourceInfo
>>
allResource
();
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment