package com.softwarebr.nunu.json.api.go;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author ljr
 * @date 2020/2/27 11:49
 * @description:
 */
@Data
@ApiModel
public class ApplyPolicyParam {

    @ApiModelProperty(value = "政策需求详情(text) ", required = true, example = "")
    @NotEmpty(message = "请填写政策需求详情")
    private String content;

    @ApiModelProperty(value = "联系人", required = true, example = "")
    @NotEmpty(message = "请填写联系人信息")
    private String contact;

    @ApiModelProperty(value = "手机号码", required = true, example = "")
    @Length(min = 11, max = 11, message = "手机号码填写错误")
    private String contactPhone;

    @ApiModelProperty(value = "电子邮箱", required = true, example = "")
    @NotEmpty(message = "请填写电子邮箱")
    private String email;
}
