|
|
@@ -112,11 +112,25 @@ public class UserMockSubscribeController extends BaseController {
|
|
|
/**
|
|
|
* 删除用户预约模考
|
|
|
*/
|
|
|
- @ApiOperation("删除用户预约模考")
|
|
|
+ /*@ApiOperation("删除用户预约模考")
|
|
|
@PreAuthorize("@ss.hasPermi('system:subscribe:remove')")
|
|
|
@Log(title = "用户预约模考" , businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{subscribeIds}")
|
|
|
public AjaxResult<Void> remove(@PathVariable Long[] subscribeIds) {
|
|
|
return toAjax(iUserMockSubscribeService.deleteWithValidByIds(Arrays.asList(subscribeIds), true) ? 1 : 0);
|
|
|
+ }*/
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询用户个人预约模考列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询用户个人预约模考列表")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:subscribe:list')")
|
|
|
+ @GetMapping("/listSubscribe")
|
|
|
+ public TableDataInfo<UserMockSubscribeVo> listSubscribe(@RequestBody UserMockSubscribeQueryBo bo) {
|
|
|
+ startPage();
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
|
+ List<UserMockSubscribeVo> list = iUserMockSubscribeService.listSubscribe(bo);
|
|
|
+ return getDataTable(list);
|
|
|
}
|
|
|
}
|