From adf7566f482080d9fff9dd4429f308433a0e2c2f Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期五, 07 一月 2022 16:20:22 +0800 Subject: [PATCH] 商业街代码提交 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java index b12213a..90b2cc1 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/MicroCommercialStreetApi.java @@ -4,6 +4,7 @@ import javax.annotation.Resource; +import com.panzhihua.common.model.dtos.community.microCommercialStreet.LoginWithPhoneDTO; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; @@ -397,4 +398,38 @@ public R getMcsLabelList(@RequestParam("userId") Long userId) { return mcsLabelService.getMcsLabelList(userId); } + + /** + * 根据account查询微商业街商家信息 + * @param account + * @return + */ + @GetMapping("/getMcsMerchantByAccount") + public R getMcsMerchantByAccount(@RequestParam("account") String account) { + return mcsMerchantService.getMcsMerchantByAccount(account); + } + + /** + * 完成订单更新/新增商家信息 + * @param merchantName + * @param configId + * @param userId + * @return + */ + @GetMapping("/updateAfterOrder") + public R updateMcsMerchantAfterOrder(@RequestParam(value = "merchantName", required = false) String merchantName, + @RequestParam("configId") Long configId, + @RequestParam("userId") Long userId) { + return mcsMerchantService.updateOrAddMcsMerchantAfterOrder(merchantName, configId, userId); + } + + /** + * 验证码登录 + * @param loginDTO + * @return + */ + @PostMapping("/loginWithPhone") + public R loginWithPhone(@RequestBody LoginWithPhoneDTO loginDTO) { + return mcsMerchantService.loginWithPhone(loginDTO); + } } -- Gitblit v1.7.1