去除 user 服务,对 product 服务的依赖。

目前 product 服务会报错,稍后修复
pull/2/MERGE
YunaiV 2020-04-13 23:01:47 +08:00
parent 0761607bef
commit 4dc0e6aead
11 changed files with 13 additions and 17 deletions

View File

@ -1,7 +1,7 @@
package cn.iocoder.mall.user.application.controller.users;
package cn.iocoder.mall.product.application.controller.users;
import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.api.UserProductSpuCollectionsService;
import cn.iocoder.mall.product.api.UserProductSpuCollectionsService;
import cn.iocoder.mall.user.api.bo.UserProductSpuCollectionsPageBO;
import cn.iocoder.mall.user.api.dto.UserProductSpuCollectionsPageDTO;
import cn.iocoder.mall.user.sdk.annotation.RequiresLogin;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.api;
package cn.iocoder.mall.product.api;
import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.api.bo.UserProductSpuCollectionsBO;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.biz.convert;
package cn.iocoder.mall.product.convert;
import cn.iocoder.mall.product.api.message.ProductSpuCollectionMessage;
import cn.iocoder.mall.user.api.bo.UserProductSpuCollectionsBO;

View File

@ -1,9 +1,10 @@
package cn.iocoder.mall.user.biz.dao;
package cn.iocoder.mall.product.dao;
import cn.iocoder.mall.user.biz.dataobject.UserProductSpuCollectionsDO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@ -13,6 +14,7 @@ import java.util.List;
* @author xiaofeng
* @date 2019-07-01 20:23:30
*/
@Repository
public interface UserProductSpuCollectionsMapper extends BaseMapper<UserProductSpuCollectionsDO> {
/**

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.biz.dataobject;
package cn.iocoder.mall.product.dataobject;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.biz.mq;
package cn.iocoder.mall.product.message;
import cn.iocoder.common.framework.constant.DeletedStatusEnum;
import cn.iocoder.common.framework.util.ServiceExceptionUtil;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.biz.service;
package cn.iocoder.mall.product.service;
import cn.iocoder.common.framework.constant.DeletedStatusEnum;
import cn.iocoder.common.framework.vo.CommonResult;

View File

@ -67,6 +67,8 @@ dubbo:
version: 1.0.0
ProductSpuCollectionService:
version: 1.0.0
UserProductSpuCollectionsService:
version: 1.0.0
# Seata 配置项
seata:

View File

@ -17,12 +17,6 @@
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.iocoder.mall</groupId>
<artifactId>product-service-api</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<!-- DB 相关 -->
<dependency>
<groupId>mysql</groupId>

View File

@ -32,7 +32,7 @@ dubbo:
address: spring-cloud://s1.iocoder.cn:8848 # 指定 Dubbo 服务注册中心的地址
# Spring Cloud Alibaba Dubbo 专属配置
cloud:
subscribed-services: admin-application, product-application # 设置订阅的应用列表,默认为 * 订阅所有应用
subscribed-services: admin-application # 设置订阅的应用列表,默认为 * 订阅所有应用
# Dubbo 提供者的协议
protocol:
name: dubbo
@ -51,8 +51,6 @@ dubbo:
version: 1.0.0
UserService:
version: 1.0.0
UserProductSpuCollectionsService:
version: 1.0.0
consumer:
OAuth2Service:
version: 1.0.0