package com.zhongshu.card.server.core.domain.school;

import com.zhongshu.card.server.core.domain.base.SuperMain;
import com.zhongshu.card.server.core.domain.org.UserAccount;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.checkerframework.common.aliasing.qual.NonLeaked;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 学校公告 阅览记录
 *
 * @author TRX
 * @date 2024/6/7
 */
@Data
@Document
@AllArgsConstructor
@NoArgsConstructor
@NonLeaked
public class NoticeInfoView extends SuperMain {

    @Schema(description = "公告信息")
    @DBRef(lazy = true)
    private NoticeInfo noticeInfo;

    @Schema(description = "关联用户信息")
    private UserAccount userAccount;

}
