package com.ruoyi.hezhi.domain.dto;

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

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

/**
 * 用户讨论对象 tb_member_discuss
 *
 * @author ruoyi
 * @date 2024-11-19
 */
@Getter
@Setter
@ToString
public class MemberDiscussDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 发布讨论信息 */
    public interface releaseMemberDiscuss{}

    /** 用户讨论主键ID */
    private Long memberDiscussId;

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

    /** 直播ID */
    @NotNull(message = "缺少直播ID", groups = {releaseMemberDiscuss.class})
    private Long liveBroadcastId;

    /** 课程ID */
    private Long courseId;

    /** 章节ID */
    private Long chapterId;

    /** 内容 */
    @NotBlank(message = "请填写内容", groups = {releaseMemberDiscuss.class})
    private String content;

}
