|
|
@@ -0,0 +1,82 @@
|
|
|
+package net.yyc.quartz.feign;
|
|
|
+
|
|
|
+import net.yyc.common.core.constant.SecurityConstants;
|
|
|
+import net.yyc.common.core.constant.ServiceNameConstants;
|
|
|
+import net.yyc.common.core.util.R;
|
|
|
+import org.springframework.cloud.openfeign.FeignClient;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RequestHeader;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 调度任务 Feign 服务
|
|
|
+ */
|
|
|
+@FeignClient(contextId = "remoteScheduleTaskService", value = ServiceNameConstants.UPMS_SERVICE)
|
|
|
+public interface RemoteScheduleTaskService {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 每日GMV统计
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/statistics/daily-gmvs-statistic")
|
|
|
+ R<String> dailyGMVsStatistic(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设置热门文章
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/article/set-hot-article")
|
|
|
+ R<String> setHotArticle(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 单会员多月相同金额检测
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/risk/single-member-settle-same-amount")
|
|
|
+ R<String> singleMemberSettleSameAmount(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 单会员多月超限检测
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/risk/single-member-settle-amount-overrun")
|
|
|
+ R<String> singleMemberSettleAmountOverrun(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 企业向多人支付相同金额检测
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/risk/single-enterprise-settle-same-amount")
|
|
|
+ R<String> singleEnterpriseSettleSameAmount(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 单会员多月无指定任务类型检测
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/risk/single-member-without-task-types")
|
|
|
+ R<String> singleMemberWithoutTaskTypes(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 刷新已结算积分包的任务终审积分
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/task/refresh-final-review-score")
|
|
|
+ R<String> refreshFinalReviewScoreForSettlement(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发送当日结算数据给企业邮箱
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/task/send-settle-data-to-dept")
|
|
|
+ R<String> sendCurrentDaySettleDataToDept(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发送锋信易申请数据给企业邮箱
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/promotion/send-fxy-apply")
|
|
|
+ R<String> sendFxyApply(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发送推广点击记录给企业邮箱
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/promotion/send-promotion-record")
|
|
|
+ R<String> sendPromotionRecord(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 批量更新过期积分包状态
|
|
|
+ */
|
|
|
+ @PostMapping("/schedule/task/batch-update-package-status")
|
|
|
+ R<String> batchUpdatePackageStatus(@RequestParam String params, @RequestHeader(SecurityConstants.FROM) String from);
|
|
|
+}
|