package cn.reghao.tnb.content.api.dto.geo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author reghao
 * @date 2023-09-01 09:09:35
 */
@Setter
@Getter
public class MallReplyDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull
    private Integer itemType;
    @NotBlank
    private String itemId;
    @NotBlank
    private String replyId;
    private String replyContent;
    private String appendContent;
    private String extra;
    @NotBlank
    private String username;
    @NotBlank
    private String avatarUrl;
    @NotEmpty
    private List<MallReplyPhotoDto> photos;

    public MallReplyDto(int itemType, String itemId, String replyId, String replyContent, String appendContent,
                        String extra, String username, String avatarUrl) {
        this.itemType = itemType;
        this.itemId = itemId;
        this.replyId = replyId;
        this.replyContent = replyContent;
        this.appendContent = appendContent;
        this.extra = extra;
        this.username = username;
        this.avatarUrl = avatarUrl;
    }
}
