|
|
@@ -1,12 +1,15 @@
|
|
|
package com.cyksj.web.controller.mirrorshop;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.config.zfb.BaseZfbConfig;
|
|
|
import com.cyksj.config.zfb.ZfbProductCode;
|
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
import com.cyksj.mapper.mirrorshop.UserMirrorShopManageAdvertiseMapper;
|
|
|
+import com.cyksj.mapper.mirrorshop.UserMirrorShopMapper;
|
|
|
import com.cyksj.model.dto.AliPayParams;
|
|
|
+import com.cyksj.model.entity.UserMirrorShop;
|
|
|
import com.cyksj.model.entity.UserMirrorShopFeeOrderDon;
|
|
|
import com.cyksj.model.request.AlipayOrderDonReq;
|
|
|
import com.cyksj.model.request.UserMirrorShopSubmitReq;
|
|
|
@@ -50,6 +53,8 @@ public class UserMirrorShopFrontController {
|
|
|
|
|
|
private final UserMirrorShopManageAdvertiseMapper userMirrorShopManageAdvertiseMapper;
|
|
|
|
|
|
+ private final UserMirrorShopMapper userMirrorShopMapper;
|
|
|
+
|
|
|
/**
|
|
|
* 镜像店铺主 个人信息
|
|
|
*/
|
|
|
@@ -76,6 +81,20 @@ public class UserMirrorShopFrontController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(userMirrorShopAdvertiseFrontViews);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户开店信息
|
|
|
+ */
|
|
|
+ @GetMapping("/get/user/shop")
|
|
|
+ public Result<UserMirrorShop> getUserShop() {
|
|
|
+ long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
+ UserMirrorShop userMirrorShop = userMirrorShopMapper.selectOne(Wrappers.lambdaQuery(UserMirrorShop.class)
|
|
|
+ .eq(UserMirrorShop::getUserId, userId)
|
|
|
+ .last("limit 1")
|
|
|
+ .select(UserMirrorShop::getCustomId, UserMirrorShop::getName, UserMirrorShop::getContact, UserMirrorShop::getLogo, UserMirrorShop::getStatus));
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(userMirrorShop);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 立即开店
|
|
|
*/
|