| | |
| | | package com.doumee.api.web; |
| | | |
| | | import com.doumee.config.Jwt.JwtTokenUtil; |
| | | import com.doumee.config.annotation.EncryptionReq; |
| | | import com.doumee.config.annotation.EncryptionResp; |
| | | import com.doumee.config.annotation.LoginRequired; |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | |
| | | @LoginRequired |
| | | @GetMapping("/categoryTree") |
| | | @ApiOperation("获取分类类别获取分类树") |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | public ApiResponse<List<CategoryVO>> categoryVOTree(@RequestParam String categoryType,Integer categoryId, @RequestHeader(JwtTokenUtil.HEADER_KEY) String token){ |
| | | try { |
| | | |
| | |
| | | @LoginRequired |
| | | @GetMapping("/getCategoryVOForGCXTree") |
| | | @ApiOperation("获取分类类别获取分类树 - 观察项") |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | public ApiResponse<List<CategoryVO>> getCategoryVOForGCXTree(@RequestParam Integer categoryId, @RequestHeader(JwtTokenUtil.HEADER_KEY) String token){ |
| | | try { |
| | | |
| | |
| | | @LoginRequired |
| | | @GetMapping("/categoryList") |
| | | @ApiOperation("获取分类类别获取分类列表") |
| | | @EncryptionReq |
| | | @EncryptionResp |
| | | public ApiResponse<List<CategoryVO>> categoryList(Integer categoryType,Integer isRoot ,@RequestHeader(JwtTokenUtil.HEADER_KEY) String token){ |
| | | try { |
| | | jwtTokenUtil.getUserInfoByToken(token); |
| | |
| | | return ApiResponse.failed(ResponseStatus.SERVER_ERROR); |
| | | } |
| | | } |
| | | |
| | | |
| | | // @GetMapping("/dealjson") |
| | | // @ApiOperation("dealjson") |
| | | // public ApiResponse dealjson(){ |
| | | // categoryService.dealjson(); |
| | | // return ApiResponse.success(null); |
| | | // } |
| | | } |