- 实现SDKContext用于配置管理和数据持久化存储 - 定义完整的类型系统包括消息、用户、群组等接口 - 集成更新SDK支持原生应用和RN热更新检查 - 提供统一的XuqmSDK入口类和模块导出 - 编写详细的开发文档和使用示例
58 行
1.6 KiB
Java
58 行
1.6 KiB
Java
package com.xuqm.update.entity;
|
|
|
|
import jakarta.persistence.Column;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.Table;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
@Entity
|
|
@Table(name = "update_gray_member", uniqueConstraints = {
|
|
@jakarta.persistence.UniqueConstraint(columnNames = {"appId", "groupName", "userId"})
|
|
})
|
|
public class AppGrayMemberEntity {
|
|
|
|
@Id
|
|
private String id;
|
|
|
|
@Column(nullable = false, length = 64)
|
|
private String appId;
|
|
|
|
@Column(length = 64)
|
|
private String groupName;
|
|
|
|
@Column(nullable = false, length = 64)
|
|
private String userId;
|
|
|
|
@Column(length = 128)
|
|
private String name;
|
|
|
|
@Column(length = 512)
|
|
private String extraJson;
|
|
|
|
@Column(nullable = false)
|
|
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 String getGroupName() { return groupName; }
|
|
public void setGroupName(String groupName) { this.groupName = groupName; }
|
|
|
|
public String getUserId() { return userId; }
|
|
public void setUserId(String userId) { this.userId = userId; }
|
|
|
|
public String getName() { return name; }
|
|
public void setName(String name) { this.name = name; }
|
|
|
|
public String getExtraJson() { return extraJson; }
|
|
public void setExtraJson(String extraJson) { this.extraJson = extraJson; }
|
|
|
|
public LocalDateTime getUpdatedAt() { return updatedAt; }
|
|
public void setUpdatedAt(LocalDateTime updatedAt) { this.updatedAt = updatedAt; }
|
|
}
|