Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
on-site-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
external
on-site-service
Commits
3022e5a5
Commit
3022e5a5
authored
Aug 03, 2022
by
lining
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: category/find接口
parent
2a545c98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
ServiceCategoryController.java
...iniapp/controller/category/ServiceCategoryController.java
+8
-2
No files found.
mini-app/src/main/java/com/onsiteservice/miniapp/controller/category/ServiceCategoryController.java
View file @
3022e5a5
...
@@ -37,9 +37,15 @@ public class ServiceCategoryController {
...
@@ -37,9 +37,15 @@ public class ServiceCategoryController {
private
ServiceCategoryService
serviceCategoryService
;
private
ServiceCategoryService
serviceCategoryService
;
@ApiOperation
(
value
=
"
查询服务子类(大类全部返回)
"
)
@ApiOperation
(
value
=
"
服务列表
"
)
@GetMapping
(
"list"
)
@GetMapping
(
"list"
)
public
Result
<
List
<
ServiceSubclassVO
>>
list
(
@RequestParam
(
required
=
false
)
String
keyWord
)
{
public
Result
<
List
<
ServiceCategoryVO
>>
list
()
{
return
serviceCategoryService
.
list
(
null
);
}
@ApiOperation
(
value
=
"根据key查询子类"
)
@GetMapping
(
"find"
)
public
Result
<
List
<
ServiceSubclassVO
>>
find
(
@RequestParam
(
required
=
false
)
String
keyWord
)
{
return
serviceCategoryService
.
selectByKeyWord
(
keyWord
);
return
serviceCategoryService
.
selectByKeyWord
(
keyWord
);
}
}
...
...
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