优化api

This commit is contained in:
none
2023-03-20 10:33:24 +08:00
parent 77a73be615
commit 00e4e66271
4 changed files with 21 additions and 4 deletions

View File

@@ -27,9 +27,11 @@ public class CourseController {
public JsonResponse index(@RequestParam HashMap<String, Object> params) {
Integer page = MapUtils.getInteger(params, "page", 1);
Integer size = MapUtils.getInteger(params, "size", 10);
String categoryIds = MapUtils.getString(params, "category_ids");
CoursePaginateFiler filer = new CoursePaginateFiler();
filer.setIsShow(1);
filer.setCategoryIds(categoryIds);
PaginationResult<Course> result = courseService.paginate(page, size, filer);