Commit 76ab3098 authored by 谢希宇's avatar 谢希宇

Aidea product update by Strive Date 2020-10-14

parent 8b9690c8
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);
}
}
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 "";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment