This commit is contained in:
PQZ 2024-09-24 18:18:00 +08:00
parent aeae65bc6d
commit 0a2d105eb1

View File

@ -21,14 +21,12 @@ import javax.annotation.Resource;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
/**
* 用于查看需要查dl_base_type的地方
* 如维修预约需要选服务
*
* @author 小李
* @date 14:21 2024/9/23
* 客户管理API
* @author PQZ
* @date 18:17 2024/9/24
**/
@RestController
@RequestMapping("/api/base/type")
@RequestMapping("/userClient/customer")
public class CustomerMainApi {
@Resource
@ -40,10 +38,9 @@ public class CustomerMainApi {
* @date 17:24 2024/9/24
* @return cn.iocoder.yudao.framework.common.pojo.CommonResult<cn.iocoder.yudao.module.custom.vo.CustomerMainRespVO>
**/
@GetMapping("/get")
@Operation(summary = "获得客户管理")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
public CommonResult<CustomerMainRespVO> getCustomerMain() {
@GetMapping("/getUserCustomer")
@Operation(summary = "获取当前登录用户的客户信息")
public CommonResult<CustomerMainRespVO> getUserCustomer() {
return success(customerMainService.getUserCustomer());
}