package com.yongqi.xinrenli.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠卷业务对象 db_coupon
 *
 * @author zyf
 * @date 2023-03-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DbCouponBo extends BaseEntity {

    /**
     * 自增id
     */
    @NotNull(message = "自增id不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 券类型
     */
    @NotBlank(message = "券类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String couponType;

    /**
     * 优惠内容
     */
    @NotBlank(message = "优惠内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String fullSubtraction;

    /**
     * 使用门槛：最低消费
     */
    @NotNull(message = "使用门槛：最低消费不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal minUsed;

    /**
     * 生效时间
     */
    @NotNull(message = "生效时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date effectiveTime;

    /**
     * 失效时间
     */
    @NotNull(message = "失效时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date failureTime;

    /**
     * 创建人
     */
    @NotBlank(message = "创建人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String createUser;

    /**
     * 修改人
     */
    @NotBlank(message = "修改人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String modifyUser;

    /**
     * 修改时间
     */
    @NotNull(message = "修改时间不能为空", groups = {AddGroup.class, EditGroup.class})
    private Date modifyTime;

    /**
     * 删除状态
     */
    @NotNull(message = "删除状态不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer deleteStatus;


}
