feat: 客户支持type字段,按种类过滤
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-29 05:44:36 +00:00
parent 69365e076e
commit 02383f1f3a
4 changed files with 12 additions and 4 deletions

View File

@@ -23,9 +23,10 @@ public class CustomerController {
@GetMapping
public Result<Page<Customer>> getCustomers(
@RequestParam(required = false) String keyword,
@RequestParam(required = false) String type,
@RequestParam(defaultValue = "1") Integer page,
@RequestParam(defaultValue = "20") Integer pageSize) {
return Result.success(customerService.getCustomers(keyword, page, pageSize));
return Result.success(customerService.getCustomers(keyword, type, page, pageSize));
}
/**