Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c37253f9
authored
Apr 24, 2026
by
杨卫
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
doc:添加swagger文件配置信息
1 parent
5606e427
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
aus-vr-api/src/main/java/com/glsx/usedcar/controller/OssController.java
aus-vr-api/src/main/java/com/glsx/usedcar/controller/OssController.java
View file @
c37253f
...
@@ -4,7 +4,9 @@ import com.glsx.usedcar.handler.AliyunOssHandler;
...
@@ -4,7 +4,9 @@ import com.glsx.usedcar.handler.AliyunOssHandler;
import
com.glsx.usedcar.handler.AliyunToken
;
import
com.glsx.usedcar.handler.AliyunToken
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.responses.ApiResponse
;
import
io.swagger.v3.oas.annotations.responses.ApiResponse
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -16,11 +18,12 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -16,11 +18,12 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RestController
@RequiredArgsConstructor
@RequiredArgsConstructor
@RequestMapping
(
"/rest/oss"
)
@RequestMapping
(
"/rest/oss"
)
@Tag
(
name
=
"aliyun-oss前端控制器"
,
description
=
"阿里云OSS相关操作"
)
public
class
OssController
{
public
class
OssController
{
private
final
AliyunOssHandler
aliyunOssHandler
;
private
final
AliyunOssHandler
aliyunOssHandler
;
@
Reques
tMapping
(
"/getToken"
)
@
Ge
tMapping
(
"/getToken"
)
@Operation
(
summary
=
"获取token信息"
,
description
=
"获取oss临时凭证"
)
@Operation
(
summary
=
"获取token信息"
,
description
=
"获取oss临时凭证"
)
@ApiResponse
(
responseCode
=
"200"
,
description
=
"获取OSS临时凭证"
)
@ApiResponse
(
responseCode
=
"200"
,
description
=
"获取OSS临时凭证"
)
public
AliyunToken
getToken
()
{
public
AliyunToken
getToken
()
{
...
...
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