feat:系统建店相关代码
refactor:鲜丰系统API回调优化
This commit is contained in:
@@ -3,6 +3,7 @@ package com.cool.store.controller.webb;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.cool.store.enums.ErrorCodeEnum;
|
||||
import com.cool.store.request.AuditResultRequest;
|
||||
import com.cool.store.request.SysBuildResultRequest;
|
||||
import com.cool.store.request.XfsgOpenApiRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.KdzApiService;
|
||||
@@ -25,7 +26,7 @@ public class KdzApiController {
|
||||
@Resource
|
||||
KdzApiService kdzApiService;
|
||||
|
||||
@ApiOperation("意向加盟合同审核结果")
|
||||
@ApiOperation("审核结果")
|
||||
@PostMapping("/audit/result")
|
||||
public ResponseResult<Boolean> auditResult(@PathVariable(value = "enterprise-id") String eid,
|
||||
@RequestBody XfsgOpenApiRequest request) {
|
||||
@@ -41,6 +42,8 @@ public class KdzApiController {
|
||||
return ResponseResult.success(kdzApiService.auditResult(auditResultRequest));
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static boolean verifyMD5(XfsgOpenApiRequest request, String eid){
|
||||
//签名
|
||||
StringBuffer sb = new StringBuffer();
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
|
||||
import com.cool.store.request.SysStoreAppRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.SysStoreAppService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/pc/sysStore")
|
||||
@Api(tags = "系统建店")
|
||||
@Slf4j
|
||||
public class SysStoreAppController {
|
||||
|
||||
@Resource
|
||||
private SysStoreAppService sysStoreAppService;
|
||||
|
||||
@PostMapping(path = "/submit")
|
||||
@ApiOperation("提交(更新) 系统建店申请")
|
||||
public ResponseResult submitSysBuildStore(@RequestBody SysStoreAppRequest request) {
|
||||
return sysStoreAppService.submitSysBuildStore(request);
|
||||
}
|
||||
|
||||
@GetMapping(path = "/default/get")
|
||||
@ApiOperation("获取系统建店默认值")
|
||||
public ResponseResult getDefaultValueSysBuildStore(@RequestParam("lineId") Long lineId,
|
||||
@RequestParam("shopId") Long shopId) {
|
||||
return ResponseResult.success(sysStoreAppService.getDefaultValueSysBuildStore(lineId,shopId));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.cool.store.controller.webc;
|
||||
|
||||
import com.cool.store.entity.BankdocDO;
|
||||
import com.cool.store.request.BranchBankPageRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
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;
|
||||
|
||||
/**
|
||||
* 证照办理
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/mini/license")
|
||||
@Api(tags = "证照办理")
|
||||
@Slf4j
|
||||
public class ApplyLicenseController {
|
||||
|
||||
|
||||
@ApiOperation("证照办理提交")
|
||||
@PostMapping("/submit")
|
||||
public ResponseResult submitLicense() {
|
||||
return ResponseResult.success();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user