Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
dqms
Project
Project
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
xuhuanchao
dqms
Commits
2b8bd096
Commit
2b8bd096
authored
Jan 11, 2023
by
xuhuanchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改权限
parent
3de96700
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
DqPersonelController.java
...a/io/hmit/modules/dq/controller/DqPersonelController.java
+1
-3
DqRegionController.java
...ava/io/hmit/modules/dq/controller/DqRegionController.java
+0
-7
ShiroConfig.java
...ain/java/io/hmit/modules/security/config/ShiroConfig.java
+1
-0
No files found.
hmit-admin/src/main/java/io/hmit/modules/dq/controller/DqPersonelController.java
View file @
2b8bd096
...
...
@@ -151,9 +151,7 @@ public class DqPersonelController {
return
new
Result
<
Map
<
String
,
Object
>>().
error
(
ErrorCode
.
UPLOAD_FILE_EMPTY
);
}
dqPersonelService
.
uploadSave
(
file
);
Map
<
String
,
Object
>
data
=
new
HashMap
<>(
1
);
data
.
put
(
"src"
,
"url"
);
return
new
Result
<
Map
<
String
,
Object
>>().
ok
(
data
);
return
new
Result
<>();
}
}
\ No newline at end of file
hmit-admin/src/main/java/io/hmit/modules/dq/controller/DqRegionController.java
View file @
2b8bd096
...
...
@@ -54,7 +54,6 @@ public class DqRegionController {
@ApiImplicitParam
(
name
=
"community"
,
value
=
"社区地址"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"address"
,
value
=
"详细地址"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@RequiresPermissions
(
"dq:dqregion:page"
)
public
Result
<
PageData
<
DqRegionDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
DqRegionDTO
>
page
=
dqRegionService
.
page
(
params
);
...
...
@@ -63,7 +62,6 @@ public class DqRegionController {
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
@RequiresPermissions
(
"dq:dqregion:info"
)
public
Result
<
DqRegionDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
DqRegionDTO
data
=
dqRegionService
.
get
(
id
);
...
...
@@ -72,7 +70,6 @@ public class DqRegionController {
@GetMapping
(
"list"
)
@ApiOperation
(
"列表"
)
@RequiresPermissions
(
"dq:dqpersonel:info"
)
public
Result
<
List
<
DqRegionDTO
>>
list
(){
return
new
Result
<
List
<
DqRegionDTO
>>().
ok
(
dqRegionService
.
list
(
new
HashMap
<>()));
...
...
@@ -81,7 +78,6 @@ public class DqRegionController {
@PostMapping
@ApiOperation
(
"保存"
)
@LogOperation
(
"保存"
)
@RequiresPermissions
(
"dq:dqregion:save"
)
public
Result
<
Object
>
save
(
@RequestBody
DqRegionDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
...
...
@@ -94,7 +90,6 @@ public class DqRegionController {
@PutMapping
@ApiOperation
(
"修改"
)
@LogOperation
(
"修改"
)
@RequiresPermissions
(
"dq:dqregion:update"
)
public
Result
<
Object
>
update
(
@RequestBody
DqRegionDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
...
...
@@ -107,7 +102,6 @@ public class DqRegionController {
@DeleteMapping
@ApiOperation
(
"删除"
)
@LogOperation
(
"删除"
)
@RequiresPermissions
(
"dq:dqregion:delete"
)
public
Result
<
Object
>
delete
(
@RequestBody
Long
[]
ids
){
//校验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
...
...
@@ -120,7 +114,6 @@ public class DqRegionController {
@GetMapping
(
"export"
)
@ApiOperation
(
"导出"
)
@LogOperation
(
"导出"
)
@RequiresPermissions
(
"dq:dqregion:export"
)
public
void
export
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
,
HttpServletResponse
response
)
throws
Exception
{
List
<
DqRegionDTO
>
list
=
dqRegionService
.
list
(
params
);
...
...
hmit-admin/src/main/java/io/hmit/modules/security/config/ShiroConfig.java
View file @
2b8bd096
...
...
@@ -70,6 +70,7 @@ public class ShiroConfig {
filterMap
.
put
(
"/diagram-viewer/**"
,
"anon"
);
filterMap
.
put
(
"/modeler.html"
,
"anon"
);
filterMap
.
put
(
"/captcha"
,
"anon"
);
filterMap
.
put
(
"/dq/dqregion/**"
,
"anon"
);
filterMap
.
put
(
"/favicon.ico"
,
"anon"
);
filterMap
.
put
(
"/**"
,
"oauth2"
);
shiroFilter
.
setFilterChainDefinitionMap
(
filterMap
);
...
...
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