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 com.ruoyi.common.core.domain.BaseEntity;

/**
 * 邀请业务对象 db_Inviter
 *
 * @author zyf
 * @date 2023-03-09
 */

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

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

    /**
     * 邀请人id
     */
    @NotNull(message = "邀请人id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long inviterId;

    /**
     * 邀请人名称
     */
    @NotBlank(message = "邀请人名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String inviterName;

    /**
     * 被邀请人id
     */
    @NotNull(message = "被邀请人id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long inviteeId;

    /**
     * 被邀请人名称
     */
    @NotBlank(message = "被邀请人名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String inviteeName;

    /**
     * 状态：是否已计入折扣
     */
    @NotNull(message = "状态：是否已计入折扣不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer status;


}
