| | |
| | | import cn.stylefeng.guns.modular.business.entity.*; |
| | | import cn.stylefeng.guns.modular.business.service.*; |
| | | import cn.stylefeng.roses.kernel.auth.api.context.LoginContext; |
| | | import cn.stylefeng.roses.kernel.cache.api.CacheOperatorApi; |
| | | import cn.stylefeng.roses.kernel.customer.modular.entity.Customer; |
| | | import cn.stylefeng.roses.kernel.customer.modular.service.CustomerService; |
| | | import cn.stylefeng.roses.kernel.db.api.factory.PageFactory; |
| | |
| | | } |
| | | return new SuccessResponseData<>(course); |
| | | } |
| | | |
| | | @Resource |
| | | private CacheOperatorApi<List<Object>> roleInfoCacheApi; |
| | | /** |
| | | * 获取课程管理列表(分页) |
| | | */ |
| | | @ApiOperation("获取课程管理列表(分页)") |
| | | @GetResource(name = "获取课程管理列表(分页)", path = "/page", requiredPermission = false) |
| | | public ResponseData<PageResult<CourseResponseDTO>> page(CourseRequest courseRequest) { |
| | | // List<Object> course = roleInfoCacheApi.get("course"); |
| | | // return new SuccessResponseData<>(course); |
| | | |
| | | LambdaQueryWrapper<Course> lambdaQueryWrapper = new LambdaQueryWrapper<Course>().eq(Course::getIsDelete,false) |
| | | .orderByDesc(Course::getSort,Course::getCreateTime); |
| | | if (courseRequest.getListingStatus() != null){ |