Commit 8bb1309a authored by zhangzhenbang's avatar zhangzhenbang

试探性写了一两个接口

parent 8e33252f
......@@ -35,8 +35,8 @@ public class IdentityInfoController {
* @param json {"code":""}
* @return com.yingxin.covid19prevention.response.Response
*/
@PostMapping("/resident/exist/state")
public Response isResidentExist(@RequestBody String json) {
@PostMapping("/identity/exist/state")
public Response isIdentityInfoExist(@RequestBody String json) {
JSONObject jsonObject = JSONObject.fromObject(json);
JSONObject jsonAfterLogin = identityInformationService.getwechatInfoByTempCode(jsonObject.getString("code"));
......@@ -55,7 +55,7 @@ public class IdentityInfoController {
* @param json code、iv、encryptedData
* @return com.yingxin.covid19prevention.response.Response userId
*/
@PostMapping("/resident/wechat")
@PostMapping("/identity/wechat")
public Response getDecryptData(@RequestBody String json) {
JSONObject jsonObject = JSONObject.fromObject(json);
String tempCode = jsonObject.getString("code");
......
server:
port: 8888
port: 8777
spring:
# datasource:
# driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://121.22.111.253/covidnews?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=UTC
# username: root
# password: 1qaz@WSX
# hikari:
# minimum-idle: 5
# # 连接池最大连接数,默认是10
# maximum-pool-size: 20
# # 空闲连接存活最大时间,默认600000(10分钟)
# idle-timeout: 180000
# # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
# max-lifetime: 1800000
# # 数据库连接超时时间,默认30秒,即30000
# connection-timeout: 30000
datasource:
druid:
url: jdbc:mysql://121.22.111.253/peking?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC&autoReconnect=true&useSSL=false
......
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