web-dc-api 0.0.21 → 0.0.22
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/lib/common/constants.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface ICommentOperations {
|
|
|
9
9
|
/**
|
|
10
10
|
* 为指定主题开通评论功能
|
|
11
11
|
* @param theme 主题/对象标识符
|
|
12
|
-
* @param openFlag 开放标志 0-公开 1-私密
|
|
12
|
+
* @param openFlag 开放标志 0-公开 1-私密 2-鉴权
|
|
13
13
|
* @param commentSpace 可选,评论空间上限大小(字节),默认50MB
|
|
14
14
|
* @returns 操作结果 0:成功 1:评论空间没有配置 2:评论空间不足 3:评论数据同步中
|
|
15
15
|
*/
|
|
@@ -56,8 +56,8 @@ export interface ICommentOperations {
|
|
|
56
56
|
themeAuthor: string,
|
|
57
57
|
commentType: number,
|
|
58
58
|
comment: string,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
openFlag?: number,
|
|
60
|
+
refercommentkey?: string
|
|
61
61
|
): Promise<[string | null, Error | null]>;
|
|
62
62
|
|
|
63
63
|
/**
|
|
@@ -151,8 +151,8 @@ async addUserOffChainOpTimes(
|
|
|
151
151
|
themeAuthor: string,
|
|
152
152
|
commentType: number,
|
|
153
153
|
comment: string,
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
openFlag?: number,
|
|
155
|
+
refercommentkey?: string
|
|
156
156
|
): Promise<[string | null, Error | null]> {
|
|
157
157
|
this.assertInitialized();
|
|
158
158
|
|