package jnpf.model.cultivate.dto.teaching;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TeachingSkillUpdateDto {
    /**
     * 数据id
     */
    @NotNull(message = "id不能为空")
    private String id;

    /** 分类id */
    private String categoryId;

    /**
     * 技能点名称
     */
    @NotNull(message = "技能点名称不能为空")
    @Length(min  = 1, message = "技能点名称不能小于1个字符")
    @Length(max = 20, message = "技能点名称不能超过20个字符")
    private String name;

    /**
     * 技能点描述
     */
    private String desc;
}