From ac068a7472789c6e473b3be28180beed021ae293 Mon Sep 17 00:00:00 2001 From: PQZ Date: Sat, 12 Oct 2024 12:42:57 +0800 Subject: [PATCH] 1 --- .../custom/controller/app/UserCarController.java | 15 +++++++++++++++ .../module/custom/service/UserCarService.java | 8 ++++++++ .../custom/service/impl/UserCarServiceImpl.java | 12 ++++++++++++ 3 files changed, 35 insertions(+) diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/app/UserCarController.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/app/UserCarController.java index 466ae2da..2e14b826 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/app/UserCarController.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/app/UserCarController.java @@ -30,6 +30,21 @@ public class UserCarController { return CommonResult.success(userCarService.getMyCar()); } + + /** + * 授权个人信息到某企业 + * @author PQZ + * @date 11:49 2024/10/12 + **/ + @GetMapping("/empowerUserInfo") + @Operation(summary = "授权个人信息到某企业") + public CommonResult empowerUserInfo(@RequestParam("tenantId") String tenantId) { + userCarService.empowerUserInfo(tenantId); + return CommonResult.success(true); + } + + + /** * 创建或更新车辆信息 * diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/UserCarService.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/UserCarService.java index 9be61022..647877cd 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/UserCarService.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/UserCarService.java @@ -40,4 +40,12 @@ public interface UserCarService extends IService { * @return java.lang.Object **/ Object vehicleLicenseOCR(String imagePath) throws TencentCloudSDKException; + + /** + * 将客户信息授权给某个修理厂 + * @author PQZ + * @date 12:40 2024/10/12 + * @param tenantId 租户id + **/ + void empowerUserInfo(String tenantId); } \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/UserCarServiceImpl.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/UserCarServiceImpl.java index 9d49512b..b2c9ea16 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/UserCarServiceImpl.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/UserCarServiceImpl.java @@ -80,4 +80,16 @@ public class UserCarServiceImpl extends ServiceImpl impl } return licenseVO; } + + /** + * 将客户信息授权给某个修理厂 + * + * @param tenantId 租户id + * @author PQZ + * @date 12:40 2024/10/12 + **/ + @Override + public void empowerUserInfo(String tenantId) { + + } } \ No newline at end of file