|
@@ -26,13 +26,11 @@ import com.cyksj.model.request.OrderPayRequest;
|
|
|
import com.cyksj.model.request.TicketLoginReq;
|
|
import com.cyksj.model.request.TicketLoginReq;
|
|
|
import com.cyksj.model.views.*;
|
|
import com.cyksj.model.views.*;
|
|
|
import com.cyksj.redis.RedisService;
|
|
import com.cyksj.redis.RedisService;
|
|
|
-import com.cyksj.service.chatgpt.ChatGptAuthService;
|
|
|
|
|
-import com.cyksj.service.mange.coupon.CouponCommonService;
|
|
|
|
|
import com.cyksj.service.mange.ticket.TicketAdvertiseConfigClickRecordService;
|
|
import com.cyksj.service.mange.ticket.TicketAdvertiseConfigClickRecordService;
|
|
|
import com.cyksj.service.order.OrderDonService;
|
|
import com.cyksj.service.order.OrderDonService;
|
|
|
import com.cyksj.service.relation.GroupRelationFrontService;
|
|
import com.cyksj.service.relation.GroupRelationFrontService;
|
|
|
|
|
+import com.cyksj.service.relation.GroupsRelationNetflixService;
|
|
|
import com.cyksj.service.user.UserBindRelationService;
|
|
import com.cyksj.service.user.UserBindRelationService;
|
|
|
-import com.cyksj.service.user.UserService;
|
|
|
|
|
import com.cyksj.web.util.StpUserUtil;
|
|
import com.cyksj.web.util.StpUserUtil;
|
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
|
import com.ejlchina.searcher.SearchResult;
|
|
import com.ejlchina.searcher.SearchResult;
|
|
@@ -64,12 +62,8 @@ public class GroupRelationController {
|
|
|
|
|
|
|
|
private final GroupRelationFrontService groupRelationFrontService;
|
|
private final GroupRelationFrontService groupRelationFrontService;
|
|
|
|
|
|
|
|
- private final UserService userService;
|
|
|
|
|
-
|
|
|
|
|
private final UserBindRelationService userBindRelationService;
|
|
private final UserBindRelationService userBindRelationService;
|
|
|
|
|
|
|
|
- private final ChatGptPwdViewRecordMapper chatGptPwdViewRecordMapper;
|
|
|
|
|
-
|
|
|
|
|
private final HttpServletRequest request;
|
|
private final HttpServletRequest request;
|
|
|
|
|
|
|
|
private final AccountDoubleVerifyRecordMapper accountDoubleVerifyRecordMapper;
|
|
private final AccountDoubleVerifyRecordMapper accountDoubleVerifyRecordMapper;
|
|
@@ -78,17 +72,13 @@ public class GroupRelationController {
|
|
|
|
|
|
|
|
private final RedisService redisService;
|
|
private final RedisService redisService;
|
|
|
|
|
|
|
|
- private final UserFuncPropertyMapper userFuncPropertyMapper;
|
|
|
|
|
-
|
|
|
|
|
private final DoubleVerifyClickRefreshRecordMapper refreshRecordMapper;
|
|
private final DoubleVerifyClickRefreshRecordMapper refreshRecordMapper;
|
|
|
|
|
|
|
|
- private final CouponCommonService couponCommonService;
|
|
|
|
|
-
|
|
|
|
|
private final TicketAdvertiseConfigClickRecordService ticketAdvertiseConfigClickRecordService;
|
|
private final TicketAdvertiseConfigClickRecordService ticketAdvertiseConfigClickRecordService;
|
|
|
|
|
|
|
|
private final GlobalThreadPoolTaskExecutor THREAD_POOL;
|
|
private final GlobalThreadPoolTaskExecutor THREAD_POOL;
|
|
|
|
|
|
|
|
- private final ChatGptAuthService chatGptAuthService;
|
|
|
|
|
|
|
+ private final GroupsRelationNetflixService groupsRelationNetflixService;
|
|
|
|
|
|
|
|
private final TicketPwdViewRecordMapper ticketPwdViewRecordMapper;
|
|
private final TicketPwdViewRecordMapper ticketPwdViewRecordMapper;
|
|
|
|
|
|
|
@@ -441,4 +431,22 @@ public class GroupRelationController {
|
|
|
loginReq.setUserId(userId);
|
|
loginReq.setUserId(userId);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(groupRelationFrontService.getAiVerifyCode(loginReq));
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(groupRelationFrontService.getAiVerifyCode(loginReq));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 设置pin码
|
|
|
|
|
+ */
|
|
|
|
|
+ @PutMapping("/set/pin/{relationId}")
|
|
|
|
|
+ public Result<String> setPin(@PathVariable Long relationId, String code) {
|
|
|
|
|
+ long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
|
|
+ JSONObject data = groupsRelationNetflixService.setNetflixPin(relationId, userId, code);
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(data.toString());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 查询是否设置成功
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/get/pin/status/{taskId}")
|
|
|
|
|
+ public Result<Integer> getPinStatus(@PathVariable String taskId) throws Exception {
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(groupsRelationNetflixService.getPinStatus(taskId));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|