| | |
| | | import com.doumee.core.constants.ResponseStatus; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.dao.business.model.Managers; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.dao.business.model.Workorder; |
| | | import com.doumee.dao.web.dto.UpdEmailDTO; |
| | |
| | | import org.springframework.web.server.ServerWebExchange; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation("通知人查询") |
| | | @PostMapping("/managersList") |
| | | public ApiResponse<List<Managers>> managersList (@RequestBody Managers model, @RequestHeader(JwtTokenUtil.HEADER_KEY) String token, ServerWebExchange serverWebExchange) { |
| | | try { |
| | | ServerHttpRequest request = serverWebExchange.getRequest(); |
| | | Member user = jwtTokenUtil.getUserInfoByToken(token); |
| | | return ApiResponse.success(managersService.findList(model)); |
| | | }catch (BusinessException e){ |
| | | return ApiResponse.failed(e.getCode(),e.getMessage()); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ApiResponse.failed(ResponseStatus.SERVER_ERROR); |
| | | } |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation("风险上报详情") |