package org.dromara.zhishu.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.zhishu.domain.TInviteRelations;

/**
 * 【请填写功能名称】业务对象 t_invite_relations
 *
 * @author Lion Li
 * @date 2025-12-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TInviteRelations.class, reverseConvertGenerate = false)
public class TInviteRelationsBo extends BaseEntity {

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

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

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

    /**
     * 使用的邀请码
     */
    @NotBlank(message = "使用的邀请码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inviteCode;

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


}
