guoyujie
2025-10-13 a3ef00def72882e9f28f2813a861c477220dab2d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.example.northglasserpclient.controller.sd;
 
 
import com.example.northglasserpclient.common.Result;
import com.example.northglasserpclient.service.sd.ICustomerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
 
import org.springframework.web.bind.annotation.RestController;
 
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author guo
 * @since 2025-09-18
 */
@RestController
@RequestMapping("/customer")
@Api(tags = "客户管理")
@RequiredArgsConstructor
public class CustomerController {
    private final ICustomerService customerService;
 
    @ApiOperation(value = "客户列表")
    @PostMapping("/getCustomerList")
    public Result getCustomerList(){
        return Result.success(customerService.list());
    }
}