Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
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
sa_aidea
Aidea
Commits
76ab3098
Commit
76ab3098
authored
Oct 19, 2020
by
谢希宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Aidea product update by Strive Date 2020-10-14
parent
8b9690c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
0 deletions
+77
-0
MobileConsultSheetController.java
...cftech/consultsheet/web/MobileConsultSheetController.java
+30
-0
RedisCacheUtils.java
...e/src/main/java/com/cftech/core/util/RedisCacheUtils.java
+47
-0
No files found.
aidea-modules/consult-module/src/main/java/com/cftech/consultsheet/web/MobileConsultSheetController.java
0 → 100644
View file @
76ab3098
package
com
.
cftech
.
consultsheet
.
web
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cftech.consultsheet.model.ConsultSheet
;
import
com.cftech.consultsheet.service.ConsultSheetService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
/**
* Created by 16444 on 2020/10/15.
*/
@RestController
@RequestMapping
(
"/mobile/auth/consultSheet"
)
public
class
MobileConsultSheetController
{
@Autowired
private
ConsultSheetService
consultSheetService
;
/**
* 提交咨询单接口
* @return
*/
@RequestMapping
(
value
=
"/submitConsultSheet"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
},
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
JSONObject
submitConsultSheet
(
@RequestBody
ConsultSheet
consultSheet
)
{
return
consultSheetService
.
pollingConsultSheet
(
consultSheet
);
}
}
token-module/src/main/java/com/cftech/core/util/RedisCacheUtils.java
0 → 100644
View file @
76ab3098
package
com
.
cftech
.
core
.
util
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.serializer.StringRedisSerializer
;
import
org.springframework.stereotype.Component
;
/**
* redis 缓存类
* Created by 16444 on 2020/10/19.
*/
@Slf4j
@Component
public
class
RedisCacheUtils
{
@Autowired
private
RedisTemplate
<
String
,
String
>
redisTemplates
;
private
RedisTemplate
<
String
,
String
>
getConfig
()
{
StringRedisSerializer
strSerializer
=
new
StringRedisSerializer
();
redisTemplates
.
setKeySerializer
(
strSerializer
);
redisTemplates
.
setHashKeySerializer
(
strSerializer
);
redisTemplates
.
setHashValueSerializer
(
strSerializer
);
//redisTemplate.setValueSerializer(stringSerializer);
return
redisTemplates
;
}
/**
* 获取轮询的药师,医生
* @return
*/
public
String
findPollingUsers
()
{
//获取药师队列
//获取医生队列
return
""
;
}
public
String
findPollingDoctor
()
{
return
""
;
}
public
String
findPollingCusService
()
{
return
""
;
}
}
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