package com.cyksj.model.views;

import com.cyksj.model.entity.TaskFollowPlatVerify;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/*
 *项目名: netflix
 *文件名: TaskFollowVerifyView
 *创建者: JavaZou
 *创建时间:2023/1/6 14:21
 */
@Getter
@Setter
@SearchBean(tables = "task_follow_plat_verify tv left join task_user_complete_record t on t.task_id = tv.task_id and t.user_id = tv.user_id" +
		" left join user u on u.id = tv.user_id")
public class TaskFollowVerifyView {
	@DbField("tv.id")
	private Long id;

	@DbField("u.id")
	private Long userId;

	@DbField("tv.task_id")
	private Long taskId;

	@DbField("u.nickname")
	private String nickname;

	@DbField("tv.plat_nickname")
	private String platNickname;

	@DbField("tv.img")
	private String img;

	@DbField("tv.link")
	private String link;

	@DbField("t.points")
	private Integer points;

	@DbField("t.balance")
	private BigDecimal balance;

	@DbField("tv.status")
	private TaskFollowPlatVerify.Status status;

	@DbField("tv.error_reason")
	private String errorReason;

	@DbField("tv.created_time")
	private Date createdTime;

	@DbField("tv.verify_time")
	private Date verifyTime;
}
