package jnpf.model.personnels.req.field;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class SaveRegistrationFormFieldOptionReq {

    /**
     * 主键ID
     */
    private String id;

    /**
     * 字段名称
     */
    @NotBlank(message = "选项名称不能为空")
    @Length(max = 20, message = "选项名称不能超过20字")
    private String name;
}
