init
This commit is contained in:
@@ -34,8 +34,8 @@ public class AuthOrderAppController {
|
||||
private CardAuthRecordService cardAuthRecordService;
|
||||
|
||||
@PostMapping("/order/create")
|
||||
@Operation(summary = "生成VIP订单")
|
||||
@Log(title = "生成VIP订单", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||
@Operation(summary = "生成实名认证订单")
|
||||
@Log(title = "生成实名认证订单", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||
public R<OrderCreateVo> createAuthOrder(){
|
||||
Long userId = LoginHelper.getUserId();
|
||||
AuthOrder authOrder = authOrderService.createVipOrder(userId);
|
||||
@@ -63,6 +63,7 @@ public class AuthOrderAppController {
|
||||
*/
|
||||
@Operation(summary = "实名核身鉴权")
|
||||
@GetMapping(value = "/detectAuth")
|
||||
@Log(title = "实名核身鉴权", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||
public R<CreateAuthResp> detectAuth(String orderNo,String redirectUrl) {
|
||||
CreateAuthResp authRecord = cardAuthRecordService.createAuthRecord(orderNo, redirectUrl);
|
||||
return R.ok(authRecord);
|
||||
@@ -76,6 +77,7 @@ public class AuthOrderAppController {
|
||||
*/
|
||||
@Operation(summary = "获取实名核身结果信息")
|
||||
@GetMapping(value = "/getDetectInfo")
|
||||
@Log(title = "获取实名核身结果信息", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||
public R<CommitAuthRecordResp> getDetectInfo(@RequestParam String bizToken) {
|
||||
CommitAuthRecordResp commitAuthRecordResp = cardAuthRecordService.commitAuthRecord(bizToken);
|
||||
return R.ok(commitAuthRecordResp);
|
||||
|
||||
Reference in New Issue
Block a user