记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
8d2f5b62
Commit
8d2f5b62
authored
Mar 15, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置文件、
parent
d8d216d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
SmileWebMvcConfig.java
.../java/com/liquidnet/service/config/SmileWebMvcConfig.java
+19
-0
SmileUserController.java
...com/liquidnet/service/controller/SmileUserController.java
+4
-1
No files found.
liquidnet-bus-service/liquidnet-service-smile/liquidnet-service-smile-impl/src/main/java/com/liquidnet/service/config/SmileWebMvcConfig.java
0 → 100644
View file @
8d2f5b62
package
com
.
liquidnet
.
service
.
config
;
import
com.liquidnet.common.web.config.WebMvcConfig
;
import
com.liquidnet.common.web.filter.GlobalAuthorityInterceptor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.servlet.config.annotation.InterceptorRegistry
;
@Configuration
public
class
SmileWebMvcConfig
extends
WebMvcConfig
{
@Autowired
public
GlobalAuthorityInterceptor
globalAuthorityInterceptor
;
@Override
protected
void
addInterceptors
(
InterceptorRegistry
registry
)
{
registry
.
addInterceptor
(
this
.
globalAuthorityInterceptor
).
addPathPatterns
(
"/**"
);
super
.
addInterceptors
(
registry
);
}
}
liquidnet-bus-service/liquidnet-service-smile/liquidnet-service-smile-impl/src/main/java/com/liquidnet/service/controller/SmileUserController.java
View file @
8d2f5b62
...
@@ -50,7 +50,10 @@ public class SmileUserController {
...
@@ -50,7 +50,10 @@ public class SmileUserController {
@ApiOperation
(
"获得学校"
)
@ApiOperation
(
"获得学校"
)
public
ResponseDto
<
List
<
SmileSchoolVo
>>
getSchool
()
{
public
ResponseDto
<
List
<
SmileSchoolVo
>>
getSchool
()
{
String
userId
=
CurrentUtil
.
getCurrentUid
();
String
userId
=
CurrentUtil
.
getCurrentUid
();
List
<
SmileSchoolVo
>
list
=
(
List
<
SmileSchoolVo
>)
redisUtil
.
get
(
SmileRedisConst
.
SMILE_SCHOOL
.
concat
(
userId
));
List
<
SmileSchoolVo
>
list
=
null
;
if
(
redisUtil
.
hasKey
(
SmileRedisConst
.
SMILE_SCHOOL
.
concat
(
userId
))){
list
=
(
List
<
SmileSchoolVo
>)
redisUtil
.
get
(
SmileRedisConst
.
SMILE_SCHOOL
.
concat
(
userId
));
}
return
ResponseDto
.
success
(
list
);
return
ResponseDto
.
success
(
list
);
}
}
@GetMapping
(
"getPerformance"
)
@GetMapping
(
"getPerformance"
)
...
...
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