Commit e2b6c603c57eaf0f35bb47a829b74a6703ac748a
1 parent
278c7082
初始化工程-接口定义
Showing
40 changed files
with
63 additions
and
177 deletions
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/CmsRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/CmsRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/ConfigRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/ConfigRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/GoodsRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/GoodsRPC.java
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | * @date: 2014年8月14日 上午11:20:17 |
8 | 8 | * @version: V1.0 |
9 | 9 | */ |
10 | -package com.diligrp.mobsite.getway.rpc.buyer; | |
10 | +package com.diligrp.mobsite.getway.rpc; | |
11 | 11 | |
12 | 12 | import com.diligrp.mobsite.getway.domain.protocol.GoodsSuper; |
13 | 13 | import com.diligrp.titan.sdk.domain.Attribute; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/MarketRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/MarketRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/MessageRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/MessageRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/OrderRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/OrderRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/PassportRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/PassportRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/seller/SellerRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/SellerRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/ShopRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/ShopRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/StationMsgRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/StationMsgRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/StoreRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/StoreRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/UserRPC.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/UserRPC.java
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/CmsRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/CmsRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.alibaba.fastjson.JSON; |
4 | 4 | import com.diligrp.cms.domain.*; |
5 | 5 | import com.diligrp.cms.sdk.CmsClient; |
6 | 6 | import com.diligrp.mobsite.getway.domain.except.ServiceException; |
7 | -import com.diligrp.mobsite.getway.rpc.buyer.CmsRPC; | |
7 | +import com.diligrp.mobsite.getway.rpc.CmsRPC; | |
8 | 8 | import org.slf4j.Logger; |
9 | 9 | import org.slf4j.LoggerFactory; |
10 | 10 | import org.springframework.stereotype.Service; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/ConfigRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/ConfigRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.diligrp.mobsite.getway.domain.common.Constant; |
4 | 4 | import com.diligrp.mobsite.getway.domain.common.RedisKey; |
5 | 5 | import com.diligrp.mobsite.getway.domain.except.ServiceException; |
6 | -import com.diligrp.mobsite.getway.rpc.buyer.ConfigRPC; | |
6 | +import com.diligrp.mobsite.getway.rpc.ConfigRPC; | |
7 | 7 | import com.diligrp.website.util.redis.RedisUtil; |
8 | 8 | import com.diligrp.website.util.security.Validator; |
9 | 9 | import com.diligrp.website.web.interfaces.WebsiteClient; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/GoodsRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/GoodsRPCImpl.java
... | ... | @@ -7,14 +7,14 @@ |
7 | 7 | * @date: 2014年8月14日 上午11:21:21 |
8 | 8 | * @version: V1.0 |
9 | 9 | */ |
10 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
10 | +package com.diligrp.mobsite.getway.rpc.impl; | |
11 | 11 | |
12 | 12 | import com.diligrp.mobsite.getway.domain.common.ErrorMessage; |
13 | 13 | import com.diligrp.mobsite.getway.domain.common.RedisKey; |
14 | 14 | import com.diligrp.mobsite.getway.domain.common.ResultCode; |
15 | 15 | import com.diligrp.mobsite.getway.domain.except.ServiceException; |
16 | 16 | import com.diligrp.mobsite.getway.domain.protocol.GoodsSuper; |
17 | -import com.diligrp.mobsite.getway.rpc.buyer.GoodsRPC; | |
17 | +import com.diligrp.mobsite.getway.rpc.GoodsRPC; | |
18 | 18 | import com.diligrp.titan.sdk.TitanClient; |
19 | 19 | import com.diligrp.titan.sdk.domain.Attribute; |
20 | 20 | import com.diligrp.titan.sdk.domain.Category; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/MarketRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/MarketRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.diligrp.mobsite.getway.domain.protocol.Market; |
4 | 4 | import com.diligrp.mobsite.getway.domain.protocol.market.GetDeliveryByCodeReq; |
5 | 5 | import com.diligrp.mobsite.getway.domain.protocol.order.model.MarketInfo; |
6 | -import com.diligrp.mobsite.getway.rpc.buyer.MarketRPC; | |
6 | +import com.diligrp.mobsite.getway.rpc.MarketRPC; | |
7 | 7 | import com.diligrp.website.web.interfaces.domain.input.PickupTypeEnum; |
8 | 8 | import com.diligrp.website.web.interfaces.domain.output.PickUpPointResp; |
9 | 9 | import org.springframework.stereotype.Service; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/MessageRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/MessageRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.diligrp.messageCenter.sdk.MessageProducerClient; |
4 | 4 | import com.diligrp.messageCenter.sdk.domain.sms.SMSType; |
5 | 5 | import com.diligrp.mobsite.getway.domain.except.ServiceException; |
6 | -import com.diligrp.mobsite.getway.rpc.buyer.MessageRPC; | |
6 | +import com.diligrp.mobsite.getway.rpc.MessageRPC; | |
7 | 7 | import org.slf4j.Logger; |
8 | 8 | import org.slf4j.LoggerFactory; |
9 | 9 | import org.springframework.beans.factory.annotation.Autowired; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/OrderRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/OrderRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.b2c.orders.domain.client.dto.request.OrderListRequestDto; |
4 | 4 | import com.b2c.orders.domain.client.dto.response.OrderListResponseDto; |
5 | 5 | import com.diligrp.mobsite.getway.domain.protocol.ProductAppraise; |
6 | -import com.diligrp.mobsite.getway.rpc.buyer.OrderRPC; | |
6 | +import com.diligrp.mobsite.getway.rpc.OrderRPC; | |
7 | 7 | import com.diligrp.titan.sdk.output.PageOutput; |
8 | 8 | import org.slf4j.Logger; |
9 | 9 | import org.slf4j.LoggerFactory; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/PassportRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/PassportRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.alibaba.fastjson.JSONObject; |
4 | -import com.diligrp.mobsite.getway.domain.common.Constant; | |
5 | -import com.diligrp.mobsite.getway.domain.common.ErrorMessage; | |
6 | 4 | import com.diligrp.mobsite.getway.domain.common.RedisKey; |
7 | 5 | import com.diligrp.mobsite.getway.domain.common.ResultCode; |
8 | 6 | import com.diligrp.mobsite.getway.domain.except.ServiceException; |
... | ... | @@ -11,9 +9,9 @@ import com.diligrp.mobsite.getway.domain.protocol.login.LoginResp; |
11 | 9 | import com.diligrp.mobsite.getway.domain.protocol.register.UserRegisterReq; |
12 | 10 | import com.diligrp.mobsite.getway.domain.protocol.register.UserRegisterResp; |
13 | 11 | import com.diligrp.mobsite.getway.domain.protocol.saler.user.SellerLoginResp; |
12 | +import com.diligrp.mobsite.getway.rpc.PassportRPC; | |
14 | 13 | import com.diligrp.mobsite.getway.rpc.base.BaseOutput; |
15 | 14 | import com.diligrp.mobsite.getway.rpc.base.impl.BaseServiceImpl; |
16 | -import com.diligrp.mobsite.getway.rpc.buyer.PassportRPC; | |
17 | 15 | import com.diligrp.website.util.redis.RedisUtil; |
18 | 16 | import com.diligrp.website.util.security.Validator; |
19 | 17 | import org.slf4j.Logger; |
... | ... | @@ -93,12 +91,8 @@ public class PassportRPCImpl extends BaseServiceImpl implements PassportRPC { |
93 | 91 | resp.setToken(jsonBody.getString("token")); |
94 | 92 | JSONObject jsonUser = jsonBody.getJSONObject("accountInfo"); |
95 | 93 | resp.setAccountId(jsonUser.getLong("accountId")); |
96 | - resp.setEmail(jsonUser.getString("email")); | |
97 | 94 | resp.setMobile(jsonUser.getString("mobile")); |
98 | - resp.setAccountState(jsonUser.getInteger("accountState")); | |
99 | - resp.setUserType(jsonUser.getInteger("userType")); | |
100 | 95 | resp.setAccountName(jsonUser.getString("accountName")); |
101 | - resp.setRealName(jsonUser.getString("realName")); | |
102 | 96 | resp.setMsg(msg); |
103 | 97 | resp.setHeadImg(jsonUser.getString("face")); |
104 | 98 | if (Validator.isNull(jsonUser.getString("city"))){ |
... | ... | @@ -107,23 +101,23 @@ public class PassportRPCImpl extends BaseServiceImpl implements PassportRPC { |
107 | 101 | resp.setInfoCompleteFlag(LoginResp.USER_INFOCOMPLETEFLAG_YES); |
108 | 102 | } |
109 | 103 | |
110 | - //TODO 提示信息 | |
111 | - if (Constant.USER_STATE_LOCKED == jsonUser.getInteger("accountState")) { | |
112 | - resp.setMsg(ErrorMessage.USER_STATE_LOCKED); | |
113 | - resp.setCode(PASSPORT_LOGIN_CODE_LOCKED); | |
114 | - } | |
104 | + //if (Constant.USER_STATE_LOCKED == jsonUser.getInteger("accountState")) { | |
105 | + //resp.setMsg(ErrorMessage.USER_STATE_LOCKED); | |
106 | + //resp.setCode(PASSPORT_LOGIN_CODE_LOCKED); | |
107 | + //} | |
115 | 108 | |
116 | - if (Validator.isNull(resp.getAccountState()) | |
117 | - || resp.getAccountState()!= LoginResp.ACCOUNT_STATE_NORMAL) { | |
118 | - throw new ServiceException(ResultCode.BUSINESS_FAILED,resp.getMsg()); | |
119 | - } | |
109 | + //if (Validator.isNull(resp.getAccountState()) | |
110 | + // || resp.getAccountState()!= LoginResp.ACCOUNT_STATE_NORMAL) { | |
111 | + // throw new ServiceException(ResultCode.BUSINESS_FAILED,resp.getMsg()); | |
112 | + //} | |
120 | 113 | |
121 | 114 | //登录redisKey=userId-deviceId |
122 | 115 | |
123 | 116 | //String cookieRedisKey = redisUtil.makeKey(RedisKey.USER_LOGININFO, resp.getAccountId()+Constant.COMMON_DASH+req.getDeviceId()); |
124 | 117 | String cookieRedisKey = redisUtil.makeKey(RedisKey.USER_LOGININFO, String.valueOf(resp.getAccountId())); |
125 | 118 | redisUtil.setStringByExpire(cookieRedisKey, String.valueOf(resp.getAccountId()), loginExpireTime); |
126 | - //TODO 去掉登录设备排斥验证 | |
119 | + | |
120 | + // 去掉登录设备排斥验证 | |
127 | 121 | //if (!Validator.isNull(req.getDeviceId())) { |
128 | 122 | // String onlyOneLoginRedisKey = redisUtil.makeKey(RedisKey.USER_DEVICEID, String.valueOf(resp.getAccountId())); |
129 | 123 | // redisUtil.setStringByExpire(onlyOneLoginRedisKey, req.getDeviceId(), loginExpireTime); | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/seller/impl/SellerRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/SellerRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.seller.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.b2c.myapp.common.api.buyerInfo.output.BuyerInfoOutput; |
4 | 4 | import com.b2c.myapp.common.api.sellerInfo.output.SellerInfoOutput; |
... | ... | @@ -9,8 +9,8 @@ import com.diligrp.mobsite.getway.domain.common.ResultCode; |
9 | 9 | import com.diligrp.mobsite.getway.domain.except.ServiceException; |
10 | 10 | import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; |
11 | 11 | import com.diligrp.mobsite.getway.domain.protocol.cart.ModifyAmountReq; |
12 | -import com.diligrp.mobsite.getway.rpc.buyer.GoodsRPC; | |
13 | -import com.diligrp.mobsite.getway.rpc.seller.SellerRPC; | |
12 | +import com.diligrp.mobsite.getway.rpc.GoodsRPC; | |
13 | +import com.diligrp.mobsite.getway.rpc.SellerRPC; | |
14 | 14 | import com.diligrp.website.util.redis.RedisUtil; |
15 | 15 | import com.diligrp.website.util.security.Validator; |
16 | 16 | import com.diligrp.website.web.interfaces.WebsiteClient; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/ShopRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/ShopRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.diligrp.mobsite.getway.domain.protocol.ProductCategory; |
4 | 4 | import com.diligrp.mobsite.getway.domain.protocol.ShopIntroduction; |
5 | 5 | import com.diligrp.mobsite.getway.domain.protocol.shop.model.ShopInfo; |
6 | -import com.diligrp.mobsite.getway.rpc.buyer.ShopRPC; | |
6 | +import com.diligrp.mobsite.getway.rpc.ShopRPC; | |
7 | 7 | import org.slf4j.Logger; |
8 | 8 | import org.slf4j.LoggerFactory; |
9 | 9 | import org.springframework.stereotype.Service; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/StationMsgRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/StationMsgRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.alibaba.fastjson.JSON; |
4 | 4 | import com.alibaba.fastjson.JSONArray; |
... | ... | @@ -10,7 +10,7 @@ import com.diligrp.mobsite.getway.domain.protocol.msg.model.HomeMsgInfo; |
10 | 10 | import com.diligrp.mobsite.getway.domain.protocol.msg.model.StationMsg; |
11 | 11 | import com.diligrp.mobsite.getway.rpc.base.BaseOutput; |
12 | 12 | import com.diligrp.mobsite.getway.rpc.base.impl.BaseServiceImpl; |
13 | -import com.diligrp.mobsite.getway.rpc.buyer.StationMsgRPC; | |
13 | +import com.diligrp.mobsite.getway.rpc.StationMsgRPC; | |
14 | 14 | import com.diligrp.website.util.security.Validator; |
15 | 15 | import org.slf4j.Logger; |
16 | 16 | import org.slf4j.LoggerFactory; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/StoreRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/StoreRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.alibaba.fastjson.JSON; |
4 | 4 | import com.alibaba.fastjson.JSONObject; |
5 | 5 | import com.diligrp.mobsite.getway.domain.except.ServiceException; |
6 | 6 | import com.diligrp.mobsite.getway.domain.protocol.common.UploadFileResp; |
7 | -import com.diligrp.mobsite.getway.rpc.buyer.StoreRPC; | |
7 | +import com.diligrp.mobsite.getway.rpc.StoreRPC; | |
8 | 8 | import com.diligrp.store.api.upload.DiliStoreUpload; |
9 | 9 | import org.slf4j.Logger; |
10 | 10 | import org.slf4j.LoggerFactory; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/buyer/impl/UserRPCImpl.java renamed to mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/impl/UserRPCImpl.java
1 | -package com.diligrp.mobsite.getway.rpc.buyer.impl; | |
1 | +package com.diligrp.mobsite.getway.rpc.impl; | |
2 | 2 | |
3 | 3 | import com.b2c.myapp.common.api.buyerInfo.output.BuyerInfoOutput; |
4 | 4 | import com.b2c.myapp.common.utils.BaseOutput; |
... | ... | @@ -9,8 +9,8 @@ import com.diligrp.mobsite.getway.domain.except.ServiceException; |
9 | 9 | import com.diligrp.mobsite.getway.domain.protocol.AddCartProduct; |
10 | 10 | import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; |
11 | 11 | import com.diligrp.mobsite.getway.domain.protocol.cart.ModifyAmountReq; |
12 | -import com.diligrp.mobsite.getway.rpc.buyer.GoodsRPC; | |
13 | -import com.diligrp.mobsite.getway.rpc.buyer.UserRPC; | |
12 | +import com.diligrp.mobsite.getway.rpc.GoodsRPC; | |
13 | +import com.diligrp.mobsite.getway.rpc.UserRPC; | |
14 | 14 | import com.diligrp.website.util.redis.RedisUtil; |
15 | 15 | import com.diligrp.website.util.security.Validator; |
16 | 16 | import com.diligrp.website.web.interfaces.WebsiteClient; | ... | ... |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/seller/SellerOrderRPC.java deleted
100644 → 0
1 | -package com.diligrp.mobsite.getway.rpc.seller; | |
2 | - | |
3 | -/** | |
4 | - * <B>Description</B> 订单 <br /> | |
5 | - * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
6 | - * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
7 | - * <B>Company</B> 地利集团 | |
8 | - * @createTime 2014年9月1日 下午6:30:54 | |
9 | - * @author duanyugen | |
10 | - */ | |
11 | -public interface SellerOrderRPC { | |
12 | - | |
13 | - } |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/seller/SellerProductRPC.java deleted
100644 → 0
1 | -package com.diligrp.mobsite.getway.rpc.seller; | |
2 | - | |
3 | -/** | |
4 | - * <B>Description</B> 验证rpc <br /> | |
5 | - * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
6 | - * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
7 | - * <B>Company</B> 地利集团 | |
8 | - * | |
9 | - * @author duanyugen | |
10 | - */ | |
11 | -public interface SellerProductRPC { | |
12 | - | |
13 | - | |
14 | -} |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/seller/SellerShopRPC.java deleted
100644 → 0
1 | -package com.diligrp.mobsite.getway.rpc.seller; | |
2 | - | |
3 | - | |
4 | -/** | |
5 | - * <B>Description</B> 验证rpc <br /> | |
6 | - * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
7 | - * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
8 | - * <B>Company</B> 地利集团 | |
9 | - * | |
10 | - * @author duanyugen | |
11 | - */ | |
12 | -public interface SellerShopRPC { | |
13 | - | |
14 | -} |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/seller/impl/SellerOrderRPCImpl.java deleted
100644 → 0
1 | -package com.diligrp.mobsite.getway.rpc.seller.impl; | |
2 | - | |
3 | -import com.diligrp.mobsite.getway.rpc.seller.SellerOrderRPC; | |
4 | -import org.springframework.stereotype.Service; | |
5 | - | |
6 | - | |
7 | -/** | |
8 | - * <B>Description</B> 订单rpc <br /> | |
9 | - * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
10 | - * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
11 | - * <B>Company</B> 地利集团 | |
12 | - * | |
13 | - * @author duanyugen | |
14 | - * @createTime 2014年9月1日 下午6:31:13 | |
15 | - */ | |
16 | -@Service("sellerOrderRPC") | |
17 | -public class SellerOrderRPCImpl implements SellerOrderRPC { | |
18 | - | |
19 | - | |
20 | -} |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/seller/impl/SellerProductRPCImpl.java deleted
100644 → 0
1 | -package com.diligrp.mobsite.getway.rpc.seller.impl; | |
2 | - | |
3 | -import com.diligrp.mobsite.getway.rpc.seller.SellerProductRPC; | |
4 | -import org.springframework.stereotype.Service; | |
5 | - | |
6 | - | |
7 | -/** | |
8 | - * <B>Description</B> 搜索 <br /> | |
9 | - * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
10 | - * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
11 | - * <B>Company</B> 地利集团 | |
12 | - * @createTime 2014年8月22日 上午11:41:33 | |
13 | - */ | |
14 | -@Service("sellerProductRPC") | |
15 | -public class SellerProductRPCImpl implements SellerProductRPC { | |
16 | - | |
17 | -} |
mobsite-getway-rpc/src/main/java/com/diligrp/mobsite/getway/rpc/seller/impl/SellerShopRPCImpl.java deleted
100644 → 0
1 | -package com.diligrp.mobsite.getway.rpc.seller.impl; | |
2 | - | |
3 | -import com.diligrp.mobsite.getway.rpc.seller.SellerShopRPC; | |
4 | -import org.springframework.stereotype.Service; | |
5 | - | |
6 | - | |
7 | -/** | |
8 | - * <B>Description</B> 订单rpc <br /> | |
9 | - * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br /> | |
10 | - * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br /> | |
11 | - * <B>Company</B> 地利集团 | |
12 | - * | |
13 | - * @author duanyugen | |
14 | - * @createTime 2014年9月1日 下午6:31:13 | |
15 | - */ | |
16 | -@Service("sellerShopRPC") | |
17 | -public class SellerShopRPCImpl implements SellerShopRPC { | |
18 | - | |
19 | - | |
20 | -} | |
21 | 0 | \ No newline at end of file |
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/home/impl/TopicServiceImpl.java
... | ... | @@ -12,8 +12,8 @@ import com.diligrp.mobsite.getway.domain.protocol.topic.model.HomeStatisticsTopi |
12 | 12 | import com.diligrp.mobsite.getway.domain.protocol.topic.model.PicInfo; |
13 | 13 | import com.diligrp.mobsite.getway.domain.protocol.topic.model.TopicCategory; |
14 | 14 | import com.diligrp.mobsite.getway.domain.protocol.topic.model.TopicDetail; |
15 | -import com.diligrp.mobsite.getway.rpc.buyer.CmsRPC; | |
16 | -import com.diligrp.mobsite.getway.rpc.buyer.impl.CmsRPCImpl; | |
15 | +import com.diligrp.mobsite.getway.rpc.CmsRPC; | |
16 | +import com.diligrp.mobsite.getway.rpc.impl.CmsRPCImpl; | |
17 | 17 | import com.diligrp.mobsite.getway.service.buyer.home.TopicService; |
18 | 18 | import com.diligrp.mobsite.getway.service.common.utils.DateUtils; |
19 | 19 | import com.diligrp.website.util.security.Validator; | ... | ... |
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/settle/impl/ConsigneeServiceImpl.java
... | ... | @@ -5,7 +5,7 @@ import com.diligrp.mobsite.getway.domain.common.ResultCode; |
5 | 5 | import com.diligrp.mobsite.getway.domain.except.ServiceException; |
6 | 6 | import com.diligrp.mobsite.getway.domain.protocol.ConsigneeInfo; |
7 | 7 | import com.diligrp.mobsite.getway.domain.protocol.cart.*; |
8 | -import com.diligrp.mobsite.getway.rpc.buyer.UserRPC; | |
8 | +import com.diligrp.mobsite.getway.rpc.UserRPC; | |
9 | 9 | import com.diligrp.mobsite.getway.service.buyer.settle.ConsigneeService; |
10 | 10 | import com.diligrp.website.util.security.Validator; |
11 | 11 | import org.springframework.stereotype.Service; | ... | ... |
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/user/impl/OrderServiceImpl.java
... | ... | @@ -2,9 +2,7 @@ package com.diligrp.mobsite.getway.service.buyer.user.impl; |
2 | 2 | |
3 | 3 | |
4 | 4 | import com.diligrp.mobsite.getway.domain.protocol.order.*; |
5 | -import com.diligrp.mobsite.getway.rpc.buyer.*; | |
6 | -import com.diligrp.mobsite.getway.rpc.seller.SellerOrderRPC; | |
7 | -import com.diligrp.mobsite.getway.rpc.seller.SellerShopRPC; | |
5 | +import com.diligrp.mobsite.getway.rpc.*; | |
8 | 6 | import com.diligrp.mobsite.getway.service.buyer.user.OrderService; |
9 | 7 | import com.diligrp.website.util.redis.RedisUtil; |
10 | 8 | import com.diligrp.website.web.interfaces.WebsiteClient; |
... | ... | @@ -46,11 +44,7 @@ public class OrderServiceImpl implements OrderService { |
46 | 44 | |
47 | 45 | @Resource |
48 | 46 | private ShopRPC shopRPC; |
49 | - @Resource | |
50 | - private SellerShopRPC sellerShopRPC; | |
51 | 47 | |
52 | - @Resource | |
53 | - private SellerOrderRPC sellerOrderRPC; | |
54 | 48 | |
55 | 49 | |
56 | 50 | @Resource | ... | ... |
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/user/impl/UserServiceImpl.java
... | ... | @@ -11,7 +11,7 @@ import com.diligrp.mobsite.getway.domain.protocol.login.*; |
11 | 11 | import com.diligrp.mobsite.getway.domain.protocol.register.*; |
12 | 12 | import com.diligrp.mobsite.getway.domain.protocol.user.*; |
13 | 13 | import com.diligrp.mobsite.getway.manager.common.RegisterNoMapperManager; |
14 | -import com.diligrp.mobsite.getway.rpc.buyer.*; | |
14 | +import com.diligrp.mobsite.getway.rpc.*; | |
15 | 15 | import com.diligrp.mobsite.getway.rpc.utils.UserRedisUtil; |
16 | 16 | import com.diligrp.mobsite.getway.service.buyer.user.UserService; |
17 | 17 | import com.diligrp.mobsite.getway.service.common.utils.PassportUtils; | ... | ... |
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/common/impl/CommonServiceImpl.java
... | ... | @@ -8,8 +8,8 @@ import com.diligrp.mobsite.getway.domain.protocol.City; |
8 | 8 | import com.diligrp.mobsite.getway.domain.protocol.common.*; |
9 | 9 | import com.diligrp.mobsite.getway.domain.protocol.common.model.UnitInfo; |
10 | 10 | import com.diligrp.mobsite.getway.domain.protocol.user.MemberInfo; |
11 | -import com.diligrp.mobsite.getway.rpc.buyer.ConfigRPC; | |
12 | -import com.diligrp.mobsite.getway.rpc.buyer.StoreRPC; | |
11 | +import com.diligrp.mobsite.getway.rpc.ConfigRPC; | |
12 | +import com.diligrp.mobsite.getway.rpc.StoreRPC; | |
13 | 13 | import com.diligrp.mobsite.getway.service.common.CommonService; |
14 | 14 | import com.diligrp.website.util.security.Validator; |
15 | 15 | import com.diligrp.website.web.interfaces.domain.output.CityResp; | ... | ... |
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/common/impl/VersionUpdateServiceImpl.java
... | ... | @@ -15,7 +15,7 @@ import com.diligrp.mobsite.getway.domain.protocol.version.model.AppPatch; |
15 | 15 | import com.diligrp.mobsite.getway.manager.common.AppPatchManager; |
16 | 16 | import com.diligrp.mobsite.getway.manager.common.FeedBackManager; |
17 | 17 | import com.diligrp.mobsite.getway.manager.common.VersionUpdateManager; |
18 | -import com.diligrp.mobsite.getway.rpc.buyer.UserRPC; | |
18 | +import com.diligrp.mobsite.getway.rpc.UserRPC; | |
19 | 19 | import com.diligrp.mobsite.getway.service.common.VersionUpdateService; |
20 | 20 | import com.diligrp.website.util.dao.BaseQuery; |
21 | 21 | import com.diligrp.website.util.security.Validator; | ... | ... |
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/seller/impl/SellerGoodsServiceImpl.java
... | ... | @@ -3,10 +3,9 @@ package com.diligrp.mobsite.getway.service.seller.impl; |
3 | 3 | import com.diligrp.mobsite.getway.domain.protocol.product.*; |
4 | 4 | import com.diligrp.mobsite.getway.domain.protocol.saler.SellerUpdateProductReq; |
5 | 5 | import com.diligrp.mobsite.getway.domain.protocol.saler.product.*; |
6 | -import com.diligrp.mobsite.getway.rpc.buyer.ConfigRPC; | |
7 | -import com.diligrp.mobsite.getway.rpc.buyer.GoodsRPC; | |
8 | -import com.diligrp.mobsite.getway.rpc.buyer.UserRPC; | |
9 | -import com.diligrp.mobsite.getway.rpc.seller.SellerProductRPC; | |
6 | +import com.diligrp.mobsite.getway.rpc.ConfigRPC; | |
7 | +import com.diligrp.mobsite.getway.rpc.GoodsRPC; | |
8 | +import com.diligrp.mobsite.getway.rpc.UserRPC; | |
10 | 9 | import com.diligrp.mobsite.getway.service.seller.SellerGoodsService; |
11 | 10 | import com.yqyw.filter.client.KeyWordsClient; |
12 | 11 | import org.apache.log4j.Logger; |
... | ... | @@ -30,8 +29,6 @@ public class SellerGoodsServiceImpl implements SellerGoodsService { |
30 | 29 | private UserRPC userRPC; |
31 | 30 | @Autowired |
32 | 31 | private ConfigRPC configRpc; |
33 | - @Resource | |
34 | - private SellerProductRPC sellerProductRPC; | |
35 | 32 | |
36 | 33 | @Resource |
37 | 34 | private GoodsRPC goodsRPC; | ... | ... |
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/seller/impl/SellerUserServiceImpl.java
... | ... | @@ -13,8 +13,7 @@ import com.diligrp.mobsite.getway.domain.protocol.saler.user.SellerLoginReq; |
13 | 13 | import com.diligrp.mobsite.getway.domain.protocol.saler.user.SellerLoginResp; |
14 | 14 | import com.diligrp.mobsite.getway.domain.protocol.user.*; |
15 | 15 | import com.diligrp.mobsite.getway.manager.common.RegisterNoMapperManager; |
16 | -import com.diligrp.mobsite.getway.rpc.buyer.*; | |
17 | -import com.diligrp.mobsite.getway.rpc.seller.SellerRPC; | |
16 | +import com.diligrp.mobsite.getway.rpc.*; | |
18 | 17 | import com.diligrp.mobsite.getway.rpc.utils.UserRedisUtil; |
19 | 18 | import com.diligrp.mobsite.getway.service.common.utils.PassportUtils; |
20 | 19 | import com.diligrp.mobsite.getway.service.seller.SellerUserService; | ... | ... |
mobsite-getway-web/src/main/java/com/diligrp/mobsite/getway/web/api/base/CommonController.java
... | ... | @@ -2,7 +2,7 @@ package com.diligrp.mobsite.getway.web.api.base; |
2 | 2 | |
3 | 3 | import com.diligrp.mobsite.getway.domain.except.ServiceException; |
4 | 4 | import com.diligrp.mobsite.getway.domain.protocol.common.*; |
5 | -import com.diligrp.mobsite.getway.rpc.buyer.impl.StoreRPCImpl; | |
5 | +import com.diligrp.mobsite.getway.rpc.impl.StoreRPCImpl; | |
6 | 6 | import com.diligrp.mobsite.getway.service.common.CommonService; |
7 | 7 | import com.diligrp.website.util.security.Validator; |
8 | 8 | import io.swagger.annotations.Api; | ... | ... |
mobsite-getway-web/src/main/resources/spring-rpc.xml
... | ... | @@ -33,7 +33,7 @@ |
33 | 33 | </bean> |
34 | 34 | |
35 | 35 | <bean id="passportRPC" |
36 | - class="com.diligrp.mobsite.getway.rpc.buyer.impl.PassportRPCImpl"> | |
36 | + class="com.diligrp.mobsite.getway.rpc.impl.PassportRPCImpl"> | |
37 | 37 | <constructor-arg name="token" value="${website.passport.token}"/> |
38 | 38 | <constructor-arg name="baseUrl" value="${website.passport.baseUrl}"/> |
39 | 39 | </bean> |
... | ... | @@ -96,7 +96,7 @@ |
96 | 96 | |
97 | 97 | |
98 | 98 | <bean id="stationMsgRPC" |
99 | - class="com.diligrp.mobsite.getway.rpc.buyer.impl.StationMsgRPCImpl"> | |
99 | + class="com.diligrp.mobsite.getway.rpc.impl.StationMsgRPCImpl"> | |
100 | 100 | <constructor-arg name="token" value="${website.stationmsg.token}"/> |
101 | 101 | <constructor-arg name="baseUrl" value="${website.stationmsg.baseUrl}"/> |
102 | 102 | </bean> | ... | ... |