package com.yuchen.saas.payment.api.dto.invoice;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Author 蔡文强
 * @Date 2023/9/13 15:56
 * @Description 开票FAQ DTO
 */
@Data
@ApiModel(value = "SaasInvoiceFaqDTO对象", description = "开票FAQ DTO")
public class SaasInvoiceFaqDTO {
    /**
     * 主键ID
     */
    @ApiModelProperty(name = "id", value = "主键ID")
    private Long id;
    /**
     * 问(Q)
     */
    @ApiModelProperty(name = "question", value = "问(Q)")
    @NotBlank(message = "问(Q)不能为空")
    @Size(max = 1000, message = "问(Q)不能超过1000字符")
    private String question;
    /**
     * 答(A)
     */
    @ApiModelProperty(name = "answer", value = "答(A)")
    @NotBlank(message = "答(A)不能为空")
    @Size(max = 1000, message = "答(A)不能超出1000字符")
    private String answer;

    /**
     * 应用ID
     */
    @ApiModelProperty(name = "appId", value = "应用ID")
    @NotBlank(message = "应用ID不能为空")
    private String appId;
}
