web-dc-api 0.2.47 → 0.2.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -803,7 +803,7 @@ if (dc.publicKey.string() === APPThemeConfig.appThemeAuthor) {
|
|
|
803
803
|
|
|
804
804
|
const [status, err] = await dc.comment.addThemeObj(
|
|
805
805
|
'news_comments', // 主题ID(比如新闻评论区)
|
|
806
|
-
0, // 访问类型:0
|
|
806
|
+
0, // 访问类型:0=公开(任何人可读写) 1=私密(任何登录用户仍可评论,但每条评论默认仅本人+主题作者可见,作者可精选公开) 2=授权(需被授权才能访问)
|
|
807
807
|
50 * 1024 * 1024 // 分配50MB存储空间
|
|
808
808
|
);
|
|
809
809
|
if (status === 0) {
|
package/dist/index.d.ts
CHANGED
|
@@ -4443,7 +4443,7 @@ interface IAuthOperations {
|
|
|
4443
4443
|
|
|
4444
4444
|
declare enum OpenFlag {
|
|
4445
4445
|
PUBLIC = 0,//公开 任何人可以读写,不建议使用,评论所产生的空间使用都由创建者承担
|
|
4446
|
-
PRIVATE = 1,//私密
|
|
4446
|
+
PRIVATE = 1,//私密 任何登录用户都可写评论,但每条评论默认仅"评论者本人+主题创建者(管理员)"可见;管理员可 setObjCommentPublic 精选公开某条评论(公开后所有人可见)
|
|
4447
4447
|
AUTH = 2,//需要对评论进行鉴权,主要用于私聊群组,或者内部共享群组,对访问主题进行权限设置,有权限的用户才能访问
|
|
4448
4448
|
AUTH_WRITE = 3,//需要对评论进行写鉴权,任何人都可以读
|
|
4449
4449
|
REPORTED = 4
|
|
@@ -30345,7 +30345,7 @@ interface ICommentOperations {
|
|
|
30345
30345
|
/**
|
|
30346
30346
|
* 为指定主题开通评论功能
|
|
30347
30347
|
* @param theme 主题/对象标识符
|
|
30348
|
-
* @param openFlag 开放标志 0-公开 1-私密 2-鉴权
|
|
30348
|
+
* @param openFlag 开放标志 0-公开(任何人可读写) 1-私密(任何登录用户都可写评论,但每条评论默认仅"评论者本人+主题作者(管理员)"可见;主题作者可 setObjCommentPublic 精选公开某条评论) 2-鉴权(需被授权才能访问)
|
|
30349
30349
|
* @param commentSpace 可选,评论空间上限大小(字节),默认50MB
|
|
30350
30350
|
* @returns 操作结果 0:成功 1:评论空间没有配置 2:评论空间不足 3:评论数据同步中
|
|
30351
30351
|
*/
|
|
@@ -30377,7 +30377,7 @@ interface ICommentOperations {
|
|
|
30377
30377
|
* @param commentType 评论类型
|
|
30378
30378
|
* @param comment 评论内容
|
|
30379
30379
|
* @param refercommentkey 可选,引用的评论键
|
|
30380
|
-
* @param openFlag
|
|
30380
|
+
* @param openFlag 可选,评论可见性 0-公开(所有人可见) 1-私密(仅评论者本人+主题作者可见;主题作者可 setObjCommentPublic 精选公开)
|
|
30381
30381
|
* @returns 评论发布结果
|
|
30382
30382
|
*/
|
|
30383
30383
|
publishCommentToTheme(theme: string, themeAuthor: string, commentType: number, comment: string, openFlag?: number, refercommentkey?: string): Promise<[string | null, Error | null]>;
|