package com.fuint.repository.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 任务中心配置
 *
 * Created by Codex
 */
@Data
@TableName("mt_task")
@ApiModel(value = "MtTask对象", description = "MtTask表对象")
public class MtTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增ID")
    @TableId(value = "ID", type = IdType.AUTO)
    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;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

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