package com.sonic.pigeon.domain.input;

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

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class FeedbackInput {

    @ApiModelProperty("AI的ID")
    @NotNull
    private Long aiId;

    @ApiModelProperty("消息ID")
    @NotEmpty
    private String messageId;

    @ApiModelProperty("文本内容")
    @Length(max = 500)
    @NotEmpty
    private String content;

    @ApiModelProperty("操作类型：空或0 无操作、1 赞、2 踩")
    @NotNull
    private Integer optType;

}
