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
45b46a49
Commit
45b46a49
authored
Jul 26, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd
parent
4a55ce9b
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
50 additions
and
3 deletions
+50
-3
pom.xml
gic-platform-auth-api/pom.xml
+6
-0
MenuPlatformTypeEnum.java
...main/java/com/gic/auth/constant/MenuPlatformTypeEnum.java
+15
-0
GoodsResourceDTO.java
...-api/src/main/java/com/gic/auth/dto/GoodsResourceDTO.java
+11
-0
ResourceGroupCustomUserDTO.java
...ain/java/com/gic/auth/dto/ResourceGroupCustomUserDTO.java
+10
-0
WechatUserDTO.java
.../src/main/java/com/gic/auth/dto/wechat/WechatUserDTO.java
+3
-0
ResourceGroupApiService.java
...in/java/com/gic/auth/service/ResourceGroupApiService.java
+2
-0
TabSysUserMapper.java
...c/main/java/com/gic/auth/dao/mapper/TabSysUserMapper.java
+1
-0
ResourceGroupApiServiceImpl.java
.../auth/service/outer/impl/ResourceGroupApiServiceImpl.java
+2
-1
MenuOperationUtils.java
...main/java/com/gic/auth/utils/menu/MenuOperationUtils.java
+0
-2
No files found.
gic-platform-auth-api/pom.xml
View file @
45b46a49
...
@@ -42,6 +42,12 @@
...
@@ -42,6 +42,12 @@
<artifactId>
javax.el
</artifactId>
<artifactId>
javax.el
</artifactId>
<version>
3.0.1-b09
</version>
<version>
3.0.1-b09
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-commons
</artifactId>
<version>
${gic-commons}
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
gic-platform-auth-api/src/main/java/com/gic/auth/constant/MenuPlatformTypeEnum.java
View file @
45b46a49
...
@@ -7,10 +7,25 @@ package com.gic.auth.constant;
...
@@ -7,10 +7,25 @@ package com.gic.auth.constant;
* @date 2020/10/23 9:52 AM
* @date 2020/10/23 9:52 AM
*/
*/
public
enum
MenuPlatformTypeEnum
{
public
enum
MenuPlatformTypeEnum
{
/**
* gic"),
*/
GIC
(
0
,
"gic"
),
GIC
(
0
,
"gic"
),
/**
* 好办后台"),
*/
HAOBAN_PC
(
1
,
"好办后台"
),
HAOBAN_PC
(
1
,
"好办后台"
),
/**
* 好办小程序"),
*/
HAOBAN_APPLET
(
3
,
"好办小程序"
),
HAOBAN_APPLET
(
3
,
"好办小程序"
),
/**
* 好办应用"),
*/
HAOBAN_APP
(
2
,
"好办应用"
),
HAOBAN_APP
(
2
,
"好办应用"
),
/**
* 好办小程序应用");
*/
HAOBAN_APPLET_APP
(
4
,
"好办小程序应用"
);
HAOBAN_APPLET_APP
(
4
,
"好办小程序应用"
);
private
Integer
code
;
private
Integer
code
;
...
...
gic-platform-auth-api/src/main/java/com/gic/auth/dto/GoodsResourceDTO.java
View file @
45b46a49
...
@@ -82,4 +82,15 @@ public class GoodsResourceDTO implements Serializable{
...
@@ -82,4 +82,15 @@ public class GoodsResourceDTO implements Serializable{
this
.
goodsResourceEntMapSelectId
=
goodsResourceEntMapSelectId
;
this
.
goodsResourceEntMapSelectId
=
goodsResourceEntMapSelectId
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
"GoodsResourceDTO{"
+
"goodsResourceId="
+
goodsResourceId
+
", type="
+
type
+
", goodsResourceAuth="
+
goodsResourceAuth
+
", goodsResourceConfig='"
+
goodsResourceConfig
+
'\''
+
", goodsResourceEntMapSelectId="
+
goodsResourceEntMapSelectId
+
'}'
;
}
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/dto/ResourceGroupCustomUserDTO.java
View file @
45b46a49
...
@@ -66,4 +66,14 @@ public class ResourceGroupCustomUserDTO implements Serializable{
...
@@ -66,4 +66,14 @@ public class ResourceGroupCustomUserDTO implements Serializable{
this
.
cuSelectId
=
cuSelectId
;
this
.
cuSelectId
=
cuSelectId
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
"ResourceGroupCustomUserDTO{"
+
"type="
+
type
+
", sort="
+
sort
+
", areaValue='"
+
areaValue
+
'\''
+
", cuSelectId="
+
cuSelectId
+
'}'
;
}
}
}
gic-platform-auth-api/src/main/java/com/gic/auth/dto/wechat/WechatUserDTO.java
View file @
45b46a49
package
com
.
gic
.
auth
.
dto
.
wechat
;
package
com
.
gic
.
auth
.
dto
.
wechat
;
import
com.gic.commons.annotation.SkipNamingCheck
;
import
java.io.Serializable
;
import
java.io.Serializable
;
/**
/**
* 服务号关注用户
* 服务号关注用户
...
@@ -8,6 +10,7 @@ import java.io.Serializable;
...
@@ -8,6 +10,7 @@ import java.io.Serializable;
* @author guojuxing
* @author guojuxing
* @date 2021/1/26 10:20 AM
* @date 2021/1/26 10:20 AM
*/
*/
@SkipNamingCheck
public
class
WechatUserDTO
implements
Serializable
{
public
class
WechatUserDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
2148969953172055593L
;
private
static
final
long
serialVersionUID
=
-
2148969953172055593L
;
...
...
gic-platform-auth-api/src/main/java/com/gic/auth/service/ResourceGroupApiService.java
View file @
45b46a49
...
@@ -3,6 +3,7 @@ package com.gic.auth.service;
...
@@ -3,6 +3,7 @@ package com.gic.auth.service;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.auth.dto.*
;
import
com.gic.auth.dto.*
;
import
com.gic.commons.annotation.SkipNamingCheck
;
import
java.util.List
;
import
java.util.List
;
...
@@ -13,6 +14,7 @@ import java.util.List;
...
@@ -13,6 +14,7 @@ import java.util.List;
* @author guojuxing
* @author guojuxing
* @date 2021/1/8 4:36 PM
* @date 2021/1/8 4:36 PM
*/
*/
@SkipNamingCheck
public
interface
ResourceGroupApiService
{
public
interface
ResourceGroupApiService
{
/**
/**
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabSysUserMapper.java
View file @
45b46a49
...
@@ -226,6 +226,7 @@ public interface TabSysUserMapper {
...
@@ -226,6 +226,7 @@ public interface TabSysUserMapper {
/**
/**
* 查询
* 查询
* @param openId
* @param openId
* @param enterpriseId
* @return
* @return
*/
*/
TabSysUser
getUserByOpenId
(
@Param
(
"openId"
)
String
openId
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
TabSysUser
getUserByOpenId
(
@Param
(
"openId"
)
String
openId
,
@Param
(
"enterpriseId"
)
Integer
enterpriseId
);
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/ResourceGroupApiServiceImpl.java
View file @
45b46a49
...
@@ -79,7 +79,8 @@ public class ResourceGroupApiServiceImpl implements ResourceGroupApiService{
...
@@ -79,7 +79,8 @@ public class ResourceGroupApiServiceImpl implements ResourceGroupApiService{
//有效的才会重新授权。如果是已解除、待解除、解除中,不再重新授权
//有效的才会重新授权。如果是已解除、待解除、解除中,不再重新授权
if
(
unionEnterpriseAuthDTO
!=
null
&&
unionEnterpriseAuthDTO
.
getStatusFlag
()
==
1
)
{
if
(
unionEnterpriseAuthDTO
!=
null
&&
unionEnterpriseAuthDTO
.
getStatusFlag
()
==
1
)
{
//验证码验证
//验证码验证
if
(!
"hasValid"
.
equals
(
resourceGroup
.
getAuthCode
()))
{
boolean
isUnionEnterpriseAuthResourceGroup
=
"hasValid"
.
endsWith
(
resourceGroup
.
getAuthCode
());
if
(!
isUnionEnterpriseAuthResourceGroup
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"验证码未通过"
);
return
ServiceResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"验证码未通过"
);
}
}
...
...
gic-platform-auth-service/src/main/java/com/gic/auth/utils/menu/MenuOperationUtils.java
View file @
45b46a49
...
@@ -36,8 +36,6 @@ public class MenuOperationUtils {
...
@@ -36,8 +36,6 @@ public class MenuOperationUtils {
test
.
setTarget
(
1
);
test
.
setTarget
(
1
);
String
result
=
map
.
get
(
SAVE_FIRST_PAGE
).
operate
(
test
);
String
result
=
map
.
get
(
SAVE_FIRST_PAGE
).
operate
(
test
);
System
.
out
.
println
(
result
);
System
.
out
.
println
(
test
.
toString
());
return
result
;
return
result
;
}
}
...
...
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