- 新增 PLATFORM_OVERVIEW.md 文档,包含仓库索引、整体架构、核心概念等 - 实现 XuqmImServerSdk 类,提供完整的 IM 功能接口 - 添加登录认证、消息发送、会话管理、好友关系等核心功能 - 实现群组管理、关键词过滤、全局禁言等高级功能 - 提供配置管理和统计查询等管理功能
50 行
1.6 KiB
Java
50 行
1.6 KiB
Java
package com.xuqm.im.entity;
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.xuqm.im.json.EpochMillisLocalDateTimeSerializer;
|
|
import jakarta.persistence.Column;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.Table;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
@Entity
|
|
@Table(name = "im_global_mute")
|
|
public class ImGlobalMuteEntity {
|
|
|
|
@Id
|
|
private String id;
|
|
|
|
@Column(nullable = false, length = 64, unique = true)
|
|
private String appId;
|
|
|
|
@Column(nullable = false)
|
|
private boolean enabled;
|
|
|
|
@Column(nullable = false)
|
|
@JsonSerialize(using = EpochMillisLocalDateTimeSerializer.class)
|
|
private LocalDateTime createdAt;
|
|
|
|
@Column(nullable = false)
|
|
@JsonSerialize(using = EpochMillisLocalDateTimeSerializer.class)
|
|
private LocalDateTime updatedAt;
|
|
|
|
public String getId() { return id; }
|
|
public void setId(String id) { this.id = id; }
|
|
|
|
public String getAppId() { return appId; }
|
|
public void setAppId(String appId) { this.appId = appId; }
|
|
|
|
public boolean isEnabled() { return enabled; }
|
|
public void setEnabled(boolean enabled) { this.enabled = enabled; }
|
|
|
|
@JsonSerialize(using = EpochMillisLocalDateTimeSerializer.class)
|
|
public LocalDateTime getCreatedAt() { return createdAt; }
|
|
public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; }
|
|
|
|
@JsonSerialize(using = EpochMillisLocalDateTimeSerializer.class)
|
|
public LocalDateTime getUpdatedAt() { return updatedAt; }
|
|
public void setUpdatedAt(LocalDateTime updatedAt) { this.updatedAt = updatedAt; }
|
|
}
|