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_course_evaluate
 *
 * @author ruoyi
 * @date 2024-09-14
 */
@Getter
@Setter
@ToString
public class CourseEvaluateDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 提交评价 */
    public interface submitEvaluation{}


    /** 课程评价主键ID */
    private Long courseEvaluateId;

    /** 课程ID */
    @NotNull(message = "缺少课程ID", groups = {submitEvaluation.class})
    private Long courseId;

    /** 评价星级 */
    @NotNull(message = "缺少评价星级", groups = {submitEvaluation.class})
    private Integer evaluateStar;

    /** 评价内容 */
    private String evaluateContent;

}
