记得上下班打卡 | git大法好,push需谨慎

Commit 03fb3270 authored by 张国柄's avatar 张国柄

opt;

parent f85a555b
......@@ -17,14 +17,14 @@ import org.springframework.web.bind.annotation.PutMapping;
public interface FeignPlatformCandyTaskClient {
@PutMapping("ccoupon/task/mgt/issue/coupons")
ResponseDto<String> issueCoupons();
ResponseDto<String> mgtIssueCoupons();
@PutMapping("ccoupon/task/due/redeem")
ResponseDto<String> processForRedeem();
ResponseDto<String> dueProcessForRedeem();
@PutMapping("ccoupon/task/due/common")
ResponseDto<String> processForCommon();
ResponseDto<String> dueProcessForCommon();
@PutMapping("ccoupon/task/due/user")
ResponseDto<String> processForUser();
ResponseDto<String> dueProcessForUser();
}
......@@ -33,12 +33,48 @@ public class PlatformTaskHandler {
}
}
@XxlJob(value = "sev-platform:candyCouponMgtIssueCoupons")
public ReturnT<String> candyCouponMgtIssueCoupons() {
try {
ResponseDto<String> dto = feignPlatformCandyTaskClient.mgtIssueCoupons();
log.info("result of handler:{}", dto.toJson());
return new ReturnT<>(dto.toJson());
} catch (Exception e) {
log.error("exception of handler:{}", e.getMessage(), e);
return ReturnT.FAIL;
}
}
@XxlJob(value = "sev-platform:candyCouponIssuanceHandler")
public ReturnT<String> candyCouponIssuanceHandler() {
public ReturnT<String> candyCouponDueProcessForRedeem() {
try {
ResponseDto<String> dto = feignPlatformCandyTaskClient.issueCoupons();
ResponseDto<String> dto = feignPlatformCandyTaskClient.dueProcessForRedeem();
log.info("result of handler:{}", dto.toJson());
return ReturnT.SUCCESS;
return new ReturnT<>(dto.toJson());
} catch (Exception e) {
log.error("exception of handler:{}", e.getMessage(), e);
return ReturnT.FAIL;
}
}
@XxlJob(value = "sev-platform:candyCouponDueProcessForCommon")
public ReturnT<String> candyCouponDueProcessForCommon() {
try {
ResponseDto<String> dto = feignPlatformCandyTaskClient.dueProcessForCommon();
log.info("result of handler:{}", dto.toJson());
return new ReturnT<>(dto.toJson());
} catch (Exception e) {
log.error("exception of handler:{}", e.getMessage(), e);
return ReturnT.FAIL;
}
}
@XxlJob(value = "sev-platform:candyCouponDueProcessForUser")
public ReturnT<String> candyCouponDueProcessForUser() {
try {
ResponseDto<String> dto = feignPlatformCandyTaskClient.dueProcessForUser();
log.info("result of handler:{}", dto.toJson());
return new ReturnT<>(dto.toJson());
} catch (Exception e) {
log.error("exception of handler:{}", e.getMessage(), e);
return ReturnT.FAIL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment