diff --git a/coolstore-partner-common/coolstore-partner-common.iml b/coolstore-partner-common/coolstore-partner-common.iml
index 4a9f54974..9990d5a85 100644
--- a/coolstore-partner-common/coolstore-partner-common.iml
+++ b/coolstore-partner-common/coolstore-partner-common.iml
@@ -71,5 +71,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/coolstore-partner-common/pom.xml b/coolstore-partner-common/pom.xml
index 0aa17fc51..ac4a10450 100644
--- a/coolstore-partner-common/pom.xml
+++ b/coolstore-partner-common/pom.xml
@@ -70,6 +70,18 @@
com.google.guava
guava
+
+ com.aliyun.openservices
+ ons-client
+
+
+ com.aliyun
+ ons20190214
+
+
+ com.aliyun
+ tea-openapi
+
\ No newline at end of file
diff --git a/coolstore-partner-common/src/main/java/com/cool/store/utils/RocketMqUtil.java b/coolstore-partner-common/src/main/java/com/cool/store/utils/RocketMqUtil.java
new file mode 100644
index 000000000..bbae521af
--- /dev/null
+++ b/coolstore-partner-common/src/main/java/com/cool/store/utils/RocketMqUtil.java
@@ -0,0 +1,198 @@
+package com.cool.store.utils;
+
+
+import com.aliyun.ons20190214.Client;
+import com.aliyun.ons20190214.models.*;
+import com.aliyun.teaopenapi.models.Config;
+import com.cool.store.constants.CommonConstants;
+import com.cool.store.enums.RocketMqGroupEnum;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.collections4.ListUtils;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+
+/**
+ * @author chenyupeng
+ * @since 2022/1/5
+ */
+@Slf4j
+public class RocketMqUtil {
+
+ private static final String INSTANCE_ID = "MQ_INST_1947409023213164_BX3sLZnA";
+
+ /**
+ * 本地
+ */
+ private static final String LOCAL_INSTANCE_ID = "MQ_INST_1255228665351616_BX3wfyPO";
+
+ private static final String INSTANCE_ID_ONLINE_HD_PRE = "MQ_INST_1947409023213164_BX5N7rwl";
+ private static final String ACCESS_KEY = "LTAI5t5ouXZuFgxJMbQea3b2";
+ private static final String ACCESS_SECRET = "yuomDstRjSdihtN5zo8viDbWu8Z0ig";
+ /**
+ * 使用AK&SK初始化账号Client
+ * @param accessKeyId
+ * @param accessKeySecret
+ * @return Client
+ * @throws Exception
+ */
+ public static Client createClient(String accessKeyId, String accessKeySecret) throws Exception {
+ Config config = new Config()
+ // 您的AccessKey ID
+ .setAccessKeyId(accessKeyId)
+ // 您的AccessKey Secret
+ .setAccessKeySecret(accessKeySecret);
+ // 访问的域名
+ config.endpoint = "ons.cn-hangzhou.aliyuncs.com";
+ return new Client(config);
+ }
+
+ public static Client createLocalClient(String accessKeyId, String accessKeySecret) throws Exception {
+ Config config = new Config()
+ // 您的AccessKey ID
+ .setAccessKeyId(accessKeyId)
+ // 您的AccessKey Secret
+ .setAccessKeySecret(accessKeySecret);
+ // 访问的域名
+ config.endpoint = "ons.mq-internet-access.aliyuncs.com";
+ return new Client(config);
+ }
+
+ /**
+ * 新增测试、开发环境的group
+ * @author chenyupeng
+ * @date 2022/1/13
+ * @param profiles 环境后缀,逗号分隔 例如: dev,dev2
+ * @return void
+ */
+ public static void initGroup(String profiles) throws Exception {
+ Client client = RocketMqUtil.createClient(ACCESS_KEY, ACCESS_SECRET);
+ List profileList = Arrays.asList(profiles.split(CommonConstants.COMMA));
+ if(CollectionUtils.isEmpty(profileList)){
+ return;
+ }
+
+ OnsGroupListRequest onsGroupListRequest = new OnsGroupListRequest();
+ onsGroupListRequest.setInstanceId(INSTANCE_ID);
+ OnsGroupListResponse onsGroupListResponse = client.onsGroupList(onsGroupListRequest);
+ List subscribeInfoDo = onsGroupListResponse.getBody().getData().getSubscribeInfoDo();
+ Map collect = ListUtils.emptyIfNull(subscribeInfoDo).stream().
+ collect(Collectors.toMap(OnsGroupListResponseBody.OnsGroupListResponseBodyDataSubscribeInfoDo::getGroupId, data -> data, (a, b) -> a));
+
+ for (String profile : profileList) {
+ for (RocketMqGroupEnum groupEnum : RocketMqGroupEnum.values()) {
+ String groupId = groupEnum.getDefaultGroup() + "_" + profile;
+ //已经创建就继续
+ if(collect.get(groupId) != null){
+ continue;
+ }
+ OnsGroupCreateRequest onsGroupCreateRequest = new OnsGroupCreateRequest();
+ onsGroupCreateRequest.setGroupId(groupId);
+ onsGroupCreateRequest.setInstanceId(INSTANCE_ID);
+ // 复制代码运行请自行打印 API 的返回值
+ try {
+ client.onsGroupCreate(onsGroupCreateRequest);
+ }catch (Exception e){
+ log.error("initGroupAndTag fail",e);
+ }
+ Thread.sleep(1000);
+ }
+ }
+ }
+
+ public static void initLocalGroup(String profiles) throws Exception {
+ Client client = RocketMqUtil.createLocalClient("LTAI5tPWCTeCyngfYLqoSGWk", "jkzIXlvNF17ne5TPPEFP1sQhcfg4Je");
+ List profileList = Arrays.asList(profiles.split(CommonConstants.COMMA));
+ if(CollectionUtils.isEmpty(profileList)){
+ return;
+ }
+
+ OnsGroupListRequest onsGroupListRequest = new OnsGroupListRequest();
+ onsGroupListRequest.setInstanceId(LOCAL_INSTANCE_ID);
+ OnsGroupListResponse onsGroupListResponse = client.onsGroupList(onsGroupListRequest);
+ List subscribeInfoDo = onsGroupListResponse.getBody().getData().getSubscribeInfoDo();
+ Map collect = ListUtils.emptyIfNull(subscribeInfoDo).stream().
+ collect(Collectors.toMap(OnsGroupListResponseBody.OnsGroupListResponseBodyDataSubscribeInfoDo::getGroupId, data -> data, (a, b) -> a));
+
+ for (String profile : profileList) {
+ for (RocketMqGroupEnum groupEnum : RocketMqGroupEnum.values()) {
+ String groupId = groupEnum.getDefaultGroup() + "_" + profile;
+ //已经创建就继续
+ if(collect.get(groupId) != null){
+ continue;
+ }
+ OnsGroupCreateRequest onsGroupCreateRequest = new OnsGroupCreateRequest();
+ onsGroupCreateRequest.setGroupId(groupId);
+ onsGroupCreateRequest.setInstanceId(LOCAL_INSTANCE_ID);
+ // 复制代码运行请自行打印 API 的返回值
+ try {
+ client.onsGroupCreate(onsGroupCreateRequest);
+ }catch (Exception e){
+ log.error("initGroupAndTag fail",e);
+ }
+ Thread.sleep(1000);
+ }
+ }
+ }
+
+ /**
+ * 新增线上、灰度、预发环境的group
+ * @author chenyupeng
+ * @date 2022/1/13
+ * @param profiles 环境后缀,逗号分隔 例如: online,hd,pre
+ * @return void
+ */
+ public static void initOnlineAndHdAndPreGroup(String profiles) throws Exception {
+ Client client = RocketMqUtil.createClient(ACCESS_KEY, ACCESS_SECRET);
+ List profileList = Arrays.asList(profiles.split(CommonConstants.COMMA));
+ if(CollectionUtils.isEmpty(profileList)){
+ return;
+ }
+
+ OnsGroupListRequest onsGroupListRequest = new OnsGroupListRequest();
+ onsGroupListRequest.setInstanceId(INSTANCE_ID_ONLINE_HD_PRE);
+ OnsGroupListResponse onsGroupListResponse = client.onsGroupList(onsGroupListRequest);
+ List subscribeInfoDo = onsGroupListResponse.getBody().getData().getSubscribeInfoDo();
+ Map collect = ListUtils.emptyIfNull(subscribeInfoDo).stream().
+ collect(Collectors.toMap(OnsGroupListResponseBody.OnsGroupListResponseBodyDataSubscribeInfoDo::getGroupId, data -> data, (a, b) -> a));
+
+ for (String profile : profileList) {
+ for (RocketMqGroupEnum groupEnum : RocketMqGroupEnum.values()) {
+ String groupId = groupEnum.getDefaultGroup() + "_" + profile;
+ //已经创建就继续
+ if(collect.get(groupId) != null){
+ continue;
+ }
+ OnsGroupCreateRequest onsGroupCreateRequest = new OnsGroupCreateRequest();
+ onsGroupCreateRequest.setGroupId(groupId);
+ onsGroupCreateRequest.setInstanceId(INSTANCE_ID_ONLINE_HD_PRE);
+ // 复制代码运行请自行打印 API 的返回值
+ try {
+ client.onsGroupCreate(onsGroupCreateRequest);
+ }catch (Exception e){
+ log.error("initGroupAndTag fail",e);
+ }
+ Thread.sleep(1000);
+ }
+ }
+
+ }
+
+ /**
+ * 删除测试、开发环境的group
+ * @author chenyupeng
+ * @date 2022/1/13
+ * @param groupId
+ * @return void
+ */
+ public static void deleteGroupById(String groupId) throws Exception {
+ Client client = RocketMqUtil.createClient(ACCESS_KEY, ACCESS_SECRET);
+ OnsGroupDeleteRequest request = new OnsGroupDeleteRequest();
+ request.setGroupId(groupId);
+ request.setInstanceId(INSTANCE_ID);
+ client.onsGroupDelete(request);
+ }
+}
diff --git a/coolstore-partner-dao/coolstore-partner-dao.iml b/coolstore-partner-dao/coolstore-partner-dao.iml
index 3d24cdd5e..c8c933214 100644
--- a/coolstore-partner-dao/coolstore-partner-dao.iml
+++ b/coolstore-partner-dao/coolstore-partner-dao.iml
@@ -93,6 +93,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/coolstore-partner-model/coolstore-partner-model.iml b/coolstore-partner-model/coolstore-partner-model.iml
index de4f003fb..535feb0e0 100644
--- a/coolstore-partner-model/coolstore-partner-model.iml
+++ b/coolstore-partner-model/coolstore-partner-model.iml
@@ -72,6 +72,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/coolstore-partner-service/coolstore-partner-service.iml b/coolstore-partner-service/coolstore-partner-service.iml
index 4e7767e5c..40ceefa06 100644
--- a/coolstore-partner-service/coolstore-partner-service.iml
+++ b/coolstore-partner-service/coolstore-partner-service.iml
@@ -60,6 +60,7 @@
+
@@ -93,7 +94,6 @@
-
diff --git a/coolstore-partner-service/pom.xml b/coolstore-partner-service/pom.xml
index 778b19fd8..31292f41f 100644
--- a/coolstore-partner-service/pom.xml
+++ b/coolstore-partner-service/pom.xml
@@ -33,10 +33,6 @@
org.apache.shiro
shiro-core
-
- com.aliyun.openservices
- ons-client
-
com.aliyun
tea-openapi
diff --git a/coolstore-partner-webb/coolstore-partner-webb.iml b/coolstore-partner-webb/coolstore-partner-webb.iml
index 27b866b75..016e7de76 100644
--- a/coolstore-partner-webb/coolstore-partner-webb.iml
+++ b/coolstore-partner-webb/coolstore-partner-webb.iml
@@ -30,6 +30,7 @@
+
@@ -62,7 +63,6 @@
-
diff --git a/coolstore-partner-webb/src/main/java/com/cool/store/config/swagger/Swagger2Config.java b/coolstore-partner-webb/src/main/java/com/cool/store/config/swagger/Swagger2Config.java
index cbf3ab00a..c3828c62b 100644
--- a/coolstore-partner-webb/src/main/java/com/cool/store/config/swagger/Swagger2Config.java
+++ b/coolstore-partner-webb/src/main/java/com/cool/store/config/swagger/Swagger2Config.java
@@ -72,11 +72,11 @@ public class Swagger2Config {
private List getParameters() {
List pars = new ArrayList<>();
- pars.add(new ParameterBuilder().name("access_token").description("令牌").required(true)
+ pars.add(new ParameterBuilder().name("accessToken").description("令牌").required(true)
.modelRef(new ModelRef("string"))
- .defaultValue("{{access_token}}")
+ .defaultValue("{{accessToken}}")
.parameterType("query").build());
- pars.add(new ParameterBuilder().name("enterprise-id").required(true)
+ pars.add(new ParameterBuilder().name("enterpriseId").required(true)
.modelRef(new ModelRef("string"))
.defaultValue("45f92210375346858b6b6694967f44de")
.parameterType("path").build());
diff --git a/coolstore-partner-webb/src/main/java/com/cool/store/controller/DeskController.java b/coolstore-partner-webb/src/main/java/com/cool/store/controller/DeskController.java
index f451e0bbc..e216e0827 100644
--- a/coolstore-partner-webb/src/main/java/com/cool/store/controller/DeskController.java
+++ b/coolstore-partner-webb/src/main/java/com/cool/store/controller/DeskController.java
@@ -25,7 +25,7 @@ public class DeskController {
@GetMapping(path = "/interviewSchedule")
@ApiOperation("面试日程信息 面试信息有限 不做分页")
- public ResponseResult interviewSchedule(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult interviewSchedule(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestParam(value = "selectedData",required = false) Date selectedData){
return ResponseResult.success();
@@ -34,7 +34,7 @@ public class DeskController {
@PostMapping(path = "/queryStageCount")
@ApiOperation("招商经理视角====各阶段待处理待跟进数量")
- public ResponseResult queryStageCount(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult queryStageCount(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody StageCountRequest stageCountRequest){
return ResponseResult.success();
@@ -43,7 +43,7 @@ public class DeskController {
@PostMapping(path = "/queryStageList")
@ApiOperation("招商经理视角====各阶段待数据列表")
- public ResponseResult> queryStageList(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult> queryStageList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody StageCountRequest stageCountRequest){
return ResponseResult.success();
@@ -55,7 +55,7 @@ public class DeskController {
@ApiImplicitParams({
@ApiImplicitParam(name = "lineId", value = "线索ID", required = false),
})
- public ResponseResult getPartnerLineDetail(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult getPartnerLineDetail(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestParam(value = "lineId",required = false)Long lineId){
@@ -65,7 +65,7 @@ public class DeskController {
@GetMapping(path = "/lastMonthCloseLine")
@ApiOperation("最近30天结束的线索")
- public ResponseResult> lastMonthCloseLine(@PathVariable(value = "enterprise-id", required = false) String enterpriseId){
+ public ResponseResult> lastMonthCloseLine(@PathVariable(value = "enterpriseId", required = false) String enterpriseId){
return ResponseResult.success();
@@ -74,7 +74,7 @@ public class DeskController {
@PostMapping(path = "/allocationInvestmentManager")
@ApiOperation("分配招商经理/转让招商经理")
- public ResponseResult> allocationInvestmentManager(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult> allocationInvestmentManager(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody AllocationInvestmentManagerRequest allocationInvestmentManagerRequest){
return ResponseResult.success();
@@ -84,7 +84,7 @@ public class DeskController {
@PostMapping(path = "/queryPublicSeqLineList")
@ApiOperation("公海列表")
- public ResponseResult> queryPublicSeaLineList(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult> queryPublicSeaLineList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody LineRequest LineRequest){
return ResponseResult.success();
@@ -95,7 +95,7 @@ public class DeskController {
@PostMapping(path = "/queryPrivateSeaLineList")
@ApiOperation("私海列表")
- public ResponseResult> queryPrivateSeqLineList(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult> queryPrivateSeqLineList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody PrivateSeaLineListRequest privateSeaLineListRequest){
return ResponseResult.success();
@@ -105,7 +105,7 @@ public class DeskController {
@PostMapping(path = "/queryBlackList")
@ApiOperation("黑名单列表")
- public ResponseResult> queryBlackList(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult> queryBlackList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody LineRequest LineRequest){
return ResponseResult.success();
@@ -113,7 +113,7 @@ public class DeskController {
@PostMapping(path = "/removeBlackList")
- public ResponseResult removeBlackList(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult removeBlackList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody LineBlackListRequest lineBlackListRequest){
@@ -121,7 +121,7 @@ public class DeskController {
}
@PostMapping(path = "/joinBlackList")
- public ResponseResult joinBlackList(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult joinBlackList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody LineBlackListRequest lineBlackListRequest){
@@ -130,7 +130,7 @@ public class DeskController {
@PostMapping(path = "/closeFollow")
- public ResponseResult closeFollow(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult closeFollow(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody CloseFollowRequest closeFollowRequest){
@@ -139,7 +139,7 @@ public class DeskController {
@PostMapping(path = "/changeIntentInfo")
@ApiOperation("员工端变更C端用户意向信息")
- public ResponseResult changeIntentInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult changeIntentInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody BaseUserInfoRequest baseUserInfoRequest){
return ResponseResult.success();
@@ -148,7 +148,7 @@ public class DeskController {
@PostMapping(path = "/addTags")
@ApiOperation("添加标签接口")
- public ResponseResult addTags(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult addTags(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody AddTagsRequest addTagsRequest){
return ResponseResult.success();
diff --git a/coolstore-partner-webb/src/main/java/com/cool/store/controller/EnterpriseUserController.java b/coolstore-partner-webb/src/main/java/com/cool/store/controller/EnterpriseUserController.java
index f38771634..bed8fe201 100644
--- a/coolstore-partner-webb/src/main/java/com/cool/store/controller/EnterpriseUserController.java
+++ b/coolstore-partner-webb/src/main/java/com/cool/store/controller/EnterpriseUserController.java
@@ -21,7 +21,7 @@ import java.util.List;
* @date 2023-05-30 17:20
*/
@RestController
-@RequestMapping({"/enterprises/{enterprise-id}/users"})
+@RequestMapping({"/enterprises/{enterpriseId}/users"})
@Slf4j
public class EnterpriseUserController {
@@ -29,7 +29,7 @@ public class EnterpriseUserController {
public EnterpriseUserService enterpriseUserService;
@GetMapping(path = "/dept/userList")
- public ResponseResult> getUserList(@PathVariable(value = "enterprise-id", required = true) String eid,
+ public ResponseResult> getUserList(@PathVariable(value = "enterpriseId", required = true) String eid,
@RequestParam(name = "user_name", required = false) String userName,
@RequestParam(name = "dept_id", required = false) String deptId,
@RequestParam(name = "role_id", required = false) Long roleId,
diff --git a/coolstore-partner-webb/src/main/resources/application-local.properties b/coolstore-partner-webb/src/main/resources/application-local.properties
index 17d56ec56..17c64ced1 100644
--- a/coolstore-partner-webb/src/main/resources/application-local.properties
+++ b/coolstore-partner-webb/src/main/resources/application-local.properties
@@ -43,8 +43,8 @@ mybatis.configuration.map-underscore-to-camel-case=true
isv.domain = https://abstore-isv.coolstore.cn
#rocketmq \u914D\u7F6E
-rocketmq.accessKey=LTAI5t5ouXZuFgxJMbQea3b2
-rocketmq.secretKey=yuomDstRjSdihtN5zo8viDbWu8Z0ig
-rocketmq.nameSrvAdder=http://MQ_INST_1947409023213164_BX3sLZnA.cn-hangzhou.mq-internal.aliyuncs.com:8080
+rocketmq.accessKey=zK2oVEz4G1ts23d2
+rocketmq.secretKey=0UstLCS0mh2ASgBh
+rocketmq.nameSrvAdder=http://rmq-cn-9lb38l1rx04-vpc.cn-hangzhou.rmq.aliyuncs.com:8080
rocketmq.topic=simple_message
rocketmq.orderTopic=order_message
\ No newline at end of file
diff --git a/coolstore-partner-webc/coolstore-partner-webc.iml b/coolstore-partner-webc/coolstore-partner-webc.iml
index 852ec82b1..e887cd9da 100644
--- a/coolstore-partner-webc/coolstore-partner-webc.iml
+++ b/coolstore-partner-webc/coolstore-partner-webc.iml
@@ -30,6 +30,7 @@
+
@@ -62,7 +63,6 @@
-
diff --git a/coolstore-partner-webc/src/main/java/com/cool/store/config/TokenValidateFilter.java b/coolstore-partner-webc/src/main/java/com/cool/store/config/TokenValidateFilter.java
index 8c12a2cb0..3e4f66ac9 100644
--- a/coolstore-partner-webc/src/main/java/com/cool/store/config/TokenValidateFilter.java
+++ b/coolstore-partner-webc/src/main/java/com/cool/store/config/TokenValidateFilter.java
@@ -97,7 +97,7 @@ public class TokenValidateFilter implements Filter {
ResponseResult.fail(ErrorCodeEnum.ACCESS_TOKEN_INVALID)));
return;
}
- log.info("url:{}, access_token:{}, userId:{}, username:{}, enterpriseId:{}", uri, accessToken, currentUser.getUserId(), currentUser.getName(), currentUser.getEnterpriseId());
+ log.info("url:{}, accessToken:{}, userId:{}, username:{}, enterpriseId:{}", uri, accessToken, currentUser.getUserId(), currentUser.getName(), currentUser.getEnterpriseId());
}
if(StringUtils.isBlank(userStr) && !isInWhiteList){
response.setStatus(HttpStatus.OK.value());
diff --git a/coolstore-partner-webc/src/main/java/com/cool/store/config/swagger/Swagger2Config.java b/coolstore-partner-webc/src/main/java/com/cool/store/config/swagger/Swagger2Config.java
index cbf3ab00a..c3828c62b 100644
--- a/coolstore-partner-webc/src/main/java/com/cool/store/config/swagger/Swagger2Config.java
+++ b/coolstore-partner-webc/src/main/java/com/cool/store/config/swagger/Swagger2Config.java
@@ -72,11 +72,11 @@ public class Swagger2Config {
private List getParameters() {
List pars = new ArrayList<>();
- pars.add(new ParameterBuilder().name("access_token").description("令牌").required(true)
+ pars.add(new ParameterBuilder().name("accessToken").description("令牌").required(true)
.modelRef(new ModelRef("string"))
- .defaultValue("{{access_token}}")
+ .defaultValue("{{accessToken}}")
.parameterType("query").build());
- pars.add(new ParameterBuilder().name("enterprise-id").required(true)
+ pars.add(new ParameterBuilder().name("enterpriseId").required(true)
.modelRef(new ModelRef("string"))
.defaultValue("45f92210375346858b6b6694967f44de")
.parameterType("path").build());
diff --git a/coolstore-partner-webc/src/main/java/com/cool/store/controller/MiniProgramAppController.java b/coolstore-partner-webc/src/main/java/com/cool/store/controller/MiniProgramAppController.java
index 0faa44220..6ed6ba97a 100644
--- a/coolstore-partner-webc/src/main/java/com/cool/store/controller/MiniProgramAppController.java
+++ b/coolstore-partner-webc/src/main/java/com/cool/store/controller/MiniProgramAppController.java
@@ -23,7 +23,7 @@ import javax.validation.Valid;
@Api(tags = "微信小程序app接口")
@RestController
-@RequestMapping({"/v1/partnerManage/{enterprise-id}/miniProgram" })
+@RequestMapping({"/v1/partnerManage/{enterpriseId}/miniProgram" })
public class MiniProgramAppController {
@Resource
diff --git a/coolstore-partner-webc/src/main/java/com/cool/store/controller/OpenAreaController.java b/coolstore-partner-webc/src/main/java/com/cool/store/controller/OpenAreaController.java
index e99a2d577..275cdbfc1 100644
--- a/coolstore-partner-webc/src/main/java/com/cool/store/controller/OpenAreaController.java
+++ b/coolstore-partner-webc/src/main/java/com/cool/store/controller/OpenAreaController.java
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.*;
* @Version 1.0
*/
@RestController
-@RequestMapping({"/v1/partnerManage/{enterprise-id}/openArea" })
+@RequestMapping({"/v1/partnerManage/{enterpriseId}/openArea" })
@Slf4j
public class OpenAreaController {
@@ -31,7 +31,7 @@ public class OpenAreaController {
@ApiImplicitParam(name = "pageNumber", value = "页码", required = false),
@ApiImplicitParam(name = "pageSize", value = "分页大小", required = false)
})
- public ResponseResult> getOpenAreaList(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult> getOpenAreaList(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestParam(value = "keyOpenFlag",required = false)Boolean keyOpenFlag,
@RequestParam(value = "parentId",required = false)Long parentId,
@RequestParam(value = "type",required = false)String type,
@@ -44,7 +44,7 @@ public class OpenAreaController {
@GetMapping(path = "/getOpenProvince")
@ApiOperation("可申请加盟省份/可预约加盟省份")
- public ResponseResult getOpenProvince(@PathVariable(value = "enterprise-id", required = false) String enterpriseId){
+ public ResponseResult getOpenProvince(@PathVariable(value = "enterpriseId", required = false) String enterpriseId){
return ResponseResult.success();
}
diff --git a/coolstore-partner-webc/src/main/java/com/cool/store/controller/PartnerController.java b/coolstore-partner-webc/src/main/java/com/cool/store/controller/PartnerController.java
index 754d047b6..380dc995a 100644
--- a/coolstore-partner-webc/src/main/java/com/cool/store/controller/PartnerController.java
+++ b/coolstore-partner-webc/src/main/java/com/cool/store/controller/PartnerController.java
@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.*;
* @Version 1.0
*/
@RestController
-@RequestMapping({"/v1/partnerManage/{enterprise-id}/partner" })
+@RequestMapping({"/v1/partnerManage/{enterpriseId}/partner" })
@Slf4j
public class PartnerController {
@@ -28,7 +28,7 @@ public class PartnerController {
@PostMapping(path = "/applyBaseInfo")
@ApiOperation("提交基本信息")
- public ResponseResult applyBaseInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult applyBaseInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody BaseUserInfoRequest baseUserInfoRequest){
return ResponseResult.success();
@@ -37,7 +37,7 @@ public class PartnerController {
@PostMapping(path = "/changeBaseInfo")
@ApiOperation("变更基本信息")
- public ResponseResult changeBaseInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult changeBaseInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody BaseUserInfoRequest baseUserInfoRequest){
//前提 未提交加盟申请
@@ -48,7 +48,7 @@ public class PartnerController {
@GetMapping(path = "/getSubmitIntentionApplyFlag")
@ApiOperation("获取提交意向申请标识 true 已提交 false 未提交")
- public ResponseResult getSubmitIntentionApplyFlag(@PathVariable(value = "enterprise-id", required = false) String enterpriseId){
+ public ResponseResult getSubmitIntentionApplyFlag(@PathVariable(value = "enterpriseId", required = false) String enterpriseId){
return ResponseResult.success();
@@ -60,7 +60,7 @@ public class PartnerController {
@ApiImplicitParams({
@ApiImplicitParam(name = "idCard", value = "身份证号码", required = false),
})
- public ResponseResult getLineByIdCard(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult getLineByIdCard(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestParam(value = "idCard",required = false)String idCard){
@@ -74,7 +74,7 @@ public class PartnerController {
@ApiImplicitParam(name = "idCard", value = "身份证号码", required = false),
@ApiImplicitParam(name = "lineId", value = "线索ID", required = false),
})
- public ResponseResult changeBinding(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult changeBinding(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestParam(value = "idCard",required = false)String idCard,
@RequestParam(value = "lineId",required = false)Long lineId){
@@ -85,7 +85,7 @@ public class PartnerController {
@PostMapping(path = "/submitPartnerSummaryInfo")
@ApiOperation("提交加盟商汇总信息")
- public ResponseResult submitPartnerSummaryInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult submitPartnerSummaryInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody PartnerSummaryInfoRequest partnerSummaryInfo){
//前提 未提交加盟申请
@@ -97,7 +97,7 @@ public class PartnerController {
@PostMapping(path = "/changePartnerSummaryInfo")
@ApiOperation("修改加盟商汇总信息 修改意向信息 修改店员信息 修改行业认知")
- public ResponseResult changePartnerSummaryInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult changePartnerSummaryInfo(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestBody PartnerSummaryInfoRequest partnerSummaryInfo){
//前提 未提交加盟申请
@@ -112,7 +112,7 @@ public class PartnerController {
@ApiImplicitParams({
@ApiImplicitParam(name = "lineId", value = "线索ID", required = false),
})
- public ResponseResult getPartnerLineDetail(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
+ public ResponseResult getPartnerLineDetail(@PathVariable(value = "enterpriseId", required = false) String enterpriseId,
@RequestParam(value = "lineId",required = false)Long lineId){
diff --git a/pom.xml b/pom.xml
index 06633e851..484969508 100644
--- a/pom.xml
+++ b/pom.xml
@@ -151,6 +151,16 @@
guava
20.0
+
+ com.aliyun
+ ons20190214
+ 1.0.0
+
+
+ com.aliyun
+ tea-openapi
+ 0.0.19
+