|
@@ -2,23 +2,25 @@ package com.miaxis.app.controller.exam;
|
|
|
|
|
|
import com.miaxis.common.constant.Constants;
|
|
|
import com.miaxis.common.core.controller.BaseController;
|
|
|
+import com.miaxis.common.core.domain.Response;
|
|
|
import com.miaxis.common.core.page.ResponsePageInfo;
|
|
|
import com.miaxis.common.utils.PrivateKeyUtil;
|
|
|
import com.miaxis.examvip.domain.VipUserExam;
|
|
|
import com.miaxis.examvip.service.IVipUserExamService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.security.KeyFactory;
|
|
|
import java.security.PrivateKey;
|
|
|
import java.security.Signature;
|
|
|
import java.security.spec.PKCS8EncodedKeySpec;
|
|
|
import java.util.Base64;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 【考场会员】Controller
|
|
@@ -48,6 +50,21 @@ public class VipUserExamController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 删除考场会员信息
|
|
|
+ */
|
|
|
+ @DeleteMapping("/{userId}")
|
|
|
+ @ApiOperation("删除考场会员信息")
|
|
|
+ public Response<Integer> removeByUserId(
|
|
|
+ @ApiParam(name = "userId", value = "考试会员信息userId", required = true)
|
|
|
+ @PathVariable Long userId
|
|
|
+ ) {
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ map.put("user_id", userId);
|
|
|
+ return toResponse(vipUserExamService.removeByMap(map) ? 1 : 0);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
private void doSign(List<VipUserExam> userExamList) throws Exception {
|
|
|
|
|
|
for (VipUserExam userExam : userExamList) {
|