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

import cn.reghao.tnb.content.api.dto.CamPhoto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

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

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

    @NotNull
    private Integer itemType;
    @NotNull
    private Long itemId;
    @NotNull
    private Long replyId;
    private String replyContent;
    private String extra;
    @NotBlank
    private String replyDate;
    @NotBlank
    private String userId;
    @NotBlank
    private String username;
    @NotBlank
    private String avatarUrl;
    @NotEmpty
    private List<CamPhoto> camPhotoList;

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