| | |
| | | import com.doumee.dao.business.model.YwQuickModel; |
| | | import com.doumee.dao.business.vo.MonthDataResponse; |
| | | import com.doumee.dao.business.vo.WorkDeskDataResponse; |
| | | import com.doumee.dao.system.model.Notices; |
| | | import com.doumee.service.business.WorkbenchesService; |
| | | import com.doumee.service.business.YwPatrolTaskRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | return ApiResponse.success(workbenchesService.getYwQuickList(getLoginUser(token))); |
| | | } |
| | | |
| | | @ApiOperation("获取默认快捷菜单模块信息") |
| | | @GetMapping("/getDefaultYwQuickList") |
| | | public ApiResponse<List<YwQuickModel>> getDefaultYwQuickList() { |
| | | return ApiResponse.success(workbenchesService.getYwQuickList(null)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("更新快捷模块数据") |
| | | @GetMapping("/updMyYwQuickModel") |
| | | @PostMapping("/updMyYwQuickModel") |
| | | public ApiResponse updMyYwQuickModel(@RequestBody List<Integer> idList,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | workbenchesService.updMyYwQuickModel(idList,getLoginUser(token)); |
| | | return ApiResponse.success("操作成功"); |
| | |
| | | return ApiResponse.success(workbenchesService.workDeskData(getLoginUser(token))); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("H5-我的待办") |
| | | @PostMapping("/myNoticesH5") |
| | | public ApiResponse<PageData<Notices>> myNoticesH5 (@RequestBody PageWrap<Notices> pageWrap,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | return ApiResponse.success(workbenchesService.getMyNotices(pageWrap,getLoginUser(token))); |
| | | } |
| | | |
| | | } |