package cn.teammodel.model.entity.common;

import cn.teammodel.model.entity.BaseItem;
import com.azure.spring.data.cosmos.core.mapping.Container;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Container(containerName = "Common")
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Comment extends BaseItem {
    private String creatorId;
    private String creatorName;
    @ApiModelProperty("学校编码")
    private String school;
    private String studentId;
    @ApiModelProperty("活动ID")
    private String activityId;
    @ApiModelProperty("活动类型")
    private String activityType;
    private List<ContentInfo> contentInfo;
    private String pk = "Comment";
    private int ttl = -1;
    private Long createTime;
    private Long updateTime;
    @ApiModelProperty("学年")
    private int year;
    @ApiModelProperty("当前学年所处第几学期")
    private int semester;
    @Data
    public static class ContentInfo {
        @ApiModelProperty("评论内容")
        private String content;
        @ApiModelProperty("评论类型")
        private String contentType;
    }

}
