package org.dromara.work.domain.bo;

import org.dromara.work.domain.TpCourses;
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.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 课程业务对象 tp_courses
 *
 * @author Maosw
 * @date 2025-04-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpCourses.class, reverseConvertGenerate = false)
public class TpCoursesBo extends BaseEntity {

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

    /**
     * 课程名称
     */
    @NotBlank(message = "课程名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 课程类型
     */
    private Integer type;

    /**
     * 讲师ID
     */
    private Long userId;

    /**
     * 讲师姓名
     */
    private String userName;

    /**
     * 课程费用
     */
    private BigDecimal total;

    /**
     * 开课时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 开课地点
     */
    private String location;

    /**
     * 备注
     */
    private String remark;


}
