Skip to content

Let's use AI to Earn!

style: 1

牛文政16dc8ea06528
diff --git a/commont/types/task.ts b/commont/types/task.ts
index 563ee13a..7e4901a9 100644
--- a/commont/types/task.ts
+++ b/commont/types/task.ts
@@ -42,7 +42,13 @@ interface TaskData {
export interface TaskVideo extends TaskData {
videoUrl: string;
}
+
+export interface TaskArticle extends TaskData {
+ imageList: string[];
+}
+
export interface TaskPromotion extends TaskData {}
+
export interface TaskProduct extends TaskData {
price: number;
sales?: number;
@@ -57,6 +63,7 @@ export type TaskDataInfo =
| TaskProduct
| TaskPromotion
| TaskVideo
+ | TaskArticle
| TaskInteraction;
export interface Task<T extends TaskDataInfo> extends TimeTemp {
_id: string;
diff --git a/package-lock.json b/package-lock.json
index f9da099f..a6ff4c0a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -38,6 +38,7 @@
"image-size": "^1.2.0",
"lodash": "^4.17.21",
"mime-types": "^2.1.35",
+ "moment": "^2.30.1",
"node-cache": "^5.1.2",
"node-schedule": "^2.1.1",
"os": "^0.1.2",
@@ -9129,6 +9130,14 @@
"integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
"license": "MIT"
},
+ "node_modules/moment": {
+ "version": "2.30.1",
+ "resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz",
+ "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
+ "engines": {
+ "node": "*"
+ }
+ },
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",