Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
2410ca9b
Commit
2410ca9b
authored
Sep 15, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:权限
parent
a88be709
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
18 deletions
+9
-18
HaobanRoleController.java
...ic/haoban/manage/web/controller/HaobanRoleController.java
+2
-2
HaobanRoleController.java
...ic/haoban/manage/web/controller/HaobanRoleController.java
+7
-16
No files found.
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/HaobanRoleController.java
View file @
2410ca9b
...
...
@@ -62,8 +62,8 @@ public class HaobanRoleController {
* 根据类型查询菜单
* @return
*/
@RequestMapping
(
value
=
"/queryMenuBy
RoleId
"
,
method
=
RequestMethod
.
GET
)
private
RestResponse
<
HaobanRoleDTO
>
queryMenuBy
RoleId
(
Integer
clerkType
,
String
wxEnterpriseId
)
{
@RequestMapping
(
value
=
"/queryMenuBy
ClerkType
"
,
method
=
RequestMethod
.
GET
)
private
RestResponse
<
HaobanRoleDTO
>
queryMenuBy
ClerkType
(
Integer
clerkType
,
String
wxEnterpriseId
)
{
ServiceResponse
<
HaobanRoleDTO
>
serviceResponse
=
haobanRoleApiService
.
getMenuByWxEnterpriseIdAndClerkType
(
wxEnterpriseId
,
clerkType
);
return
RestResponse
.
successResult
(
serviceResponse
.
getResult
());
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/HaobanRoleController.java
View file @
2410ca9b
...
...
@@ -5,6 +5,7 @@ import com.gic.commons.webapi.reponse.RestResponse;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.common.utils.AuthWebRequestUtil
;
import
com.gic.haoban.manage.api.dto.qdto.role.HaobanRoleQDTO
;
import
com.gic.haoban.manage.api.dto.role.HaobanMenuDTO
;
import
com.gic.haoban.manage.api.dto.role.HaobanRoleDTO
;
import
com.gic.haoban.manage.api.service.role.HaobanMenuApiService
;
import
com.gic.haoban.manage.api.service.role.HaobanRoleApiService
;
...
...
@@ -16,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
/**
* @author mozhu
* @date 2022/9/7 3:03 下午
...
...
@@ -32,18 +35,6 @@ public class HaobanRoleController extends WebBaseController{
private
HaobanMenuApiService
haobanMenuApiService
;
/**
* 新增
* @param haobanRoleQDTO
* @return
*/
@RequestMapping
(
value
=
"/add"
,
method
=
RequestMethod
.
POST
)
private
RestResponse
add
(
@RequestBody
HaobanRoleQDTO
haobanRoleQDTO
)
{
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
haobanRoleApiService
.
add
(
haobanRoleQDTO
,
login
);
return
RestResponse
.
successResult
();
}
/**
* 修改
* @param haobanRoleQDTO
* @return
...
...
@@ -60,9 +51,9 @@ public class HaobanRoleController extends WebBaseController{
* @return
*/
@RequestMapping
(
value
=
"/getHaobanMenuTreeList"
,
method
=
RequestMethod
.
GET
)
private
RestResponse
getHaobanMenuTreeList
(
Integer
clerkType
)
{
private
RestResponse
<
List
<
HaobanMenuDTO
>>
getHaobanMenuTreeList
(
Integer
clerkType
)
{
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
ServiceResponse
serviceResponse
=
haobanMenuApiService
.
getHaobanMenuTreeList
(
login
.
getWxEnterpriseId
(),
clerkType
);
ServiceResponse
<
List
<
HaobanMenuDTO
>>
serviceResponse
=
haobanMenuApiService
.
getHaobanMenuTreeList
(
login
.
getWxEnterpriseId
(),
clerkType
);
return
RestResponse
.
successResult
(
serviceResponse
.
getResult
());
}
...
...
@@ -70,8 +61,8 @@ public class HaobanRoleController extends WebBaseController{
* 根据角色查询菜单
* @return
*/
@RequestMapping
(
value
=
"/queryMenuBy
RoleId
"
,
method
=
RequestMethod
.
GET
)
private
RestResponse
<
HaobanRoleDTO
>
queryMenuBy
RoleId
(
Integer
clerkType
)
{
@RequestMapping
(
value
=
"/queryMenuBy
ClerkType
"
,
method
=
RequestMethod
.
GET
)
private
RestResponse
<
HaobanRoleDTO
>
queryMenuBy
ClerkType
(
Integer
clerkType
)
{
WebLoginDTO
login
=
AuthWebRequestUtil
.
getLoginUser
();
ServiceResponse
<
HaobanRoleDTO
>
serviceResponse
=
haobanRoleApiService
.
getMenuByWxEnterpriseIdAndClerkType
(
login
.
getWxEnterpriseId
(),
clerkType
);
return
RestResponse
.
successResult
(
serviceResponse
.
getResult
());
...
...
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