11 changed files with 255 additions and 97 deletions
@ -0,0 +1,47 @@ |
|||||
|
package com.bnyer.img.dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Getter; |
||||
|
import lombok.Setter; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
@Getter |
||||
|
@Setter |
||||
|
@ApiModel("艺术家新增邀请收益接收类") |
||||
|
public class CreatorProfitInviteInsertDto implements Serializable { |
||||
|
|
||||
|
@NotNull(message = "艺术家id不能为空!") |
||||
|
@ApiModelProperty(value="艺术家id") |
||||
|
private Long creatorId; |
||||
|
|
||||
|
@NotBlank(message = "被邀请人搜索码不能为空!") |
||||
|
@ApiModelProperty(value="被邀请人搜索码") |
||||
|
private String scanCode; |
||||
|
|
||||
|
@NotBlank(message = "图片地址不能为空!") |
||||
|
@ApiModelProperty(value="图片地址") |
||||
|
private String headUrl; |
||||
|
|
||||
|
@NotBlank(message = "应用类型不能为空!") |
||||
|
@ApiModelProperty(value="应用类型(0->bnyer壁纸)") |
||||
|
private String appType; |
||||
|
|
||||
|
@NotBlank(message = "收益类型不能为空!") |
||||
|
@ApiModelProperty(value="收益类型(0->广告浏览;1->邀请;2->会员)") |
||||
|
private String type; |
||||
|
|
||||
|
@NotBlank(message = "收益状态不能为空!") |
||||
|
@ApiModelProperty(value="收益状态(0->即将到账;1->已到账;2->转入钱包)") |
||||
|
private String status; |
||||
|
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@ApiModelProperty(value="创建时间") |
||||
|
private Date createTime; |
||||
|
} |
||||
@ -1,28 +0,0 @@ |
|||||
package com.bnyer.img.task; |
|
||||
|
|
||||
import com.bnyer.img.service.TiktokImgService; |
|
||||
import com.xxl.job.core.biz.model.ReturnT; |
|
||||
import com.xxl.job.core.handler.annotation.XxlJob; |
|
||||
import com.xxl.job.core.log.XxlJobLogger; |
|
||||
import lombok.extern.slf4j.Slf4j; |
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
|
||||
import org.springframework.stereotype.Component; |
|
||||
|
|
||||
/** |
|
||||
* @author chengkun |
|
||||
* @date 2022/5/12 18:13 |
|
||||
*/ |
|
||||
@Component |
|
||||
@Slf4j |
|
||||
public class DownloadSyncTask { |
|
||||
|
|
||||
@Autowired |
|
||||
private TiktokImgService tiktokImgService; |
|
||||
|
|
||||
@XxlJob("downloadSyncTask") |
|
||||
public ReturnT<String> syncDownload(String param) throws Exception { |
|
||||
tiktokImgService.insertDownloadNum(); |
|
||||
XxlJobLogger.log("{} 我执行了同步图片下载数量任务", System.currentTimeMillis()); |
|
||||
return ReturnT.SUCCESS; |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,41 @@ |
|||||
|
package com.bnyer.img.vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Getter; |
||||
|
import lombok.Setter; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
@Getter |
||||
|
@Setter |
||||
|
@ApiModel("艺术家即将入账邀请收益响应体") |
||||
|
public class CreatorPreInviteProfitVo implements Serializable { |
||||
|
|
||||
|
@ApiModelProperty(value="艺术家id") |
||||
|
private Long creatorId; |
||||
|
|
||||
|
@ApiModelProperty(value="收益人/邀请人搜索码") |
||||
|
private String scanCode; |
||||
|
|
||||
|
@ApiModelProperty(value="图片地址") |
||||
|
private String headUrl; |
||||
|
|
||||
|
@ApiModelProperty(value="应用类型(0->bnyer壁纸)") |
||||
|
private String appType; |
||||
|
|
||||
|
@ApiModelProperty(value="收益类型(0->广告浏览;1->邀请;2->会员)") |
||||
|
private String type; |
||||
|
|
||||
|
@ApiModelProperty(value="收益状态(0->即将到账;1->已到账;2->转入钱包)") |
||||
|
private String status; |
||||
|
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@ApiModelProperty(value="创建时间") |
||||
|
private Date createTime; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
} |
||||
Loading…
Reference in new issue