mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-19 18:15:38 +08:00
优化api
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user