|
@@ -1,25 +1,27 @@
|
|
|
package com.miaxis.app.controller.gzpt;
|
|
|
|
|
|
|
|
|
+import com.miaxis.common.annotation.Log;
|
|
|
import com.miaxis.common.constant.Constants;
|
|
|
import com.miaxis.common.core.controller.BaseController;
|
|
|
import com.miaxis.common.core.domain.Response;
|
|
|
+import com.miaxis.common.enums.BusinessTypeEnum;
|
|
|
import com.miaxis.newgzpt.domain.GzptVideoVip;
|
|
|
import com.miaxis.newgzpt.dto.GzptVideoVipDTO;
|
|
|
import com.miaxis.newgzpt.service.IGzptVideoVipService;
|
|
|
import com.miaxis.newgzpt.vo.GzptVideoVipVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
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.Arrays;
|
|
|
import java.util.Base64;
|
|
|
import java.util.Date;
|
|
|
|
|
@@ -71,6 +73,24 @@ public class GzptVideoVipController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除会员信息
|
|
|
+ */
|
|
|
+ @Log(title = "删除会员信息", businessType = BusinessTypeEnum.DELETE)
|
|
|
+ @DeleteMapping("/{userId}")
|
|
|
+ @ApiOperation("删除会员信息")
|
|
|
+ public Response<Integer> remove(
|
|
|
+ @ApiParam(name = "userId", value = "gzpt用户id", required = true)
|
|
|
+ @PathVariable Long userId
|
|
|
+ ) {
|
|
|
+ return Response.success(gzptVideoVipService.removeByUserId(userId));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
private String getSign(Long userId, Date subject2, Date subject3) throws Exception {
|
|
|
String str = userId+"";
|
|
|
// System.out.println(userId);
|