|
|
@@ -1,29 +1,31 @@
|
|
|
-package me.zhengjie.appapi.controller;
|
|
|
+package me.zhengjie.controller.bank;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import me.zhengjie.annotation.rest.AnonymousGetMapping;
|
|
|
import me.zhengjie.annotation.rest.AnonymousPostMapping;
|
|
|
import me.zhengjie.appapi.config.TencentHumanFaceVerify;
|
|
|
import me.zhengjie.appapi.dto.FileInfoDto;
|
|
|
import me.zhengjie.appapi.dto.OrderDetailDto;
|
|
|
import me.zhengjie.appapi.dto.OrderDto;
|
|
|
-import me.zhengjie.appapi.entity.*;
|
|
|
+import me.zhengjie.appapi.entity.OrderEntity;
|
|
|
+import me.zhengjie.appapi.entity.SysUserEntity;
|
|
|
import me.zhengjie.appapi.entity.response.BaseResponse;
|
|
|
import me.zhengjie.appapi.service.*;
|
|
|
import me.zhengjie.appapi.tencent.h5face.SdkTest;
|
|
|
-import me.zhengjie.appapi.util.*;
|
|
|
-import me.zhengjie.appapi.util.StatusEnum.StepStatusEnum;
|
|
|
+import me.zhengjie.base.util.DateUtils;
|
|
|
+import me.zhengjie.base.util.FileUploadUtil;
|
|
|
+import me.zhengjie.base.util.StatusEnum.StepStatusEnum;
|
|
|
import me.zhengjie.appapi.vo.*;
|
|
|
import me.zhengjie.base.ResponseDTO;
|
|
|
import me.zhengjie.base.ResultCode;
|
|
|
+import me.zhengjie.base.BaseController;
|
|
|
import me.zhengjie.dao.OrderFileRepository;
|
|
|
import me.zhengjie.dao.entity.OrderFileEntity;
|
|
|
import me.zhengjie.modules.security.security.TokenProvider;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@@ -31,7 +33,10 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
-import java.util.*;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 银行端的登录接口
|
|
|
@@ -43,28 +48,18 @@ import java.util.*;
|
|
|
@RestController
|
|
|
@RequestMapping("/app/bank")
|
|
|
@Slf4j
|
|
|
-public class ApiBankController extends BaseController {
|
|
|
- @Autowired
|
|
|
- ApiBankService apiBankService;
|
|
|
- @Autowired
|
|
|
- FileInfoService fileInfoService;
|
|
|
- @Autowired
|
|
|
- BorrowerService borrowerService;
|
|
|
- @Autowired
|
|
|
- MortgageService mortgageService;
|
|
|
- @Autowired
|
|
|
- GuaranteeService guaranteeService;
|
|
|
- @Autowired
|
|
|
- TokenProvider tokenProvider;
|
|
|
- @Autowired
|
|
|
- OrderService orderService;
|
|
|
- @Autowired
|
|
|
- OrderFileRepository orderFileRepository;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- TencentHumanFaceVerify faceVerify;
|
|
|
- @Autowired
|
|
|
- UserAXQInfoService userAXQInfoService;
|
|
|
+@RequiredArgsConstructor
|
|
|
+public class AppBankController extends BaseController {
|
|
|
+ private final ApiBankService apiBankService;
|
|
|
+ private final FileInfoService fileInfoService;
|
|
|
+ private final BorrowerService borrowerService;
|
|
|
+ private final MortgageService mortgageService;
|
|
|
+ private final GuaranteeService guaranteeService;
|
|
|
+ private final TokenProvider tokenProvider;
|
|
|
+ private final OrderService orderService;
|
|
|
+ private final OrderFileRepository orderFileRepository;
|
|
|
+ private final TencentHumanFaceVerify faceVerify;
|
|
|
+ private final UserAXQInfoService userAXQInfoService;
|
|
|
/**
|
|
|
* 登录接口
|
|
|
*
|