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
e5a48c43
Commit
e5a48c43
authored
Oct 23, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加仅超管可用标志字段
parent
c5673200
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
3 deletions
+48
-3
MenuOperationItemConstants.java
...ava/com/gic/auth/constant/MenuOperationItemConstants.java
+20
-0
MenuDTO.java
...form-auth-api/src/main/java/com/gic/auth/dto/MenuDTO.java
+28
-3
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/constant/MenuOperationItemConstants.java
0 → 100644
View file @
e5a48c43
package
com
.
gic
.
auth
.
constant
;
/**
* 超管可用标志
* @ClassName: MenuOperationItemConstants
* @Description:
* @author guojuxing
* @date 2019/10/23 6:24 PM
*/
public
class
MenuOperationItemConstants
{
/**
* 是超管可用
*/
public
final
static
int
ADMIN_ONLY
=
1
;
/**
* 不是是超管可用
*/
public
final
static
int
ADMIN_ONLY_NO
=
0
;
}
gic-platform-auth-api/src/main/java/com/gic/auth/dto/MenuDTO.java
View file @
e5a48c43
...
...
@@ -6,6 +6,8 @@ import java.io.Serializable;
import
java.util.List
;
public
class
MenuDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
3884129728015209740L
;
/**
* 新增页面参数校验分组
*/
...
...
@@ -76,9 +78,6 @@ public class MenuDTO implements Serializable {
/**
* 菜单路由
*/
@NotBlank
(
message
=
"路径URL不能为空"
,
groups
=
{
SaveGICChildPageValid
.
class
,
SaveAppChildPageValid
.
class
,
EditAppChildPageValid
.
class
,
SaveOperationItemValid
.
class
,
UpdateGICChildPageValid
.
class
,
UpdateOperationItemValid
.
class
})
private
String
menuUrl
;
/**
...
...
@@ -159,6 +158,16 @@ public class MenuDTO implements Serializable {
*/
private
boolean
needCreateAuthItem
;
/**
* 前端使用:二级域名,也就是项目的部署路径,比如门店项目部署在/damo-store下面,那么就是/damo-store
*/
private
String
projectUrlForWeb
;
/**
* 操作项 ,仅超管可用 1:是 0:否
*/
private
Integer
adminOnlySign
;
public
Integer
getMenuId
()
{
return
menuId
;
}
...
...
@@ -302,4 +311,20 @@ public class MenuDTO implements Serializable {
public
void
setNeedCreateAuthItem
(
boolean
needCreateAuthItem
)
{
this
.
needCreateAuthItem
=
needCreateAuthItem
;
}
public
String
getProjectUrlForWeb
()
{
return
projectUrlForWeb
;
}
public
void
setProjectUrlForWeb
(
String
projectUrlForWeb
)
{
this
.
projectUrlForWeb
=
projectUrlForWeb
;
}
public
Integer
getAdminOnlySign
()
{
return
adminOnlySign
;
}
public
void
setAdminOnlySign
(
Integer
adminOnlySign
)
{
this
.
adminOnlySign
=
adminOnlySign
;
}
}
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