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.*;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TeachingSkillAddDto {

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

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

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