签署意向协议
This commit is contained in:
@@ -46,11 +46,20 @@ public class SignValidateFilter implements Filter {
|
||||
private static AntPathMatcher matcher = new AntPathMatcher();
|
||||
|
||||
private static List<String> patternList =
|
||||
Lists.newArrayList("/web/check/ok","/check/ok",
|
||||
"/xfsg/doc.html","/xfsg/favicon.ico","/xfsg/v2/api-docs","/**/test/**",
|
||||
Lists.newArrayList(
|
||||
"/web/check/ok",
|
||||
"/check/ok",
|
||||
"/xfsg/doc.html",
|
||||
"/xfsg/favicon.ico",
|
||||
"/xfsg/v2/api-docs","/**/test/**",
|
||||
"/xfsg/mini/program/oss/getUploadFileConfig",
|
||||
"/xfsg/mini/program/v1/partnerManage/partner/getIdentityCardInfo",
|
||||
"/**/swagger*/**", "/**/webjars/**","/xfsg/mini/program/v1/partnerManage/openArea/areaApplyQuery");
|
||||
"/**/swagger*/**",
|
||||
"/**/webjars/**",
|
||||
"/xfsg/mini/program/v1/partnerManage/openArea/areaApplyQuery",
|
||||
"/xfsg/mini/**"
|
||||
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.cool.store.controller.webc;
|
||||
|
||||
import com.cool.store.request.IntentAgreementSubmitRequest;
|
||||
import com.cool.store.request.JoinIntentionRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.IntentAgreementService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RestController
|
||||
@RequestMapping({"/mini/IntentAgreement"})
|
||||
@Slf4j
|
||||
@Api(tags = "小程序意向协议")
|
||||
public class MiniIntentAgreementController {
|
||||
|
||||
@Resource
|
||||
IntentAgreementService intentAgreementService;
|
||||
|
||||
@PostMapping(path = "/submit")
|
||||
@ApiOperation("签署意向协议")
|
||||
public ResponseResult<Boolean> submit(@RequestBody IntentAgreementSubmitRequest request) {
|
||||
boolean resp = intentAgreementService.submit(request);
|
||||
return ResponseResult.success(resp);
|
||||
}
|
||||
}
|
||||
@@ -24,7 +24,7 @@ public class MiniJoinIntentionController {
|
||||
@Resource
|
||||
private JoinIntentionService joinIntentionService;
|
||||
|
||||
@PostMapping(path = "/getOpenAreaList")
|
||||
@PostMapping(path = "/submit")
|
||||
@ApiOperation("填写加盟意向申请书")
|
||||
public ResponseResult<Boolean> submit(@RequestBody @Valid JoinIntentionRequest request) {
|
||||
return ResponseResult.success(joinIntentionService.submit(request));
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.cool.store.controller.webc;
|
||||
|
||||
import com.cool.store.enums.ErrorCodeEnum;
|
||||
import com.cool.store.enums.IDCardSideEnum;
|
||||
import com.cool.store.exception.ServiceException;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.AliyunService;
|
||||
import com.cool.store.vo.BusinessLicenseInfoVO;
|
||||
import com.cool.store.vo.IdentityCardInfoVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* https://ocr.console.aliyun.com/overview?spm=5176.6660585.ocr_enterprisecard_public_cn-top.i1.3d657992vcDnCC
|
||||
* 目前接入了身份证识别、营业执照识别
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping({"/mini/orc"})
|
||||
@Slf4j
|
||||
@Api(tags = "文字识别OCR")
|
||||
public class OcrController {
|
||||
|
||||
@Resource
|
||||
AliyunService aliyunService;
|
||||
|
||||
@GetMapping(path = "/getIdentityCardInfo")
|
||||
@ApiOperation("根据身份证正面解析获取数据")
|
||||
public ResponseResult<IdentityCardInfoVO> getIdentityCardInfo(@RequestParam(value = "faceImageUrl")String faceImageUrl,
|
||||
@RequestParam("side") IDCardSideEnum sideEnum){
|
||||
try {
|
||||
IdentityCardInfoVO identityCardInfo = aliyunService.getIdentityCardInfo(faceImageUrl, sideEnum);
|
||||
return ResponseResult.success(identityCardInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException(ErrorCodeEnum.IDENTITY_CARD_PARSE_FAIL);
|
||||
}
|
||||
}
|
||||
|
||||
@GetMapping(path = "/getBusinessLicenseInfo")
|
||||
@ApiOperation("根据营业证照解析获取数据")
|
||||
public ResponseResult<BusinessLicenseInfoVO> getBusinessLicenseInfo(@RequestParam(value = "imageUrl")String imageUrl){
|
||||
try {
|
||||
BusinessLicenseInfoVO businessLicenseInfo = aliyunService.getBusinessLicenseInfo(imageUrl);
|
||||
return ResponseResult.success(businessLicenseInfo);
|
||||
} catch (Exception e) {
|
||||
throw new ServiceException(ErrorCodeEnum.BUSINESS_LICENSE_PARSE_FAIL);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -69,4 +69,7 @@ xxl.job.accessToken=25365115eed84e9ba5e0040abb255a09
|
||||
exhibition.channel.id=52399
|
||||
recommended.channel.id=52400
|
||||
|
||||
wx.pay.privateKeyPath=D:\\weixin\\apiclient_key.pem
|
||||
wx.pay.privateKeyPath=D:\\weixin\\apiclient_key.pem
|
||||
|
||||
aliyun.accessKeyId=LTAI5tQ6QBnWaB5LaJYz6zcD
|
||||
aliyun.accessKeySecret=spqsOgtfr54cwK861O3N3fInydTgjA
|
||||
@@ -57,4 +57,7 @@ wx.pay.privateKeyPath=/opt/apps/coolcollege/apiclient/apiclient_key.pem
|
||||
wx.pay.merchantSerialNumber=66B8E966AFE796BA06006664FCBFBC3F0E2F5A1B
|
||||
wx.pay.apiV3Key=wxpayzhenghu123JKJHkjafWXCertUt1
|
||||
wx.pay.payNotifyUrl=https://abstore-api.coolstore.cn/xfsg/mini/wechatPay/payNotify
|
||||
wx.pay.backNotifyUrl=https://abstore-api.coolstore.cn/xfsg/mini/wechatPay/refundNotify
|
||||
wx.pay.backNotifyUrl=https://abstore-api.coolstore.cn/xfsg/mini/wechatPay/refundNotify
|
||||
|
||||
aliyun.accessKeyId=LTAI5tQ6QBnWaB5LaJYz6zcD
|
||||
aliyun.accessKeySecret=spqsOgtfr54cwK861O3N3fInydTgjA
|
||||
Reference in New Issue
Block a user