Skip to content

Let's use AI to Earn!

feat: 补充接口

牛文政535f71bf48da
diff --git a/src/api/tools.ts b/src/api/tools.ts
new file mode 100644
index 00000000..a00e9a3e
--- /dev/null
+++ b/src/api/tools.ts
@@ -0,0 +1,51 @@
+/*
+ * @Author: nevin
+ * @Date: 2025-02-22 12:02:55
+ * @LastEditTime: 2025-03-02 22:21:01
+ * @LastEditors: nevin
+ * @Description: 工具
+ */
+import http from './request';
+import { UserTask } from './types/task';
+import { Task, TaskDataInfo } from 'commont/types/task';
+import { UserWalletRecord } from './types/finance';
+
+export const toolsApi = {
+ /**
+ * 获取智能标题
+ */
+ apiVideoAiTitle(url: string) {
+ return http.post<string>(
+ '/tools/ai/video/title',
+ {
+ url,
+ },
+ {
+ isToken: true,
+ },
+ );
+ },
+
+ /**
+ * 智能评论
+ */
+ apiReviewAi(data: { title: string; desc?: string; max?: number }) {
+ return http.post<string>('/tools/ai/review', data, {
+ isToken: true,
+ });
+ },
+
+ /**
+ * 智能评论回复
+ */
+ apiReviewAiRecover(data: {
+ content: string;
+ title?: string;
+ desc?: string;
+ max?: number;
+ }) {
+ return http.post<string>('/tools/ai/recover/review', data, {
+ isToken: true,
+ });
+ },
+};