|
@@ -48,12 +48,13 @@ public class UserPlanController extends BaseController {
|
|
|
|
|
|
private final IUserPlanService iUserPlanService;
|
|
|
|
|
|
- private final WxTokenService WxTokenService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private WxTokenService wxTokenService;
|
|
|
/**
|
|
|
* 查询学习计划列表
|
|
|
*/
|
|
|
@ApiOperation("查询学习计划列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:plan:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo<UserPlanVo> list(UserPlanQueryBo bo) {
|
|
|
startPage();
|
|
@@ -66,7 +67,6 @@ public class UserPlanController extends BaseController {
|
|
|
* 获取学习计划详细信息
|
|
|
*/
|
|
|
@ApiOperation("获取学习计划详细信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:plan:query')")
|
|
|
@GetMapping("/{planId}")
|
|
|
public AjaxResult<UserPlanVo> getInfo(@PathVariable("planId" ) Long planId) {
|
|
|
return AjaxResult.success(iUserPlanService.queryById(planId));
|
|
@@ -76,7 +76,6 @@ public class UserPlanController extends BaseController {
|
|
|
* 新增学习计划
|
|
|
*/
|
|
|
@ApiOperation("新增学习计划")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:plan:add')")
|
|
|
@Log(title = "学习计划", businessType = BusinessType.INSERT)
|
|
|
@PostMapping()
|
|
|
public AjaxResult<Void> add(@RequestBody UserPlanAddBo bo) {
|
|
@@ -87,7 +86,6 @@ public class UserPlanController extends BaseController {
|
|
|
* 修改学习计划
|
|
|
*/
|
|
|
@ApiOperation("修改学习计划")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:plan:edit')")
|
|
|
@Log(title = "学习计划", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping()
|
|
|
public AjaxResult<Void> edit(@RequestBody UserPlanEditBo bo) {
|
|
@@ -99,7 +97,6 @@ public class UserPlanController extends BaseController {
|
|
|
* 查询学习计划列表
|
|
|
*/
|
|
|
@ApiOperation("获得展示的日历学习计划,不添加到数据库")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:plan:list')")
|
|
|
@GetMapping("/listPlan")
|
|
|
public AjaxResult<UserPlanVo> listPlan(UserPlanEditBo bo) {
|
|
|
UserPlanVo list = iUserPlanService.listPlan(bo);
|
|
@@ -109,13 +106,12 @@ public class UserPlanController extends BaseController {
|
|
|
/**
|
|
|
* 查询学习计划列表
|
|
|
*/
|
|
|
- @ApiOperation("查询学员拥有商品能生成学习计划的商品")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:plan:list')")
|
|
|
+ /* @ApiOperation("查询学员拥有商品能生成学习计划的商品")
|
|
|
@GetMapping("/listGoods")
|
|
|
public TableDataInfo<GoodsVo> listGoods(UserPlanQueryBo bo) {
|
|
|
ClientLoginUser loginUser = WxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
bo.setUserId(loginUser.getUser().getUserId());
|
|
|
List<GoodsVo> list = iUserPlanService.listGoods(bo);
|
|
|
return getDataTable(list);
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|