| | |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | @Validated |
| | | @RestController |
| | | @RequestMapping("/mgt/company") |
| | | @Tag(name = "管理端企业列表相关接口") |
| | | @RequiredArgsConstructor |
| | | @Tag(name = "管理端-企业列表相关接口") |
| | | @RequiredArgsConstructor(onConstructor_ = {@Lazy}) |
| | | public class MgtCompanyController { |
| | | private final CompanyService companyService; |
| | | |
| | | @Operation(summary = "获取企业列表") |
| | | @PostMapping("/page") |
| | | public R<PageDTO<MgtCompanyVO>> queryPage(MgtCompanyQuery query) { |
| | | public R<PageDTO<MgtCompanyVO>> queryPage(@RequestBody MgtCompanyQuery query) { |
| | | return R.ok(companyService.queryPage(query)); |
| | | } |
| | | @Operation(summary = "获取企业详情") |