package com.fuint.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 任务中心实体
 *
 * Created by Codex
 */
@Data
public class TaskDto implements Serializable {

    @ApiModelProperty("自增ID")
    private Integer id;

    @ApiModelProperty("所属商户ID")
    private Integer merchantId;

    @ApiModelProperty("所属店铺ID")
    private Integer storeId;

    @ApiModelProperty("任务编码")
    private String taskCode;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("任务类型")
    private String taskType;

    @ApiModelProperty("任务描述")
    private String taskDesc;

    @ApiModelProperty("任务跳转链接")
    private String jumpUrl;

    @ApiModelProperty("奖励积分")
    private Integer rewardPoint;

    @ApiModelProperty("奖励余额")
    private BigDecimal rewardBalance;

    @ApiModelProperty("银币阈值（订单使用银币数量）")
    private Integer pointThreshold;

    @ApiModelProperty("余额阈值（订单使用余额金额）")
    private BigDecimal balanceThreshold;

    @ApiModelProperty("指定商品ID，多个逗号分隔，空表示全部商品")
    private String targetGoodsIds;

    @ApiModelProperty("完成阈值（订单金额/点赞数）")
    private BigDecimal completeThreshold;

    @ApiModelProperty("每日可领取次数")
    private Integer dailyLimit;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("最后操作人")
    private String operator;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("状态，A正常；D删除")
    private String status;
}
