package com.ruoyi.hezhi.domain.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户参与对象 tb_member_join
 *
 * @author ruoyi
 * @date 2024-11-15
 */
@Getter
@Setter
@ToString
public class MemberJoinDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 立即参加 */
    public interface joinNow{}

    /** 用户参与主键ID */
    private Long memberJoinId;

    /** 用户ID */
    @NotNull(message = "请先登录", groups = {joinNow.class})
    private Long memberUserId;

    /** 相关资源ID */
    @NotNull(message = "缺少相关资源ID", groups = {joinNow.class})
    private Long resId;

    /** 资源类型（0-无，1-专业，2-课程） */
    @NotNull(message = "缺少资源类型", groups = {joinNow.class})
    private Integer type;

}
