Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lei
fzm-joying
Commits
8646021d
Commit
8646021d
authored
Jul 08, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台管理系统新增查询所有主题接口
parent
675d9604
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
LabelController.java
...c/main/java/com/fzm/admin/controller/LabelController.java
+35
-0
No files found.
joying-admin/src/main/java/com/fzm/admin/controller/LabelController.java
0 → 100644
View file @
8646021d
package
com
.
fzm
.
admin
.
controller
;
import
cn.dev33.satoken.annotation.SaCheckLogin
;
import
com.fzm.admin.auth.StpAdminUtil
;
import
com.fzm.common.entity.Label
;
import
com.fzm.common.model.ResponseModel
;
import
com.fzm.common.service.LabelService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
java.util.List
;
/**
* @author tangtuo
* @date 2021/7/1 14:37
*/
@SaCheckLogin
(
type
=
StpAdminUtil
.
TYPE
)
@RestController
@RequestMapping
(
value
=
"/label"
)
@Api
(
tags
=
"标签管理"
)
public
class
LabelController
{
@Resource
private
LabelService
labelService
;
@GetMapping
(
"/list"
)
@ApiOperation
(
value
=
"查询所有标签信息"
)
public
ResponseModel
<
List
<
Label
>>
list
()
{
return
ResponseModel
.
success
(
labelService
.
list
());
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment