Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 23ad1fb2
authored
Jan 17, 2023
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023年前备份
1 parent
e8f2f4cb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
10 deletions
pom.xml
src/main/java/com/subsidy/controller/MemberTokensController.java
src/main/java/com/subsidy/controller/RenSheJuController.java
pom.xml
View file @
23ad1fb
...
...
@@ -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>
...
...
src/main/java/com/subsidy/controller/MemberTokensController.java
View file @
23ad1fb
...
...
@@ -16,7 +16,7 @@ import io.swagger.annotations.Api;
*/
@RestController
@Api
(
tags
=
"用户登录token"
)
@RequestMapping
(
"/member
-tokens-do
"
)
@RequestMapping
(
"/member
Tokens
"
)
public
class
MemberTokensController
{
}
src/main/java/com/subsidy/controller/RenSheJuController.java
0 → 100644
View file @
23ad1fb
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
;
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment