package com.crm.rely.backend.model.entity.golden.question;

import com.crm.rely.backend.core.constant.Constants;
import com.crm.rely.backend.core.entity.base.BaseUpdateEntity;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

@Data
public class GoldenCommonQuestionUpdateEntity extends BaseUpdateEntity {

    /**
     * 问题
     */
    @NotNull(message = Constants.PARAMETER_ERROR)
    @NotEmpty(message = Constants.PARAMETER_ERROR)
    private String question;

    /**
     * 答案
     */
    @NotNull(message = Constants.PARAMETER_ERROR)
    @NotEmpty(message = Constants.PARAMETER_ERROR)
    private String answer;

}
