Commit 23ad1fb2 by 涂亚平

2023年前备份

1 parent e8f2f4cb
......@@ -249,11 +249,6 @@
<version>2.0.4</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-data-mongodb</artifactId>-->
<!-- </dependency>-->
<!-- 阿里云 对象存储oss -->
<dependency>
<groupId>com.aliyun.oss</groupId>
......@@ -261,11 +256,10 @@
<version>3.15.0</version>
</dependency>
<!-- 图片压缩 -->
<dependency>
<groupId>net.coobird</groupId>
<artifactId>thumbnailator</artifactId>
<version>0.4.8</version>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.10.0</version>
</dependency>
</dependencies>
......
......@@ -16,7 +16,7 @@ import io.swagger.annotations.Api;
*/
@RestController
@Api(tags = "用户登录token")
@RequestMapping("/member-tokens-do")
@RequestMapping("/memberTokens")
public class MemberTokensController {
}
package com.subsidy.controller;
import com.squareup.okhttp.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "人社局数据对接")
@RequestMapping("/rensheju")
public class RenSheJuController {
@PostMapping("getSecret")
@ApiOperation("获取秘钥")
public String getSecret(){
MediaType mediaType = MediaType.parse("text/plain");
OkHttpClient client = new OkHttpClient();
RequestBody body = RequestBody.create(mediaType, "json");
Request request = new Request.Builder()
.url("https://api.shzypxy.com/token/accessPrivateKey")
.post(body)
.build();
try {
Response response = client.newCall(request).execute();
return response.body().string();
}catch (Exception e){
e.printStackTrace();
}
return null;
}
@PostMapping("classBaseInfo")
@ApiOperation("班级基本信息信息采集接口")
public String classBaseInfo(){
return null;
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!