package com.xinelu.manage.dto.trainingorder;

import com.xinelu.common.custominterface.Insert;
import lombok.Data;

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

/**
 * @author ljh
 * @version 1.0
 * Create by 2023/4/21 14:38
 */
@Data
public class NurseAppletPersonTrainingItemOrderDTO implements Serializable {
    private static final long serialVersionUID = 3880260231562214744L;
    /**
     * 培训项目表id
     */
    @NotNull(message = "学习课程信息不存在，无法购买！", groups = {Insert.class})
    private Long trainingItemId;

    /**
     * 培训项目表父id
     */
    private Long trainingParentId;

    /**
     * 护理站id
     */
    @NotNull(message = "所属护理站信息不存在，无法购买！", groups = {Insert.class})
    private Long nurseStationId;

    /**
     * 护理员表id
     */
    @NotNull(message = "护理员人员信息不存在，无法够买！", groups = {Insert.class})
    private Long nurseStationPersonId;

    /**
     * 订单金额
     */
    @NotNull(message = "订单金额错误，无法购买！", groups = {Insert.class})
    private BigDecimal trainingOrderAmount;

    /**
     * 护理员名称
     */
    @NotBlank(message = "护理员姓名不存在，无法购买！", groups = {Insert.class})
    private String nursePersonName;
}