| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | |
| | | @Validated |
| | | @RestController |
| | |
| | | return ApiResponse.ok(service.page(page, pageSize, regionCode, clinicName, contactInfo, status)); |
| | | } |
| | | |
| | | @GetMapping("/provincial-agents/export") |
| | | @SaCheckPermission("member:agent:view") |
| | | public void export(@RequestParam(required = false) String regionCode, |
| | | @RequestParam(required = false) String clinicName, |
| | | @RequestParam(required = false) String contactInfo, |
| | | @RequestParam(required = false) Integer status, |
| | | HttpServletResponse response) throws IOException { |
| | | service.export(regionCode, clinicName, contactInfo, status, response); |
| | | } |
| | | |
| | | @GetMapping("/provincial-agents/{id}") |
| | | @SaCheckPermission("member:agent:detail") |
| | | public ApiResponse<ProvincialAgentDetailVO> detail(@PathVariable Long id) { |