package cn.lihongjie.coal.noticeStatus.dto;

import cn.lihongjie.coal.base.dto.CommonDto;
import cn.lihongjie.coal.base.dto.OrgCommonDto;
import cn.lihongjie.coal.notice.dto.NoticeDto;

import jakarta.persistence.ManyToOne;

import lombok.Data;

import org.hibernate.annotations.Comment;

import java.time.LocalDateTime;

@Data
public class NoticeStatusDto extends CommonDto {
    @ManyToOne
    private UserDto sender;

    @ManyToOne
    private UserDto user;

    private NoticeDto notice;

    private Boolean read;

    private Boolean delete;


    private LocalDateTime readTime;
    private LocalDateTime sendTime;
    private LocalDateTime deleteTime;

    @Data
    public static class UserDto extends OrgCommonDto {
        @Comment("用户名")
        private String username;

        @Comment("邮箱")
        private String email;

        @Comment("手机号")
        private String phone;

        @Comment("会话ID")
        private String sessionId;

        @Comment("机构管理员标识")
        private Boolean orgAdmin;

        @Comment("系统管理员标识")
        private Boolean sysAdmin;

        private String organizationName;




    }
}
