feat:mini

This commit is contained in:
苏竹红
2025-04-11 16:11:52 +08:00
parent 74571cbd18
commit 42d81b1043
8 changed files with 179 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ package com.cool.store.controller.webb;
import com.alibaba.fastjson.JSONObject;
import com.cool.store.constants.CommonConstants;
import com.cool.store.dao.*;
import com.cool.store.dto.GetAccessTokenDTO;
import com.cool.store.dto.ModifyPasswordDTO;
import com.cool.store.entity.*;
import com.cool.store.enums.DownSystemTypeEnum;
@@ -11,6 +12,7 @@ import com.cool.store.enums.QWMessageEnum;
import com.cool.store.enums.SMSMsgEnum;
import com.cool.store.job.XxlJobHandler;
import com.cool.store.mq.util.HttpRestTemplateService;
import com.cool.store.request.GetPasswordDTO;
import com.cool.store.request.bigdata.ProfitDataRequest;
import com.cool.store.request.huoma.ShopBasicInfoRequest;
import com.cool.store.request.oppty.*;
@@ -32,6 +34,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -262,9 +265,22 @@ public class PCTestController {
@Resource
ShopAccountService accountService;
@Resource
PushService pushService;
@Resource
ThirdXinGuanJiaService thirdXinGuanJiaService;
@ApiOperation("修改密码")
@GetMapping("/modifyPassword")
public ResponseResult<Boolean> modifyPassword(@RequestBody ModifyPasswordDTO request) {
return ResponseResult.success(accountService.modifyPassword(request));
}
@ApiOperation("获取POS免登token")
@PostMapping("/getPosToken")
public ResponseResult<String> getPosToken(@RequestBody @Validated GetAccessTokenDTO dto) {
return ResponseResult.success(pushService.getPosToken(dto));
}
}

View File

@@ -3,9 +3,11 @@ package com.cool.store.controller.webc;
import com.cool.store.dto.GetAccessTokenDTO;
import com.cool.store.dto.ModifyPasswordDTO;
import com.cool.store.dto.ShopAccount.ShopAccountDTO;
import com.cool.store.request.GetPasswordDTO;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.PushService;
import com.cool.store.service.ShopAccountService;
import com.cool.store.service.ThirdXinGuanJiaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
@@ -31,6 +33,9 @@ public class MiniShopAccountController {
@Resource
PushService pushService;
@Resource
ThirdXinGuanJiaService thirdXinGuanJiaService;
@ApiOperation("根据门店shopId查询平台账号")
@GetMapping("/getShopAccountByShopId")
@@ -63,5 +68,10 @@ public class MiniShopAccountController {
return ResponseResult.success(pushService.getXzgToken(dto));
}
@ApiOperation("获取加密子串")
@PostMapping("/getEncryptedSubstring")
public ResponseResult<String> getEncryptedSubstring(@RequestBody GetPasswordDTO dto) {
return ResponseResult.success(thirdXinGuanJiaService.getPassword(dto));
}
}

View File

@@ -31,12 +31,19 @@ rocketmq.nameSrvAdder=http://MQ_INST_1947409023213164_BX5N7rwl.cn-hangzhou.mq-in
rocketmq.topic=simple_message
#oss配置
oss.host=https://oss-store.coolcollege.cn/
oss.accessKeyId=LTAI5tS2khSZfYrTL5cerHbY
oss.accessKeySecret=YChLLev5KRZmgHCAkU7odkhGWk1aif
oss.endpoint=oss-cn-hangzhou.aliyuncs.com
oss.bucket=coolstore-storage
oss.file.dir=eid/9ee7b8b48e2447f9a2075b5a46e94d08/
#oss.host=https://oss-store.coolcollege.cn/
#oss.accessKeyId=LTAI5tS2khSZfYrTL5cerHbY
#oss.accessKeySecret=YChLLev5KRZmgHCAkU7odkhGWk1aif
#oss.endpoint=oss-cn-hangzhou.aliyuncs.com
#oss.bucket=coolstore-storage
#oss.file.dir=eid/9ee7b8b48e2447f9a2075b5a46e94d08/
oss.accessKeyId=LTAI5tGBwmXwZkMuHK4MudMJ
oss.accessKeySecret=bnZoUMRQ9834STgz5E291YrqlBu6yn
oss.bucket=store-ossfile
oss.file.dir=eid/${mybatis.configuration.variables.enterpriseId}
oss.endpoint=https://oss-cn-hangzhou-internal.aliyuncs.com
oss.host=https://oss-cool.coolstore.cn/
#cdn地址
@@ -88,5 +95,5 @@ api.auth.username=GkqgAhUJ7p9swJo
api.auth.secret=NzVrnS3OWiupdDY
xgj.api.auth.url=https://masterdata.zhengxinfood.com/dmp/one-id/
xgj.api.auth.username=2677a58dd9e24fc6b20e835ef5f19e63
xgj.api.auth.secret=3fe724f9607448728ee3393eff75718a
xgj.api.auth.username=6446346061e043e392dd53c9c8d1af0b
xgj.api.auth.secret=3ba6e4c5632547b8b2b3acefe08667bb

View File

@@ -32,13 +32,19 @@ rocketmq.nameSrvAdder=http://MQ_INST_1947409023213164_BX3sLZnA.cn-hangzhou.mq.al
rocketmq.topic=simple_message
#oss配置
oss.host=https://oss-store.coolcollege.cn/
oss.accessKeyId=LTAI5t6Zk3Y3vyrMXC87jGYB
oss.accessKeySecret=6Gw06jtW5xNKWqbhnt1KmVZx1z9Dev
oss.endpoint=oss-cn-hangzhou.aliyuncs.com
oss.bucket=cool-store-hsay
oss.file.dir=partner/171cddee76471740/
#oss.host=https://oss-store.coolcollege.cn/
#oss.accessKeyId=LTAI5t6Zk3Y3vyrMXC87jGYB
#oss.accessKeySecret=6Gw06jtW5xNKWqbhnt1KmVZx1z9Dev
#oss.endpoint=oss-cn-hangzhou.aliyuncs.com
#oss.bucket=cool-store-hsay
#oss.file.dir=partner/171cddee76471740/
oss.excelFile.dir=lineExcel/
oss.accessKeyId=LTAI5tGBwmXwZkMuHK4MudMJ
oss.accessKeySecret=bnZoUMRQ9834STgz5E291YrqlBu6yn
oss.bucket=store-ossfile
oss.file.dir=eid/${mybatis.configuration.variables.enterpriseId}
oss.endpoint=https://oss-cn-hangzhou-internal.aliyuncs.com
oss.host=https://oss-cool.coolstore.cn/
#cdn地址