feat: 客户支持type字段,按种类过滤
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user