Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
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
base_platform_enterprise
gic-platform-auth
Commits
782dc5ae
Commit
782dc5ae
authored
Sep 19, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限管理接口:应用列表权限
parent
7522f146
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
4 deletions
+33
-4
AuthItemSaveQO.java
...uth-api/src/main/java/com/gic/auth/qo/AuthItemSaveQO.java
+23
-4
MenuApiService.java
...pi/src/main/java/com/gic/auth/service/MenuApiService.java
+10
-0
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/qo/AuthItemSaveQO.java
View file @
782dc5ae
...
...
@@ -12,7 +12,7 @@ import javax.validation.constraints.NotNull;
* @author guojuxing
* @date 2019/9/18 5:58 PM
*/
public
class
AuthItemSaveQO
extends
PageQO
{
public
class
AuthItemSaveQO
extends
PageQO
{
private
static
final
long
serialVersionUID
=
3155478932998607869L
;
/**
...
...
@@ -21,22 +21,33 @@ public class AuthItemSaveQO extends PageQO{
public
interface
SaveAuthItemValid
{
}
/**
* 编辑权限项参数校验分组
*/
public
interface
EditAuthItemValid
{
}
/**
* 权限项名称
*/
@NotBlank
(
message
=
"权限项名称不能为空"
,
groups
=
{
SaveAuthItemValid
.
class
})
@NotBlank
(
message
=
"权限项名称不能为空"
,
groups
=
{
SaveAuthItemValid
.
class
,
EditAuthItemValid
.
class
})
private
String
menuName
;
/**
* 操作项多选,英文逗号隔开
*/
@NotBlank
(
message
=
"操作项不能为空"
,
groups
=
{
SaveAuthItemValid
.
class
})
@NotBlank
(
message
=
"操作项不能为空"
,
groups
=
{
SaveAuthItemValid
.
class
,
EditAuthItemValid
.
class
})
private
String
operationItemIds
;
/**
* 父级ID
*/
@NotNull
(
message
=
"上级页面不能为空"
,
groups
=
{
SaveAuthItemValid
.
class
})
@NotNull
(
message
=
"上级页面不能为空"
,
groups
=
{
SaveAuthItemValid
.
class
})
private
Integer
parentId
;
@NotNull
(
message
=
"主键ID不能为空"
,
groups
=
{
EditAuthItemValid
.
class
})
private
Integer
menuId
;
public
String
getMenuName
()
{
return
menuName
;
}
...
...
@@ -60,4 +71,12 @@ public class AuthItemSaveQO extends PageQO{
public
void
setParentId
(
Integer
parentId
)
{
this
.
parentId
=
parentId
;
}
public
Integer
getMenuId
()
{
return
menuId
;
}
public
void
setMenuId
(
Integer
menuId
)
{
this
.
menuId
=
menuId
;
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/service/MenuApiService.java
View file @
782dc5ae
...
...
@@ -187,4 +187,14 @@ public interface MenuApiService {
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
*/
ServiceResponse
<
Void
>
saveAuthItem
(
AuthItemSaveQO
params
);
/**
* 编辑权限项
* @Title: updateAuthItem
* @Description:
* @author guojuxing
* @param params
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
*/
ServiceResponse
<
Void
>
updateAuthItem
(
AuthItemSaveQO
params
);
}
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