Skip to content

Let's use AI to Earn!

up web

bulaienaofutuojiesenzhang5334723d6a0a
diff --git a/aitoearn_web/aitoearn-web/@types/resources.d.ts b/aitoearn_web/aitoearn-web/@types/resources.d.ts
index 50e5c369..468b40b0 100644
--- a/aitoearn_web/aitoearn-web/@types/resources.d.ts
+++ b/aitoearn_web/aitoearn-web/@types/resources.d.ts
@@ -460,7 +460,7 @@ interface Resources {
"features": {
"hotTopic": {
"title": "多平台分发",
- "description": "支持全球最多主流社交平台(Douyin, Kwai, Wechat, Bilibili, Rednote, Facebook, Instagram, TikTok, LinkedIn, Threads, Bluesky, YouTube Shorts, Pinterest, Google Business, Mastodon, X)。"
+ "description": "支持全球最多主流社交平台(Douyin, Kwai, Wechat, Bilibili, Rednote, Facebook, Instagram, TikTok, LinkedIn, Threads, YouTube, Pinterest, X)。"
},
"international": {
"title": "日历编排",
@@ -1627,7 +1627,7 @@ interface Resources {
"profile": {
"personalInfo": "个人信息",
"orderManagement": "订单管理",
- "myOrders": "我的订单",
+ "myOrders": "购买记录",
"mySubscriptions": "我的订阅",
"plusMember": "PLUS会员",
"vipUserGreeting": "尊敬的VIP用户,您已解锁全部会员权益",
@@ -1655,6 +1655,7 @@ interface Resources {
"status": "状态",
"createTime": "创建时间",
"expireTime": "过期时间",
+ "xufeiTime": "续费时间",
"actions": "操作",
"viewDetails": "查看详情",
"goToPay": "去支付",
@@ -1668,6 +1669,7 @@ interface Resources {
"goToPayment": "前往支付",
"internalId": "内部ID",
"subscriptionMode": "订阅模式",
+ "paymentMethod": "支付方式",
"refundedAmount": "已退款金额",
"paymentIntent": "Payment Intent",
"paymentLink": "支付链接",
@@ -1824,6 +1826,8 @@ interface Resources {
"upload": {
"finishingUp": "正在完成...",
"uploadImageOrVideo": "上传图片或视频",
+ "uploadImage": "上传图片",
+ "uploadVideo": "上传视频",
"dragAndSelect": "拖放 & 选择图片或视频"
},
"validation": {
@@ -1837,6 +1841,8 @@ interface Resources {
"descriptionRequired": "描述是必须的",
"imageMaxExceeded": "{{platformName}}图片最多不能超过{{maxCount}}张",
"uploadImageOrVideo": "请上传图片或视频",
+ "uploadImage": "上传图片",
+ "uploadVideo": "上传视频",
"topicMaxExceeded": "{{platformName}}话题最多不能超过{{maxCount}}个",
"topicFormatError": "描述中的话题必须使用空格分割,如:\"#话题1 #话题2\"",
"titleRequired": "标题是必须的",
diff --git a/aitoearn_web/aitoearn-web/docs/api.json b/aitoearn_web/aitoearn-web/docs/api.json
new file mode 100644
index 00000000..4e6618f7
--- /dev/null
+++ b/aitoearn_web/aitoearn-web/docs/api.json
@@ -0,0 +1,13008 @@
+{
+ "openapi": "3.0.0",
+ "paths": {
+ "/": {
+ "get": {
+ "operationId": "AppController_getHello",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "App"
+ ]
+ }
+ },
+ "/api/test/test": {
+ "get": {
+ "operationId": "TestController_addDefaultContent",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "测试"
+ ]
+ }
+ },
+ "/api/test/setVip/{type}/{userId}": {
+ "get": {
+ "operationId": "TestController_setUserVipInfo",
+ "parameters": [
+ {
+ "name": "type",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "userId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "测试"
+ ]
+ }
+ },
+ "/api/user/info/mail/{mail}": {
+ "get": {
+ "description": "用户信息",
+ "operationId": "UserController_infoByMail",
+ "parameters": [
+ {
+ "name": "mail",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "用户信息",
+ "tags": [
+ "用户"
+ ]
+ }
+ },
+ "/api/user/mine": {
+ "get": {
+ "description": "获取自己的用户信息",
+ "operationId": "UserController_getUserInfoById",
+ "parameters": [],
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserResDto"
+ }
+ }
+ }
+ },
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取自己的用户信息",
+ "tags": [
+ "用户"
+ ]
+ }
+ },
+ "/api/user/info/update": {
+ "put": {
+ "description": "更新用户信息",
+ "operationId": "UserController_updateInfo",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateUserInfoDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新用户信息",
+ "tags": [
+ "用户"
+ ]
+ }
+ },
+ "/api/user/vip/set/experience": {
+ "put": {
+ "description": "设置用户体验VIP信息",
+ "operationId": "UserController_setVipExperience",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "设置用户体验VIP信息",
+ "tags": [
+ "用户"
+ ]
+ }
+ },
+ "/api/user/points/records": {
+ "get": {
+ "operationId": "UserController_getMyPointsRecords",
+ "parameters": [
+ {
+ "name": "page",
+ "required": true,
+ "in": "query",
+ "description": "页码",
+ "schema": {
+ "default": 1,
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "query",
+ "description": "每页数量",
+ "schema": {
+ "default": 10,
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PointsRecordsVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取我的积分记录",
+ "tags": [
+ "用户"
+ ]
+ }
+ },
+ "/api/login/mail": {
+ "post": {
+ "description": "邮箱登陆/注册",
+ "operationId": "LoginController_loginByMail",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MailLoginDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "邮箱登陆/注册",
+ "tags": [
+ "用户登录-login"
+ ]
+ }
+ },
+ "/api/login/mail/regist/url": {
+ "get": {
+ "description": "用户点击链接后,进行注册,返回注册结果的html文本",
+ "operationId": "LoginController_registByMail",
+ "parameters": [
+ {
+ "name": "mail",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "邮箱",
+ "type": "string"
+ }
+ },
+ {
+ "name": "code",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "邮箱注册确认",
+ "tags": [
+ "用户登录-login"
+ ]
+ }
+ },
+ "/api/login/mail/regist/back": {
+ "post": {
+ "description": "轮询获取",
+ "operationId": "LoginController_getRegistByMailBack",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GetRegistByMailBackDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取邮箱注册返回",
+ "tags": [
+ "用户登录-login"
+ ]
+ }
+ },
+ "/api/login/repassword/mail": {
+ "post": {
+ "description": "邮箱重置密码",
+ "operationId": "LoginController_repasswordByMail",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MailRepasswordDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "邮箱重置密码",
+ "tags": [
+ "用户登录-login"
+ ]
+ }
+ },
+ "/api/login/repassword/mail/back/url": {
+ "get": {
+ "description": "用户点击链接后,进行重设",
+ "operationId": "LoginController_repasswordUrlByMail",
+ "parameters": [
+ {
+ "name": "mail",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "邮箱",
+ "type": "string"
+ }
+ },
+ {
+ "name": "code",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "邮箱重设密码",
+ "tags": [
+ "用户登录-login"
+ ]
+ }
+ },
+ "/api/login/repassword/mail/back": {
+ "post": {
+ "description": "轮询获取",
+ "operationId": "LoginController_getRepasswordByMailBack",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GetRegistByMailBackDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "邮箱重设密码",
+ "tags": [
+ "用户登录-login"
+ ]
+ }
+ },
+ "/api/login/google": {
+ "post": {
+ "description": "google登录",
+ "operationId": "LoginController_loginByGoogle",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GoogleLoginDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "google登录",
+ "tags": [
+ "用户登录-login"
+ ]
+ }
+ },
+ "/api/login/cancel/code": {
+ "get": {
+ "description": "获取注销验证码",
+ "operationId": "LoginController_getCancelMailCode",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取注销验证码",
+ "tags": [
+ "用户登录-login"
+ ]
+ }
+ },
+ "/api/login/cancel": {
+ "delete": {
+ "description": "注销",
+ "operationId": "LoginController_cancelByMail",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserCancelDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "注销",
+ "tags": [
+ "用户登录-login"
+ ]
+ }
+ },
+ "/api/user/pop/code": {
+ "get": {
+ "operationId": "UserPopController_generateUsePopularizeCode",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "生成并获取自己的推广码",
+ "tags": [
+ "用户推广"
+ ]
+ }
+ },
+ "/api/feedback": {
+ "post": {
+ "description": "提交反馈",
+ "operationId": "FeedbackController_createFeedback",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateFeedBackDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "提交反馈",
+ "tags": [
+ "反馈"
+ ]
+ }
+ },
+ "/api/appConfigs/{appId}": {
+ "get": {
+ "description": "获取配置",
+ "operationId": "AppConfigsController_getAppConfigList",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取配置",
+ "tags": [
+ "应用配置"
+ ]
+ }
+ },
+ "/api/file/uploadUrl": {
+ "get": {
+ "description": "获取分片上传的签名URL",
+ "operationId": "FileController_getUploadPartUrl",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取分片上传的签名URL",
+ "tags": [
+ "文件"
+ ]
+ }
+ },
+ "/api/file/upload": {
+ "post": {
+ "description": "存入临时目录",
+ "operationId": "FileController_uploadFile",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "上传文件",
+ "tags": [
+ "文件"
+ ]
+ }
+ },
+ "/api/file/uploadPart/init": {
+ "post": {
+ "description": "初始化文件分片上传",
+ "operationId": "FileController_initiateMultipartUpload",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InitMultipartUploadDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "初始化文件分片上传",
+ "tags": [
+ "文件"
+ ]
+ }
+ },
+ "/api/file/uploadPart/upload": {
+ "post": {
+ "description": "上传文件分片",
+ "operationId": "FileController_uploadPart",
+ "parameters": [
+ {
+ "name": "fileId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "文件key",
+ "type": "string"
+ }
+ },
+ {
+ "name": "uploadId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "上传ID",
+ "type": "string"
+ }
+ },
+ {
+ "name": "partNumber",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "分片索引",
+ "type": "number"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string",
+ "format": "binary"
+ },
+ "fileId": {
+ "type": "string"
+ },
+ "uploadId": {
+ "type": "string"
+ },
+ "partNumber": {
+ "type": "number"
+ }
+ }
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "上传文件分片",
+ "tags": [
+ "文件"
+ ]
+ }
+ },
+ "/api/file/uploadPart/complete": {
+ "post": {
+ "description": "合并文件分片",
+ "operationId": "FileController_completeMultipartUpload",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CompletePartDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "合并文件分片",
+ "tags": [
+ "文件"
+ ]
+ }
+ },
+ "/api/plat/publish/create": {
+ "post": {
+ "operationId": "PublishController_create",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreatePublishDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建发布",
+ "tags": [
+ "plat/publish - 平台发布"
+ ]
+ }
+ },
+ "/api/plat/publish/run/{id}": {
+ "get": {
+ "operationId": "PublishController_run",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "立即执行发布任务(测试用)",
+ "tags": [
+ "plat/publish - 平台发布"
+ ]
+ }
+ },
+ "/api/plat/publish/createRecord": {
+ "post": {
+ "operationId": "PublishController_createRecord",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreatePublishRecordDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建发布记录",
+ "tags": [
+ "plat/publish - 平台发布"
+ ]
+ }
+ },
+ "/api/plat/publish/getList": {
+ "post": {
+ "operationId": "PublishController_getList",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PubRecordListFilterDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "返回发布记录列表",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/PublishRecordItemDto"
+ }
+ }
+ }
+ }
+ },
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取发布记录",
+ "tags": [
+ "plat/publish - 平台发布"
+ ]
+ }
+ },
+ "/api/plat/publish/updateTaskTime": {
+ "post": {
+ "operationId": "PublishController_updatePublishRecordTime",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdatePublishRecordTimeDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "修改发布任务时间",
+ "tags": [
+ "plat/publish - 平台发布"
+ ]
+ }
+ },
+ "/api/plat/publish/delete/{id}": {
+ "delete": {
+ "operationId": "PublishController_delete",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除发布任务,注意,只能删除未发布的任务,不能删除已经发布的记录",
+ "tags": [
+ "plat/publish - 平台发布"
+ ]
+ }
+ },
+ "/api/plat/publish/nowPubTask/{id}": {
+ "post": {
+ "operationId": "PublishController_nowPubTask",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "立即发布任务(在n天之后的任务想要立即发布)",
+ "tags": [
+ "plat/publish - 平台发布"
+ ]
+ }
+ },
+ "/api/plat/publish/publishInfo/data": {
+ "get": {
+ "operationId": "PublishController_publishInfoData",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取发布信息数据",
+ "tags": [
+ "plat/publish - 平台发布"
+ ]
+ }
+ },
+ "/api/plat/publish/publishDayInfo/list/{pageNo}/{pageSize}": {
+ "get": {
+ "operationId": "PublishController_publishDataInfoList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取每天发布信息数据列表",
+ "tags": [
+ "plat/publish - 平台发布"
+ ]
+ }
+ },
+ "/api/plat/publish/records/{id}": {
+ "get": {
+ "operationId": "PublishController_getPublishRecordDetail",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取发布记录详情",
+ "tags": [
+ "plat/publish - 平台发布"
+ ]
+ }
+ },
+ "/api/plat/test/authPage": {
+ "post": {
+ "operationId": "PlatTestController_setAuthPage",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "plat/test - 平台测试"
+ ]
+ }
+ },
+ "/api/plat/test/authPage/{id}": {
+ "get": {
+ "operationId": "PlatTestController_getAuthPage",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "tags": [
+ "plat/test - 平台测试"
+ ]
+ }
+ },
+ "/api/channel/interact/addArcComment": {
+ "post": {
+ "operationId": "InteractController_addArcComment",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddArcCommentDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "添加作品评论",
+ "tags": [
+ "渠道互动"
+ ]
+ }
+ },
+ "/api/channel/interact/getArcCommentList/{pageNo}/{pageSize}": {
+ "get": {
+ "operationId": "InteractController_getArcCommentList",
+ "parameters": [
+ {
+ "name": "recordId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取作品的评论列表",
+ "tags": [
+ "渠道互动"
+ ]
+ }
+ },
+ "/api/channel/interact/replyComment": {
+ "post": {
+ "operationId": "InteractController_replyComment",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ReplyCommentDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "回复评论",
+ "tags": [
+ "渠道互动"
+ ]
+ }
+ },
+ "/api/channel/interact/delComment": {
+ "delete": {
+ "operationId": "InteractController_delComment",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DelCommentDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除评论",
+ "tags": [
+ "渠道互动"
+ ]
+ }
+ },
+ "/api/channel/dataCube/accountDataCube/{accountId}": {
+ "get": {
+ "operationId": "DataCubeController_getAccountDataCube",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号的统计数据",
+ "tags": [
+ "渠道用户数据"
+ ]
+ }
+ },
+ "/api/channel/dataCube/getAccountDataBulk/{accountId}": {
+ "get": {
+ "operationId": "DataCubeController_getAccountDataBulk",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号的统计数据",
+ "tags": [
+ "渠道用户数据"
+ ]
+ }
+ },
+ "/api/channel/dataCube/getArcDataCube/{accountId}/{dataId}": {
+ "get": {
+ "operationId": "DataCubeController_getArcDataCube",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "dataId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号的统计数据",
+ "tags": [
+ "渠道用户数据"
+ ]
+ }
+ },
+ "/api/channel/dataCube/getArcDataBulk/{accountId}/{dataId}": {
+ "get": {
+ "operationId": "DataCubeController_getArcDataBulk",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "dataId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号的统计数据",
+ "tags": [
+ "渠道用户数据"
+ ]
+ }
+ },
+ "/api/channel/skKey": {
+ "post": {
+ "description": "创建skKey",
+ "operationId": "SkKeyController_create",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateSkKeyDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "创建skKey",
+ "tags": [
+ "频道MCP的SkKey"
+ ]
+ },
+ "put": {
+ "description": "更新skKey",
+ "operationId": "SkKeyController_upInfo",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SkKeyUpInfoDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新skKey",
+ "tags": [
+ "频道MCP的SkKey"
+ ]
+ }
+ },
+ "/api/channel/skKey/ref": {
+ "delete": {
+ "description": "删除关联",
+ "operationId": "SkKeyController_delRefAccount",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除关联",
+ "tags": [
+ "频道MCP的SkKey"
+ ]
+ },
+ "post": {
+ "description": "创建关联",
+ "operationId": "SkKeyController_addRefAccount",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SkKeyAddRefAccountDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "创建关联",
+ "tags": [
+ "频道MCP的SkKey"
+ ]
+ }
+ },
+ "/api/channel/skKey/{key}": {
+ "delete": {
+ "description": "删除skKey",
+ "operationId": "SkKeyController_del",
+ "parameters": [
+ {
+ "name": "key",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除skKey",
+ "tags": [
+ "频道MCP的SkKey"
+ ]
+ }
+ },
+ "/api/channel/skKey/info/{key}": {
+ "get": {
+ "description": "获取skKey",
+ "operationId": "SkKeyController_getInfo",
+ "parameters": [
+ {
+ "name": "key",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取skKey",
+ "tags": [
+ "频道MCP的SkKey"
+ ]
+ }
+ },
+ "/api/channel/skKey/list/{pageNo}/{pageSize}": {
+ "get": {
+ "description": "获取skKey列表",
+ "operationId": "SkKeyController_list",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取skKey列表",
+ "tags": [
+ "频道MCP的SkKey"
+ ]
+ }
+ },
+ "/api/channel/skKey/ref/list/{pageNo}/{pageSize}": {
+ "get": {
+ "description": "获取关联列表",
+ "operationId": "SkKeyController_getRefAccountList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ },
+ {
+ "name": "key",
+ "required": true,
+ "in": "query",
+ "description": "key",
+ "schema": {
+ "title": "key",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取关联列表",
+ "tags": [
+ "频道MCP的SkKey"
+ ]
+ }
+ },
+ "/api/plat/bilibili/auth/back/{taskId}": {
+ "get": {
+ "operationId": "BilibiliController_getAccessToken",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/auth/url/{type}": {
+ "get": {
+ "operationId": "BilibiliController_getAuthUrl",
+ "parameters": [
+ {
+ "name": "type",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取页面的认证URL",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/auth/create-account/{taskId}": {
+ "post": {
+ "operationId": "BilibiliController_getAuthInfo",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号授权状态回调",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/auth/status/{accountId}": {
+ "get": {
+ "operationId": "BilibiliController_checkAccountAuthStatus",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号授权状态回调",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/video/init": {
+ "post": {
+ "operationId": "BilibiliController_videoInit",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VideoInitDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "视频初始化",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/video/part/upload/{accountId}": {
+ "post": {
+ "operationId": "BilibiliController_uploadVideoPart",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "uploadToken",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "上传token",
+ "type": "string"
+ }
+ },
+ {
+ "name": "partNumber",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "分片索引",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "上传视频分片",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/video/complete/{accountId}": {
+ "post": {
+ "operationId": "BilibiliController_videoComplete",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VideoCompleteDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "视频分片合并",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/cover/upload/{accountId}": {
+ "post": {
+ "operationId": "BilibiliController_coverUpload",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "封面上传",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/video/upload/{accountId}": {
+ "post": {
+ "description": "因微服务nats传输限制,只允许20M以下文件",
+ "operationId": "BilibiliController_uploadLitVideo",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UploadLitVideoDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "上传小视频(注意)",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/archive/add-by-utoken": {
+ "post": {
+ "operationId": "BilibiliController_archiveAddByUtoken",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ArchiveAddByUtokenBodyDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "视频稿件提交",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/archive/type/list/{accountId}": {
+ "get": {
+ "operationId": "BilibiliController_archiveTypeList",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "分区查询",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/archive/list/{pageNo}/{pageSize}": {
+ "get": {
+ "operationId": "BilibiliController_getArchiveList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ },
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "账户ID",
+ "type": "string"
+ }
+ },
+ {
+ "name": "status",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "string",
+ "enum": [
+ "all",
+ "is_pubing",
+ "pubed",
+ "not_pubed"
+ ]
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取稿件列表",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/stat/user/{accountId}": {
+ "get": {
+ "operationId": "BilibiliController_getUserStat",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取用户数据",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/stat/arc": {
+ "get": {
+ "operationId": "BilibiliController_getArcStat",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "账户ID",
+ "type": "string"
+ }
+ },
+ {
+ "name": "resourceId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "稿件ID",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取稿件数据",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/bilibili/stat/inc/arc/{accountId}": {
+ "get": {
+ "operationId": "BilibiliController_getArcIncStat",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取稿件增量数据数据",
+ "tags": [
+ "plat/bilibili - B站平台"
+ ]
+ }
+ },
+ "/api/plat/wxGzh/auth/url/{type}": {
+ "get": {
+ "operationId": "WxGzhController_createAuthTask",
+ "parameters": [
+ {
+ "name": "type",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "发起微信授权登陆",
+ "tags": [
+ "plat/wxGzh - 微信公众号"
+ ]
+ }
+ },
+ "/api/plat/wxGzh/auth/create-account/{taskId}": {
+ "get": {
+ "operationId": "WxGzhController_getAuthTaskInfo",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号授权状态回调",
+ "tags": [
+ "plat/wxGzh - 微信公众号"
+ ]
+ }
+ },
+ "/api/plat/wxGzh/account/userCumulate": {
+ "get": {
+ "operationId": "WxGzhController_getUserCumulate",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "账户ID",
+ "type": "string"
+ }
+ },
+ {
+ "name": "beginDate",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "开始日期",
+ "type": "string"
+ }
+ },
+ {
+ "name": "endDate",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "结束日期",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取累计用户数据",
+ "tags": [
+ "plat/wxGzh - 微信公众号"
+ ]
+ }
+ },
+ "/api/plat/wxGzh/account/userRead": {
+ "get": {
+ "operationId": "WxGzhController_getUserRead",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "账户ID",
+ "type": "string"
+ }
+ },
+ {
+ "name": "beginDate",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "开始日期",
+ "type": "string"
+ }
+ },
+ {
+ "name": "endDate",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "结束日期",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取图文阅读概况数据",
+ "tags": [
+ "plat/wxGzh - 微信公众号"
+ ]
+ }
+ },
+ "/api/plat/wx/auth/back": {
+ "post": {
+ "operationId": "WxPlatController_authBackGet",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AuthBackQueryDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "接收授权回调",
+ "tags": [
+ "WxPlat"
+ ]
+ }
+ },
+ "/api/plat/wx/callback/msg": {
+ "post": {
+ "operationId": "WxPlatController_callbackMsg",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "接收消息回调",
+ "tags": [
+ "WxPlat"
+ ]
+ }
+ },
+ "/api/plat/youtube/auth/url": {
+ "get": {
+ "operationId": "YoutubeController_getAuthUrl",
+ "parameters": [
+ {
+ "name": "type",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取页面的认证URL",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/auth/callback": {
+ "get": {
+ "operationId": "YoutubeController_getAccessToken",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/auth/create-account/{taskId}": {
+ "post": {
+ "operationId": "YoutubeController_getAuthInfo",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号授权状态回调",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/auth/status/{accountId}": {
+ "get": {
+ "operationId": "YoutubeController_checkAccountAuthStatus",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "检查账号是否已经授权",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/auth/refresh-token/{accountId}": {
+ "post": {
+ "operationId": "YoutubeController_refreshToken",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "刷新令牌token",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/video/categories": {
+ "get": {
+ "operationId": "YoutubeController_getVideoCategories",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "description": "账号ID",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "id",
+ "required": false,
+ "in": "query",
+ "description": "视频类别ID, 注意:id和regionCode必须有且只能选择一个",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "regionCode",
+ "required": false,
+ "in": "query",
+ "description": "区域代码, 注意:id和regionCode只能选择一个",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取视频类别列表",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/video/list": {
+ "get": {
+ "operationId": "YoutubeController_getVideosList",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "description": "账号ID",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "chart",
+ "required": false,
+ "in": "query",
+ "description": "用于标识您要检索的图表。这里只有一个值,mostPopular – 返回指定内容区域和视频类别中最热门的视频。id、myRating、chart这三个参数必须且只能选一个",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "id",
+ "required": false,
+ "in": "query",
+ "description": "视频ID, 多个id用英文逗号分隔。注意:id、myRating、chart这三个参数必须且只能选一个",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "myRating",
+ "required": false,
+ "in": "query",
+ "description": "是否获取我喜欢的视频, 注意:id、myRating、chart这三个参数必须且只能选一个",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "maxResults",
+ "required": false,
+ "in": "query",
+ "description": "最大返回结果数",
+ "schema": {
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageToken",
+ "required": false,
+ "in": "query",
+ "description": "分页令牌",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取视频列表",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/comment/threads/insert": {
+ "post": {
+ "operationId": "YoutubeController_insertCommentThreads",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InsertCommentThreadsDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建评论会话",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/comment/threads/list": {
+ "get": {
+ "operationId": "YoutubeController_getCommentThreadsList",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "description": "账号ID",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "id",
+ "required": false,
+ "in": "query",
+ "description": "评论会话ID,多个id以英文逗号隔开,注意:id、allThreadsRelatedToChannelId、videoId 必须有且只能有一个,不能同时使用",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "allThreadsRelatedToChannelId",
+ "required": false,
+ "in": "query",
+ "description": "关联的频道ID。注意:id、allThreadsRelatedToChannelId、videoId 必须有且只能有一个,不能同时使用",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "videoId",
+ "required": false,
+ "in": "query",
+ "description": "视频ID 注意:id、allThreadsRelatedToChannelId、videoId 必须有且只能有一个,不能同时使用",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pageToken",
+ "required": false,
+ "in": "query",
+ "description": "分页令牌,注意:此参数不能与 id 参数结合使用。",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "order",
+ "required": false,
+ "in": "query",
+ "description": "排序方式,注意:此参数不能与 id 参数结合使用。time - 默认,评论会话会按时间排序。relevance - 评论会话按相关性排序。",
+ "schema": {
+ "type": "string",
+ "enum": [
+ "time",
+ "relevance"
+ ]
+ }
+ },
+ {
+ "name": "searchTerms",
+ "required": false,
+ "in": "query",
+ "description": "搜索关键词,注意:此参数不能与 id 参数结合使用。",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取评论会话列表",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/comment/threads/moderation/set": {
+ "post": {
+ "operationId": "YoutubeController_setCommentThreadsModerationStatus",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SetCommentThreadsModerationStatusDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "设置评论会话的审核状态",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/comment/insert": {
+ "post": {
+ "operationId": "YoutubeController_insertComment",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InsertCommentDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建二级评论",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/comment/list": {
+ "get": {
+ "operationId": "YoutubeController_getCommentsList",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "description": "账号ID",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "id",
+ "required": true,
+ "in": "query",
+ "description": "评论ID,多个id用英文逗号分隔,注意:id和 parentId 必须有且只能有其中一个",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "parentId",
+ "required": false,
+ "in": "query",
+ "description": "父评论ID,注意:id和 parentId 必须有且只能有其中一个",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "maxResults",
+ "required": false,
+ "in": "query",
+ "description": "最大返回结果数",
+ "schema": {
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageToken",
+ "required": false,
+ "in": "query",
+ "description": "分页令牌",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取子评论列表",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/comment/update": {
+ "post": {
+ "operationId": "YoutubeController_updateComment",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateCommentDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新评论",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/comment/delete": {
+ "post": {
+ "operationId": "YoutubeController_deleteComment",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeleteCommentDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除评论",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/video/rating/set": {
+ "post": {
+ "operationId": "YoutubeController_setVideoRate",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VideoRateDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "设置视频的点赞、踩",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/video/rating": {
+ "get": {
+ "operationId": "YoutubeController_getVideoRate",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "description": "账号ID",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "id",
+ "required": true,
+ "in": "query",
+ "description": "视频ID,多个id用英文逗号分隔",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取视频的点赞、踩",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/video/delete": {
+ "post": {
+ "operationId": "YoutubeController_deleteVideo",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeleteVideoDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除视频",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/video/update": {
+ "post": {
+ "operationId": "YoutubeController_updateVideo",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateVideoDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新视频",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/playlist/create": {
+ "post": {
+ "operationId": "YoutubeController_createPlaylist",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InsertPlayListDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建播放列表",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/playlist/update": {
+ "post": {
+ "operationId": "YoutubeController_updatePlaylist",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdatePlayListDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新播放列表",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/playlist/delete": {
+ "post": {
+ "operationId": "YoutubeController_deletePlaylist",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeletePlayListDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除播放列表",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/playlist/list": {
+ "post": {
+ "operationId": "YoutubeController_getPlayList",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GetPlayListDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取播放列表",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/playlist/items/insert": {
+ "post": {
+ "operationId": "YoutubeController_insertPlayListItems",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/InsertPlayItemsDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "插入播放列表项",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/playlist/items/update": {
+ "post": {
+ "operationId": "YoutubeController_updatePlayListItems",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdatePlayItemsDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新播放列表项",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/playlist/items/delete": {
+ "post": {
+ "operationId": "YoutubeController_deletePlayListItems",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeletePlayItemsDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除播放列表项",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/playlist/items/list": {
+ "post": {
+ "operationId": "YoutubeController_getPlayListItems",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GetPlayItemsDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取播放列表项",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/channel/list": {
+ "get": {
+ "operationId": "YoutubeController_getChannelsList",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "description": "账号ID",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "forHandle",
+ "required": false,
+ "in": "query",
+ "description": "标识名,注意:forHandle、forUsername、id、mine 必须有且只能有一个",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "forUsername",
+ "required": false,
+ "in": "query",
+ "description": "用户名,注意:forHandle、forUsername、id、mine 必须有且只能有一个",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "id",
+ "required": false,
+ "in": "query",
+ "description": "频道ID,注意:forHandle、forUsername、id、mine 必须有且只能有一个",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "mine",
+ "required": false,
+ "in": "query",
+ "description": "我的频道,注意:forHandle、forUsername、id、mine 必须有且只能有一个",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "maxResults",
+ "required": false,
+ "in": "query",
+ "description": "最大结果数",
+ "schema": {
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageToken",
+ "required": false,
+ "in": "query",
+ "description": "分页令牌",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取频道列表",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/channel/update/channelId/{accountId}": {
+ "get": {
+ "operationId": "YoutubeController_updateChannelId",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新账号频道ID",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/channel/sections/list": {
+ "post": {
+ "operationId": "YoutubeController_getChannelsSectionsList",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GetChannelsSectionsListDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取频道板块列表",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/common/params": {
+ "get": {
+ "operationId": "YoutubeController_getCommonParams",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取通用数据",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/youtube/search": {
+ "post": {
+ "operationId": "YoutubeController_search",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SearchDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "搜索",
+ "tags": [
+ "plat/youtube - YouTube平台"
+ ]
+ }
+ },
+ "/api/plat/kwai/auth/url/{type}": {
+ "get": {
+ "operationId": "KwaiController_getAuth",
+ "parameters": [
+ {
+ "name": "type",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "开始授权,创建任务",
+ "tags": [
+ "plat/kwai - 快手平台"
+ ]
+ }
+ },
+ "/api/plat/kwai/auth/create-account/{taskId}": {
+ "post": {
+ "operationId": "KwaiController_getAuthInfo",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号授权状态回调",
+ "tags": [
+ "plat/kwai - 快手平台"
+ ]
+ }
+ },
+ "/api/plat/kwai/auth/back/{taskId}": {
+ "get": {
+ "operationId": "KwaiController_getAccessToken",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "plat/kwai - 快手平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/auth/url": {
+ "post": {
+ "operationId": "TiktokController_getAuthUrl",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GetAuthUrlDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取页面的认证URL",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/auth/info/{taskId}": {
+ "get": {
+ "operationId": "TiktokController_getAuthInfo",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "查询认证信息",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/auth/back": {
+ "get": {
+ "operationId": "TiktokController_createAccountAndSetAccessToken",
+ "parameters": [
+ {
+ "name": "code",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "授权码",
+ "type": "string"
+ }
+ },
+ {
+ "name": "state",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "状态码",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "创建账号并设置授权Token",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/auth/refresh-token": {
+ "post": {
+ "operationId": "TiktokController_refreshAccessToken",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RefreshTokenDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "刷新访问令牌",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/auth/revoke-token/{accountId}": {
+ "post": {
+ "operationId": "TiktokController_revokeAccessToken",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "撤销访问令牌",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/creator/info/{accountId}": {
+ "get": {
+ "operationId": "TiktokController_getCreatorInfo",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取创作者信息",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/account/status/{accountId}": {
+ "get": {
+ "operationId": "TiktokController_checkAccountStatus",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "检查账号状态",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/publish/video/init": {
+ "post": {
+ "operationId": "TiktokController_initVideoPublish",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VideoPublishDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "初始化视频发布",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/publish/photo/init": {
+ "post": {
+ "operationId": "TiktokController_initPhotoPublish",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PhotoPublishDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "初始化照片发布",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/publish/status/{accountId}/{publishId}": {
+ "get": {
+ "operationId": "TiktokController_getPublishStatus",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "publishId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "查询发布状态",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/upload/video": {
+ "post": {
+ "description": "上传视频文件到指定的上传URL",
+ "operationId": "TiktokController_uploadVideoFile",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UploadVideoFileDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "上传视频文件",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/tiktok/webhook": {
+ "post": {
+ "operationId": "TiktokController_handleWebhookEvent",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "TikTok Webhook事件接收",
+ "tags": [
+ "plat/tiktok - TikTok平台"
+ ]
+ }
+ },
+ "/api/plat/pinterest/board": {
+ "post": {
+ "operationId": "PinterestController_createBoard",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateBoardBodyDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建board",
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ },
+ "get": {
+ "operationId": "PinterestController_getBoardList",
+ "parameters": [
+ {
+ "name": "page",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "title": "页码",
+ "type": "string"
+ }
+ },
+ {
+ "name": "size",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "title": "每页大小",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取board列表信息",
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ }
+ },
+ "/api/plat/pinterest/board/{id}": {
+ "get": {
+ "operationId": "PinterestController_getBoardById",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取单个board",
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ },
+ "delete": {
+ "operationId": "PinterestController_delBoardById",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除单个board",
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ }
+ },
+ "/api/plat/pinterest/pin": {
+ "post": {
+ "operationId": "PinterestController_createPin",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreatePinBodyDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建pin",
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ },
+ "get": {
+ "operationId": "PinterestController_getPinList",
+ "parameters": [
+ {
+ "name": "page",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "title": "页码",
+ "type": "string"
+ }
+ },
+ {
+ "name": "size",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "title": "每页大小",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取pin列表",
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ }
+ },
+ "/api/plat/pinterest/pin/{id}": {
+ "get": {
+ "operationId": "PinterestController_getPinById",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取pin",
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ },
+ "delete": {
+ "operationId": "PinterestController_delPinById",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除单个pin",
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ }
+ },
+ "/api/plat/pinterest/getAuth": {
+ "get": {
+ "operationId": "PinterestController_getAuth",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取授权登录页面",
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ }
+ },
+ "/api/plat/pinterest/checkAuth": {
+ "get": {
+ "operationId": "PinterestController_checkAuth",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "查询授权结果",
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ }
+ },
+ "/api/plat/pinterest/authWebhook": {
+ "get": {
+ "operationId": "PinterestController_authWebhook",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "plat/pinterest - PIN平台"
+ ]
+ }
+ },
+ "/api/plat/twitter/auth/url": {
+ "post": {
+ "operationId": "TwitterController_getAuthUrl",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GetAuthUrlDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取Twitter oAuth2.0 用户授权页面URL",
+ "tags": [
+ "plat/twitter - Twitter平台"
+ ]
+ }
+ },
+ "/api/plat/twitter/auth/info/{taskId}": {
+ "get": {
+ "operationId": "TwitterController_getAuthInfo",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "查询用户oAuth2.0任务状态",
+ "tags": [
+ "plat/twitter - Twitter平台"
+ ]
+ }
+ },
+ "/api/plat/twitter/auth/back": {
+ "get": {
+ "operationId": "TwitterController_createAccountAndSetAccessToken",
+ "parameters": [
+ {
+ "name": "code",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "授权码",
+ "type": "string"
+ }
+ },
+ {
+ "name": "state",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "状态码",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "oAuth认证回调后续操作, 保存AccessToken并创建用户",
+ "tags": [
+ "plat/twitter - Twitter平台"
+ ]
+ }
+ },
+ "/api/plat/meta/auth/url": {
+ "post": {
+ "operationId": "MetaController_getAuthUrl",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GetAuthUrlDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取Meta平台 oAuth2.0 用户授权页面URL",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/auth/info/{taskId}": {
+ "get": {
+ "operationId": "MetaController_getAuthInfo",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "查询用户oAuth2.0任务状态",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/facebook/pages": {
+ "get": {
+ "operationId": "MetaController_getFacebookPages",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "查询Facebook用户Pages列表",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ },
+ "post": {
+ "operationId": "MetaController_selectFacebookPages",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/FacebookPageSelectionDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "选择确认Facebook Pages",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/auth/back": {
+ "get": {
+ "operationId": "MetaController_createAccountAndSetAccessToken",
+ "parameters": [
+ {
+ "name": "code",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "授权码",
+ "type": "string"
+ }
+ },
+ {
+ "name": "state",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "title": "状态码",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "oAuth认证回调后续操作, 保存AccessToken并创建用户",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/facebook/{accountId}/published_posts": {
+ "get": {
+ "operationId": "MetaController_getFacebookPagePublishedPosts",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "pageId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取Facebook Page的已发布帖子列表",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/facebook/{accountId}/insights": {
+ "get": {
+ "operationId": "MetaController_getFacebookPageInsights",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取Facebook Page的Insights数据",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/facebook/{accountId}/{postId}/insights": {
+ "get": {
+ "operationId": "MetaController_getFacebookPostInsights",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "postId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取Facebook Page的Insights数据",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/instagram/{accountId}": {
+ "get": {
+ "operationId": "MetaController_getInstagramAccountInfo",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取Instagram Account的Insights数据",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/instagram/{accountId}/insights": {
+ "get": {
+ "operationId": "MetaController_getInstagramAccountInsights",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取Instagram Account的Insights数据",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/instagram/{accountId}/{postId}/insights": {
+ "get": {
+ "operationId": "MetaController_getInstagramPostInsights",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "postId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "Instagram Post的Insights数据",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/threads/{accountId}/insights": {
+ "get": {
+ "operationId": "MetaController_getThreadsAccountInsights",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "threads Account的Insights数据",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/plat/meta/threads/{accountId}/{postId}/insights": {
+ "get": {
+ "operationId": "MetaController_getThreadsPostInsights",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "postId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取Facebook Page的Insights数据",
+ "tags": [
+ "plat/meta - Meta平台"
+ ]
+ }
+ },
+ "/api/channel/interactionRecord": {
+ "post": {
+ "operationId": "InteractionRecordController_add",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddInteractionRecordDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "添加渠道互动记录",
+ "tags": [
+ "渠道互动记录"
+ ]
+ }
+ },
+ "/api/channel/interactionRecord/list/{pageNo}/{pageSize}": {
+ "get": {
+ "operationId": "InteractionRecordController_getArcCommentList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取渠道互动记录列表",
+ "tags": [
+ "渠道互动记录"
+ ]
+ }
+ },
+ "/api/channel/interactionRecord/{id}": {
+ "delete": {
+ "operationId": "InteractionRecordController_replyComment",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除记录",
+ "tags": [
+ "渠道互动记录"
+ ]
+ }
+ },
+ "/api/channel/replyCommentRecord": {
+ "post": {
+ "operationId": "ReplyCommentRecordController_add",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AddReplyCommentRecordDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "添加评论回复记录",
+ "tags": [
+ "评论回复记录"
+ ]
+ }
+ },
+ "/api/channel/replyCommentRecord/list/{pageNo}/{pageSize}": {
+ "get": {
+ "operationId": "ReplyCommentRecordController_getArcCommentList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取评论回复记录列表",
+ "tags": [
+ "评论回复记录"
+ ]
+ }
+ },
+ "/api/channel/replyCommentRecord/{id}": {
+ "delete": {
+ "operationId": "ReplyCommentRecordController_replyComment",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除评论回复记录",
+ "tags": [
+ "评论回复记录"
+ ]
+ }
+ },
+ "/api/account/login": {
+ "post": {
+ "operationId": "AccountController_createOrUpdateAccount",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateAccountDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建账号",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/update": {
+ "post": {
+ "operationId": "AccountController_updateAccountInfo",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateAccountDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新账号",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/status": {
+ "post": {
+ "operationId": "AccountController_updateAccountStatus",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateAccountStatusDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新账号状态",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/{id}": {
+ "get": {
+ "operationId": "AccountController_getAccountInfo",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "description": "账号ID",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号信息",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/list/all": {
+ "get": {
+ "operationId": "AccountController_getUserAccounts",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取用户所有账户",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/deletes": {
+ "post": {
+ "operationId": "AccountController_deletes",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeleteAccountsDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除多个账户",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/list/ids": {
+ "post": {
+ "operationId": "AccountController_getAccountListByIds",
+ "parameters": [
+ {
+ "name": "ids",
+ "required": true,
+ "in": "query",
+ "description": "账号ID数组",
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账户列表",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/count": {
+ "get": {
+ "operationId": "AccountController_getAccountCount",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "number"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账户总数",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/statistics": {
+ "get": {
+ "operationId": "AccountController_getAccountStatistics",
+ "parameters": [
+ {
+ "name": "type",
+ "required": false,
+ "in": "query",
+ "description": "账户类型",
+ "schema": {
+ "type": "string",
+ "enum": [
+ "douyin",
+ "xhs",
+ "wxSph",
+ "KWAI",
+ "youtube",
+ "wxGzh",
+ "bilibili",
+ "twitter",
+ "tiktok",
+ "facebook",
+ "instagram",
+ "threads",
+ "pinterest"
+ ]
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取账户统计",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/delete/{id}": {
+ "post": {
+ "operationId": "AccountController_deleteAccount",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "description": "账号ID",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除账户",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/statistics/update": {
+ "post": {
+ "operationId": "AccountController_updateAccountStatistics",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateAccountStatisticsDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "number"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新账户统计信息",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/account/list/spaceIds": {
+ "post": {
+ "operationId": "AccountController_getAccountListBySpaceIds",
+ "parameters": [
+ {
+ "name": "spaceIds",
+ "required": true,
+ "in": "query",
+ "description": "空间ID数组",
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账户列表(根据空间ids)",
+ "tags": [
+ "账户"
+ ]
+ }
+ },
+ "/api/accountGroup/create": {
+ "post": {
+ "operationId": "AccountGroupController_create",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateAccountGroupDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建组",
+ "tags": [
+ "账户组"
+ ]
+ }
+ },
+ "/api/accountGroup/update": {
+ "post": {
+ "operationId": "AccountGroupController_updateGroup",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateAccountGroupDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新组",
+ "tags": [
+ "账户组"
+ ]
+ }
+ },
+ "/api/accountGroup/deletes": {
+ "post": {
+ "operationId": "AccountGroupController_deletes",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/DeleteAccountGroupDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除账户组",
+ "tags": [
+ "账户组"
+ ]
+ }
+ },
+ "/api/accountGroup/getList": {
+ "get": {
+ "operationId": "AccountGroupController_getUserAccounts",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取用户所有账户组",
+ "tags": [
+ "账户组"
+ ]
+ }
+ },
+ "/api/fingerprint/generateFingerprint": {
+ "post": {
+ "description": "生成指纹浏览器参数",
+ "operationId": "FingerprintController_cenerateFingerprin",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GenerateFingerprintDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "",
+ "tags": [
+ "指纹生成"
+ ]
+ }
+ },
+ "/api/tools/ai/video/title": {
+ "post": {
+ "description": "视频文件只能输入一个,大小限制为 150 MB,时长限制为 40s。",
+ "operationId": "AiToolsController_videoAiTitle",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VideoAiDesDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "视频AI标题",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "视频AI标题",
+ "tags": [
+ "AI工具"
+ ]
+ }
+ },
+ "/api/tools/ai/review": {
+ "post": {
+ "description": "对作品进行智能评论",
+ "operationId": "AiToolsController_reviewAi",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ReviewAi"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "评论",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "智能评论",
+ "tags": [
+ "AI工具"
+ ]
+ }
+ },
+ "/api/tools/ai/reviewImg": {
+ "post": {
+ "description": "对作品封面图进行智能评论",
+ "operationId": "AiToolsController_reviewImgAi",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ReviewImgAi"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "评论",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "智能评论",
+ "tags": [
+ "AI工具"
+ ]
+ }
+ },
+ "/api/tools/ai/recover/review": {
+ "post": {
+ "description": "对作品进行智能评论回复",
+ "operationId": "AiToolsController_reviewAiRecover",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ReviewAiRecover"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "评论",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "智能评论回复",
+ "tags": [
+ "AI工具"
+ ]
+ }
+ },
+ "/api/tools/ai/article/html": {
+ "post": {
+ "description": "生成AI的html图文",
+ "operationId": "AiToolsController_aiArticleHtml",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AiArticleHtmlDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "生成AI的html图文",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "生成AI的html图文",
+ "tags": [
+ "AI工具"
+ ]
+ }
+ },
+ "/api/tools/ai/article/html/sse": {
+ "post": {
+ "description": "暂未用到",
+ "operationId": "AiToolsController_aiArticleHtmlSse",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AiArticleHtmlDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "生成AI的html图文",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "生成AI的html图文(SSE)",
+ "tags": [
+ "AI工具"
+ ]
+ }
+ },
+ "/api/tools/ai/markdown": {
+ "post": {
+ "description": "文字转Markdown",
+ "operationId": "AiToolsController_aiMarkdown",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AdminAiMarkdownDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "任务ID",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "文字转Markdown",
+ "tags": [
+ "AI工具"
+ ]
+ }
+ },
+ "/api/tools/ai/markdown/{id}": {
+ "get": {
+ "description": "获取AI的mk结果",
+ "operationId": "AiToolsController_getAiMarkdown",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "title": "ID",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "Markdown文本",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取AI的mk结果",
+ "tags": [
+ "AI工具"
+ ]
+ }
+ },
+ "/api/tools/common/text/moderation": {
+ "post": {
+ "description": "内容安全检测",
+ "operationId": "ToolsController_textModeration",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TextModerationDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "是否通过检测",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "内容安全检测",
+ "tags": [
+ "通用工具"
+ ]
+ }
+ },
+ "/api/material": {
+ "post": {
+ "description": "创建草稿",
+ "operationId": "MaterialController_create",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateMaterialDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建草稿",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/material/task/create": {
+ "post": {
+ "description": "创建批量生成草稿任务",
+ "operationId": "MaterialController_createTask",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateMaterialTaskDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建批量生成草稿任务",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/material/task/preview/{id}": {
+ "get": {
+ "description": "预览草稿生成任务",
+ "operationId": "MaterialController_previewTask",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "预览草稿生成任务",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/material/task/start/{id}": {
+ "get": {
+ "description": "开始草稿生成任务",
+ "operationId": "MaterialController_startTask",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "开始草稿生成任务",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/material/{id}": {
+ "delete": {
+ "description": "删除素材",
+ "operationId": "MaterialController_del",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除素材",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/material/info/{id}": {
+ "put": {
+ "description": "更新草稿信息",
+ "operationId": "MaterialController_upMaterialInfo",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateMaterialDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新草稿信息",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/material/list/{pageNo}/{pageSize}": {
+ "get": {
+ "description": "获取草稿列表",
+ "operationId": "MaterialController_getList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ },
+ {
+ "name": "title",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "title": "标题",
+ "type": "string"
+ }
+ },
+ {
+ "name": "groupId",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "title": "组ID",
+ "type": "string"
+ }
+ },
+ {
+ "name": "status",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "title": "草稿状态",
+ "type": "number",
+ "enum": [
+ 0,
+ 1,
+ -1
+ ]
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取草稿列表",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/material/group": {
+ "post": {
+ "description": "创建草稿组",
+ "operationId": "MaterialController_createGroup",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateMaterialGroupDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建草稿组",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/material/group/{id}": {
+ "delete": {
+ "description": "删除素材组",
+ "operationId": "MaterialController_delGroup",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除素材组",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/material/group/info/{id}": {
+ "post": {
+ "description": "更新素材组信息",
+ "operationId": "MaterialController_updateGroupInfo",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateMaterialGroupDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新素材组信息",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/material/group/list/{pageNo}/{pageSize}": {
+ "get": {
+ "description": "获取素材组列表",
+ "operationId": "MaterialController_getGroupList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取素材组列表",
+ "tags": [
+ "草稿"
+ ]
+ }
+ },
+ "/api/media": {
+ "post": {
+ "description": "创建媒体资源",
+ "operationId": "MediaController_create",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateMediaDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建媒体资源",
+ "tags": [
+ "媒体资源"
+ ]
+ }
+ },
+ "/api/media/{id}": {
+ "delete": {
+ "description": "删除媒体资源",
+ "operationId": "MediaController_del",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除媒体资源",
+ "tags": [
+ "媒体资源"
+ ]
+ }
+ },
+ "/api/media/list/{pageNo}/{pageSize}": {
+ "get": {
+ "description": "获取媒体列表",
+ "operationId": "MediaController_getList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ },
+ {
+ "name": "groupId",
+ "required": false,
+ "in": "query",
+ "schema": {
+ "title": "组ID",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取媒体列表",
+ "tags": [
+ "媒体资源"
+ ]
+ }
+ },
+ "/api/media/group": {
+ "post": {
+ "description": "创建发媒体资源组",
+ "operationId": "MediaController_createGroup",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateMediaGroupDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建发媒体资源组",
+ "tags": [
+ "媒体资源"
+ ]
+ }
+ },
+ "/api/media/group/{id}": {
+ "delete": {
+ "description": "删除媒体资源组",
+ "operationId": "MediaController_delGroup",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除媒体资源",
+ "tags": [
+ "媒体资源"
+ ]
+ }
+ },
+ "/api/media/group/info/{id}": {
+ "post": {
+ "description": "更新资源组信息",
+ "operationId": "MediaController_updateGroupInfo",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateMediaGroupDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "boolean"
+ }
+ }
+ }
+ }
+ },
+ "summary": "更新资源组信息",
+ "tags": [
+ "媒体资源"
+ ]
+ }
+ },
+ "/api/media/group/list/{pageNo}/{pageSize}": {
+ "get": {
+ "description": "获取媒体组列表",
+ "operationId": "MediaController_getGroupList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ },
+ {
+ "name": "type",
+ "required": false,
+ "in": "query",
+ "description": "类型",
+ "schema": {
+ "title": "类型",
+ "type": "string",
+ "enum": [
+ "video",
+ "img"
+ ]
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "summary": "获取媒体组列表",
+ "tags": [
+ "媒体资源"
+ ]
+ }
+ },
+ "/api/payment/checkout": {
+ "get": {
+ "operationId": "PaymentController_list",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CheckoutListBody"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取订单列表",
+ "tags": [
+ "payment - strip支付中台"
+ ]
+ },
+ "post": {
+ "operationId": "PaymentController_create",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CheckoutBodyDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建订单",
+ "tags": [
+ "payment - strip支付中台"
+ ]
+ }
+ },
+ "/api/payment/checkout/{id}": {
+ "get": {
+ "operationId": "PaymentController_getById",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "查询订单",
+ "tags": [
+ "payment - strip支付中台"
+ ]
+ }
+ },
+ "/api/payment/refund": {
+ "post": {
+ "operationId": "PaymentController_refund",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RefundBodyDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "订单退款",
+ "tags": [
+ "payment - strip支付中台"
+ ]
+ }
+ },
+ "/api/payment/subscription": {
+ "get": {
+ "operationId": "PaymentController_subscription",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SubscriptionBodyDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "订阅列表",
+ "tags": [
+ "payment - strip支付中台"
+ ]
+ }
+ },
+ "/api/payment/unsubscribe": {
+ "post": {
+ "operationId": "PaymentController_unsubscribe",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UnSubscriptionBodyDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "退订",
+ "tags": [
+ "payment - strip支付中台"
+ ]
+ }
+ },
+ "/api/payment/webhook": {
+ "post": {
+ "operationId": "PaymentController_webhook",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "payment - strip支付中台"
+ ]
+ }
+ },
+ "/api/payment/success/page": {
+ "get": {
+ "operationId": "PaymentController_paySuccessPage",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": ""
+ }
+ },
+ "tags": [
+ "payment - strip支付中台"
+ ]
+ }
+ },
+ "/api/withdraw/create": {
+ "post": {
+ "operationId": "WithdrawController_create",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/WithdrawCreateDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "创建提现",
+ "tags": [
+ "withdraw - 提现"
+ ]
+ }
+ },
+ "/api/withdraw/info/{id}": {
+ "get": {
+ "operationId": "WithdrawController_getById",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "信息",
+ "tags": [
+ "withdraw - 提现"
+ ]
+ }
+ },
+ "/api/withdraw/list/{pageNo}/{pageSize}": {
+ "get": {
+ "operationId": "WithdrawController_subscription",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "列表",
+ "tags": [
+ "withdraw - 提现"
+ ]
+ }
+ },
+ "/api/task/opportunity/list/{pageNo}/{pageSize}": {
+ "get": {
+ "operationId": "TaskController_getTaskOpportunityList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取待接取的任务列表",
+ "tags": [
+ "task - 任务"
+ ]
+ }
+ },
+ "/api/task/opportunity/info/{opportunityId}": {
+ "get": {
+ "operationId": "TaskController_getTaskInfo",
+ "parameters": [
+ {
+ "name": "opportunityId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TaskWithOpportunityVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取任务信息",
+ "tags": [
+ "task - 任务"
+ ]
+ }
+ },
+ "/api/task/reward-amount": {
+ "get": {
+ "operationId": "TaskController_getTotalRewardAmount",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TotalAmountVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取进行中任务的金额总数",
+ "tags": [
+ "task - 任务"
+ ]
+ }
+ },
+ "/api/task/accept": {
+ "post": {
+ "operationId": "TaskController_acceptTask",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AcceptTaskDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserTaskVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "用户接取任务",
+ "tags": [
+ "task - 任务"
+ ]
+ }
+ },
+ "/api/task/submit": {
+ "post": {
+ "operationId": "TaskController_submitTask",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/SubmitTaskDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserTaskVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "用户提交完成任务",
+ "tags": [
+ "task - 任务"
+ ]
+ }
+ },
+ "/api/task/material/{id}": {
+ "get": {
+ "operationId": "MaterialController_getMaterial",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MaterialVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取素材信息",
+ "tags": [
+ "task/material - 素材"
+ ]
+ }
+ },
+ "/api/task/material/task/{taskId}": {
+ "get": {
+ "operationId": "MaterialController_getMaterialsByTaskId",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/MaterialVo"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "按任务ID获取素材列表",
+ "tags": [
+ "task/material - 素材"
+ ]
+ }
+ },
+ "/api/task/userTask/list/{pageNo}/{pageSize}": {
+ "get": {
+ "operationId": "UserTaskController_getUserTaskList",
+ "parameters": [
+ {
+ "name": "pageNo",
+ "required": true,
+ "in": "path",
+ "description": "页码",
+ "schema": {
+ "title": "页码",
+ "type": "number"
+ }
+ },
+ {
+ "name": "pageSize",
+ "required": true,
+ "in": "path",
+ "description": "页数",
+ "schema": {
+ "title": "页数",
+ "type": "number"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取用户任务列表",
+ "tags": [
+ "task/userTask - 用户任务"
+ ]
+ }
+ },
+ "/api/task/userTask/info/{id}": {
+ "get": {
+ "operationId": "UserTaskController_getUserTaskById",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取用户任务详情",
+ "tags": [
+ "task/userTask - 用户任务"
+ ]
+ }
+ },
+ "/api/notification/unread-count": {
+ "get": {
+ "operationId": "NotificationController_getUnreadCount",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UnreadCountVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取未读通知数量",
+ "tags": [
+ "notification - 通知"
+ ]
+ }
+ },
+ "/api/notification": {
+ "get": {
+ "operationId": "NotificationController_getUserNotifications",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/NotificationListVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取用户通知列表",
+ "tags": [
+ "notification - 通知"
+ ]
+ },
+ "delete": {
+ "operationId": "NotificationController_deleteNotifications",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/BatchDeleteDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/OperationResultVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除通知",
+ "tags": [
+ "notification - 通知"
+ ]
+ }
+ },
+ "/api/notification/{id}": {
+ "get": {
+ "operationId": "NotificationController_getNotificationDetail",
+ "parameters": [
+ {
+ "name": "id",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/NotificationVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取通知详情",
+ "tags": [
+ "notification - 通知"
+ ]
+ }
+ },
+ "/api/notification/read": {
+ "put": {
+ "operationId": "NotificationController_markAsRead",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MarkAsReadDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/OperationResultVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "标记通知已读",
+ "tags": [
+ "notification - 通知"
+ ]
+ }
+ },
+ "/api/notification/read-all": {
+ "put": {
+ "operationId": "NotificationController_markAllAsRead",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/OperationResultVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "标记全部通知已读",
+ "tags": [
+ "notification - 通知"
+ ]
+ }
+ },
+ "/api/ai/chat": {
+ "post": {
+ "operationId": "AiController_chat",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserAiChatRequestDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserAiChatResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "AI聊天对话",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/logs": {
+ "get": {
+ "operationId": "AiController_getLogs",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserLogsResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取用户AI使用日志",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/image/generate": {
+ "post": {
+ "operationId": "AiController_generateImage",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserImageGenerationRequestDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserImageResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "AI图片生成",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/image/edit": {
+ "post": {
+ "operationId": "AiController_editImage",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserImageEditRequestDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserImageResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "AI图片编辑",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/image/variation": {
+ "post": {
+ "operationId": "AiController_variationImage",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserImageVariationRequestDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserImageResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "AI图片变体",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/mj/submit/video": {
+ "post": {
+ "operationId": "AiController_mjSubmitVideo",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserVideoGenerationRequestDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MjVideoSubmitResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "MJ视频生成",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/mj/task/{taskId}/fetch": {
+ "get": {
+ "operationId": "AiController_mjFetchTask",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/MjTaskFetchResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "MJ任务查询",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/video/generations": {
+ "post": {
+ "operationId": "AiController_videoGeneration",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UserVideoGenerationDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VideoGenerationResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "通用视频生成",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/video/generations/{taskId}": {
+ "get": {
+ "operationId": "AiController_getVideoTaskStatus",
+ "parameters": [
+ {
+ "name": "taskId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/VideoTaskStatusResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "查询视频任务状态",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/md2card": {
+ "post": {
+ "operationId": "AiController_generateMd2Card",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Md2CardRequestDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Md2CardResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "Markdown转卡片图片",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/fireflycard": {
+ "post": {
+ "operationId": "AiController_generateFireflycard",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/FireflycardRequestDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/FireflycardResponseVo"
+ }
+ }
+ }
+ }
+ },
+ "summary": "Fireflycard生成卡片图片(免费)",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/models/image/generation": {
+ "get": {
+ "operationId": "AiController_getImageGenerationModels",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/ImageGenerationModelVo"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取图片生成模型参数",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/models/image/edit": {
+ "get": {
+ "operationId": "AiController_getImageEditModels",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/ImageEditModelVo"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取图片编辑模型参数",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/models/video/generation": {
+ "get": {
+ "operationId": "AiController_getVideoGenerationModels",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/VideoGenerationModelVo"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取视频生成模型参数",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/ai/models/chat": {
+ "get": {
+ "operationId": "AiController_getChatModels",
+ "parameters": [],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/ChatModelVo"
+ }
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取对话模型参数",
+ "tags": [
+ "AI"
+ ]
+ }
+ },
+ "/api/statistics/account/latest/{accountId}": {
+ "get": {
+ "operationId": "StatisticsController_getAccountDataLatest",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号最新数据",
+ "tags": [
+ "statistics - 数据统计"
+ ]
+ }
+ },
+ "/api/statistics/account/increase/{accountId}": {
+ "get": {
+ "operationId": "StatisticsController_getAccountDataIncrease",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号增量",
+ "tags": [
+ "statistics - 数据统计"
+ ]
+ }
+ },
+ "/api/statistics/account/period/{accountId}": {
+ "get": {
+ "operationId": "StatisticsController_getAccountDataPeriod",
+ "parameters": [
+ {
+ "name": "accountId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "startDate",
+ "required": true,
+ "in": "query",
+ "description": "开始日期",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "endDate",
+ "required": true,
+ "in": "query",
+ "description": "结束日期",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取账号一段时间内数据",
+ "tags": [
+ "statistics - 数据统计"
+ ]
+ }
+ },
+ "/api/statistics/channels/latest-batch": {
+ "post": {
+ "operationId": "StatisticsController_getChannelDataLatestByUids",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/BatchChannelLatestQueryDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "批量获取频道最新数据并汇总粉丝数",
+ "tags": [
+ "statistics - 数据统计"
+ ]
+ }
+ },
+ "/api/statistics/channels/period-batch": {
+ "post": {
+ "operationId": "StatisticsController_getChannelDataPeriodByUids",
+ "parameters": [],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GetChannelDataPeriodByUidsDto"
+ }
+ }
+ }
+ },
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object"
+ }
+ }
+ }
+ }
+ },
+ "summary": "批量获取频道最新数据并汇总粉丝数",
+ "tags": [
+ "statistics - 数据统计"
+ ]
+ }
+ },
+ "/api/cloud-spaces": {
+ "get": {
+ "description": "获取云空间列表,支持分页查询,可按关键词、状态、区域进行筛选",
+ "operationId": "CloudSpacesController_listCloudSpaces",
+ "parameters": [
+ {
+ "name": "",
+ "required": true,
+ "in": "query",
+ "schema": {
+ "$ref": "#/components/schemas/ListCloudSpacesDto"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {},
+ "required": [
+ "data"
+ ]
+ }
+ }
+ }
+ },
+ "error": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "number",
+ "description": "错误码"
+ },
+ "message": {
+ "type": "string",
+ "description": "错误消息"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取云空间列表",
+ "tags": [
+ "云空间管理"
+ ]
+ }
+ },
+ "/api/cloud-spaces/{cloudSpaceId}/status": {
+ "get": {
+ "description": "根据云空间ID获取云空间的当前状态信息,包括运行状态、资源使用情况等",
+ "operationId": "CloudSpacesController_getCloudSpaceStatus",
+ "parameters": [
+ {
+ "name": "cloudSpaceId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {},
+ "required": [
+ "data"
+ ]
+ }
+ }
+ }
+ },
+ "error": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "number",
+ "description": "错误码"
+ },
+ "message": {
+ "type": "string",
+ "description": "错误消息"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "summary": "获取云空间状态",
+ "tags": [
+ "云空间管理"
+ ]
+ }
+ },
+ "/api/cloud-spaces/{cloudSpaceId}": {
+ "delete": {
+ "description": "根据云空间ID删除指定的云空间,此操作不可逆,请谨慎操作",
+ "operationId": "CloudSpacesController_deleteCloudSpace",
+ "parameters": [
+ {
+ "name": "cloudSpaceId",
+ "required": true,
+ "in": "path",
+ "schema": {
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "default": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {},
+ "required": [
+ "data"
+ ]
+ }
+ }
+ }
+ },
+ "error": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "number",
+ "description": "错误码"
+ },
+ "message": {
+ "type": "string",
+ "description": "错误消息"
+ }
+ },
+ "required": [
+ "code",
+ "message"
+ ]
+ }
+ }
+ }
+ }
+ },
+ "summary": "删除云空间",
+ "tags": [
+ "云空间管理"
+ ]
+ }
+ }
+ },
+ "info": {
+ "title": "aitoearn-gateway",
+ "description": "aitoearn-gateway API",
+ "version": "",
+ "contact": {}
+ },
+ "tags": [],
+ "servers": [],
+ "components": {
+ "securitySchemes": {
+ "bearer": {
+ "scheme": "bearer",
+ "bearerFormat": "JWT",
+ "type": "http"
+ }
+ },
+ "schemas": {
+ "UserResDto": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "title": "用户ID"
+ },
+ "name": {
+ "type": "string",
+ "title": "用户名"
+ },
+ "phone": {
+ "type": "string",
+ "title": "手机号"
+ },
+ "gender": {
+ "type": "number",
+ "title": "性别",
+ "enum": [
+ 1,
+ 2
+ ]
+ },
+ "avatar": {
+ "type": "string",
+ "title": "头像图片链接"
+ },
+ "desc": {
+ "type": "string",
+ "title": "简介"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "phone"
+ ]
+ },
+ "UpdateUserInfoDto": {
+ "type": "object",
+ "properties": {}
+ },
+ "PointsRecordsVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "list": {
+ "description": "积分记录列表",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "记录ID",
+ "type": "string"
+ },
+ "userId": {
+ "description": "用户ID",
+ "type": "string"
+ },
+ "amount": {
+ "description": "积分变动数量",
+ "type": "number"
+ },
+ "balance": {
+ "description": "变动后余额",
+ "type": "number"
+ },
+ "type": {
+ "description": "积分变动类型, ai_service ai 生成, user_register 用户注册",
+ "type": "string"
+ },
+ "description": {
+ "description": "积分变动描述",
+ "type": "string"
+ },
+ "metadata": {
+ "description": "额外信息",
+ "type": "object",
+ "propertyNames": {
+ "type": "string"
+ },
+ "additionalProperties": {}
+ }
+ },
+ "required": [
+ "id",
+ "userId",
+ "amount",
+ "balance",
+ "type"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "total": {
+ "description": "总记录数",
+ "type": "number"
+ }
+ },
+ "required": [
+ "list",
+ "total"
+ ],
+ "additionalProperties": false
+ },
+ "MailLoginDto": {
+ "type": "object",
+ "properties": {
+ "mail": {
+ "type": "string",
+ "title": "邮箱"
+ },
+ "password": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "mail",
+ "password"
+ ]
+ },
+ "GetRegistByMailBackDto": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "mail": {
+ "type": "string",
+ "title": "邮箱"
+ },
+ "password": {
+ "type": "string"
+ },
+ "inviteCode": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "mail",
+ "password"
+ ]
+ },
+ "MailRepasswordDto": {
+ "type": "object",
+ "properties": {
+ "mail": {
+ "type": "string",
+ "title": "邮箱"
+ }
+ },
+ "required": [
+ "mail"
+ ]
+ },
+ "GoogleLoginDto": {
+ "type": "object",
+ "properties": {
+ "clientId": {
+ "type": "string",
+ "description": "Google客户端ID"
+ },
+ "credential": {
+ "type": "string",
+ "description": "Google认证凭证"
+ }
+ },
+ "required": [
+ "clientId",
+ "credential"
+ ]
+ },
+ "UserCancelDto": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code"
+ ]
+ },
+ "CreateFeedBackDto": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string",
+ "title": "内容"
+ },
+ "type": {
+ "type": "string",
+ "title": "类型",
+ "description": ""
+ },
+ "tagList": {
+ "description": "标识数组",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "fileUrlList": {
+ "description": "文件链接数组",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "content",
+ "tagList",
+ "fileUrlList"
+ ]
+ },
+ "InitMultipartUploadDto": {
+ "type": "object",
+ "properties": {
+ "fileName": {
+ "type": "string",
+ "title": "文件名称"
+ },
+ "secondPath": {
+ "type": "string",
+ "title": "存放位置"
+ },
+ "fileSize": {
+ "type": "string",
+ "title": "文件大小"
+ },
+ "contentType": {
+ "type": "string",
+ "title": "文件类型"
+ }
+ },
+ "required": [
+ "fileName",
+ "secondPath",
+ "fileSize",
+ "contentType"
+ ]
+ },
+ "CompletePartDto": {
+ "type": "object",
+ "properties": {
+ "fileId": {
+ "type": "string",
+ "title": "文件key"
+ },
+ "uploadId": {
+ "type": "string",
+ "title": "上传ID"
+ },
+ "parts": {
+ "title": "分片",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "fileId",
+ "uploadId",
+ "parts"
+ ]
+ },
+ "BilibiliPublishOptionDto": {
+ "type": "object",
+ "properties": {
+ "tid": {
+ "type": "number",
+ "title": "分区ID",
+ "description": "由获取分区信息接口得到"
+ },
+ "no_reprint": {
+ "type": "number",
+ "title": "是否允许转载",
+ "enum": [
+ 1,
+ 0
+ ],
+ "description": "0-允许,1-不允许"
+ },
+ "copyright": {
+ "type": "number",
+ "title": "版权",
+ "enum": [
+ 1,
+ 2
+ ],
+ "description": "版权"
+ },
+ "source": {
+ "type": "string",
+ "title": "来源",
+ "description": "如果copyright为转载,则此字段表示转载来源"
+ }
+ },
+ "required": [
+ "tid",
+ "no_reprint",
+ "copyright",
+ "source"
+ ]
+ },
+ "GzhPublishOptionDto": {
+ "type": "object",
+ "properties": {
+ "tid": {
+ "type": "number",
+ "title": "分区ID",
+ "description": "由获取分区信息接口得到"
+ }
+ },
+ "required": [
+ "tid"
+ ]
+ },
+ "YoutubePublishOptionDto": {
+ "type": "object",
+ "properties": {
+ "privacyStatus": {
+ "type": "string",
+ "title": "隐私状态",
+ "enum": [
+ "public",
+ "unlisted",
+ "private"
+ ],
+ "description": "隐私状态"
+ },
+ "tag": {
+ "type": "string",
+ "title": "关键词",
+ "description": "多个关键词用英文逗号分隔"
+ },
+ "categoryId": {
+ "type": "string",
+ "title": "类别ID",
+ "description": "类别ID"
+ },
+ "publishAt": {
+ "type": "string",
+ "title": "发布时间",
+ "description": "发布时间"
+ }
+ },
+ "required": [
+ "privacyStatus"
+ ]
+ },
+ "FacebookPostOptionsDto": {
+ "type": "object",
+ "properties": {
+ "content_category": {
+ "type": "string",
+ "title": "facebook post category",
+ "description": "post category"
+ },
+ "content_tags": {
+ "title": "内容标签",
+ "description": "内容标签",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "custom_labels": {
+ "title": "自定义标签",
+ "description": "自定义标签",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "direct_share_status": {
+ "type": "number",
+ "title": "直接分享状态",
+ "description": "直接分享状态"
+ },
+ "embeddable": {
+ "type": "boolean",
+ "title": "是否可嵌入",
+ "description": "是否可嵌入"
+ }
+ }
+ },
+ "InstagramPostOptionsDto": {
+ "type": "object",
+ "properties": {
+ "content_category": {
+ "type": "string",
+ "title": "内容分类",
+ "description": "内容分类"
+ },
+ "alt_text": {
+ "type": "string",
+ "title": "替代文本"
+ },
+ "caption": {
+ "type": "string",
+ "title": "标题"
+ },
+ "collaborators": {
+ "title": "协作者",
+ "description": "协作者列表",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "cover_url": {
+ "type": "string",
+ "title": "封面URL",
+ "description": "封面图片的URL"
+ },
+ "image_url": {
+ "type": "string",
+ "title": "图片URL",
+ "description": "图片的URL"
+ },
+ "location_id": {
+ "type": "string",
+ "title": "位置ID",
+ "description": "位置ID,用于标记发布内容的位置,通常用于地理标签"
+ },
+ "product_tags": {
+ "title": "产品标签",
+ "description": "产品标签列表",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "user_tags": {
+ "title": "用户标签",
+ "description": "用户标签列表",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "ThreadsPostOptionsDto": {
+ "type": "object",
+ "properties": {
+ "reply_control": {
+ "type": "string",
+ "title": "回复控制",
+ "description": "回复控制选项"
+ },
+ "allowlisted_country_codes": {
+ "title": "允许的国家代码",
+ "description": "允许的国家代码列表",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "alt_text": {
+ "type": "string",
+ "title": "替代文本",
+ "description": "替代文本"
+ },
+ "auto_publish_text": {
+ "type": "boolean",
+ "title": "自动发布文本",
+ "description": "是否自动发布文本"
+ },
+ "topic_tags": {
+ "type": "string",
+ "title": "话题标签",
+ "description": "话题标签列表"
+ }
+ }
+ },
+ "TiktokPostOptionsDto": {
+ "type": "object",
+ "properties": {
+ "privacy_level": {
+ "type": "string",
+ "title": "privacy level",
+ "description": "privacy level"
+ },
+ "disable_duet": {
+ "type": "boolean",
+ "title": "disable duet",
+ "description": "disable duet"
+ },
+ "disable_stitch": {
+ "type": "boolean",
+ "title": "disable stitch",
+ "description": "disable stitch"
+ },
+ "disable_comment": {
+ "type": "boolean",
+ "title": "disable comment",
+ "description": "disable comment"
+ },
+ "brand_organic_toggle": {
+ "type": "boolean",
+ "title": "organic brand",
+ "description": "organic brand"
+ },
+ "brand_content_toggle": {
+ "type": "boolean",
+ "title": "brand content",
+ "description": "brand content"
+ }
+ }
+ },
+ "PublishOptionDto": {
+ "type": "object",
+ "properties": {
+ "bilibili": {
+ "title": "B站参数",
+ "description": "B站参数",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/BilibiliPublishOptionDto"
+ }
+ ]
+ },
+ "wxGzh": {
+ "title": "B站参数",
+ "description": "微信公众号参数",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/GzhPublishOptionDto"
+ }
+ ]
+ },
+ "youtube": {
+ "title": "B站参数",
+ "description": "微信公众号参数",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/YoutubePublishOptionDto"
+ }
+ ]
+ },
+ "facebook": {
+ "title": "Facebook参数",
+ "description": "Facebook参数",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/FacebookPostOptionsDto"
+ }
+ ]
+ },
+ "instagram": {
+ "title": "Instagram参数",
+ "description": "Instagram参数",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/InstagramPostOptionsDto"
+ }
+ ]
+ },
+ "threads": {
+ "title": "Threads参数",
+ "description": "Threads参数",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/ThreadsPostOptionsDto"
+ }
+ ]
+ },
+ "tiktok": {
+ "title": "Tiktok参数",
+ "description": "Tiktok参数",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/TiktokPostOptionsDto"
+ }
+ ]
+ }
+ }
+ },
+ "CreatePublishDto": {
+ "type": "object",
+ "properties": {
+ "flowId": {
+ "type": "string",
+ "title": "流水ID",
+ "description": "流水ID--使用UUID"
+ },
+ "type": {
+ "type": "string",
+ "title": "类型",
+ "enum": [
+ "video",
+ "article"
+ ],
+ "description": "类型"
+ },
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "内容"
+ },
+ "accountId": {
+ "type": "string",
+ "title": "账户ID"
+ },
+ "accountType": {
+ "type": "string",
+ "title": "平台类型",
+ "enum": [
+ "douyin",
+ "xhs",
+ "wxSph",
+ "KWAI",
+ "youtube",
+ "wxGzh",
+ "bilibili",
+ "twitter",
+ "tiktok",
+ "facebook",
+ "instagram",
+ "threads",
+ "pinterest"
+ ],
+ "description": "平台类型"
+ },
+ "videoUrl": {
+ "type": "string",
+ "title": "视频路径"
+ },
+ "coverUrl": {
+ "type": "string",
+ "title": "封面路径"
+ },
+ "imgUrlList": {
+ "title": "图片列表",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "publishTime": {
+ "format": "date-time",
+ "type": "string",
+ "title": "发布日期"
+ },
+ "topics": {
+ "title": "话题列表",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "option": {
+ "title": "其他配置",
+ "description": "其他配置",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/PublishOptionDto"
+ }
+ ]
+ }
+ },
+ "required": [
+ "flowId",
+ "type",
+ "title",
+ "desc",
+ "accountId",
+ "accountType"
+ ]
+ },
+ "CreatePublishRecordDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "flowId": {
+ "type": "string"
+ },
+ "dataId": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "video",
+ "article"
+ ]
+ },
+ "title": {
+ "type": "string"
+ },
+ "desc": {
+ "type": "string"
+ },
+ "userTaskId": {
+ "type": "string"
+ },
+ "accountId": {
+ "type": "string"
+ },
+ "topics": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "accountType": {
+ "type": "string",
+ "enum": [
+ "douyin",
+ "xhs",
+ "wxSph",
+ "KWAI",
+ "youtube",
+ "wxGzh",
+ "bilibili",
+ "twitter",
+ "tiktok",
+ "facebook",
+ "instagram",
+ "threads",
+ "pinterest"
+ ]
+ },
+ "uid": {
+ "type": "string"
+ },
+ "videoUrl": {
+ "type": "string"
+ },
+ "coverUrl": {
+ "type": "string"
+ },
+ "imgUrlList": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "publishTime": {},
+ "imgList": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "errorMsg": {
+ "type": "string"
+ },
+ "option": {}
+ },
+ "required": [
+ "dataId",
+ "type",
+ "accountId",
+ "topics",
+ "accountType",
+ "uid",
+ "publishTime",
+ "option"
+ ],
+ "additionalProperties": false
+ },
+ "PubRecordListFilterDto": {
+ "type": "object",
+ "properties": {
+ "accountType": {
+ "type": "string",
+ "title": "账户类型",
+ "enum": [
+ "douyin",
+ "xhs",
+ "wxSph",
+ "KWAI",
+ "youtube",
+ "wxGzh",
+ "bilibili",
+ "twitter",
+ "tiktok",
+ "facebook",
+ "instagram",
+ "threads",
+ "pinterest"
+ ],
+ "description": "账户类型"
+ },
+ "type": {
+ "type": "string",
+ "title": "类型",
+ "enum": [
+ "video",
+ "article"
+ ],
+ "description": "类型"
+ },
+ "status": {
+ "type": "number",
+ "title": "状态",
+ "enum": [
+ -1,
+ 0,
+ 1,
+ 2
+ ],
+ "description": "状态"
+ },
+ "time": {
+ "title": "创建时间区间,必须为UTC时间",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "PublishRecordItemDto": {
+ "type": "object",
+ "properties": {
+ "dataId": {
+ "type": "string",
+ "description": "数据ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "记录ID"
+ },
+ "flowId": {
+ "type": "string",
+ "example": "flow001",
+ "description": "流程ID"
+ },
+ "type": {
+ "type": "string",
+ "example": "video",
+ "description": "发布类型(如 video, article)"
+ },
+ "title": {
+ "type": "string",
+ "example": "标题示例",
+ "description": "发布标题"
+ },
+ "desc": {
+ "type": "string",
+ "example": "这是一个描述",
+ "description": "发布描述"
+ },
+ "accountId": {
+ "type": "string",
+ "example": "ACCOUNT-001",
+ "description": "账号ID"
+ },
+ "accountType": {
+ "type": "string",
+ "enum": [
+ "douyin",
+ "xhs",
+ "wxSph",
+ "KWAI",
+ "youtube",
+ "wxGzh",
+ "bilibili",
+ "twitter",
+ "tiktok",
+ "facebook",
+ "instagram",
+ "threads",
+ "pinterest"
+ ],
+ "description": "账号类型"
+ },
+ "uid": {
+ "type": "string",
+ "example": "USER-001",
+ "description": "用户UID"
+ },
+ "videoUrl": {
+ "type": "string",
+ "example": "https://example.com/video.mp4",
+ "description": "视频地址"
+ },
+ "coverUrl": {
+ "type": "string",
+ "example": "https://example.com/cover.jpg",
+ "description": "封面图地址"
+ },
+ "imgUrlList": {
+ "example": [
+ "https://example.com/image1.jpg",
+ "https://example.com/image2.jpg"
+ ],
+ "description": "图片列表",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "publishTime": {
+ "format": "date-time",
+ "type": "string",
+ "example": "2025-04-27T18:00:18Z",
+ "description": "发布时间"
+ },
+ "status": {
+ "type": "number",
+ "enum": [
+ -1,
+ 0,
+ 1,
+ 2
+ ],
+ "description": "发布状态"
+ },
+ "errorMsg": {
+ "type": "string",
+ "example": "错误信息(可为空)",
+ "description": "错误信息",
+ "nullable": true
+ }
+ },
+ "required": [
+ "dataId",
+ "id",
+ "flowId",
+ "type",
+ "title",
+ "desc",
+ "accountId",
+ "accountType",
+ "uid",
+ "imgUrlList",
+ "publishTime",
+ "status",
+ "errorMsg"
+ ]
+ },
+ "UpdatePublishRecordTimeDto": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "title": "数据ID"
+ },
+ "publishTime": {
+ "format": "date-time",
+ "type": "string",
+ "title": "新的发布时间"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "AddArcCommentDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "title": "账号ID",
+ "description": "账号ID"
+ },
+ "dataId": {
+ "type": "string",
+ "title": "作品ID",
+ "description": "作品ID"
+ },
+ "content": {
+ "type": "string",
+ "title": "内容",
+ "description": "内容"
+ }
+ },
+ "required": [
+ "accountId",
+ "dataId",
+ "content"
+ ]
+ },
+ "ReplyCommentDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "title": "账号ID",
+ "description": "账号ID"
+ },
+ "commentId": {
+ "type": "string",
+ "title": "评论ID",
+ "description": "评论ID"
+ },
+ "content": {
+ "type": "string",
+ "title": "内容",
+ "description": "内容"
+ }
+ },
+ "required": [
+ "accountId",
+ "commentId",
+ "content"
+ ]
+ },
+ "DelCommentDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "title": "账号ID",
+ "description": "账号ID"
+ },
+ "commentId": {
+ "type": "string",
+ "title": "评论ID",
+ "description": "评论ID"
+ }
+ },
+ "required": [
+ "accountId",
+ "commentId"
+ ]
+ },
+ "CreateSkKeyDto": {
+ "type": "object",
+ "properties": {
+ "desc": {
+ "type": "string",
+ "title": "备注",
+ "description": "备注"
+ }
+ }
+ },
+ "SkKeyUpInfoDto": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "title": "key",
+ "description": "key"
+ },
+ "desc": {
+ "type": "string",
+ "title": "备注",
+ "description": "备注"
+ }
+ },
+ "required": [
+ "key",
+ "desc"
+ ]
+ },
+ "SkKeyAddRefAccountDto": {
+ "type": "object",
+ "properties": {
+ "key": {
+ "type": "string",
+ "title": "key",
+ "description": "key"
+ },
+ "accountId": {
+ "type": "string",
+ "title": "账号ID",
+ "description": "账号ID"
+ }
+ },
+ "required": [
+ "key",
+ "accountId"
+ ]
+ },
+ "VideoInitDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "title": "账户ID"
+ },
+ "name": {
+ "type": "string",
+ "title": "文件名称(带格式)"
+ },
+ "utype": {
+ "type": "number",
+ "enum": [
+ 0,
+ 1
+ ]
+ }
+ },
+ "required": [
+ "accountId",
+ "name",
+ "utype"
+ ]
+ },
+ "VideoCompleteDto": {
+ "type": "object",
+ "properties": {
+ "uploadToken": {
+ "type": "string",
+ "title": "上传token"
+ }
+ },
+ "required": [
+ "uploadToken"
+ ]
+ },
+ "UploadLitVideoDto": {
+ "type": "object",
+ "properties": {
+ "uploadToken": {
+ "type": "string",
+ "title": "上传token"
+ }
+ },
+ "required": [
+ "uploadToken"
+ ]
+ },
+ "ArchiveAddByUtokenBodyDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "title": "账户ID"
+ },
+ "uploadToken": {
+ "type": "string",
+ "title": "上传token"
+ },
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "cover": {
+ "type": "string",
+ "title": "封面url"
+ },
+ "tid": {
+ "type": "number",
+ "title": "分区ID,由获取分区信息接口得到"
+ },
+ "noReprint": {
+ "type": "number",
+ "title": "是否允许转载 0-允许,1-不允许。默认0"
+ },
+ "desc": {
+ "type": "string",
+ "title": "描述"
+ },
+ "tag": {
+ "title": "标签",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "copyright": {
+ "type": "number",
+ "title": "1-原创,2-转载(转载时source必填)"
+ },
+ "source": {
+ "type": "string",
+ "title": "如果copyright为转载,则此字段表示转载来源"
+ }
+ },
+ "required": [
+ "accountId",
+ "uploadToken",
+ "title",
+ "tid",
+ "noReprint",
+ "copyright"
+ ]
+ },
+ "AuthBackQueryDto": {
+ "type": "object",
+ "properties": {}
+ },
+ "InsertCommentThreadsDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "channelId": {
+ "type": "string",
+ "description": "频道ID"
+ },
+ "videoId": {
+ "type": "string",
+ "description": "视频ID"
+ },
+ "textOriginal": {
+ "type": "string",
+ "description": "评论内容"
+ }
+ },
+ "required": [
+ "accountId",
+ "channelId",
+ "videoId",
+ "textOriginal"
+ ]
+ },
+ "SetCommentThreadsModerationStatusDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "评论ID"
+ },
+ "moderationStatus": {
+ "type": "string",
+ "description": "审核状态,heldForReview 等待管理员审核 published - 清除要公开显示的评论。 rejected - 不显示该评论",
+ "enum": [
+ "heldForReview",
+ "published",
+ "rejected"
+ ]
+ },
+ "banAuthor": {
+ "type": "boolean",
+ "description": "是否自动拒绝评论作者撰写的任何其他评论 将作者加入黑名单,"
+ }
+ },
+ "required": [
+ "accountId",
+ "id",
+ "moderationStatus"
+ ]
+ },
+ "InsertCommentDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "textOriginal": {
+ "type": "string",
+ "description": "评论内容, 注意:textOriginal 和 parentId 必须有且只能有一个"
+ },
+ "parentId": {
+ "type": "string",
+ "description": "父评论ID, 注意:textOriginal 和 parentId 必须有且只能有一个"
+ }
+ },
+ "required": [
+ "accountId"
+ ]
+ },
+ "UpdateCommentDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "评论ID"
+ },
+ "textOriginal": {
+ "type": "string",
+ "description": "评论内容"
+ }
+ },
+ "required": [
+ "accountId",
+ "id",
+ "textOriginal"
+ ]
+ },
+ "DeleteCommentDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "评论ID"
+ }
+ },
+ "required": [
+ "accountId",
+ "id"
+ ]
+ },
+ "VideoRateDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "视频ID"
+ },
+ "rating": {
+ "type": "string",
+ "description": "点赞、踩 like/dislike/none ",
+ "enum": [
+ "like",
+ "dislike",
+ "none"
+ ]
+ }
+ },
+ "required": [
+ "accountId",
+ "id",
+ "rating"
+ ]
+ },
+ "DeleteVideoDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "视频ID"
+ }
+ },
+ "required": [
+ "accountId",
+ "id"
+ ]
+ },
+ "UpdateVideoDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "视频ID"
+ },
+ "title": {
+ "type": "string",
+ "description": "标题"
+ },
+ "categoryId": {
+ "type": "string",
+ "description": "类别ID"
+ },
+ "defaultLanguage": {
+ "type": "string",
+ "description": "默认语言"
+ },
+ "description": {
+ "type": "string",
+ "description": "描述"
+ },
+ "privacyStatus": {
+ "type": "string",
+ "description": "隐私状态"
+ },
+ "tags": {
+ "type": "string",
+ "description": "标签"
+ },
+ "publishAt": {
+ "type": "string",
+ "description": "发布时间"
+ },
+ "recordingDate": {
+ "type": "string",
+ "description": "录制日期"
+ }
+ },
+ "required": [
+ "accountId",
+ "id",
+ "title",
+ "categoryId"
+ ]
+ },
+ "InsertPlayListDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "title": {
+ "type": "string",
+ "description": "标题"
+ },
+ "description": {
+ "type": "string",
+ "description": "描述"
+ },
+ "privacyStatus": {
+ "type": "string",
+ "description": "隐私状态"
+ }
+ },
+ "required": [
+ "accountId",
+ "title"
+ ]
+ },
+ "UpdatePlayListDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "播放列表ID"
+ },
+ "title": {
+ "type": "string",
+ "description": "标题"
+ },
+ "description": {
+ "type": "string",
+ "description": "描述"
+ },
+ "privacyStatus": {
+ "type": "string",
+ "description": "隐私状态"
+ },
+ "podcastStatus": {
+ "type": "string",
+ "description": "播客状态"
+ }
+ },
+ "required": [
+ "accountId",
+ "id",
+ "title"
+ ]
+ },
+ "DeletePlayListDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "播放列表ID"
+ }
+ },
+ "required": [
+ "accountId",
+ "id"
+ ]
+ },
+ "GetPlayListDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "channelId": {
+ "type": "string",
+ "description": "频道ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "播放列表ID"
+ },
+ "mine": {
+ "type": "boolean",
+ "description": "我的播放列表"
+ },
+ "maxResults": {
+ "type": "number",
+ "description": "最大结果数"
+ },
+ "pageToken": {
+ "type": "string",
+ "description": "分页令牌"
+ }
+ },
+ "required": [
+ "accountId"
+ ]
+ },
+ "InsertPlayItemsDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "playlistId": {
+ "type": "string",
+ "description": "播放列表ID"
+ },
+ "resourceId": {
+ "type": "string",
+ "description": "资源ID"
+ },
+ "position": {
+ "type": "number",
+ "description": "位置"
+ },
+ "note": {
+ "type": "string",
+ "description": "说明"
+ },
+ "startAt": {
+ "type": "string",
+ "description": "开始时间"
+ },
+ "endAt": {
+ "type": "string",
+ "description": "结束时间"
+ }
+ },
+ "required": [
+ "accountId",
+ "playlistId",
+ "resourceId"
+ ]
+ },
+ "UpdatePlayItemsDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "播放列表项ID"
+ },
+ "playlistId": {
+ "type": "string",
+ "description": "播放列表ID"
+ },
+ "resourceId": {
+ "type": "string",
+ "description": "资源ID"
+ },
+ "position": {
+ "type": "number",
+ "description": "位置"
+ },
+ "note": {
+ "type": "string",
+ "description": "说明"
+ },
+ "startAt": {
+ "type": "string",
+ "description": "开始时间"
+ },
+ "endAt": {
+ "type": "string",
+ "description": "结束时间"
+ }
+ },
+ "required": [
+ "accountId",
+ "id",
+ "playlistId",
+ "resourceId"
+ ]
+ },
+ "DeletePlayItemsDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "播放列表项ID"
+ }
+ },
+ "required": [
+ "accountId",
+ "id"
+ ]
+ },
+ "GetPlayItemsDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "播放列表ID"
+ },
+ "playlistId": {
+ "type": "string",
+ "description": "我的播放列表"
+ },
+ "maxResults": {
+ "type": "number",
+ "description": "最大结果数"
+ },
+ "pageToken": {
+ "type": "string",
+ "description": "分页令牌"
+ },
+ "videoId": {
+ "type": "string",
+ "description": "视频ID"
+ }
+ },
+ "required": [
+ "accountId"
+ ]
+ },
+ "GetChannelsSectionsListDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "channelId": {
+ "type": "string",
+ "description": "频道ID, 注意:channelId、id、mine,必须有且只能有一个"
+ },
+ "id": {
+ "type": "string",
+ "description": "板块ID, 多个id用英文逗号分隔,注意:channelId、id、mine,必须有且只能有一个"
+ },
+ "mine": {
+ "type": "boolean",
+ "description": "是否查询自己的板块, 注意:channelId、id、mine,必须有且只能有一个"
+ }
+ },
+ "required": [
+ "accountId"
+ ]
+ },
+ "SearchDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "description": "账号ID",
+ "example": "account_123"
+ },
+ "forMine": {
+ "type": "boolean",
+ "description": "是否搜索我的内容",
+ "example": false
+ },
+ "maxResults": {
+ "type": "number",
+ "description": "最大结果数",
+ "example": 10
+ },
+ "order": {
+ "type": "string",
+ "description": "排序方法",
+ "enum": [
+ "relevance",
+ "date",
+ "rating",
+ "title",
+ "videoCount",
+ "viewCount"
+ ],
+ "example": "relevance"
+ },
+ "pageToken": {
+ "type": "string",
+ "description": "分页令牌",
+ "example": "next_page_token"
+ },
+ "publishedBefore": {
+ "type": "string",
+ "description": "发布时间之前",
+ "example": "2024-01-01T00:00:00Z"
+ },
+ "publishedAfter": {
+ "type": "string",
+ "description": "发布时间之后",
+ "example": "2024-01-01T00:00:00Z"
+ },
+ "q": {
+ "type": "string",
+ "description": "搜索查询字词",
+ "example": "编程教程"
+ },
+ "type": {
+ "type": "string",
+ "description": "搜索类型",
+ "enum": [
+ "video",
+ "channel",
+ "playlist"
+ ],
+ "example": "video"
+ },
+ "videoCategoryId": {
+ "type": "string",
+ "description": "视频类别ID",
+ "example": "22"
+ }
+ },
+ "required": [
+ "accountId"
+ ]
+ },
+ "GetAuthUrlDto": {
+ "type": "object",
+ "properties": {
+ "platform": {
+ "type": "string",
+ "title": "平台名称"
+ }
+ },
+ "required": [
+ "platform"
+ ]
+ },
+ "RefreshTokenDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "title": "账户ID"
+ },
+ "refreshToken": {
+ "type": "string",
+ "title": "刷新令牌"
+ }
+ },
+ "required": [
+ "accountId",
+ "refreshToken"
+ ]
+ },
+ "VideoPublishDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "title": "账户ID"
+ },
+ "postInfo": {
+ "type": "object",
+ "title": "发布信息"
+ },
+ "sourceInfo": {
+ "type": "object",
+ "title": "源信息"
+ }
+ },
+ "required": [
+ "accountId",
+ "postInfo",
+ "sourceInfo"
+ ]
+ },
+ "PhotoPublishDto": {
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "title": "账户ID"
+ },
+ "postMode": {
+ "type": "string",
+ "title": "发布模式"
+ },
+ "postInfo": {
+ "type": "object",
+ "title": "发布信息"
+ },
+ "sourceInfo": {
+ "type": "object",
+ "title": "源信息"
+ }
+ },
+ "required": [
+ "accountId",
+ "postMode",
+ "postInfo",
+ "sourceInfo"
+ ]
+ },
+ "UploadVideoFileDto": {
+ "type": "object",
+ "properties": {
+ "uploadUrl": {
+ "type": "string",
+ "title": "上传URL"
+ },
+ "contentType": {
+ "type": "string",
+ "title": "内容类型"
+ }
+ },
+ "required": [
+ "uploadUrl",
+ "contentType"
+ ]
+ },
+ "CreateBoardBodyDto": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "画板名称"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "MediaSource": {
+ "type": "object",
+ "properties": {
+ "source_type": {
+ "type": "object",
+ "title": "媒体类型"
+ },
+ "url": {
+ "type": "string",
+ "title": "地址"
+ }
+ },
+ "required": [
+ "source_type",
+ "url"
+ ]
+ },
+ "CreatePinBodyDto": {
+ "type": "object",
+ "properties": {
+ "board_id": {
+ "type": "string",
+ "title": "此Pin所属board的板块。"
+ },
+ "link": {
+ "type": "string",
+ "title": "点击连接跳转的link"
+ },
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "description": {
+ "type": "string",
+ "title": "描述"
+ },
+ "decs": {
+ "type": "string",
+ "title": "描述"
+ },
+ "dominant_color": {
+ "type": "string",
+ "title": "RGB表示的颜色 主引脚颜色。十六进制数,例如“#6E7874”"
+ },
+ "alt_text": {
+ "type": "string",
+ "title": "鼠标悬浮描述"
+ },
+ "media_source": {
+ "title": "媒体来源",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/MediaSource"
+ }
+ ]
+ },
+ "items": {
+ "title": "点开pin里面包含的图片文案信息",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "board_id",
+ "media_source",
+ "items"
+ ]
+ },
+ "FacebookPageSelectionDto": {
+ "type": "object",
+ "properties": {
+ "pageIds": {
+ "title": "页面ID列表",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "pageIds"
+ ]
+ },
+ "AddInteractionRecordDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "minLength": 1
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "douyin",
+ "xhs",
+ "wxSph",
+ "KWAI",
+ "youtube",
+ "wxGzh",
+ "bilibili",
+ "twitter",
+ "tiktok",
+ "facebook",
+ "instagram",
+ "threads",
+ "pinterest"
+ ]
+ },
+ "worksId": {
+ "type": "string",
+ "minLength": 1
+ },
+ "worksTitle": {
+ "type": "string"
+ },
+ "worksCover": {
+ "type": "string"
+ },
+ "worksContent": {
+ "type": "string"
+ },
+ "commentContent": {
+ "type": "string"
+ },
+ "commentRemark": {
+ "type": "string"
+ },
+ "commentTime": {
+ "type": "string"
+ },
+ "likeTime": {
+ "type": "string"
+ },
+ "collectTime": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "accountId",
+ "type",
+ "worksId"
+ ],
+ "additionalProperties": false
+ },
+ "AddReplyCommentRecordDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "accountId": {
+ "type": "string",
+ "minLength": 1
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "douyin",
+ "xhs",
+ "wxSph",
+ "KWAI",
+ "youtube",
+ "wxGzh",
+ "bilibili",
+ "twitter",
+ "tiktok",
+ "facebook",
+ "instagram",
+ "threads",
+ "pinterest"
+ ]
+ },
+ "commentId": {
+ "type": "string",
+ "minLength": 1
+ },
+ "worksId": {
+ "type": "string"
+ },
+ "commentContent": {
+ "type": "string",
+ "minLength": 1
+ },
+ "replyContent": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "required": [
+ "accountId",
+ "type",
+ "commentId",
+ "commentContent",
+ "replyContent"
+ ],
+ "additionalProperties": false
+ },
+ "CreateAccountDto": {
+ "type": "object",
+ "properties": {
+ "refresh_token": {
+ "type": "string",
+ "description": "refresh_token"
+ },
+ "access_token": {
+ "type": "string",
+ "description": "access_token"
+ },
+ "type": {
+ "type": "string",
+ "description": "平台类型",
+ "enum": [
+ "douyin",
+ "xhs",
+ "wxSph",
+ "KWAI",
+ "youtube",
+ "wxGzh",
+ "bilibili",
+ "twitter",
+ "tiktok",
+ "facebook",
+ "instagram",
+ "threads",
+ "pinterest"
+ ]
+ },
+ "loginCookie": {
+ "type": "string",
+ "description": "登录Cookie"
+ },
+ "loginTime": {
+ "format": "date-time",
+ "type": "string",
+ "description": "登录时间"
+ },
+ "uid": {
+ "type": "string",
+ "description": "平台用户ID"
+ },
+ "account": {
+ "type": "string",
+ "description": "账号"
+ },
+ "avatar": {
+ "type": "string",
+ "description": "头像"
+ },
+ "nickname": {
+ "type": "string",
+ "description": "昵称"
+ },
+ "fansCount": {
+ "type": "number",
+ "description": "粉丝数"
+ },
+ "readCount": {
+ "type": "number",
+ "description": "阅读数"
+ },
+ "likeCount": {
+ "type": "number",
+ "description": "点赞数"
+ },
+ "collectCount": {
+ "type": "number",
+ "description": "收藏数"
+ },
+ "forwardCount": {
+ "type": "number",
+ "description": "转发数"
+ },
+ "commentCount": {
+ "type": "number",
+ "description": "评论数"
+ },
+ "lastStatsTime": {
+ "format": "date-time",
+ "type": "string",
+ "description": "最后统计时间"
+ },
+ "workCount": {
+ "type": "number",
+ "description": "作品数"
+ },
+ "income": {
+ "type": "number",
+ "description": "收入"
+ },
+ "groupId": {
+ "type": "string",
+ "description": "账户组ID"
+ }
+ },
+ "required": [
+ "refresh_token",
+ "access_token",
+ "type",
+ "loginCookie",
+ "loginTime",
+ "uid",
+ "account",
+ "avatar",
+ "nickname",
+ "fansCount",
+ "readCount",
+ "likeCount",
+ "collectCount",
+ "forwardCount",
+ "commentCount",
+ "lastStatsTime",
+ "workCount",
+ "income",
+ "groupId"
+ ]
+ },
+ "UpdateAccountDto": {
+ "type": "object",
+ "properties": {
+ "refresh_token": {
+ "type": "string",
+ "description": "refresh_token"
+ },
+ "access_token": {
+ "type": "string",
+ "description": "access_token"
+ },
+ "type": {
+ "type": "string",
+ "description": "平台类型",
+ "enum": [
+ "douyin",
+ "xhs",
+ "wxSph",
+ "KWAI",
+ "youtube",
+ "wxGzh",
+ "bilibili",
+ "twitter",
+ "tiktok",
+ "facebook",
+ "instagram",
+ "threads",
+ "pinterest"
+ ]
+ },
+ "loginCookie": {
+ "type": "string",
+ "description": "登录Cookie"
+ },
+ "loginTime": {
+ "format": "date-time",
+ "type": "string",
+ "description": "登录时间"
+ },
+ "uid": {
+ "type": "string",
+ "description": "平台用户ID"
+ },
+ "account": {
+ "type": "string",
+ "description": "账号"
+ },
+ "avatar": {
+ "type": "string",
+ "description": "头像"
+ },
+ "nickname": {
+ "type": "string",
+ "description": "昵称"
+ },
+ "fansCount": {
+ "type": "number",
+ "description": "粉丝数"
+ },
+ "readCount": {
+ "type": "number",
+ "description": "阅读数"
+ },
+ "likeCount": {
+ "type": "number",
+ "description": "点赞数"
+ },
+ "collectCount": {
+ "type": "number",
+ "description": "收藏数"
+ },
+ "forwardCount": {
+ "type": "number",
+ "description": "转发数"
+ },
+ "commentCount": {
+ "type": "number",
+ "description": "评论数"
+ },
+ "lastStatsTime": {
+ "format": "date-time",
+ "type": "string",
+ "description": "最后统计时间"
+ },
+ "workCount": {
+ "type": "number",
+ "description": "作品数"
+ },
+ "income": {
+ "type": "number",
+ "description": "收入"
+ },
+ "groupId": {
+ "type": "string",
+ "description": "账户组ID"
+ },
+ "id": {
+ "type": "string",
+ "description": "更新ID"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "UpdateAccountStatusDto": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "status": {
+ "type": "number",
+ "description": "状态"
+ }
+ },
+ "required": [
+ "id",
+ "status"
+ ]
+ },
+ "DeleteAccountsDto": {
+ "type": "object",
+ "properties": {
+ "ids": {
+ "description": "要删除的ID",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "ids"
+ ]
+ },
+ "UpdateAccountStatisticsDto": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "description": "账号ID"
+ },
+ "workCount": {
+ "type": "number",
+ "description": "作品数"
+ },
+ "fansCount": {
+ "type": "number",
+ "description": "粉丝数"
+ },
+ "readCount": {
+ "type": "number",
+ "description": "阅读数"
+ },
+ "likeCount": {
+ "type": "number",
+ "description": "点赞数"
+ },
+ "collectCount": {
+ "type": "number",
+ "description": "收藏数"
+ },
+ "commentCount": {
+ "type": "number",
+ "description": "评论数"
+ },
+ "income": {
+ "type": "number",
+ "description": "收入"
+ }
+ },
+ "required": [
+ "id",
+ "workCount",
+ "fansCount",
+ "readCount",
+ "likeCount",
+ "collectCount",
+ "commentCount",
+ "income"
+ ]
+ },
+ "CreateAccountGroupDto": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "组名称"
+ },
+ "rank": {
+ "type": "number",
+ "description": "组排序,默认为 1"
+ },
+ "proxyIp": {
+ "type": "string",
+ "description": "代理IP"
+ },
+ "browserConfig": {
+ "type": "object",
+ "description": "浏览器配置必须为JSON格式"
+ }
+ },
+ "required": [
+ "name",
+ "rank",
+ "proxyIp",
+ "browserConfig"
+ ]
+ },
+ "UpdateAccountGroupDto": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "description": "组名称"
+ },
+ "rank": {
+ "type": "number",
+ "description": "组排序,默认为 1"
+ },
+ "proxyIp": {
+ "type": "string",
+ "description": "代理IP"
+ },
+ "browserConfig": {
+ "type": "object",
+ "description": "浏览器配置必须为JSON格式"
+ },
+ "id": {
+ "type": "string",
+ "description": "更新ID"
+ }
+ },
+ "required": [
+ "name",
+ "rank",
+ "proxyIp",
+ "browserConfig",
+ "id"
+ ]
+ },
+ "DeleteAccountGroupDto": {
+ "type": "object",
+ "properties": {
+ "ids": {
+ "description": "要删除的ID",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "required": [
+ "ids"
+ ]
+ },
+ "GenerateFingerprintDto": {
+ "type": "object",
+ "properties": {
+ "operatingSystems": {
+ "type": "string",
+ "title": "指定要使用的操作系统的字符串 \"windows\" | \"macos\" | \"linux\" | \"android\" | \"ios\""
+ }
+ },
+ "required": [
+ "operatingSystems"
+ ]
+ },
+ "VideoAiDesDto": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "title": "视频URL"
+ }
+ },
+ "required": [
+ "url"
+ ]
+ },
+ "ReviewAi": {
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "描述"
+ },
+ "max": {
+ "type": "number",
+ "title": "最大字数"
+ }
+ },
+ "required": [
+ "title"
+ ]
+ },
+ "ReviewImgAi": {
+ "type": "object",
+ "properties": {
+ "imgUrl": {
+ "type": "string",
+ "title": "图片链接"
+ },
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "描述"
+ },
+ "max": {
+ "type": "number",
+ "title": "最大字数"
+ }
+ },
+ "required": [
+ "imgUrl",
+ "title"
+ ]
+ },
+ "ReviewAiRecover": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string",
+ "title": "评论内容"
+ },
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "描述"
+ },
+ "max": {
+ "type": "number",
+ "title": "最大字数"
+ }
+ },
+ "required": [
+ "content"
+ ]
+ },
+ "AiArticleHtmlDto": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string",
+ "title": "内容"
+ }
+ },
+ "required": [
+ "content"
+ ]
+ },
+ "AdminAiMarkdownDto": {
+ "type": "object",
+ "properties": {
+ "prompt": {
+ "type": "string",
+ "title": "系统提示词"
+ },
+ "content": {
+ "type": "string",
+ "title": "内容"
+ }
+ },
+ "required": [
+ "prompt",
+ "content"
+ ]
+ },
+ "TextModerationDto": {
+ "type": "object",
+ "properties": {
+ "content": {
+ "type": "string",
+ "title": "内容"
+ }
+ },
+ "required": [
+ "content"
+ ]
+ },
+ "MaterialMediaDto": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "type": "string",
+ "title": "资源链接"
+ },
+ "type": {
+ "type": "string",
+ "title": "资源类型",
+ "enum": [
+ "video",
+ "img"
+ ]
+ },
+ "content": {
+ "type": "string",
+ "title": "文本内容"
+ }
+ },
+ "required": [
+ "url",
+ "type"
+ ]
+ },
+ "CreateMaterialDto": {
+ "type": "object",
+ "properties": {
+ "groupId": {
+ "type": "string",
+ "title": "组ID"
+ },
+ "coverUrl": {
+ "type": "string",
+ "title": "封面图"
+ },
+ "mediaList": {
+ "title": "媒体数组",
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/MaterialMediaDto"
+ }
+ },
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "内容"
+ },
+ "option": {
+ "type": "object",
+ "title": "其他属性"
+ }
+ },
+ "required": [
+ "groupId",
+ "mediaList",
+ "title"
+ ]
+ },
+ "CreateMaterialTaskDto": {
+ "type": "object",
+ "properties": {
+ "groupId": {
+ "type": "string",
+ "title": "组ID"
+ },
+ "num": {
+ "type": "number",
+ "title": "生成数量"
+ },
+ "aiModelTag": {
+ "type": "string",
+ "title": "AI模型tag"
+ },
+ "prompt": {
+ "type": "string",
+ "title": "提示词"
+ },
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "描述"
+ },
+ "mediaGroups": {
+ "title": "使用的媒体组数组",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "coverGroup": {
+ "type": "string",
+ "title": "封面媒体组"
+ },
+ "option": {
+ "type": "object",
+ "title": "高级设置"
+ },
+ "textMax": {
+ "type": "number",
+ "title": "最大文字数量"
+ },
+ "language": {
+ "type": "string",
+ "title": "语言"
+ }
+ },
+ "required": [
+ "groupId",
+ "num",
+ "aiModelTag",
+ "prompt",
+ "mediaGroups",
+ "coverGroup"
+ ]
+ },
+ "UpdateMaterialDto": {
+ "type": "object",
+ "properties": {
+ "coverUrl": {
+ "type": "string",
+ "title": "封面图"
+ },
+ "mediaList": {
+ "title": "媒体数组",
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/MaterialMediaDto"
+ }
+ },
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "内容"
+ },
+ "option": {
+ "type": "object",
+ "title": "其他属性"
+ }
+ },
+ "required": [
+ "mediaList",
+ "title"
+ ]
+ },
+ "CreateMaterialGroupDto": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "description": "素材类型",
+ "enum": [
+ "video",
+ "article"
+ ]
+ },
+ "name": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "描述"
+ }
+ },
+ "required": [
+ "type",
+ "name"
+ ]
+ },
+ "UpdateMaterialGroupDto": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "描述"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
+ "CreateMediaDto": {
+ "type": "object",
+ "properties": {
+ "groupId": {
+ "type": "string",
+ "title": "组ID"
+ },
+ "materialId": {
+ "type": "string",
+ "title": "素材ID"
+ },
+ "type": {
+ "type": "string",
+ "title": "类型",
+ "enum": [
+ "video",
+ "img"
+ ],
+ "description": "类型"
+ },
+ "url": {
+ "type": "string",
+ "title": "文件链接"
+ },
+ "thumbUrl": {
+ "type": "string",
+ "title": "缩略图"
+ },
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "描述"
+ }
+ },
+ "required": [
+ "groupId",
+ "type",
+ "url",
+ "title",
+ "desc"
+ ]
+ },
+ "CreateMediaGroupDto": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "title": "类型",
+ "enum": [
+ "video",
+ "img"
+ ],
+ "description": "类型"
+ },
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "描述"
+ }
+ },
+ "required": [
+ "type",
+ "title",
+ "desc"
+ ]
+ },
+ "UpdateMediaGroupDto": {
+ "type": "object",
+ "properties": {
+ "title": {
+ "type": "string",
+ "title": "标题"
+ },
+ "desc": {
+ "type": "string",
+ "title": "描述"
+ }
+ },
+ "required": [
+ "title",
+ "desc"
+ ]
+ },
+ "CheckoutListBody": {
+ "type": "object",
+ "properties": {
+ "page": {
+ "type": "number",
+ "title": "页面"
+ },
+ "size": {
+ "type": "number",
+ "title": "每页个数"
+ }
+ }
+ },
+ "MetadataDto": {
+ "type": "object",
+ "properties": {}
+ },
+ "CheckoutBodyDto": {
+ "type": "object",
+ "properties": {
+ "success_url": {
+ "type": "string",
+ "title": "默认回到域名首页,如果指定回调页面只需要加上域名后面path地址即可"
+ },
+ "payment": {
+ "type": "string",
+ "title": "付款模式-连续包月-连续包年-一次性付-购买积分",
+ "enum": [
+ "month",
+ "year",
+ "onceYear",
+ "onceMonth",
+ "points"
+ ]
+ },
+ "mode": {
+ "type": "string",
+ "title": "支付模式",
+ "enum": [
+ "payment",
+ "subscription"
+ ]
+ },
+ "flagTrialPeriodDays": {
+ "type": "number",
+ "title": "订阅模式下是否给七天免费试用时长, 0 - 不给, 1-给",
+ "enum": [
+ 0,
+ 1
+ ]
+ },
+ "metadata": {
+ "title": "aitoearn订单信息",
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/MetadataDto"
+ }
+ ]
+ }
+ },
+ "required": [
+ "payment",
+ "mode",
+ "flagTrialPeriodDays"
+ ]
+ },
+ "RefundBodyDto": {
+ "type": "object",
+ "properties": {
+ "charge": {
+ "type": "string",
+ "title": "checkout表里面的charge "
+ }
+ },
+ "required": [
+ "charge"
+ ]
+ },
+ "SubscriptionBodyDto": {
+ "type": "object",
+ "properties": {
+ "page": {
+ "type": "number",
+ "title": "页面"
+ },
+ "size": {
+ "type": "number",
+ "title": "每页个数"
+ }
+ },
+ "required": [
+ "page",
+ "size"
+ ]
+ },
+ "UnSubscriptionBodyDto": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "title": "订阅id"
+ }
+ },
+ "required": [
+ "id"
+ ]
+ },
+ "WithdrawCreateDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "flowId": {
+ "type": "string",
+ "minLength": 1
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "task",
+ "reward"
+ ]
+ },
+ "amount": {
+ "type": "number",
+ "minimum": 0
+ },
+ "relId": {
+ "type": "string",
+ "minLength": 1
+ },
+ "incomeRecordId": {
+ "type": "string",
+ "minLength": 1
+ },
+ "remark": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "required": [
+ "type",
+ "amount"
+ ],
+ "additionalProperties": false
+ },
+ "TaskWithOpportunityVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "maxRecruits": {
+ "type": "number"
+ },
+ "currentRecruits": {
+ "type": "number"
+ },
+ "deadline": {
+ "type": "string"
+ },
+ "reward": {
+ "type": "number"
+ },
+ "status": {
+ "type": "string"
+ },
+ "accountTypes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "taskData": {
+ "type": "object",
+ "properties": {
+ "targetWorksId": {
+ "type": "string"
+ },
+ "targetAuthorId": {
+ "type": "string"
+ },
+ "platform": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "materials": {
+ "type": "array",
+ "items": {}
+ },
+ "createdAt": {
+ "type": "string"
+ },
+ "updatedAt": {
+ "type": "string"
+ },
+ "opportunityId": {
+ "type": "string"
+ },
+ "opportunityStatus": {
+ "type": "string"
+ },
+ "expiredAt": {
+ "type": "string"
+ },
+ "accountId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "description",
+ "type",
+ "maxRecruits",
+ "currentRecruits",
+ "deadline",
+ "reward",
+ "status",
+ "accountTypes",
+ "createdAt",
+ "updatedAt",
+ "opportunityId",
+ "opportunityStatus",
+ "expiredAt",
+ "accountId"
+ ],
+ "additionalProperties": false
+ },
+ "TotalAmountVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "totalAmount": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "totalAmount"
+ ],
+ "additionalProperties": false
+ },
+ "AcceptTaskDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "opportunityId": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "required": [
+ "opportunityId"
+ ],
+ "additionalProperties": false
+ },
+ "UserTaskVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "taskId": {
+ "type": "string"
+ },
+ "userId": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "reward": {
+ "type": "number"
+ },
+ "accountId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "taskId",
+ "userId",
+ "status",
+ "reward",
+ "accountId"
+ ],
+ "additionalProperties": false
+ },
+ "SubmitTaskDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "userTaskId": {
+ "type": "string",
+ "minLength": 1
+ }
+ },
+ "required": [
+ "userTaskId"
+ ],
+ "additionalProperties": false
+ },
+ "MaterialVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "taskId": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "aiPrompt": {
+ "type": "string"
+ },
+ "priority": {
+ "type": "number"
+ },
+ "content": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "createdAt": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updatedAt": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ "required": [
+ "id",
+ "taskId",
+ "type",
+ "status",
+ "createdAt",
+ "updatedAt"
+ ],
+ "additionalProperties": false
+ },
+ "UnreadCountVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 9007199254740991
+ }
+ },
+ "required": [
+ "count"
+ ],
+ "additionalProperties": false
+ },
+ "NotificationListVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "list": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "userId": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "readAt": {
+ "type": "string"
+ },
+ "relatedId": {
+ "type": "string"
+ },
+ "createdAt": {
+ "type": "string"
+ },
+ "updatedAt": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "userId",
+ "title",
+ "content",
+ "type",
+ "status",
+ "relatedId",
+ "createdAt",
+ "updatedAt"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "total": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 9007199254740991
+ }
+ },
+ "required": [
+ "list",
+ "total"
+ ],
+ "additionalProperties": false
+ },
+ "NotificationVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "userId": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "content": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "readAt": {
+ "type": "string"
+ },
+ "relatedId": {
+ "type": "string"
+ },
+ "createdAt": {
+ "type": "string"
+ },
+ "updatedAt": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "userId",
+ "title",
+ "content",
+ "type",
+ "status",
+ "relatedId",
+ "createdAt",
+ "updatedAt"
+ ],
+ "additionalProperties": false
+ },
+ "MarkAsReadDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "notificationIds": {
+ "minItems": 1,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "required": [
+ "notificationIds"
+ ],
+ "additionalProperties": false
+ },
+ "OperationResultVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "affectedCount": {
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 9007199254740991
+ }
+ },
+ "additionalProperties": false
+ },
+ "BatchDeleteDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "notificationIds": {
+ "minItems": 1,
+ "type": "array",
+ "items": {
+ "type": "string",
+ "minLength": 1
+ }
+ }
+ },
+ "required": [
+ "notificationIds"
+ ],
+ "additionalProperties": false
+ },
+ "UserAiChatRequestDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "messages": {
+ "description": "消息列表",
+ "minItems": 1,
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "role": {
+ "description": "消息角色",
+ "type": "string",
+ "enum": [
+ "system",
+ "user",
+ "assistant"
+ ]
+ },
+ "content": {
+ "description": "消息内容",
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "text"
+ },
+ "text": {
+ "description": "文本内容",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "text"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "image_url"
+ },
+ "image_url": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "图片链接",
+ "type": "string",
+ "format": "uri"
+ },
+ "detail": {
+ "description": "图片处理质量",
+ "type": "string",
+ "enum": [
+ "auto",
+ "low",
+ "high"
+ ]
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "required": [
+ "type",
+ "image_url"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "video_url"
+ },
+ "video_url": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "视频链接",
+ "type": "string",
+ "format": "uri"
+ }
+ },
+ "required": [
+ "url"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "required": [
+ "type",
+ "video_url"
+ ],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "input_audio"
+ },
+ "input_audio": {
+ "type": "object",
+ "properties": {
+ "data": {
+ "description": "音频链接",
+ "type": "string",
+ "format": "uri"
+ },
+ "format": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "data",
+ "format"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "required": [
+ "type",
+ "input_audio"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "required": [
+ "role",
+ "content"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "model": {
+ "description": "AI模型",
+ "default": "qwen-plus",
+ "type": "string"
+ },
+ "temperature": {
+ "description": "温度参数",
+ "type": "number",
+ "minimum": 0,
+ "maximum": 2
+ },
+ "maxTokens": {
+ "description": "最大输出token数",
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 9007199254740991
+ }
+ },
+ "required": [
+ "messages",
+ "model"
+ ],
+ "additionalProperties": false
+ },
+ "UserAiChatResponseVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "content": {
+ "description": "AI回复内容",
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {}
+ ]
+ },
+ "model": {
+ "description": "使用的模型",
+ "type": "string"
+ },
+ "usage": {
+ "description": "使用情况",
+ "type": "object",
+ "properties": {
+ "input_tokens": {
+ "description": "输入token数",
+ "type": "number"
+ },
+ "output_tokens": {
+ "description": "输出token数",
+ "type": "number"
+ },
+ "total_tokens": {
+ "description": "总token数",
+ "type": "number"
+ }
+ },
+ "required": [
+ "input_tokens",
+ "output_tokens",
+ "total_tokens"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "required": [
+ "content",
+ "model"
+ ],
+ "additionalProperties": false
+ },
+ "UserLogsResponseVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "items": {
+ "description": "日志列表",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "日志ID",
+ "type": "number"
+ },
+ "created_at": {
+ "description": "创建时间",
+ "type": "number"
+ },
+ "content": {
+ "description": "内容",
+ "type": "string"
+ },
+ "model_name": {
+ "description": "模型名称",
+ "type": "string"
+ },
+ "prompt_tokens": {
+ "description": "提示token数",
+ "type": "number"
+ },
+ "completion_tokens": {
+ "description": "完成token数",
+ "type": "number"
+ },
+ "use_time": {
+ "description": "使用时间",
+ "type": "number"
+ }
+ },
+ "required": [
+ "id",
+ "created_at",
+ "content",
+ "model_name",
+ "prompt_tokens",
+ "completion_tokens",
+ "use_time"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "total": {
+ "description": "总数",
+ "type": "number"
+ },
+ "page": {
+ "description": "页码",
+ "type": "number"
+ },
+ "page_size": {
+ "description": "每页大小",
+ "type": "number"
+ }
+ },
+ "required": [
+ "items",
+ "total",
+ "page",
+ "page_size"
+ ],
+ "additionalProperties": false
+ },
+ "UserImageGenerationRequestDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "prompt": {
+ "description": "图片描述提示",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 4000
+ },
+ "model": {
+ "description": "图片生成模型",
+ "type": "string"
+ },
+ "n": {
+ "description": "生成图片数量",
+ "default": 1,
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 10
+ },
+ "quality": {
+ "description": "图片质量",
+ "type": "string"
+ },
+ "response_format": {
+ "description": "返回格式",
+ "default": "url",
+ "type": "string",
+ "enum": [
+ "url",
+ "b64_json"
+ ]
+ },
+ "size": {
+ "description": "图片尺寸",
+ "type": "string"
+ },
+ "style": {
+ "description": "图片风格",
+ "type": "string"
+ },
+ "user": {
+ "description": "用户标识符",
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt",
+ "n",
+ "response_format",
+ "size"
+ ],
+ "additionalProperties": false
+ },
+ "UserImageResponseVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "created": {
+ "description": "创建时间",
+ "type": "number"
+ },
+ "list": {
+ "description": "图片数据",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "图片URL",
+ "type": "string"
+ },
+ "b64_json": {
+ "description": "Base64编码的图片",
+ "type": "string"
+ },
+ "revised_prompt": {
+ "description": "修订后的提示",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "usage": {
+ "description": "使用情况",
+ "type": "object",
+ "properties": {
+ "input_tokens": {
+ "description": "输入token数",
+ "type": "number"
+ },
+ "output_tokens": {
+ "description": "输出token数",
+ "type": "number"
+ },
+ "total_tokens": {
+ "description": "总token数",
+ "type": "number"
+ }
+ },
+ "required": [
+ "output_tokens",
+ "total_tokens"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "required": [
+ "created",
+ "list"
+ ],
+ "additionalProperties": false
+ },
+ "UserImageEditRequestDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "image": {
+ "description": "原始图片(base64编码)",
+ "type": "string",
+ "minLength": 1
+ },
+ "prompt": {
+ "description": "编辑描述",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 4000
+ },
+ "mask": {
+ "description": "遮罩图片(base64编码)",
+ "type": "string"
+ },
+ "model": {
+ "description": "图片编辑模型",
+ "type": "string"
+ },
+ "n": {
+ "description": "生成图片数量",
+ "default": 1,
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 10
+ },
+ "size": {
+ "description": "图片尺寸",
+ "type": "string"
+ },
+ "response_format": {
+ "description": "返回格式",
+ "default": "url",
+ "type": "string",
+ "enum": [
+ "url",
+ "b64_json"
+ ]
+ },
+ "user": {
+ "description": "用户标识符",
+ "type": "string"
+ }
+ },
+ "required": [
+ "image",
+ "prompt",
+ "n",
+ "size",
+ "response_format"
+ ],
+ "additionalProperties": false
+ },
+ "UserImageVariationRequestDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "image": {
+ "description": "原始图片(base64编码)",
+ "type": "string",
+ "minLength": 1
+ },
+ "model": {
+ "description": "图片模型",
+ "type": "string"
+ },
+ "n": {
+ "description": "生成图片数量",
+ "default": 1,
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 10
+ },
+ "size": {
+ "description": "图片尺寸",
+ "type": "string"
+ },
+ "response_format": {
+ "description": "返回格式",
+ "default": "url",
+ "type": "string",
+ "enum": [
+ "url",
+ "b64_json"
+ ]
+ },
+ "user": {
+ "description": "用户标识符",
+ "type": "string"
+ }
+ },
+ "required": [
+ "image",
+ "n",
+ "size",
+ "response_format"
+ ],
+ "additionalProperties": false
+ },
+ "UserVideoGenerationRequestDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "base64": {
+ "description": "图片base64或prompt里代入图片url",
+ "type": "string"
+ },
+ "mode": {
+ "description": "生成模式",
+ "type": "string",
+ "enum": [
+ "fast",
+ "relax"
+ ]
+ },
+ "prompt": {
+ "description": "url+提示词",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 4000
+ },
+ "motion": {
+ "description": "动作强度",
+ "type": "string",
+ "enum": [
+ "high",
+ "low"
+ ]
+ },
+ "video_type": {
+ "description": "视频类型",
+ "type": "string",
+ "enum": [
+ "vid_1.1_i2v_480",
+ "vid_1.1_i2v_720",
+ "vid_1.1_i2v_1080"
+ ]
+ },
+ "animate_mode": {
+ "description": "动画模式",
+ "type": "string",
+ "enum": [
+ "manual",
+ "auto"
+ ]
+ },
+ "action": {
+ "description": "视频执行动作",
+ "type": "string",
+ "enum": [
+ "rerun",
+ "start_frame",
+ "auto_low",
+ "auto_high",
+ "low_motion",
+ "high_motion"
+ ]
+ },
+ "taskId": {
+ "description": "视频衍生执行动作用到的任务id",
+ "type": "string"
+ },
+ "index": {
+ "description": "视频衍生索引",
+ "type": "integer",
+ "minimum": 0,
+ "maximum": 3
+ }
+ },
+ "required": [
+ "prompt",
+ "motion"
+ ],
+ "additionalProperties": false
+ },
+ "MjVideoSubmitResponseVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "code": {
+ "description": "响应代码",
+ "type": "number"
+ },
+ "description": {
+ "description": "响应描述",
+ "type": "string"
+ },
+ "result": {
+ "description": "任务ID",
+ "type": "string"
+ },
+ "properties": {
+ "description": "任务属性",
+ "type": "object",
+ "properties": {
+ "prompt": {
+ "description": "处理后的提示词",
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "required": [
+ "code",
+ "description",
+ "result",
+ "properties"
+ ],
+ "additionalProperties": false
+ },
+ "MjTaskFetchResponseVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "id": {
+ "description": "任务ID",
+ "type": "string"
+ },
+ "prompt": {
+ "description": "任务描述",
+ "type": "string"
+ },
+ "imageUrl": {
+ "description": "图片地址",
+ "type": "string"
+ },
+ "enqueue_time": {
+ "description": "入队时间",
+ "type": "string"
+ },
+ "width": {
+ "description": "宽度",
+ "type": "number"
+ },
+ "height": {
+ "description": "高度",
+ "type": "number"
+ },
+ "batch_size": {
+ "description": "批次大小",
+ "type": "number"
+ },
+ "status": {
+ "description": "任务状态",
+ "type": "string"
+ },
+ "job_type": {
+ "description": "任务类型",
+ "type": "string"
+ },
+ "video_url": {
+ "description": "单条视频URL",
+ "type": "string"
+ },
+ "video_urls": {
+ "description": "4条视频URL",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "progress": {
+ "description": "任务进度",
+ "type": "string"
+ },
+ "action": {
+ "description": "任务动作",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "prompt",
+ "imageUrl",
+ "enqueue_time",
+ "width",
+ "height",
+ "batch_size",
+ "status",
+ "job_type",
+ "video_url",
+ "video_urls",
+ "progress",
+ "action"
+ ],
+ "additionalProperties": false
+ },
+ "UserVideoGenerationDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "model": {
+ "description": "模型名称",
+ "type": "string",
+ "minLength": 1
+ },
+ "prompt": {
+ "description": "提示词",
+ "type": "string",
+ "minLength": 1,
+ "maxLength": 4000
+ },
+ "image": {
+ "description": "图片URL或base64",
+ "type": "string"
+ },
+ "image_tail": {
+ "description": "尾帧图片URL或base64",
+ "type": "string"
+ },
+ "mode": {
+ "description": "生成模式",
+ "type": "string"
+ },
+ "size": {
+ "description": "尺寸",
+ "type": "string"
+ },
+ "duration": {
+ "description": "时长",
+ "type": "number"
+ },
+ "metadata": {
+ "description": "其他参数",
+ "type": "object",
+ "propertyNames": {
+ "type": "string"
+ },
+ "additionalProperties": {}
+ }
+ },
+ "required": [
+ "model",
+ "prompt"
+ ],
+ "additionalProperties": false
+ },
+ "VideoGenerationResponseVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "task_id": {
+ "description": "任务ID",
+ "type": "string"
+ },
+ "status": {
+ "description": "任务状态",
+ "type": "string"
+ },
+ "message": {
+ "description": "响应消息",
+ "type": "string"
+ }
+ },
+ "required": [
+ "task_id",
+ "status"
+ ],
+ "additionalProperties": false
+ },
+ "VideoTaskStatusResponseVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "task_id": {
+ "description": "任务ID",
+ "type": "string"
+ },
+ "action": {
+ "description": "任务动作",
+ "type": "string"
+ },
+ "status": {
+ "description": "任务状态",
+ "type": "string"
+ },
+ "fail_reason": {
+ "description": "失败原因或视频URL",
+ "type": "string"
+ },
+ "submit_time": {
+ "description": "提交时间",
+ "type": "number"
+ },
+ "start_time": {
+ "description": "开始时间",
+ "type": "number"
+ },
+ "finish_time": {
+ "description": "完成时间",
+ "type": "number"
+ },
+ "progress": {
+ "description": "任务进度",
+ "type": "string"
+ },
+ "data": {
+ "description": "任务数据",
+ "type": "object",
+ "propertyNames": {
+ "type": "string"
+ },
+ "additionalProperties": {}
+ }
+ },
+ "required": [
+ "task_id",
+ "action",
+ "status",
+ "submit_time",
+ "start_time",
+ "finish_time",
+ "progress",
+ "data"
+ ],
+ "additionalProperties": false
+ },
+ "Md2CardRequestDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "markdown": {
+ "description": "要转换的 Markdown 文本",
+ "default": "# 默认 markdown",
+ "type": "string"
+ },
+ "theme": {
+ "description": "卡片主题样式 ID",
+ "default": "apple-notes",
+ "type": "string"
+ },
+ "themeMode": {
+ "description": "主题的模式 ID",
+ "type": "string"
+ },
+ "width": {
+ "description": "卡片宽度(像素)",
+ "default": 440,
+ "type": "integer",
+ "minimum": 100,
+ "maximum": 2000
+ },
+ "height": {
+ "description": "卡片高度(像素)",
+ "default": 586,
+ "type": "integer",
+ "minimum": 100,
+ "maximum": 3000
+ },
+ "splitMode": {
+ "description": "分割模式",
+ "default": "noSplit",
+ "type": "string"
+ },
+ "mdxMode": {
+ "description": "是否启用 MDX 模式",
+ "default": false,
+ "type": "boolean"
+ },
+ "overHiddenMode": {
+ "description": "是否启用溢出隐藏模式",
+ "default": false,
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "markdown",
+ "theme",
+ "width",
+ "height",
+ "splitMode",
+ "mdxMode",
+ "overHiddenMode"
+ ],
+ "additionalProperties": false
+ },
+ "Md2CardResponseVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "images": {
+ "description": "生成的卡片图片",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "url": {
+ "description": "图片URL",
+ "type": "string"
+ },
+ "fileName": {
+ "description": "文件名",
+ "type": "string"
+ }
+ },
+ "required": [
+ "url",
+ "fileName"
+ ],
+ "additionalProperties": false
+ }
+ }
+ },
+ "required": [
+ "images"
+ ],
+ "additionalProperties": false
+ },
+ "FireflycardRequestDto": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "content": {
+ "description": "卡片内容",
+ "type": "string",
+ "minLength": 1
+ },
+ "temp": {
+ "description": "模板类型",
+ "default": "tempA",
+ "type": "string",
+ "enum": [
+ "tempA",
+ "tempB",
+ "tempC",
+ "tempJin",
+ "tempMemo",
+ "tempEasy",
+ "tempBlackSun",
+ "tempE",
+ "tempWrite",
+ "code",
+ "tempD"
+ ]
+ },
+ "title": {
+ "description": "标题",
+ "type": "string"
+ },
+ "style": {
+ "description": "样式配置",
+ "type": "object",
+ "properties": {
+ "align": {
+ "description": "对齐方式",
+ "type": "string"
+ },
+ "backgroundName": {
+ "description": "背景名称",
+ "type": "string"
+ },
+ "backShadow": {
+ "description": "背景阴影",
+ "type": "string"
+ },
+ "font": {
+ "description": "字体",
+ "type": "string"
+ },
+ "width": {
+ "description": "宽度",
+ "type": "number"
+ },
+ "ratio": {
+ "description": "比例",
+ "type": "string"
+ },
+ "height": {
+ "description": "高度",
+ "type": "number"
+ },
+ "fontScale": {
+ "description": "字体缩放",
+ "type": "number"
+ },
+ "padding": {
+ "description": "内边距",
+ "type": "string"
+ },
+ "borderRadius": {
+ "description": "边框圆角",
+ "type": "string"
+ },
+ "color": {
+ "description": "颜色",
+ "type": "string"
+ },
+ "opacity": {
+ "description": "透明度",
+ "type": "number"
+ },
+ "blur": {
+ "description": "模糊度",
+ "type": "number"
+ },
+ "backgroundAngle": {
+ "description": "背景角度",
+ "type": "string"
+ },
+ "lineHeights": {
+ "description": "行高设置",
+ "type": "object",
+ "properties": {
+ "content": {
+ "description": "内容行高",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "letterSpacings": {
+ "description": "字间距设置",
+ "type": "object",
+ "properties": {
+ "content": {
+ "description": "内容字间距",
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ },
+ "switchConfig": {
+ "description": "开关配置",
+ "type": "object",
+ "properties": {
+ "showIcon": {
+ "description": "显示图标",
+ "type": "boolean"
+ },
+ "showDate": {
+ "description": "显示日期",
+ "type": "boolean"
+ },
+ "showTitle": {
+ "description": "显示标题",
+ "type": "boolean"
+ },
+ "showContent": {
+ "description": "显示内容",
+ "type": "boolean"
+ },
+ "showAuthor": {
+ "description": "显示作者",
+ "type": "boolean"
+ },
+ "showTextCount": {
+ "description": "显示文字计数",
+ "type": "boolean"
+ },
+ "showQRCode": {
+ "description": "显示二维码",
+ "type": "boolean"
+ },
+ "showPageNum": {
+ "description": "显示页码",
+ "type": "boolean"
+ },
+ "showWatermark": {
+ "description": "显示水印",
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ }
+ },
+ "required": [
+ "content",
+ "temp"
+ ],
+ "additionalProperties": false
+ },
+ "FireflycardResponseVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "image": {
+ "description": "生成的卡片图片base64数据",
+ "type": "string"
+ }
+ },
+ "required": [
+ "image"
+ ],
+ "additionalProperties": false
+ },
+ "ImageGenerationModelVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "模型名称",
+ "type": "string"
+ },
+ "description": {
+ "description": "模型描述",
+ "type": "string"
+ },
+ "sizes": {
+ "description": "支持的尺寸",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "qualities": {
+ "description": "支持的质量选项",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "styles": {
+ "description": "支持的风格选项",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "pricing": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "description",
+ "sizes",
+ "qualities",
+ "styles",
+ "pricing"
+ ],
+ "additionalProperties": false
+ },
+ "ImageEditModelVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "模型名称",
+ "type": "string"
+ },
+ "description": {
+ "description": "模型描述",
+ "type": "string"
+ },
+ "sizes": {
+ "description": "支持的尺寸",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "pricing": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "description",
+ "sizes",
+ "pricing"
+ ],
+ "additionalProperties": false
+ },
+ "VideoGenerationModelVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "模型名称",
+ "type": "string"
+ },
+ "description": {
+ "description": "模型描述",
+ "type": "string"
+ },
+ "modes": {
+ "description": "支持的模式",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "resolutions": {
+ "description": "支持的尺寸",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "durations": {
+ "description": "支持的时长",
+ "type": "array",
+ "items": {
+ "type": "number"
+ }
+ },
+ "supportedParameters": {
+ "description": "支持的参数",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "defaults": {
+ "type": "object",
+ "properties": {
+ "resolution": {
+ "type": "string"
+ },
+ "aspectRatio": {
+ "type": "string"
+ },
+ "mode": {
+ "type": "string"
+ },
+ "duration": {
+ "type": "number"
+ }
+ },
+ "additionalProperties": false
+ },
+ "pricing": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "resolution": {
+ "type": "string"
+ },
+ "aspectRatio": {
+ "type": "string"
+ },
+ "mode": {
+ "type": "string"
+ },
+ "duration": {
+ "type": "number"
+ },
+ "price": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "price"
+ ],
+ "additionalProperties": false
+ }
+ }
+ },
+ "required": [
+ "name",
+ "description",
+ "modes",
+ "resolutions",
+ "durations",
+ "supportedParameters",
+ "pricing"
+ ],
+ "additionalProperties": false
+ },
+ "ChatModelVo": {
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "inputModalities": {
+ "description": "输入模态",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "text",
+ "image",
+ "video",
+ "audio"
+ ]
+ }
+ },
+ "outputModalities": {
+ "description": "输出模态",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": [
+ "text",
+ "image",
+ "video",
+ "audio"
+ ]
+ }
+ },
+ "pricing": {
+ "type": "object",
+ "properties": {
+ "prompt": {
+ "type": "string"
+ },
+ "completion": {
+ "type": "string"
+ },
+ "image": {
+ "type": "string"
+ },
+ "audio": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt",
+ "completion"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "required": [
+ "name",
+ "description",
+ "inputModalities",
+ "outputModalities",
+ "pricing"
+ ],
+ "additionalProperties": false
+ },
+ "PlatformUidQueryDto": {
+ "type": "object",
+ "properties": {
+ "platform": {
+ "type": "string",
+ "description": "平台",
+ "example": "bilibili"
+ },
+ "uid": {
+ "type": "string",
+ "description": "uid",
+ "example": "123456"
+ }
+ },
+ "required": [
+ "platform",
+ "uid"
+ ]
+ },
+ "BatchChannelLatestQueryDto": {
+ "type": "object",
+ "properties": {
+ "queries": {
+ "description": "查询数组",
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/PlatformUidQueryDto"
+ }
+ }
+ },
+ "required": [
+ "queries"
+ ]
+ },
+ "GetChannelDataPeriodByUidsDto": {
+ "type": "object",
+ "properties": {
+ "queries": {
+ "description": "查询数组",
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/PlatformUidQueryDto"
+ }
+ }
+ },
+ "required": [
+ "queries"
+ ]
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/aitoearn_web/aitoearn-web/src/api/notification.ts b/aitoearn_web/aitoearn-web/src/api/notification.ts
index 8ae53993..f19f44de 100644
--- a/aitoearn_web/aitoearn-web/src/api/notification.ts
+++ b/aitoearn_web/aitoearn-web/src/api/notification.ts
@@ -54,7 +54,7 @@ export const markAllNotificationsAsRead = () => {
// 获取未读数量
export const getUnreadCount = () => {
- return http.get<UnreadCountResponse>("notification/unread-count");
+ return http.get<UnreadCountResponse>("notification/unread-count", undefined, true);
};
// 删除通知
diff --git a/aitoearn_web/aitoearn-web/src/api/signIn.ts b/aitoearn_web/aitoearn-web/src/api/signIn.ts
index ae4595d7..44220f15 100644
--- a/aitoearn_web/aitoearn-web/src/api/signIn.ts
+++ b/aitoearn_web/aitoearn-web/src/api/signIn.ts
@@ -75,3 +75,24 @@ export const signInApi = {
};
+
+/**
+ * 注销账户相关接口
+ */
+export const cancelAccountApi = {
+ /**
+ * 获取注销验证码
+ */
+ async getCancelCode(): Promise<any> {
+ const res = await http.get<any>(`login/cancel/code`);
+ return res;
+ },
+
+ /**
+ * 注销账户
+ */
+ async cancelAccount(data: { code: string }): Promise<any> {
+ const res = await http.delete<any>(`login/cancel`, data);
+ return res;
+ },
+};
\ No newline at end of file
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/accountCore.tsx b/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/accountCore.tsx
index 913b43f4..0d600a27 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/accountCore.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/accountCore.tsx
@@ -12,6 +12,7 @@ import { PlatType } from "@/app/config/platConfig";
import { SocialAccount } from "@/api/types/account.type";
import AllPlatIcon from "@/app/[lng]/accounts/components/CalendarTiming/AllPlatIcon";
import { useTransClient } from "@/app/i18n/client";
+import { useUserStore } from "@/store/user";
interface AccountPageCoreProps {
searchParams?: {
@@ -38,6 +39,10 @@ export default function AccountPageCore({
const [targetPlatform, setTargetPlatform] = useState<PlatType | undefined>();
const [targetSpaceId, setTargetSpaceId] = useState<string | undefined>();
const { t } = useTransClient("account");
+ const userStore = useUserStore();
+
+ // 移动端下载提示弹窗开关
+ const [showMobileDownload, setShowMobileDownload] = useState(false);
useEffect(() => {
accountInit();
@@ -63,6 +68,52 @@ export default function AccountPageCore({
}
}, [searchParams]);
+ /**
+ * 在移动端首次进入 accounts 页面时,展示下载提示弹窗
+ * - 条件:屏幕宽度 <= 768
+ * - 只在当前会话展示一次(使用 sessionStorage 标记)
+ */
+ useEffect(() => {
+ if (typeof window === "undefined") return;
+ const isMobile = window.innerWidth <= 768;
+ const hasShown = sessionStorage.getItem("accountsMobileDownloadShown");
+ if (isMobile) {
+ setShowMobileDownload(true);
+ sessionStorage.setItem("accountsMobileDownloadShown", "1");
+ }
+ }, []);
+
+ /**
+ * 关闭下载提示弹窗
+ */
+ const closeMobileDownload = () => setShowMobileDownload(false);
+
+ /**
+ * 生成下载链接(根据语言)
+ */
+ const getDownloadHref = () => {
+ const lang = userStore.lang;
+ return lang === "en"
+ ? "https://docs.aitoearn.ai/en/downloads"
+ : "https://docs.aitoearn.ai/zh/downloads";
+ };
+
+ const downloadTexts = (() => {
+ const lang = userStore.lang;
+ if (lang === "zh-CN") {
+ return {
+ title: "欢迎使用 AitoEarn",
+ desc: "为了获得完整体验,请在设备上下载 App",
+ cta: "下载 App",
+ };
+ }
+ return {
+ title: "Welcome to AitoEarn",
+ desc: "To enjoy the full experience, please download the app on your device",
+ cta: "Download App",
+ };
+ })();
+
const handleAddAccountSuccess = (accountInfo: SocialAccount) => {
setAddAccountModalOpen(false);
// 可以在这里添加成功提示或其他逻辑
@@ -124,6 +175,35 @@ export default function AccountPageCore({
showSpaceSelector={!targetSpaceId}
autoTriggerPlatform={targetPlatform}
/>
+
+ {/* 移动端下载提示(遮罩 + 底部弹窗) */}
+ {showMobileDownload && (
+ <>
+ <div className={styles.mobileDownloadOverlay} />
+ <div className={styles.mobileDownloadSheet} role="dialog" aria-modal="true">
+ <div className={styles.sheetHeader}>
+ <div className={styles.sheetTitle}>{downloadTexts.title} 👋</div>
+ <button className={styles.sheetClose} aria-label="Close" onClick={closeMobileDownload}>
+ ×
+ </button>
+ </div>
+ <div className={styles.sheetBody}>
+ <p className={styles.sheetDesc}>{downloadTexts.desc}</p>
+ </div>
+ <div className={styles.sheetFooter}>
+ <a
+ className={styles.sheetCta}
+ href={getDownloadHref()}
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={closeMobileDownload}
+ >
+ {downloadTexts.cta}
+ </a>
+ </div>
+ </div>
+ </>
+ )}
</div>
</NoSSR>
);
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/accounts.module.scss b/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/accounts.module.scss
index 7250f8e1..958f1ff7 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/accounts.module.scss
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/accounts.module.scss
@@ -3,4 +3,99 @@
height: 100%;
min-height: 0;
overflow: auto;
+}
+
+// 移动端下载提示:遮罩
+.mobileDownloadOverlay {
+ position: fixed;
+ inset: 0;
+ background: rgba(0, 0, 0, 0.85);
+ z-index: 1000;
+ animation: fadeIn 0.2s ease-out;
+}
+
+// 移动端下载提示:底部弹窗
+.mobileDownloadSheet {
+ position: fixed;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background: #fff;
+ border-radius: 16px 16px 0 0;
+ box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
+ z-index: 1001;
+ animation: slideUp 0.25s ease-out;
+ padding: 16px 16px 20px;
+}
+
+.sheetHeader {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+}
+
+.sheetTitle {
+ font-size: 18px;
+ font-weight: 700;
+ color: #111827;
+}
+
+.sheetClose {
+ background: transparent;
+ border: none;
+ font-size: 22px;
+ color: #6b7280;
+ cursor: pointer;
+ padding: 4px 8px;
+ border-radius: 6px;
+ transition: background 0.2s ease;
+
+ &:hover {
+ background: #f3f4f6;
+ }
+}
+
+.sheetBody {
+ padding: 12px 4px 4px;
+}
+
+.sheetDesc {
+ margin: 0;
+ color: #4b5563;
+ font-size: 14px;
+ line-height: 1.6;
+}
+
+.sheetFooter {
+ padding-top: 12px;
+ display: flex;
+ justify-content: center;
+}
+
+.sheetCta {
+ display: inline-block;
+ background: #4f46e5;
+ color: #fff;
+ text-decoration: none;
+ padding: 10px 18px;
+ border-radius: 8px;
+ font-weight: 600;
+ box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
+}
+
+@keyframes slideUp {
+ from {
+ transform: translateY(20px);
+ opacity: 0.6;
+ }
+ to {
+ transform: translateY(0);
+ opacity: 1;
+ }
+}
+
+@keyframes fadeIn {
+ from { opacity: 0; }
+ to { opacity: 1; }
}
\ No newline at end of file
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx b/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx
index be1a6289..e65a2a9c 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx
@@ -335,7 +335,7 @@ const AccountSidebar = memo(
name: groupName.trim(),
});
await getAccountGroup();
- message.success(t("createSpace.success"));
+ // message.success(t("createSpace.success"));
createGroupCancel();
} catch (error) {
message.error(t("createSpace.failed"));
@@ -514,6 +514,7 @@ const AccountSidebar = memo(
}}
>
<Avatar
+ style={{backgroundColor: 'aliceblue'}}
src={getOssUrl(account.avatar)}
size="large"
/>
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.ts b/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.ts
index 02e9fa80..8b20abd0 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.ts
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/components/CalendarTiming/useCalendarTiming.ts
@@ -51,43 +51,56 @@ export const useCalendarTiming = create(
// 获取发布记录数据
async getPubRecord() {
- methods.setListLoading(true);
- const date = getDays(get().calendarRef?.getApi().getDate() || new Date());
- const startOfMonth = date.startOf("month");
- const endOfMonth = date.endOf("month");
+ try {
+ methods.setListLoading(true);
+ const date = getDays(get().calendarRef?.getApi().getDate() || new Date());
+ const startOfMonth = date.startOf("month");
+ const endOfMonth = date.endOf("month");
- const res = await getPublishList({
- time: [startOfMonth.utc().format(), endOfMonth.utc().format()],
- accountType: useAccountStore.getState().accountActive?.type,
- });
- methods.setListLoading(false);
- if (!res) return;
- const recordMap = new Map<string, PublishRecordItem[]>();
- // 将数据分拣到对应天中
- res?.data.map((v) => {
- const days = getDays(v.publishTime);
- const timeStr = days.format("YYYY-MM-DD");
- let list = recordMap.get(timeStr);
- if (!list) {
- list = [];
- recordMap.set(timeStr, list);
- }
- list.push(v);
- recordMap.set(timeStr, list);
- });
- // 对每一天的记录按照 publishTime 时间从早到晚排序
- recordMap.forEach((v, k) => {
- let list = recordMap.get(k);
- if (list) {
- list = list.sort(
- (a, b) =>
- new Date(a.publishTime).getTime() -
- new Date(b.publishTime).getTime(),
- );
- recordMap.set(k, list);
+ const res = await getPublishList({
+ time: [startOfMonth.utc().format(), endOfMonth.utc().format()],
+ accountType: useAccountStore.getState().accountActive?.type,
+ });
+ methods.setListLoading(false);
+
+ // 检查响应数据是否有效
+ if (!res || !res.data || !Array.isArray(res.data)) {
+ console.warn('获取发布记录数据失败或数据格式不正确:', res);
+ methods.setRecordMap(new Map());
+ return;
}
- });
- methods.setRecordMap(recordMap);
+
+ const recordMap = new Map<string, PublishRecordItem[]>();
+ // 将数据分拣到对应天中
+ res.data.map((v) => {
+ const days = getDays(v.publishTime);
+ const timeStr = days.format("YYYY-MM-DD");
+ let list = recordMap.get(timeStr);
+ if (!list) {
+ list = [];
+ recordMap.set(timeStr, list);
+ }
+ list.push(v);
+ recordMap.set(timeStr, list);
+ });
+ // 对每一天的记录按照 publishTime 时间从早到晚排序
+ recordMap.forEach((v, k) => {
+ let list = recordMap.get(k);
+ if (list) {
+ list = list.sort(
+ (a, b) =>
+ new Date(a.publishTime).getTime() -
+ new Date(b.publishTime).getTime(),
+ );
+ recordMap.set(k, list);
+ }
+ });
+ methods.setRecordMap(recordMap);
+ } catch (error) {
+ console.error('获取发布记录数据时发生错误:', error);
+ methods.setListLoading(false);
+ methods.setRecordMap(new Map());
+ }
},
clear() {
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/plat/LinkedinLogin.ts b/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/plat/LinkedinLogin.ts
index 4cd110fd..7fdda97b 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/plat/LinkedinLogin.ts
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/accounts/plat/LinkedinLogin.ts
@@ -1,6 +1,7 @@
import { PlatType } from "@/app/config/platConfig";
import { getLinkedInAuthUrlApi, checkMetaAuthApi } from "@/api/platAuth";
import { useUserStore } from "@/store/user";
+import { useAccountStore } from "@/store/account";
/**
* LinkedIn 被点击
@@ -37,6 +38,8 @@ export function linkedinLogin(taskId: any): Promise<any> {
const authRess: any = await checkMetaAuthApi(taskId);
const authRes = authRess;
if (authRes?.code === 0 && authRes?.data.status == 1) {
+ const accountStore = useAccountStore.getState();
+ await accountStore.getAccountList();
resolve(authRes);
return true;
}
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/appChat/AppChatCore.tsx b/aitoearn_web/aitoearn-web/src/app/[lng]/appChat/AppChatCore.tsx
index 930da503..6d631120 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/appChat/AppChatCore.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/appChat/AppChatCore.tsx
@@ -12,7 +12,7 @@ export const AppChatCore = () => {
location.origin.includes("localhost")
? "https://dev.aitoearn.ai"
: location.origin
- }/chat`,
+ }/chat/#/new-chat?mask=100000`,
);
}, []);
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/income/page.tsx b/aitoearn_web/aitoearn-web/src/app/[lng]/income/page.tsx
index a79b5d8b..778ec295 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/income/page.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/income/page.tsx
@@ -285,7 +285,7 @@ export default function IncomePage() {
</div>
<div className={styles.balanceInfo}>
<div className={styles.balanceLabel}>{t('currentBalance')}</div>
- <div className={styles.balanceAmount}>CNY {userInfo?.income || 0}</div>
+ <div className={styles.balanceAmount}>CNY {(userInfo?.income as number / 100 || 0).toFixed(2)}</div>
</div>
</div>
<span
@@ -308,7 +308,7 @@ export default function IncomePage() {
<TabPane
tab={
<span>
- <DollarOutlined />
+ <DollarOutlined />&nbsp;
{t('incomeRecords')}
</span>
}
@@ -343,7 +343,7 @@ export default function IncomePage() {
<TabPane
tab={
<span>
- <HistoryOutlined />
+ <HistoryOutlined />&nbsp;
{t('withdrawRecords')}
</span>
}
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/page.tsx b/aitoearn_web/aitoearn-web/src/app/[lng]/page.tsx
index a074f129..d9d006f8 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/page.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/page.tsx
@@ -62,10 +62,10 @@ function ReleaseBanner() {
<div className={styles.releaseBanner}>
<div className={styles.bannerContent}>
{/* <span className={styles.releaseTag}>{t('releaseBanner.tag')}</span> */}
- <span className={styles.releaseText}>{t('releaseBanner.text')}</span>
- <svg className={styles.arrowIcon} width="16" height="16" viewBox="0 0 16 16" fill="none">
+ <span className={styles.releaseText}>Unlimited use of free nano banana !</span>
+ {/* <svg className={styles.arrowIcon} width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="m6 12 4-4-4-4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
- </svg>
+ </svg> */}
</div>
</div>
);
@@ -1404,7 +1404,7 @@ function Footer() {
export default function Home() {
return (
<div className={styles.difyHome}>
- {/* <ReleaseBanner /> */}
+ <ReleaseBanner />
<Hero />
<BrandBar />
<ContentPublishingSection />
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/pinterest/page.tsx b/aitoearn_web/aitoearn-web/src/app/[lng]/pinterest/page.tsx
index 9e5f9968..57d88c06 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/pinterest/page.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/pinterest/page.tsx
@@ -162,7 +162,7 @@ export default function PinterestPage() {
try {
setLoading(true);
- const response = await getPinterestBoardListApi({ page, size }, selectedAccount.account);
+ const response = await getPinterestBoardListApi({ page, size }, selectedAccount.id);
if (response?.code === 0) {
setBoards(response.data?.list || []);
setTotal(response.data?.count || 0);
@@ -180,7 +180,7 @@ export default function PinterestPage() {
try {
setLoading(true);
- const response = await getPinterestPinListApi({ page: page, size }, selectedAccount.account);
+ const response = await getPinterestPinListApi({ page: page, size }, selectedAccount.id);
if (response?.code === 0) {
setPins(response.data?.list || []);
setTotal(response.data?.count || 0);
@@ -203,7 +203,7 @@ export default function PinterestPage() {
try {
setLoading(true);
- const response = await createPinterestBoardApi(values, selectedAccount.account);
+ const response = await createPinterestBoardApi(values, selectedAccount.id);
if (response?.code === 0) {
message.success(t('messages.boardCreateSuccess'));
setBoardModalVisible(false);
@@ -226,7 +226,7 @@ export default function PinterestPage() {
try {
setLoading(true);
- const response = await deletePinterestBoardApi(boardId, selectedAccount.account);
+ const response = await deletePinterestBoardApi(boardId, selectedAccount.id);
if (response?.code === 0) {
message.success(t('messages.boardDeleteSuccess'));
loadBoards(1, 20);
@@ -265,7 +265,7 @@ export default function PinterestPage() {
}
};
- const response = await createPinterestPinApi(pinData, selectedAccount.account);
+ const response = await createPinterestPinApi(pinData, selectedAccount.id);
if (response?.code === 0) {
message.success(t('messages.pinCreateSuccess'));
setPinModalVisible(false);
@@ -289,7 +289,7 @@ export default function PinterestPage() {
try {
setLoading(true);
- const response = await deletePinterestPinApi(pinId, selectedAccount.account);
+ const response = await deletePinterestPinApi(pinId, selectedAccount.id);
if (response?.code === 0) {
message.success(t('messages.pinDeleteSuccess'));
loadPins(currentPage, pageSize);
@@ -360,7 +360,7 @@ export default function PinterestPage() {
try {
setLoading(true);
- const response = await getPinterestBoardApi(board.id, selectedAccount.account);
+ const response = await getPinterestBoardApi(board.id, selectedAccount.id);
if (response?.code === 0) {
setSelectedBoard(response.data);
setBoardDetailModalVisible(true);
@@ -381,7 +381,7 @@ export default function PinterestPage() {
try {
setLoading(true);
- const response = await getPinterestPinApi(pin.id, selectedAccount.account);
+ const response = await getPinterestPinApi(pin.id, selectedAccount.id);
if (response?.code === 0) {
setSelectedPin(response.data);
setPinDetailModalVisible(true);
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/profile/page.tsx b/aitoearn_web/aitoearn-web/src/app/[lng]/profile/page.tsx
index 51b7bac1..17b8f094 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/profile/page.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/profile/page.tsx
@@ -1,17 +1,18 @@
"use client";
import { useEffect, useState } from "react";
-import { Card, Descriptions, Button, message, Modal, Form, Input, Tabs, Table, Tag, Popconfirm, DatePicker, Select, Space } from "antd";
-import { CrownOutlined, TrophyOutlined, GiftOutlined, StarOutlined, RocketOutlined, ThunderboltOutlined, HistoryOutlined, DollarOutlined, ShoppingCartOutlined, UserOutlined, GiftFilled, EditOutlined, CopyOutlined } from "@ant-design/icons";
+import { Card, Descriptions, Button, message, Modal, Form, Input } from "antd";
+import { CrownOutlined, TrophyOutlined, GiftOutlined, StarOutlined, RocketOutlined, ThunderboltOutlined, HistoryOutlined, DollarOutlined, UserOutlined, GiftFilled, EditOutlined, CopyOutlined } from "@ant-design/icons";
import { useRouter, useSearchParams } from "next/navigation";
import { WalletOutlined } from "@ant-design/icons";
import Image from "next/image";
import { useUserStore } from "@/store/user";
import { getUserInfoApi, updateUserInfoApi, getPointsRecordsApi } from "@/api/apiReq";
+import { cancelAccountApi } from "@/api/signIn";
import { createPaymentOrderApi, PaymentType as VipPaymentType } from "@/api/vip";
-import { getOrderListApi, getOrderDetailApi, getSubscriptionListApi, refundOrderApi, unsubscribeApi } from "@/api/payment";
-import type { Order, OrderListParams, SubscriptionListParams, RefundParams, UnsubscribeParams } from "@/api/types/payment";
-import { OrderStatus, PaymentType } from "@/api/types/payment";
+import { getOrderDetailApi } from "@/api/payment";
+import type { Order } from "@/api/types/payment";
+import { OrderStatus } from "@/api/types/payment";
import styles from "./profile.module.css";
import { useTransClient } from "@/app/i18n/client";
import PointsRechargeModal from "@/components/modals/PointsRechargeModal";
@@ -21,8 +22,6 @@ import PointsDetailModal from "@/components/modals/PointsDetailModal";
import plusvip from "@/assets/images/plusvip.png";
import logoHesd from "@/assets/images/logo.png";
-const { TabPane } = Tabs;
-const { Option } = Select;
export default function ProfilePage() {
const router = useRouter();
@@ -32,11 +31,18 @@ export default function ProfilePage() {
const [loading, setLoading] = useState(true);
const [isModalOpen, setIsModalOpen] = useState(false);
const [form] = Form.useForm();
-
+
// 免费会员提示弹框状态
const [freeTrialModalVisible, setFreeTrialModalVisible] = useState(false);
const [hasShownFreeTrial, setHasShownFreeTrial] = useState(false);
-
+
+ // 注销账户相关状态
+ const [cancelModalVisible, setCancelModalVisible] = useState(false);
+ const [cancelForm] = Form.useForm();
+ const [cancelCode, setCancelCode] = useState('');
+ const [cancelLoading, setCancelLoading] = useState(false);
+ const [codeCountdown, setCodeCountdown] = useState(0);
+
// 检查是否已经显示过免费会员提示
useEffect(() => {
const hasShown = localStorage.getItem('freeTrialShown');
@@ -46,23 +52,7 @@ export default function ProfilePage() {
}, []);
// removed URL-driven auto-open; now fully controlled by state
-
- // 订单相关状态
- const [orders, setOrders] = useState<Order[]>([]);
- const [subscriptions, setSubscriptions] = useState<Order[]>([]);
- const [ordersLoading, setOrdersLoading] = useState(false);
- const [subscriptionsLoading, setSubscriptionsLoading] = useState(false);
- const [ordersPagination, setOrdersPagination] = useState({
- current: 1,
- pageSize: 10,
- total: 0
- });
- const [subscriptionsPagination, setSubscriptionsPagination] = useState({
- current: 1,
- pageSize: 10,
- total: 0
- });
-
+
// 订单详情弹窗状态
const [orderDetailVisible, setOrderDetailVisible] = useState(false);
const [orderDetailLoading, setOrderDetailLoading] = useState(false);
@@ -98,15 +88,15 @@ export default function ProfilePage() {
metadata?: any;
createdAt?: string;
}
-
+
// 获取会员状态和过期时间
- const isVip = userInfo?.vipInfo?.cycleType && userInfo.vipInfo.cycleType > 0 &&
- userInfo?.vipInfo?.expireTime ? new Date(userInfo.vipInfo.expireTime) > new Date() : false;
+ const isVip = userInfo?.vipInfo?.cycleType && userInfo.vipInfo.cycleType > 0 &&
+ userInfo?.vipInfo?.expireTime ? new Date(userInfo.vipInfo.expireTime) > new Date() : false;
const vipExpireTime = userInfo?.vipInfo?.expireTime ? new Date(userInfo.vipInfo.expireTime).toLocaleDateString() : '';
-
+
// 检查用户是否从未开过会员
const hasNeverBeenVip = !userInfo?.vipInfo || Object.keys(userInfo.vipInfo).length === 0;
-
+
// 获取会员类型显示文本
const getVipCycleTypeText = (cycleType: number) => {
switch (cycleType) {
@@ -120,7 +110,7 @@ export default function ProfilePage() {
return t('unknown');
}
};
-
+
const vipCycleType = getVipCycleTypeText(userInfo?.vipInfo?.cycleType || 0);
// 会员权益数据
@@ -143,10 +133,10 @@ export default function ProfilePage() {
message.error(t('getUserInfoFailed'));
return;
}
-
+
if (response.code === 0 && response.data) {
setUserInfo(response.data);
-
+
// 检查是否需要显示免费会员提示
const hasVipInfo = response.data.vipInfo;
if (!hasVipInfo && !hasShownFreeTrial) {
@@ -166,51 +156,6 @@ export default function ProfilePage() {
}
};
- // 获取订单列表
- const fetchOrders = async (params: OrderListParams) => {
- setOrdersLoading(true);
- try {
- const response = await getOrderListApi(params);
- if (response?.code === 0 && response.data) {
- const paginatedData = response.data;
- setOrders(paginatedData.list);
- setOrdersPagination({
- current: params.page + 1, // API发送的是0开始的页码,UI显示需要加1
- pageSize: params.size,
- total: paginatedData.count
- });
- } else {
- message.error(response?.message || t('getOrderListFailed'));
- }
- } catch (error) {
- message.error(t('getOrderListFailed'));
- } finally {
- setOrdersLoading(false);
- }
- };
-
- // 获取订阅列表
- const fetchSubscriptions = async (params: SubscriptionListParams) => {
- setSubscriptionsLoading(true);
- try {
- const response = await getSubscriptionListApi(params);
- if (response?.code === 0 && response.data) {
- const paginatedData = response.data;
- setSubscriptions(paginatedData.list);
- setSubscriptionsPagination({
- current: params.page + 1, // API发送的是0开始的页码,UI显示需要加1
- pageSize: params.size,
- total: paginatedData.count
- });
- } else {
- message.error(response?.message || t('getSubscriptionListFailed'));
- }
- } catch (error) {
- message.error(t('getSubscriptionListFailed'));
- } finally {
- setSubscriptionsLoading(false);
- }
- };
// 获取积分记录
const fetchPointsRecords = async (params: { page: number; pageSize: number }) => {
@@ -235,63 +180,101 @@ export default function ProfilePage() {
}
};
- // 处理退款
- const handleRefund = async (order: Order) => {
+
+ // 获取订单详情
+ const fetchOrderDetail = async (orderId: string) => {
+ setOrderDetailLoading(true);
try {
- const params: RefundParams = {
- charge: order.id,
- payment_intent: order.payment_intent || order.id,
- userId: userInfo?.id || ''
- };
- const response = await refundOrderApi(params);
- if (response?.code === 0) {
- message.success(t('refundSubmitted'));
- fetchOrders({ page: ordersPagination.current - 1, size: ordersPagination.pageSize });
+ const response: any = await getOrderDetailApi(orderId);
+ if (response?.code === 0 && response.data) {
+ setCurrentOrderDetail(response.data[0]);
+ setOrderDetailVisible(true);
} else {
- message.error(response?.message || t('refundFailed'));
+ message.error(response?.message || t('getOrderDetailFailed'));
}
} catch (error) {
- message.error(t('refundFailed'));
+ message.error(t('getOrderDetailFailed'));
+ } finally {
+ setOrderDetailLoading(false);
}
};
- // 处理退订
- const handleUnsubscribe = async (order: Order) => {
+ /**
+ * 获取注销验证码
+ */
+ const handleGetCancelCode = async () => {
try {
- const params: UnsubscribeParams = {
- id: order.id,
- userId: userInfo?.id || ''
- };
- const response = await unsubscribeApi(params);
- if (response?.code === 0) {
- message.success(t('unsubscribeSuccess'));
- fetchSubscriptions({ page: subscriptionsPagination.current - 1, size: subscriptionsPagination.pageSize });
+ const response = await cancelAccountApi.getCancelCode();
+ console.log('验证码响应:', response);
+
+ if (response && response.code === 0) {
+ setCancelCode(response.data?.code || '');
+ message.success('验证码已发送');
+ // 开始倒计时
+ setCodeCountdown(60);
} else {
- message.error(response?.message || t('unsubscribeFailed'));
+ message.error(response?.message || '获取验证码失败');
}
} catch (error) {
- message.error(t('unsubscribeFailed'));
+ console.error('获取验证码错误:', error);
+ message.error('获取验证码失败');
}
};
- // 获取订单详情
- const fetchOrderDetail = async (orderId: string) => {
- setOrderDetailLoading(true);
+ /**
+ * 处理注销账户
+ */
+ const handleCancelAccount = async () => {
try {
- const response:any = await getOrderDetailApi(orderId);
- if (response?.code === 0 && response.data) {
- setCurrentOrderDetail(response.data[0]);
- setOrderDetailVisible(true);
- } else {
- message.error(response?.message || t('getOrderDetailFailed'));
+ const values = await cancelForm.validateFields();
+ setCancelLoading(true);
+
+ console.log('发送注销请求,验证码:', values.code);
+
+ const response: any = await cancelAccountApi.cancelAccount({
+ code: values.code
+ });
+
+
+ if (response && response.code === 0) {
+ message.success('账户注销成功');
+ setCancelModalVisible(false);
+ // 清除登录状态并跳转到登录页
+ clearLoginStatus();
+ router.push('/login');
}
} catch (error) {
- message.error(t('getOrderDetailFailed'));
+
} finally {
- setOrderDetailLoading(false);
+ setCancelLoading(false);
}
};
+ /**
+ * 打开注销确认弹窗
+ */
+ const handleOpenCancelModal = () => {
+ setCancelModalVisible(true);
+ cancelForm.resetFields();
+ setCancelCode('');
+ setCodeCountdown(0);
+ };
+
+ // 倒计时效果
+ useEffect(() => {
+ let timer: NodeJS.Timeout;
+ if (codeCountdown > 0) {
+ timer = setTimeout(() => {
+ setCodeCountdown(codeCountdown - 1);
+ }, 1000);
+ }
+ return () => {
+ if (timer) {
+ clearTimeout(timer);
+ }
+ };
+ }, [codeCountdown]);
+
useEffect(() => {
if (!token) {
message.error(t('pleaseLoginFirst'));
@@ -376,7 +359,7 @@ export default function ProfilePage() {
userId: userInfo?.id || ''
}
});
-
+
if (response?.code === 0 && response.data && typeof response.data === 'object' && 'url' in response.data) {
// 保存订单ID
if ('id' in response.data) {
@@ -404,7 +387,7 @@ export default function ProfilePage() {
// 处理"我已支付"按钮点击
const handlePaymentSuccess = async () => {
if (!paymentOrderId) return;
-
+
try {
const response = await getOrderDetailApi(paymentOrderId);
if (response?.code === 0 && response.data) {
@@ -447,10 +430,10 @@ export default function ProfilePage() {
const handleSliderMouseMove = (e: MouseEvent) => {
if (!isDragging) return;
-
+
const sliderTrack = document.querySelector(`.${styles.sliderTrack}`) as HTMLElement;
if (!sliderTrack) return;
-
+
const rect = sliderTrack.getBoundingClientRect();
const x = e.clientX - rect.left;
const percentage = Math.max(0, Math.min(1, x / rect.width));
@@ -473,315 +456,100 @@ export default function ProfilePage() {
setRechargeAmount(newAmount);
};
- // 订单状态标签
- const getOrderStatusTag = (status: OrderStatus) => {
- const statusMap = {
- [OrderStatus.SUCCEEDED]: { color: 'green', text: t('paymentSuccess') },
- [OrderStatus.CREATED]: { color: 'orange', text: t('waitingForPayment') },
- [OrderStatus.REFUNDED]: { color: 'purple', text: t('refundSuccess') },
- [OrderStatus.EXPIRED]: { color: 'red', text: t('orderCancelled') }
- };
- const config = statusMap[status] || { color: 'default', text: `状态${status}` };
- return <Tag color={config.color}>{config.text}</Tag>;
- };
-
- // 获取套餐类型显示文本
- const getPaymentTypeText = (paymentType: string) => {
- const typeMap = {
- [PaymentType.MONTH]: t('monthlySubscription'),
- [PaymentType.YEAR]: t('yearlySubscription'),
- [PaymentType.ONCE_MONTH]: t('oneTimeMonthly'),
- [PaymentType.ONCE_YEAR]: t('oneTimeYearly')
- };
- return typeMap[paymentType as PaymentType] || paymentType || t('unknown');
- };
-
- // 订单表格列
- const orderColumns = [
- {
- title: t('orderId'),
- dataIndex: 'id',
- key: 'id',
- ellipsis: true,
- width: 200,
- },
- {
- title: t('packageType'),
- dataIndex: 'metadata',
- key: 'payment',
- render: (metadata: any) => {
- const paymentType = metadata?.payment;
- return getPaymentTypeText(paymentType);
- },
- },
- {
- title: t('amount'),
- dataIndex: 'amount',
- key: 'amount',
- render: (amount: number, record: Order) => {
- const displayAmount = (amount / 100).toFixed(2); // Stripe金额通常以分为单位
- const symbol = record.currency === 'usd' ? '$' : record.currency === 'cny' ? '¥' : record.currency?.toUpperCase();
- return `${symbol}${displayAmount}`;
- },
- },
- {
- title: t('status'),
- dataIndex: 'status',
- key: 'status',
- render: (status: OrderStatus) => getOrderStatusTag(status),
- },
- {
- title: t('createTime'),
- dataIndex: 'created',
- key: 'created',
- render: (timestamp: number) => new Date(timestamp * 1000).toLocaleString(),
- },
- {
- title: t('expireTime'),
- dataIndex: 'expires_at',
- key: 'expires_at',
- render: (timestamp: number) => new Date(timestamp * 1000).toLocaleString(),
- },
- {
- title: t('actions'),
- key: 'action',
- render: (_: any, record: Order) => (
- <Space>
- <Button
- type="link"
- size="small"
- onClick={(e) => {
- e.stopPropagation(); // 阻止行点击事件
- fetchOrderDetail(record.id);
- }}
- >
- {t('viewDetails')}
- </Button>
-
- {record.url && record.status === OrderStatus.CREATED && (
- <Button
- type="link"
- size="small"
- onClick={(e) => {
- e.stopPropagation(); // 阻止行点击事件
- window.open(record.url, '_blank');
- }}
- >
- {t('goToPay')}
- </Button>
- )}
- </Space>
- ),
- },
- ];
-
- // 订阅表格列
- const subscriptionColumns = [
- {
- title: t('subscriptionId'),
- dataIndex: 'id',
- key: 'id',
- ellipsis: true,
- },
- {
- title: t('packageType'),
- dataIndex: 'metadata',
- key: 'payment',
- render: (metadata: any) => {
- const paymentType = metadata?.payment;
- return getPaymentTypeText(paymentType);
- },
- },
- // {
- // title: '金额',
- // dataIndex: 'amount',
- // key: 'amount',
- // render: (amount: number, record: Order) => {
- // const displayAmount = (amount / 100).toFixed(2); // Stripe金额通常以分为单位
- // const symbol = record.currency === 'usd' ? '$' : record.currency === 'cny' ? '¥' : record.currency?.toUpperCase();
- // return `${symbol}${displayAmount}`;
- // },
- // },
- {
- title: t('status'),
- dataIndex: 'status',
- key: 'status',
- render: (status: OrderStatus) => {
- const statusMap = {
- 1: { color: 'green', text: t('subscriptionSuccess') },
- 2: { color: 'red', text: t('subscriptionCancelled') },
- 3: { color: 'purple', text: t('refundSuccess') },
- 4: { color: 'orange', text: t('orderCancelled') }
- };
- const config = statusMap[status] || { color: 'default', text: `状态${status}` };
- return <Tag color={config.color}>{config.text}</Tag>;
- },
- },
- {
- title: t('createTime'),
- dataIndex: 'created',
- key: 'created',
- render: (timestamp: number) => new Date(timestamp * 1000).toLocaleString(),
- },
- // {
- // title: '过期时间',
- // dataIndex: 'expires_at',
- // key: 'expires_at',
- // render: (timestamp: number) => new Date(timestamp * 1000).toLocaleString(),
- // },
- {
- title: t('actions'),
- key: 'action',
- render: (_: any, record: Order) => (
- <Space>
- {record.status === 1 && (
- <Popconfirm
- title={t('cancelSubscriptionConfirm')}
- onConfirm={() => handleUnsubscribe(record)}
- okText={t('confirm')}
- cancelText={t('cancel')}
- >
- <Button type="link" danger size="small">{t('cancelSubscription')}</Button>
- </Popconfirm>
- )}
- </Space>
- ),
- },
- ];
-
- // 积分记录表格列
- const pointsColumns = [
- {
- title: t('points.pointsChange'),
- dataIndex: 'amount',
- key: 'amount',
- render: (amount: number) => (
- <span style={{ color: amount > 0 ? '#52c41a' : '#ff4d4f', fontWeight: 'bold' }}>
- {amount > 0 ? '+' : ''}{amount}
- </span>
- ),
- },
- {
- title: t('points.balance'),
- dataIndex: 'balance',
- key: 'balance',
- render: (balance: number) => (
- <span style={{ fontWeight: 'bold' }}>
- {balance}
- </span>
- ),
- },
- {
- title: t('points.changeType'),
- dataIndex: 'type',
- key: 'type',
- render: (type: string) => {
- const typeMap: { [key: string]: { color: string; text: string } } = {
- 'ai_service': { color: 'green', text: t('points.aiService' as any) },
- 'user_register': { color: 'blue', text: t('points.userRegister' as any) },
- 'publish': { color: 'purple', text: t('points.publish' as any) },
- 'point': { color: 'cyan', text: t('points.point' as any) },
- 'earn': { color: 'green', text: t('points.earn' as any) },
- 'spend': { color: 'red', text: t('points.spend' as any) },
- 'refund': { color: 'blue', text: t('points.refund' as any) },
- 'expire': { color: 'orange', text: t('points.expire' as any) }
- };
- const config = typeMap[type] || { color: 'default', text: type };
- return <Tag color={config.color}>{config.text}</Tag>;
- },
- },
- {
- title: t('points.description'),
- dataIndex: 'description',
- key: 'description',
- ellipsis: true,
- },
- ];
-
-
// 个人信息内容
const renderProfileContent = () => (
- <>
+ <div style={{}}>
{/* 顶部头部卡片 */}
- <div className={styles.headerCard}>
- {/* VIP 提示(已是VIP时显示) */}
- {isVip && (
+
+ {/* VIP 提示(已是VIP时显示) */}
+ {isVip && (
<div style={{
display: 'flex',
alignItems: 'center',
- justifyContent: 'center',
+ justifyContent: 'flex-start',
gap: 8,
color: '#a66ae4',
fontWeight: 700,
}}>
<Image src={plusvip} alt="VIP" className={styles.vipBadgeTop} />
- <span>{t('vipHonorText' as any)}</span>
+ <span style={{ fontSize: 16 }}>{t('vipHonorText' as any)}</span>
</div>
)}
- <div style={{ display: 'flex', flexDirection: 'row', alignItems: 'flex-start', justifyContent: 'center', gap: 8 }}>
- <div className={styles.avatar}>
- <Image src={logoHesd} alt="Logo" className={styles.logoHesd} />
- </div>
- <div className={styles.nameBlock}>
- <div className={styles.nameRow}>
- <span>{userInfo?.name || '-'}</span>
- <EditOutlined style={{ cursor: 'pointer', color: '#a66ae4' }} onClick={() => setIsModalOpen(true)} />
+ <div className={styles.headerCard}>
+
+ <div style={{ display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'center', gap: 8 }}>
+ <div className={styles.avatar}>
+ <Image src={logoHesd} alt="Logo" className={styles.logoHesd} />
</div>
- <div className={styles.subRow}>
- <span>{userInfo?.mail || '-'}</span>
+ <div className={styles.nameBlock}>
+ <div className={styles.nameRow}>
+ <span>{userInfo?.name || '-'}</span>
+ <EditOutlined style={{ cursor: 'pointer', color: '#a66ae4' }} onClick={() => setIsModalOpen(true)} />
+ </div>
+ <div className={styles.subRow}>
+ <span>{userInfo?.mail || '-'}</span>
+ </div>
+
</div>
- <div className={styles.scoreRowThis}>
- <span className={styles.scoreLabel}>{t('inviteCode' as any)}</span>
- <span className={styles.scoreValue}>{userInfo?.popularizeCode || '-'}</span>
- <CopyOutlined
- style={{ color: '#a66ae4', cursor: 'pointer' }}
- onClick={() => {
- const code = userInfo?.popularizeCode || '';
- if (!code) return;
- navigator.clipboard?.writeText(code).then(() => {
- message.success(t('copySuccess' as any));
- }).catch(() => {
- message.success(t('copySuccess' as any));
- });
- }}
- />
- </div>
</div>
- </div>
-
+
<div className={styles.scoreRow}>
-
-
+
+
</div>
</div>
-
-
{/* 深色统计卡片 */}
<div className={styles.statsCard}>
<div className={styles.statsHeader}>
- <Image src={plusvip} alt="VIP" className={styles.vipBadge} />
+ <Image src={plusvip} alt="VIP" className={styles.vipBadge} />
<span className={styles.statsTitle}>{t('stats.totalEarned' as any)}</span>
- <span className={styles.statsAmount}>{(userInfo as any)?.totalIncome ?? 0}</span>
+ <span className={styles.statsAmount}>{((userInfo as any)?.totalIncome as number / 100 || 0).toFixed(2)}</span>
<span className={styles.statsCurrency}>{t('stats.currencyYuan' as any)}</span>
</div>
<div className={styles.statsGrid}>
- <div className={styles.statsItem} onClick={() => router.push('/income')} >
-
- <div className={styles.statsLabel}>{t('stats.balance' as any)} <span className={styles.statsValue}> {userInfo?.income || 0} </span> CNY</div>
+ <div className={styles.statsItem} onClick={() => router.push('/income')} >
+
+ <div className={styles.statsLabel}>{t('stats.balance' as any)} <span className={styles.statsValue}> {( userInfo?.income as number / 100 || 0).toFixed(2)} </span> CNY</div>
</div>
- <div className={styles.statsItem} style={{cursor:'pointer'}} onClick={() => setPointsDetailVisible(true)}>
-
- <div className={styles.statsLabel}>{t('stats.points' as any)} <span className={styles.statsValue}>{Math.floor((userInfo?.score as number) || 0) } </span> {t('stats.points' as any)}</div>
+ <div className={styles.statsItem} style={{ cursor: 'pointer' }} onClick={() => setPointsDetailVisible(true)}>
+
+ <div className={styles.statsLabel}>{t('stats.points' as any)} <span className={styles.statsValue}>{(Math.floor((userInfo?.score as number) || 0)).toFixed(1)} </span> {t('stats.points' as any)}</div>
</div>
-
+
</div>
</div>
+ <div className={styles.editCard}>
+ <div style={{display: 'flex', flexDirection: 'column', alignItems: 'flex-start'}}>
+ <span className={styles.scoreLabel}>{t('username')}</span>
+ <div className={styles.fieldContainer}>
+ <span className={styles.fieldInput}>{userInfo?.name || '-'}</span>
+ <button className={styles.fieldButton} onClick={() => setIsModalOpen(true)}>{t('edit' as any)}</button>
+ </div>
+ </div>
+ <div style={{display: 'flex', flexDirection: 'column', alignItems: 'flex-start'}}>
+ <span className={styles.scoreLabel}>{t('inviteCode' as any)}</span>
+ <div className={styles.fieldContainer}>
+ <span className={styles.fieldInput}>{userInfo?.popularizeCode || '-'}</span>
+ <button className={styles.fieldButton} onClick={() => {
+ const code = userInfo?.popularizeCode || '';
+ if (!code) return;
+ navigator.clipboard?.writeText(code).then(() => {
+ message.success(t('copySuccess' as any));
+ }).catch(() => {
+ message.success(t('copySuccess' as any));
+ });
+ }}>{t('copy' as any)}</button>
+ </div>
+ </div>
+ </div>
+
+
{/* 账号状态(仅非正常时显示) */}
{userInfo?.status !== 1 && (
<div style={{
@@ -797,124 +565,27 @@ export default function ProfilePage() {
{/* 底部申请注销按钮 */}
- <div style={{ textAlign: 'center', paddingTop: 24, display:'flex', flexDirection:'column', justifyContent:'center', alignItems:"flex-start" }}>
+ {/* <div style={{ textAlign: 'center', paddingTop: 24, display:'flex', flexDirection:'column', justifyContent:'center', alignItems:"flex-start" }}>
<div style={{ display:'flex', flexDirection:'column', justifyContent:'space-between', alignItems:"flex-start", marginBottom: 8 }}>
<div style={{ fontSize: 16, fontWeight: 800, color: '#54687B' }}>{t('deleteAccount.title' as any)}</div>
<div>{t('deleteAccount.desc' as any)}</div>
</div>
- <Button danger>{t('deleteAccount.apply' as any)}</Button>
- </div>
- </>
- );
-
- // 订单管理内容
- const renderOrderContent = () => (
- <div className={styles.orderContent}>
- <Tabs defaultActiveKey="orders">
- <TabPane tab={t('myOrders')} key="orders">
- <Card>
- <Table
- columns={orderColumns}
- dataSource={orders}
- loading={ordersLoading}
- rowKey="_id"
- onRow={(record) => ({
- onClick: () => {
- fetchOrderDetail(record.id);
- },
- style: { cursor: 'pointer' }
- })}
- pagination={{
- current: ordersPagination.current,
- pageSize: ordersPagination.pageSize,
- total: ordersPagination.total,
- onChange: (page, size) => {
- fetchOrders({ page: page - 1, size: size || 10 });
- },
- showSizeChanger: true,
- showQuickJumper: true,
- showTotal: (total) => t('totalRecords', { total }),
- pageSizeOptions: ['10', '20', '50'],
- }}
- scroll={{ x: 1200 }} // 添加横向滚动以适应更多列
- locale={{
- emptyText: ordersLoading ? t('loading') : t('noOrderRecords')
- }}
- />
- </Card>
- </TabPane>
- <TabPane tab={t('mySubscriptions')} key="subscriptions">
- <Card>
- <Table
- columns={subscriptionColumns}
- dataSource={subscriptions}
- loading={subscriptionsLoading}
- rowKey="id"
- pagination={{
- current: subscriptionsPagination.current,
- pageSize: subscriptionsPagination.pageSize,
- total: subscriptionsPagination.total,
- onChange: (page, size) => {
- fetchSubscriptions({ page: page - 1, size: size || 10 });
- },
- showSizeChanger: true,
- showQuickJumper: true,
- showTotal: (total) => t('totalRecords', { total }),
- pageSizeOptions: ['10', '20', '50'],
- }}
- locale={{
- emptyText: subscriptionsLoading ? t('loading') : t('noSubscriptionRecords')
- }}
- />
- </Card>
- </TabPane>
- </Tabs>
+ <Button danger onClick={handleOpenCancelModal}>{t('deleteAccount.apply' as any)}</Button>
+ </div> */}
</div>
);
+
if (loading) {
return null;
}
return (
<div className={styles.container}>
- <Tabs
- defaultActiveKey="profile"
- size="large"
- onChange={(key) => {
- if (key === 'orders') {
- fetchOrders({ page: 0, size: 10 });
- fetchSubscriptions({ page: 0, size: 10 });
- } else if (key === 'points') {
- fetchPointsRecords({ page: 1, pageSize: 10 });
- }
- }}
- >
- <TabPane
- tab={
- <span>
- <UserOutlined />
- {t('personalInfo')}
- </span>
- }
- key="profile"
- >
- {renderProfileContent()}
- </TabPane>
- <TabPane
- tab={
- <span>
- <ShoppingCartOutlined />
- {t('orderManagement')}
- </span>
- }
- key="orders"
- >
- {renderOrderContent()}
- </TabPane>
-
- </Tabs>
+ <div className={styles.profileContent}>
+ {renderProfileContent()}
+ </div>
<Modal
title={t('modifyUsername')}
@@ -958,7 +629,7 @@ export default function ProfilePage() {
{t('close')}
</Button>,
currentOrderDetail?.url && currentOrderDetail?.status === OrderStatus.CREATED && (
- <Button
+ <Button
key="pay"
type="primary"
onClick={() => {
@@ -979,34 +650,43 @@ export default function ProfilePage() {
<Descriptions.Item label={t('orderId')}>{currentOrderDetail.id}</Descriptions.Item>
<Descriptions.Item label={t('internalId')}>{currentOrderDetail._id}</Descriptions.Item>
<Descriptions.Item label={t('packageType')}>
- {getPaymentTypeText(currentOrderDetail.metadata?.payment)}
+ {currentOrderDetail.metadata?.payment || t('unknown')}
</Descriptions.Item>
<Descriptions.Item label={t('subscriptionMode')}>{currentOrderDetail.mode}</Descriptions.Item>
<Descriptions.Item label={t('amount')}>
{(() => {
const displayAmount = (currentOrderDetail.amount / 100).toFixed(2);
- const symbol = currentOrderDetail.currency === 'usd' ? '$' :
- currentOrderDetail.currency === 'cny' ? '¥' :
- currentOrderDetail.currency?.toUpperCase();
+ const symbol = currentOrderDetail.currency === 'usd' ? '$' :
+ currentOrderDetail.currency === 'cny' ? '¥' :
+ currentOrderDetail.currency?.toUpperCase();
return `${symbol}${displayAmount}`;
})()}
</Descriptions.Item>
<Descriptions.Item label={t('refundedAmount')}>
{(() => {
const displayAmount = (currentOrderDetail.amount_refunded / 100).toFixed(2);
- const symbol = currentOrderDetail.currency === 'usd' ? '$' :
- currentOrderDetail.currency === 'cny' ? '¥' :
- currentOrderDetail.currency?.toUpperCase();
+ const symbol = currentOrderDetail.currency === 'usd' ? '$' :
+ currentOrderDetail.currency === 'cny' ? '¥' :
+ currentOrderDetail.currency?.toUpperCase();
return `${symbol}${displayAmount}`;
})()}
</Descriptions.Item>
<Descriptions.Item label={t('status')}>
- {getOrderStatusTag(currentOrderDetail.status)}
+ {(() => {
+ const statusMap = {
+ [OrderStatus.SUCCEEDED]: { color: 'green', text: t('paymentSuccess') },
+ [OrderStatus.CREATED]: { color: 'orange', text: t('waitingForPayment') },
+ [OrderStatus.REFUNDED]: { color: 'purple', text: t('refundSuccess') },
+ [OrderStatus.EXPIRED]: { color: 'red', text: t('orderCancelled') }
+ };
+ const config = statusMap[currentOrderDetail.status] || { color: 'default', text: `状态${currentOrderDetail.status}` };
+ return <span style={{ color: config.color, fontWeight: 'bold' }}>{config.text}</span>;
+ })()}
</Descriptions.Item>
<Descriptions.Item label={t('createTime')}>
{new Date(currentOrderDetail.created * 1000).toLocaleString()}
</Descriptions.Item>
- <Descriptions.Item label={t('expireTime')}>
+ <Descriptions.Item label={ t('expireTime')}>
{new Date(currentOrderDetail.expires_at * 1000).toLocaleString()}
</Descriptions.Item>
<Descriptions.Item label={t('userId')}>{currentOrderDetail.userId}</Descriptions.Item>
@@ -1020,8 +700,8 @@ export default function ProfilePage() {
{/* <Descriptions.Item label="成功页面">{currentOrderDetail.success_url}</Descriptions.Item> */}
{currentOrderDetail.url && (
<Descriptions.Item label={t('paymentLink')}>
- <Button
- type="link"
+ <Button
+ type="link"
size="small"
onClick={() => window.open(currentOrderDetail.url, '_blank')}
>
@@ -1072,10 +752,10 @@ export default function ProfilePage() {
<p style={{ color: '#6b7280', lineHeight: '1.6', marginBottom: '20px' }}>
{t('freeTrial.description')}
</p>
- <div style={{
- background: '#f8fafc',
- borderRadius: '12px',
- padding: '16px',
+ <div style={{
+ background: '#f8fafc',
+ borderRadius: '12px',
+ padding: '16px',
marginBottom: '20px',
border: '1px solid #e2e8f0'
}}>
@@ -1102,6 +782,69 @@ export default function ProfilePage() {
<PointsRechargeModal open={pointsRechargeVisible} onClose={handleRechargeCancel} />
<PointsDetailModal open={pointsDetailVisible} onClose={() => setPointsDetailVisible(false)} />
<VipContentModal open={vipModalVisible} onClose={() => setVipModalVisible(false)} />
+
+ {/* 注销账户确认弹窗 */}
+ <Modal
+ title={t('cancelAccount' as any)}
+ open={cancelModalVisible}
+ onCancel={() => setCancelModalVisible(false)}
+ footer={null}
+ width={500}
+ centered
+ >
+ <div style={{ paddingTop: '20px' }}>
+ <div style={{ marginBottom: '20px', color: '#666', lineHeight: '1.6' }}>
+ <p>{t('cancelAccountWarning' as any)}</p>
+ <ul style={{ margin: '10px 0', paddingLeft: '20px' }}>
+ {(t('cancelAccountDataList' as any) as string).split(',').map((item, index) => (
+ <li key={index}>{item}</li>
+ ))}
+ </ul>
+ <p style={{ color: '#ff4d4f', fontWeight: 'bold' }}>{t('cancelAccountCaution' as any)}</p>
+ <p style={{ color: '#1890ff', fontSize: '14px' }}>{t('cancelAccountSecurity' as any)}</p>
+ </div>
+
+ <Form
+ form={cancelForm}
+ layout="vertical"
+ onFinish={handleCancelAccount}
+ >
+ <Form.Item
+ label={t('verificationCode' as any)}
+ name="code"
+ rules={[{ required: true, message: t('pleaseEnterVerificationCode' as any) }]}
+ >
+ <div style={{ display: 'flex', gap: '8px' }}>
+ <Input placeholder={t('pleaseEnterVerificationCode' as any)} />
+ <Button
+ onClick={handleGetCancelCode}
+ disabled={codeCountdown > 0}
+ loading={codeCountdown > 0}
+ >
+ {codeCountdown > 0 ? `${codeCountdown}${t('resendAfter' as any)}` : t('getVerificationCode' as any)}
+ </Button>
+ </div>
+ </Form.Item>
+
+
+ <Form.Item>
+ <div style={{ display: 'flex', gap: '12px', justifyContent: 'flex-end' }}>
+ <Button onClick={() => setCancelModalVisible(false)}>
+ {t('cancel')}
+ </Button>
+ <Button
+ type="primary"
+ danger
+ htmlType="submit"
+ loading={cancelLoading}
+ >
+ {t('confirmCancel' as any)}
+ </Button>
+ </div>
+ </Form.Item>
+ </Form>
+ </div>
+ </Modal>
</div>
);
}
\ No newline at end of file
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/profile/profile.module.css b/aitoearn_web/aitoearn-web/src/app/[lng]/profile/profile.module.css
index 57e36296..00da8a81 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/profile/profile.module.css
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/profile/profile.module.css
@@ -1,5 +1,14 @@
.container {
padding: 24px;
+ display: flex;
+ justify-content: center;
+ min-height: 80vh;
+ margin-top: 80px;
+}
+
+.profileContent {
+ max-width: 800px;
+ width: 100%;
}
.card {
@@ -909,17 +918,19 @@
/* 顶部头部信息卡片 */
.headerCard {
+ background-color: #F7F8FA;
border-radius: 16px;
- padding: 20px 0px;
+ padding: 20px 30px;
display: flex;
- flex-direction: column;
+ justify-content: center;
align-items: flex-start;
gap: 16px;
+ margin-top: 18px;
}
.avatar {
- width: 68px;
- height: 68px;
+ width: 90px;
+ height: 90px;
border-radius: 50%;
overflow: hidden;
background: #e9d5ff;
@@ -938,6 +949,7 @@
align-items: flex-start;
gap: 4px;
margin-top: 5px;
+ margin-left: 10px;
}
.nameRow {
@@ -956,7 +968,7 @@
}
.vipBadgeTop {
- width: 20px;
+ width: 22px;
height: auto;
}
@@ -978,7 +990,7 @@
.scoreRowThis {
display: flex;
- flex-direction: row;
+ flex-direction: column;
align-items: baseline;
gap: 8px;
margin-top: 2px;
@@ -993,10 +1005,8 @@
margin-top: 2px;
font-weight: 600;
font-size: 18px;
- background: linear-gradient(135deg, #a66ae4, #8b5cf6);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- background-clip: text;
+ background: #F2F3F5;
+
}
/* 深色统计卡片 */
@@ -1006,6 +1016,7 @@
color: #e5e7eb;
border: 1px solid rgba(255,255,255,0.06);
overflow: hidden;
+ margin-top: 20px;
}
.statsHeader {
@@ -1035,14 +1046,13 @@
display: grid;
grid-template-columns: repeat(3, 1fr);
text-align: center;
- margin-top: 16px;
padding-top: 12px;
padding-bottom: 8px;
}
.logoHesd {
- width: 38px;
- height: 38px;
+ width: 68px;
+ height: 68px;
}
.statsItem {
@@ -1193,4 +1203,67 @@
.incomeButton:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(166, 106, 228, 0.35), 0 2px 8px rgba(166, 106, 228, 0.35);
+}
+
+/* Edit Card 样式 */
+.editCard {
+ background: white;
+ border-radius: 12px;
+ padding: 24px 0;
+}
+
+.editCard > div {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: 35px;
+}
+
+.editCard > div:last-child {
+ margin-bottom: 0;
+}
+
+.editCard .scoreLabel {
+ font-weight: 600;
+ font-size: 16px;
+ color: #374151;
+ min-width: 60px;
+}
+
+.editCard .fieldContainer {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ flex: 1;
+ margin-top: 10px;
+ width: 100%;
+}
+
+.editCard .fieldInput {
+ flex: 1;
+ background-color: #F2F3F5;
+ padding: 15px 12px;
+ border-radius: 8px;
+ border: none;
+ color: #374151;
+ font-size: 14px;
+ min-width: 200px;
+}
+
+.editCard .fieldButton {
+ color: #424A57;
+ cursor: pointer;
+ font-size: 14px;
+ font-weight: 600;
+ padding: 15px 16px;
+ background-color: #F2F3F5;
+ border-radius: 8px;
+ border: none;
+ transition: all 0.2s ease;
+}
+
+.editCard .fieldButton:hover {
+ background-color: #e2e8f0;
+ color: #8b5cf6;
}
\ No newline at end of file
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/styles/difyHome.module.scss b/aitoearn_web/aitoearn-web/src/app/[lng]/styles/difyHome.module.scss
index 12836073..0d310f1d 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/styles/difyHome.module.scss
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/styles/difyHome.module.scss
@@ -73,9 +73,12 @@
}
.headerRight {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+
@media (max-width: 768px) {
- display: flex;
- align-items: center;
+ gap: 8px;
}
}
@@ -98,6 +101,10 @@
.logoText {
margin-left: 15px;
+
+ @media (max-width: 768px) {
+ display: none;
+ }
}
.nav {
@@ -157,6 +164,160 @@
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
+
+ @media (max-width: 768px) {
+ padding: 6px 16px;
+ font-size: 14px;
+ margin-left: 0;
+ }
+}
+
+// 移动端菜单按钮
+.mobileMenuButton {
+ display: none;
+ background: none;
+ border: none;
+ color: #374151;
+ font-size: 20px;
+ cursor: pointer;
+ padding: 8px;
+ border-radius: 4px;
+ transition: all 0.2s ease;
+
+ &:hover {
+ background: #f3f4f6;
+ color: #4f46e5;
+ }
+
+ @media (max-width: 768px) {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+}
+
+// 移动端菜单遮罩层
+.mobileMenuOverlay {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background: rgba(0, 0, 0, 0.5);
+ z-index: 999;
+ animation: fadeIn 0.3s ease-out;
+}
+
+// 移动端侧边菜单
+.mobileMenu {
+ position: fixed;
+ top: 0;
+ right: -100%;
+ width: 300px;
+ height: 100vh;
+ background: white;
+ box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
+ z-index: 1000;
+ transition: right 0.3s ease-out;
+ display: flex;
+ flex-direction: column;
+
+ &.mobileMenuOpen {
+ right: 0;
+ }
+
+ @media (max-width: 480px) {
+ width: 280px;
+ }
+}
+
+// 移动端菜单头部
+.mobileMenuHeader {
+ display: flex;
+ align-items: center;
+ padding: 20px;
+ border-bottom: 1px solid #e5e7eb;
+ gap: 12px;
+}
+
+.mobileMenuTitle {
+ font-size: 18px;
+ font-weight: 700;
+ color: #4f46e5;
+ flex: 1;
+}
+
+.mobileMenuClose {
+ background: none;
+ border: none;
+ color: #6b7280;
+ font-size: 18px;
+ cursor: pointer;
+ padding: 4px;
+ border-radius: 4px;
+ transition: all 0.2s ease;
+
+ &:hover {
+ background: #f3f4f6;
+ color: #374151;
+ }
+}
+
+// 移动端菜单导航
+.mobileMenuNav {
+ flex: 1;
+ padding: 20px 0;
+ overflow-y: auto;
+}
+
+.mobileNavLink {
+ display: block;
+ padding: 16px 20px;
+ color: #374151;
+ text-decoration: none;
+ font-weight: 500;
+ font-size: 16px;
+ transition: all 0.2s ease;
+ border-left: 3px solid transparent;
+
+ &:hover {
+ background: #f8fafc;
+ color: #4f46e5;
+ border-left-color: #4f46e5;
+ }
+
+ &.active {
+ background: #f0f4ff;
+ color: #4f46e5;
+ border-left-color: #4f46e5;
+ font-weight: 600;
+ }
+}
+
+// 移动端菜单底部
+.mobileMenuFooter {
+ padding: 20px;
+ border-top: 1px solid #e5e7eb;
+}
+
+.mobileLanguageButton {
+ width: 100%;
+ height: 40px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ font-weight: 500;
+}
+
+// 动画效果
+@keyframes fadeIn {
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
}
.hero {
diff --git a/aitoearn_web/aitoearn-web/src/app/[lng]/wallet/page.tsx b/aitoearn_web/aitoearn-web/src/app/[lng]/wallet/page.tsx
index d0fb4ff6..cb01fd07 100644
--- a/aitoearn_web/aitoearn-web/src/app/[lng]/wallet/page.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/[lng]/wallet/page.tsx
@@ -84,7 +84,7 @@ export default function WalletPage() {
width: 120,
fixed: 'right' as any,
render: (_: any, record: UserWalletAccount) => (
- <div style={{ display: 'flex', flexDirection: 'column', gap: '4px' }}>
+ <div style={{ display: 'flex', flexDirection: 'row', gap: '4px' }}>
<Button
size="small"
type="link"
diff --git a/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/home.json b/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/home.json
index 1aa8c840..cb2c19d5 100644
--- a/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/home.json
+++ b/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/home.json
@@ -35,7 +35,7 @@
"features": {
"hotTopic": {
"title": "Distribute Everywhere",
- "description": "Publish to the widest range of global platforms (Douyin, Kwai, WeChat, Bilibili, Rednote, Facebook, Instagram, TikTok, LinkedIn, Threads, Bluesky, YouTube Shorts, Pinterest, Google Business, Mastodon, X)."
+ "description": "Publish to the widest range of global platforms (Douyin, Kwai, WeChat, Bilibili, Rednote, Facebook, Instagram, TikTok, LinkedIn, Threads, YouTube, Pinterest, X)."
},
"international": {
"title": "Calendar Scheduler",
diff --git a/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/profile.json b/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/profile.json
index e25bd51c..1369539d 100644
--- a/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/profile.json
+++ b/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/profile.json
@@ -44,7 +44,7 @@
"subscriptionMode": "Mode",
"refundedAmount": "Refunded",
"paymentIntent": "Payment Intent",
- "subscriptionId": "Subscription ID",
+ "paymentMethod": "Payment Method",
"paymentLink": "Payment Link",
"openPaymentPage": "Open Payment",
"totalRecords": "Total: {total}",
@@ -150,7 +150,19 @@
},
"vipHonorText": "VIP Member",
"inviteCode": "Invite Code",
+ "edit": "Edit",
+ "copy": "Copy",
"copySuccess": "Copied",
+ "cancelAccount": "Cancel Account",
+ "cancelAccountWarning": "Account cancellation is irreversible. Once cancelled, all your data will be permanently deleted, including:",
+ "cancelAccountDataList": "Personal profile and settings,All published content,Points and membership benefits,Order and payment records",
+ "cancelAccountCaution": "Please proceed with caution!",
+ "cancelAccountSecurity": "For your account security, please get a verification code for identity verification first.",
+ "verificationCode": "Verification Code",
+ "pleaseEnterVerificationCode": "Please enter verification code",
+ "getVerificationCode": "Get Verification Code",
+ "resendAfter": "s before resend",
+ "confirmCancel": "Confirm Cancellation",
"stats": {
"totalEarned": "Total Earned",
"balance": "Balance",
diff --git a/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/publish.json b/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/publish.json
index 68dd5480..48ec7f74 100644
--- a/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/publish.json
+++ b/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/publish.json
@@ -13,7 +13,10 @@
"delete": "Delete"
},
"tips": {
- "workSaved": "Please select the account to publish"
+ "workSaved": "Please select the account to publish",
+ "pcNotSupported": "Web does not support this platform, please download the App to publish",
+ "accountOffline": "This account is offline and cannot be published",
+ "tiktokForbidden": "This platform does not support publishing yet"
},
"status": {
"publishFailed": "Failed",
@@ -48,6 +51,8 @@
"upload": {
"finishingUp": "Finishing up...",
"uploadImageOrVideo": "Upload image or video",
+ "uploadImage": "Please upload image",
+ "uploadVideo": "Please upload video",
"dragAndSelect": "Drag & select image or video"
},
"validation": {
@@ -61,6 +66,8 @@
"descriptionRequired": "Description is required",
"imageMaxExceeded": "{{platformName}} images cannot exceed {{maxCount}}",
"uploadImageOrVideo": "Please upload image or video",
+ "uploadImage": "Please upload image",
+ "uploadVideo": "Please upload video",
"topicMaxExceeded": "{{platformName}} topics cannot exceed {{maxCount}}",
"topicFormatError": "Topics in description must be separated by spaces, such as: \"#topic1 #topic2\"",
"titleRequired": "Title is required",
@@ -107,8 +114,13 @@
"contentModeration": "Content Moderation",
"checkingContent": "Checking...",
"contentSafe": "Content Safe",
+ "riskLevel": "Level:",
"contentUnsafe": "Content Unsafe"
},
+ "badges": {
+ "offline": "Offline",
+ "forbidden": "No"
+ },
"tiktok": {
"creatorInfo": "Creator Info",
"privacy": {
diff --git a/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/vip.json b/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/vip.json
index da0ca95a..1b90eb16 100644
--- a/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/vip.json
+++ b/aitoearn_web/aitoearn-web/src/app/i18n/locales/en/vip.json
@@ -2,6 +2,8 @@
"title": "PLUS Member",
"description": "Upgrade to unlock all features with 8 benefits",
"activateNow": "Activate Now",
+ "upgrade": "Upgrade",
+ "membership": "Membership",
"pleaseLoginFirst": "Please login first",
"paymentOrderCreated": "Payment order created",
"paymentLinkNotFound": "Payment link not found",
@@ -37,12 +39,51 @@
"month": "Monthly",
"year": "Yearly"
},
+ "subscriptionManagement": "Subscription Management",
+ "subscriptionPlanManagement": "Subscription Plan Management",
+ "subscriptionPlans": "Plans",
+ "purchaseHistory": "Purchase History",
+ "myMembership": "My Membership",
+ "basicMembership": "Basic Membership",
+ "validUntil": "Valid Until",
+ "activatedAutoRenewalPlans": "Activated Auto-renewal Plans",
+ "activatedAutoRenewalPlansno": "Unactivated Auto-renewal Plans",
+ "noAutoRenewalItems": "You haven't activated any auto-renewal items yet",
+ "viewMorePlans": "View More Plans",
+ "continuousAnnual": "Continuous Annual",
+ "oneTimePurchase": "One-time Purchase",
+ "alipayPayment": "Alipay Payment",
+ "noMoreContent": "No more content",
+ "previousPage": "Previous",
+ "nextPage": "Next",
+ "pageInfo": "Page {current} of {total}",
+ "continuousMember": "Continuous Member",
+ "singleMember": "Single Month Member",
+ "autoRenewalEnabled": "Auto-renewal Enabled",
+ "autoRenewalDisabled": "Auto-renewal Disabled",
+ "nextRenewalDate": "Next Renewal Date",
+ "membershipExpires": "Membership Expires",
+ "currentPlan": "Current Plan",
"modal": {
"title": "7-Day Free Trial",
"highlight": "Get 100 Points",
"choosePlan": "Choose your plan or",
"buyPoints": "Buy Points",
"pointsDetail": "Points Detail",
+ "vipInfo": {
+ "details": "Details",
+ "subscription": "Subscription",
+ "planType": "Plan Type",
+ "monthly": "Monthly PLUS",
+ "monthly2": "Monthly",
+ "yearly2": "Yearly",
+ "yearly": "Yearly PLUS",
+ "singleMonth": "Single Month",
+ "expireTime": "Expire Time",
+ "xufeiTime": "Renewal Time",
+ "remainingPoints": "Remaining Points",
+ "buyPoints": "Buy Points"
+ },
"tabs": {
"yearly": "Yearly",
"monthly": "Monthly",
@@ -58,52 +99,53 @@
"period": "/month",
"forever": "Forever",
"currentPlan": "Current Plan",
+ "freePlan": "Free Plan",
"points": "60 pts/month",
"features": {
- "dailyPoints": "Daily points",
- "maxPoints": "Max 60 pts",
- "videos": "60 videos/month",
- "images": "120 images/month",
- "storage": "500M storage"
+ "dailyPoints": "Up to 10+ video gens/month",
+ "maxPoints": "Trending insights",
+ "videos": "All major platforms",
+ "images": "Unlimited channel links",
+ "storage": "Content & comment search, smart engage"
}
},
"plans": {
+ "goumai": "Buy",
"yearly": {
"title": "Yearly",
"bestValue": "Best Value",
- "price": "$144",
- "period": "/year",
+ "price": "12",
+ "period": "/month",
"originalPrice": "$300/year",
"button": "$144/year Save 50%",
- "points": "8,400 pts",
- "description": "16,800 images & 8,400 videos",
+ "points": "760 pts/month (incl. 60 check-in)",
+ "description": "Up to 150+ video gens/month",
"features": {
- "dailyPoints": "Daily points",
- "contentReview": "Content review",
- "multiModel": "Multi-model support",
- "textToVideo": "Text to video",
- "aiGeneration": "AI generation",
- "noWatermark": "No watermark, faster",
- "storage": "5G storage"
+ "contentReview": "Content safety review",
+ "dailyPoints": "Free nano, banana image models (limited)",
+ "multiModel": "GPT-5, Gemini 2.5 Pro",
+ "textToVideo": "Douyin、Redbook、Kwai、Bilibli,Wechat、TikTok、YouTube、Facebook、Instagram.Threads、Twitter(X)、Pinterest All major platforms",
+ "aiGeneration": "Unlimited channel links",
+ "noWatermark": "Content & comment search, smart engage"
}
},
"monthly": {
"title": "Monthly",
- "price": "$228",
- "period": "/year",
+ "price": "19",
+ "period": "/month",
"originalPrice": "$25/month",
"button": "$19/month Save 25%",
- "points": "8,400 pts",
- "description": "16,800 images & 8,400 videos"
+ "points": "760 pts/month (incl. 60 check-in)",
+ "description": "Up to 150+ video gens/month"
},
"once": {
- "title": "One-time",
- "price": "$25",
+ "title": "One-time Monthly",
+ "price": "25",
"period": "/month",
"button": "$25/month",
- "points": "700 pts",
- "description": "1,400 images & 700 videos",
- "storage": "3G storage"
+ "points": "760 pts/month (incl. 60 check-in)",
+ "description": "Up to 150+ video gens/month",
+ "storage": "5G storage"
}
},
"trial": "7-day free trial",
@@ -138,11 +180,11 @@
"recharge": {
"title": "Buy Points",
"current": "Current Points",
- "price": "1000 points for $15",
+ "price": "1000 credits for $15",
"amount": "Buy Points",
"total": "Total",
"buyNow": "Buy Now",
"range": "1K-50K",
- "unit": "points"
+ "unit": "credits"
}
}
\ No newline at end of file
diff --git a/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/home.json b/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/home.json
index 0137c68f..97d827a9 100644
--- a/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/home.json
+++ b/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/home.json
@@ -34,7 +34,7 @@
"features": {
"hotTopic": {
"title": "多平台分发",
- "description": "支持全球最多主流社交平台(Douyin, Kwai, Wechat, Bilibili, Rednote, Facebook, Instagram, TikTok, LinkedIn, Threads, Bluesky, YouTube Shorts, Pinterest, Google Business, Mastodon, X)。"
+ "description": "支持全球最多主流社交平台(Douyin, Kwai, Wechat, Bilibili, Rednote, Facebook, Instagram, TikTok, LinkedIn, Threads, YouTube, Pinterest, X)。"
},
"international": {
"title": "日历编排",
diff --git a/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/profile.json b/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/profile.json
index 19ccd12f..4b13f6fb 100644
--- a/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/profile.json
+++ b/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/profile.json
@@ -1,7 +1,7 @@
{
"personalInfo": "个人信息",
"orderManagement": "订单管理",
- "myOrders": "我的订单",
+ "myOrders": "购买记录",
"mySubscriptions": "我的订阅",
"plusMember": "PLUS会员",
"vipUserGreeting": "尊敬的VIP用户,您已解锁全部会员权益",
@@ -42,9 +42,9 @@
"goToPayment": "前往支付",
"internalId": "内部ID",
"subscriptionMode": "订阅模式",
+ "paymentMethod": "支付方式",
"refundedAmount": "已退款金额",
"paymentIntent": "Payment Intent",
- "subscriptionId": "订阅ID",
"paymentLink": "支付链接",
"openPaymentPage": "打开支付页面",
"totalRecords": "共 {total} 条记录",
@@ -150,7 +150,19 @@
},
"vipHonorText": "您是尊贵的VIP用户",
"inviteCode": "邀请码",
+ "edit": "编辑",
+ "copy": "复制",
"copySuccess": "已复制",
+ "cancelAccount": "注销账户",
+ "cancelAccountWarning": "注销账户是不可逆的操作,一旦注销,您的所有数据将被永久删除,包括:",
+ "cancelAccountDataList": "个人资料和设置,所有发布的内容,积分和会员权益,订单和支付记录",
+ "cancelAccountCaution": "请谨慎操作!",
+ "cancelAccountSecurity": "为了您的账户安全,请先获取验证码进行身份验证。",
+ "verificationCode": "验证码",
+ "pleaseEnterVerificationCode": "请输入验证码",
+ "getVerificationCode": "获取验证码",
+ "resendAfter": "s后重发",
+ "confirmCancel": "确认注销",
"stats": {
"totalEarned": "累计赚钱",
"balance": "当前余额",
diff --git a/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/publish.json b/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/publish.json
index fb08eb5a..6df0a8f8 100644
--- a/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/publish.json
+++ b/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/publish.json
@@ -13,7 +13,10 @@
"delete": "删除"
},
"tips": {
- "workSaved": "请选择要发布的账户"
+ "workSaved": "请选择要发布的账户",
+ "pcNotSupported": "Web不支持该平台,请下载App进行发布",
+ "accountOffline": "该账号已离线,无法发布",
+ "tiktokForbidden": "该平台暂不支持发布"
},
"status": {
"publishFailed": "发布失败",
@@ -48,6 +51,8 @@
"upload": {
"finishingUp": "正在完成...",
"uploadImageOrVideo": "上传图片或视频",
+ "uploadImage": "请上传图片",
+ "uploadVideo": "请上传视频",
"dragAndSelect": "拖放 & 选择图片或视频"
},
"validation": {
@@ -61,6 +66,8 @@
"descriptionRequired": "描述是必须的",
"imageMaxExceeded": "{{platformName}}图片最多不能超过{{maxCount}}张",
"uploadImageOrVideo": "请上传图片或视频",
+ "uploadImage": "请上传图片",
+ "uploadVideo": "请上传视频",
"topicMaxExceeded": "{{platformName}}话题最多不能超过{{maxCount}}个",
"topicFormatError": "描述中的话题必须使用空格分割,如:\"#话题1 #话题2\"",
"titleRequired": "标题是必须的",
@@ -107,8 +114,13 @@
"contentModeration": "内容安全检测",
"checkingContent": "检测中...",
"contentSafe": "内容安全",
+ "riskLevel": "等级:",
"contentUnsafe": "内容不安全"
},
+ "badges": {
+ "offline": "已离线",
+ "forbidden": "禁"
+ },
"tiktok": {
"creatorInfo": "创作者信息",
"privacy": {
diff --git a/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/vip.json b/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/vip.json
index fc57b239..2e9bdce8 100644
--- a/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/vip.json
+++ b/aitoearn_web/aitoearn-web/src/app/i18n/locales/zh-CN/vip.json
@@ -2,6 +2,8 @@
"title": "PLUS会员",
"description": "开通会员解锁全部功能,立享8种权益",
"activateNow": "立即开通",
+ "upgrade": "开通会员",
+ "membership": "会员",
"pleaseLoginFirst": "请先登录",
"paymentOrderCreated": "支付订单创建成功",
"paymentLinkNotFound": "未获取到支付链接",
@@ -37,12 +39,51 @@
"month": "月度订阅",
"year": "年度订阅"
},
+ "subscriptionManagement": "订阅管理",
+ "subscriptionPlanManagement": "订阅计划管理",
+ "subscriptionPlans": "订阅计划",
+ "purchaseHistory": "购买记录",
+ "myMembership": "我的会员",
+ "basicMembership": "基础会员",
+ "validUntil": "有效期至",
+ "activatedAutoRenewalPlans": "已开通自动续费套餐",
+ "activatedAutoRenewalPlansno": "未开通自动续费套餐",
+ "noAutoRenewalItems": "你还没有开通自动续费项目哦",
+ "viewMorePlans": "查看更多套餐",
+ "continuousAnnual": "连续包年",
+ "oneTimePurchase": "一次性购买",
+ "alipayPayment": "支付宝支付",
+ "noMoreContent": "没有内容了",
+ "previousPage": "上一页",
+ "nextPage": "下一页",
+ "pageInfo": "第 {current} 页,共 {total} 页",
+ "continuousMember": "连续会员",
+ "singleMember": "单月会员",
+ "autoRenewalEnabled": "自动续费已开启",
+ "autoRenewalDisabled": "自动续费未开启",
+ "nextRenewalDate": "下次续费时间",
+ "membershipExpires": "有效期至",
+ "currentPlan": "当前计划",
"modal": {
"title": "免费试用7天会员",
"highlight": "立得100积分",
"choosePlan": "选择合适你的套餐,或直接",
"buyPoints": "购买积分",
"pointsDetail": "积分详情",
+ "vipInfo": {
+ "details": "详情",
+ "subscription": "订阅管理",
+ "planType": "计划",
+ "monthly": "连续包月PLUS会员",
+ "monthly2": "月度会员",
+ "yearly": "连续包年PLUS会员",
+ "yearly2": "年度会员",
+ "singleMonth": "单月会员",
+ "expireTime": "到期时间",
+ "xufeiTime": "续费时间",
+ "remainingPoints": "剩余积分",
+ "buyPoints": "购买积分"
+ },
"tabs": {
"yearly": "连续包年",
"monthly": "连续包月",
@@ -58,52 +99,53 @@
"period": "每月",
"forever": "永久",
"currentPlan": "当前计划",
- "points": "60积分每月",
+ "freePlan": "免费计划",
+ "points": "每月签到赠送60积分",
"features": {
- "dailyPoints": "发布赠送积分",
- "maxPoints": "最高60 积分",
- "videos": "每月最高可生成60个视频",
- "images": "每月最高可生成120张图片",
- "storage": "存储空间500M"
+ "dailyPoints": "每月最高10+次seedance等模型视频生成",
+ "maxPoints": "全网热门内容洞察",
+ "videos": "抖音、小红书、视频号、快手、哔哩哔哩、微信公众号TikTok、YouTube、Facebook、Instagram、Threads、Twitter(X)、Pinterest全平台支持",
+ "images": "无限制频道连接",
+ "storage": "内容搜索、评论搜索、智能互动管理"
}
},
"plans": {
+ "goumai": "购买",
"yearly": {
"title": "年度会员",
"bestValue": "最划算",
- "price": "$144",
- "period": "每年",
+ "price": "12",
+ "period": "每月",
"originalPrice": "$300/年",
"button": "$144/年 省50%",
- "points": "8,400积分",
- "description": "最多生成16,800张图和8,400个视频",
+ "points": "760 积分/月(包含签到赠送60积分)",
+ "description": "每月最高150+次seedance等模型视频生成",
"features": {
- "dailyPoints": "每天赠送积分",
"contentReview": "内容安全审核",
- "multiModel": "多模型一站式支持",
- "textToVideo": "文字转视频,图文转视频",
- "aiGeneration": "AI动画生成,AI图像生成",
- "noWatermark": "无水印输出,更快的生成速度",
- "storage": "存储空间5G"
+ "dailyPoints": "限时nano banana等图片模型无限免费使用",
+ "multiModel": "GPT5,Gemini-2.5-Pro等大模型使用",
+ "textToVideo": "抖音、小红书、视频号、快手、哔哩唑哩,微信公众号、TikTok、YouTube、Facebook、Instagram.Threads、Twitter(X)、Pinterest全平台支持",
+ "aiGeneration": "无限制频道连接",
+ "noWatermark": "内容搜索、评论搜索、智能互动管理"
}
},
"monthly": {
"title": "月度会员",
- "price": "$228",
- "period": "每年",
+ "price": "19",
+ "period": "每月",
"originalPrice": "$25/月",
"button": "$19/月 省25%",
- "points": "8,400积分",
- "description": "最多生成16,800张图和8,400个视频"
+ "points": "760 积分/月(包含签到赠送60积分)",
+ "description": "每月最高150+次seedance等模型视频生成"
},
"once": {
"title": "一次性月度会员",
- "price": "$25",
+ "price": "25",
"period": "每月",
"button": "$25/月",
- "points": "700积分",
- "description": "最多生成1400张图和700个视频",
- "storage": "存储空间3G"
+ "points": "760 积分/月(包含签到赠送60积分)",
+ "description": "每月最高150+次seedance等模型视频生成",
+ "storage": "存储空间5G"
}
},
"trial": "7天免费试用",
diff --git a/aitoearn_web/aitoearn-web/src/app/layout/HomeHeader.tsx b/aitoearn_web/aitoearn-web/src/app/layout/HomeHeader.tsx
index 0c64d58a..1299a23a 100644
--- a/aitoearn_web/aitoearn-web/src/app/layout/HomeHeader.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/layout/HomeHeader.tsx
@@ -1,4 +1,4 @@
-import { ForwardedRef, forwardRef, memo } from "react";
+import { ForwardedRef, forwardRef, memo, useState } from "react";
import { useTransClient } from "@/app/i18n/client";
import { usePathname, useRouter } from "next/navigation";
import { useUserStore } from "@/store/user";
@@ -7,7 +7,7 @@ import Image from "next/image";
import logo from "@/assets/images/logo.png";
import Link from "next/link";
import { Button } from "antd";
-import { GlobalOutlined } from "@ant-design/icons";
+import { GlobalOutlined, MenuOutlined, CloseOutlined } from "@ant-design/icons";
import { removeLocalePrefix } from "@/app/layout/layout.utils";
import { homeHeaderRouterData } from "@/app/layout/routerData";
@@ -22,7 +22,11 @@ const HomeHeader = memo(
const router = useRouter();
const userStore = useUserStore();
const currentPath = removeLocalePrefix(pathname).replace(/\/+$/, "") || "/";
+ const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
+ /**
+ * 切换语言
+ */
const toggleLanguage = () => {
const newLng = userStore.lang === "zh-CN" ? "en" : "zh-CN";
userStore.setLang(newLng);
@@ -31,6 +35,23 @@ const HomeHeader = memo(
);
};
+ /**
+ * 切换移动端菜单显示状态
+ */
+ const toggleMobileMenu = () => {
+ setIsMobileMenuOpen(!isMobileMenuOpen);
+ };
+
+ /**
+ * 关闭移动端菜单
+ */
+ const closeMobileMenu = () => {
+ setIsMobileMenuOpen(false);
+ };
+
+ /**
+ * 判断链接是否为当前激活状态
+ */
const isActive = (href: string) => {
if (!href.startsWith("/")) return false;
const normalizedHref = href.replace(/\/+$/, "") || "/";
@@ -40,26 +61,96 @@ const HomeHeader = memo(
};
return (
- <header className={styles.header}>
- <div className={styles.headerContainer}>
- <div
- className={styles.logo}
- style={{ cursor: "pointer" }}
- onClick={() => router.push("/")}
- >
- <Image src={logo} alt="logo" width={50} />
- <span className={styles.logoText}>{t("header.logo")}</span>
+ <>
+ <header className={styles.header}>
+ <div className={styles.headerContainer}>
+ <div
+ className={styles.logo}
+ style={{ cursor: "pointer" }}
+ onClick={() => router.push("/")}
+ >
+ <Image src={logo} alt="logo" width={50} />
+ <span className={styles.logoText}>{t("header.logo")}</span>
+ </div>
+
+ {/* 桌面端导航 */}
+ <nav className={styles.nav}>
+ {homeHeaderRouterData.value.map((v) => {
+ return (
+ <Link
+ key={v.title}
+ className={`${styles.navLink} ${isActive(v.href) ? styles.active : ""}`}
+ href={v.href}
+ target="_blank"
+ rel="noopener noreferrer"
+ style={{ paddingTop: "3px" }}
+ >
+ {v.title}
+ </Link>
+ );
+ })}
+ </nav>
+
+ <div className={styles.headerRight}>
+ <Button
+ type="text"
+ icon={<GlobalOutlined />}
+ onClick={toggleLanguage}
+ className={styles.languageButton}
+ >
+ {userStore.lang === "zh-CN" ? "EN" : "中文"}
+ </Button>
+
+ {/* 移动端菜单按钮 */}
+ <button
+ className={styles.mobileMenuButton}
+ onClick={toggleMobileMenu}
+ aria-label="Toggle mobile menu"
+ >
+ {isMobileMenuOpen ? <CloseOutlined /> : <MenuOutlined />}
+ </button>
+
+ <button
+ onClick={() => {
+ router.push("/accounts");
+ }}
+ className={styles.getStartedBtn}
+ >
+ {t("header.getStarted")}
+ </button>
+ </div>
+ </div>
+ </header>
+
+ {/* 移动端菜单遮罩层 */}
+ {isMobileMenuOpen && (
+ <div className={styles.mobileMenuOverlay} onClick={closeMobileMenu} />
+ )}
+
+ {/* 移动端侧边菜单 */}
+ <div className={`${styles.mobileMenu} ${isMobileMenuOpen ? styles.mobileMenuOpen : ""}`}>
+ <div className={styles.mobileMenuHeader}>
+ <Image src={logo} alt="logo" width={40} />
+ <span className={styles.mobileMenuTitle}>{t("header.logo")}</span>
+ <button
+ className={styles.mobileMenuClose}
+ onClick={closeMobileMenu}
+ aria-label="Close mobile menu"
+ >
+ <CloseOutlined />
+ </button>
</div>
- <nav className={styles.nav}>
+
+ <nav className={styles.mobileMenuNav}>
{homeHeaderRouterData.value.map((v) => {
return (
<Link
key={v.title}
- className={`${styles.navLink} ${isActive(v.href) ? styles.active : ""}`}
+ className={`${styles.mobileNavLink} ${isActive(v.href) ? styles.active : ""}`}
href={v.href}
target="_blank"
rel="noopener noreferrer"
- style={{ paddingTop: "3px" }}
+ onClick={closeMobileMenu}
>
{v.title}
</Link>
@@ -67,27 +158,18 @@ const HomeHeader = memo(
})}
</nav>
- <div className={styles.headerRight}>
+ <div className={styles.mobileMenuFooter}>
<Button
type="text"
icon={<GlobalOutlined />}
onClick={toggleLanguage}
- className={styles.languageButton}
+ className={styles.mobileLanguageButton}
>
{userStore.lang === "zh-CN" ? "EN" : "中文"}
</Button>
-
- <button
- onClick={() => {
- router.push("/accounts");
- }}
- className={styles.getStartedBtn}
- >
- {t("header.getStarted")}
- </button>
</div>
</div>
- </header>
+ </>
);
}),
);
diff --git a/aitoearn_web/aitoearn-web/src/app/layout/LyaoutHeader.tsx b/aitoearn_web/aitoearn-web/src/app/layout/LyaoutHeader.tsx
index 354d059f..ef4e6170 100644
--- a/aitoearn_web/aitoearn-web/src/app/layout/LyaoutHeader.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/layout/LyaoutHeader.tsx
@@ -32,6 +32,7 @@ function UserInfo() {
const userInfo = useUserStore((state) => state.userInfo)!;
const router = useRouter();
const { t } = useTransClient("common");
+ const { t: tVip } = useTransClient("vip");
const items: MenuProps["items"] = [
{
@@ -150,6 +151,7 @@ const LyaoutHeader = memo(
const layoutHeader = useRef<HTMLDivElement>(null);
const router = useRouter();
const { t } = useTransClient("common");
+ const { t: tVip } = useTransClient("vip");
const [notificationVisible, setNotificationVisible] = useState(false);
const [vipModalVisible, setVipModalVisible] = useState(false);
const [pointsModalVisible, setPointsModalVisible] = useState(false);
@@ -192,20 +194,26 @@ const LyaoutHeader = memo(
{userStore.token && (
<SignInCalendar className={styles.signInCalendarButton} />
)}
- {/* 未开通 VIP 时显示图标,点击打开 VIP 弹窗 */}
- {userStore.token && (
- <Tooltip title={t("vip" as any) || "VIP"}>
+ {/* 会员状态显示 */}
+ {userStore.token && (() => {
+ // 判断是否为有效会员:有vipInfo且未过期
+ const isVip = userStore.userInfo?.vipInfo &&
+ userStore.userInfo.vipInfo.expireTime &&
+ new Date(userStore.userInfo.vipInfo.expireTime) > new Date();
+
+ return (
<Button
type="text"
- icon={<CrownOutlined />}
+ icon={<CrownOutlined style={{ fontSize: 18, color: isVip ? '#F5AB03' : '#999' }} />}
onClick={() => setVipModalVisible(true)}
- style={{ position: 'relative' }}
+ style={{ position: 'relative', marginTop: -14 }}
>
- {!userStore.userInfo?.vipInfo && <span style={{
+ <span style={{
position: 'absolute',
- top: '-2px',
- right: '-11px',
- background: '#ff4d4f',
+ top: '28px',
+ width: '55px',
+ right: '-4px',
+ background: 'rgb(245, 171, 3)',
color: 'white',
fontSize: '8px',
fontWeight: 'bold',
@@ -215,11 +223,11 @@ const LyaoutHeader = memo(
minWidth: '16px',
textAlign: 'center'
}}>
- HOT
- </span>}
+ {isVip ? (tVip("membership" as any) || "Membership") : (tVip("upgrade" as any) || "Upgrade")}
+ </span>
</Button>
- </Tooltip>
- )}
+ );
+ })()}
{/* 通知 */}
{userStore.token && (
<Badge count={unreadCount} size="small">
diff --git a/aitoearn_web/aitoearn-web/src/app/layout/Providers.tsx b/aitoearn_web/aitoearn-web/src/app/layout/Providers.tsx
index 0509a6a5..6c032d52 100644
--- a/aitoearn_web/aitoearn-web/src/app/layout/Providers.tsx
+++ b/aitoearn_web/aitoearn-web/src/app/layout/Providers.tsx
@@ -37,6 +37,11 @@ export function Providers({
});
useEffect(() => {
+ const urlParams = new URLSearchParams(window.location.search);
+ const queryToken = urlParams.get("token");
+ if (queryToken) {
+ useUserStore.getState().setToken(queryToken);
+ }
if (useUserStore.getState().token) {
useUserStore.getState().getUserInfo();
useAccountStore.getState().accountInit();
diff --git a/aitoearn_web/aitoearn-web/src/components/ChooseAccountModule/chooseAccountModule.module.scss b/aitoearn_web/aitoearn-web/src/components/ChooseAccountModule/chooseAccountModule.module.scss
index 5ad10f8f..c0d536f7 100644
--- a/aitoearn_web/aitoearn-web/src/components/ChooseAccountModule/chooseAccountModule.module.scss
+++ b/aitoearn_web/aitoearn-web/src/components/ChooseAccountModule/chooseAccountModule.module.scss
@@ -297,10 +297,39 @@
cursor: not-allowed;
opacity: 0.5;
background: #f5f5f5;
+ }
+
+ &--pc-not-supported {
+ position: relative;
+ cursor: pointer;
&:hover {
- border-color: #e9ecef;
- box-shadow: none;
+ .simpleAccountChoose-accounts-item-overlay {
+ opacity: 1;
+ }
+ }
+ }
+
+ &-overlay {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background: rgba(0, 0, 0, 0.7);
+ border-radius: 8px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ opacity: 0.8;
+ transition: all 0.2s ease;
+ z-index: 10;
+
+ &-text {
+ color: #fff;
+ font-weight: bold;
+ font-size: 14px;
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
}
}
diff --git a/aitoearn_web/aitoearn-web/src/components/ChooseAccountModule/components/SimpleAccountChoose.tsx b/aitoearn_web/aitoearn-web/src/components/ChooseAccountModule/components/SimpleAccountChoose.tsx
index e600c956..2d02ba57 100644
--- a/aitoearn_web/aitoearn-web/src/components/ChooseAccountModule/components/SimpleAccountChoose.tsx
+++ b/aitoearn_web/aitoearn-web/src/components/ChooseAccountModule/components/SimpleAccountChoose.tsx
@@ -16,6 +16,7 @@ import {
Tooltip,
Collapse,
} from "antd";
+import DownloadAppModal from "@/components/common/DownloadAppModal";
import { CheckOutlined } from "@ant-design/icons";
import { useShallow } from "zustand/react/shallow";
import { AccountPlatInfoMap } from "@/app/config/platConfig";
@@ -76,6 +77,9 @@ const SimpleAccountChoose = memo(
const [accountGroupList, setAccountGroupList] = useState<AccountGroup[]>([]);
// 每次change操作的数据
const recentData = useRef<SocialAccount>();
+ // 下载App弹窗状态
+ const [downloadModalVisible, setDownloadModalVisible] = useState(false);
+ const [currentPlatform, setCurrentPlatform] = useState<string>('');
const { accountList } = useAccountStore(
useShallow((state) => ({
accountList: state.accountList,
@@ -191,6 +195,17 @@ const SimpleAccountChoose = memo(
const platInfo = AccountPlatInfoMap.get(account.type);
const isSelected = choosedAccountsList.some(item => item.id === account.id);
const isDisable = choosedAccounts?.find((k) => k.id === account.id) && isCancelChooseAccount;
+ const isPcNotSupported = platInfo && platInfo.pcNoThis === true;
+
+ const handleAccountClick = () => {
+ if (isDisable) return;
+ if (isPcNotSupported) {
+ setCurrentPlatform(platInfo?.name || '');
+ setDownloadModalVisible(true);
+ return;
+ }
+ handleSelectAccount(account);
+ };
return (
<div
@@ -199,18 +214,24 @@ const SimpleAccountChoose = memo(
"simpleAccountChoose-accounts-item",
isSelected && "simpleAccountChoose-accounts-item--active",
isDisable && "simpleAccountChoose-accounts-item--disable",
+ isPcNotSupported && "simpleAccountChoose-accounts-item--pc-not-supported",
].join(" ")}
- onClick={() => {
- if (isDisable) return;
- handleSelectAccount(account);
- }}
+ onClick={handleAccountClick}
>
<Tooltip
title={
- <>
- <p>昵称:{account.nickname}</p>
- <p>平台:{platInfo?.name}</p>
- </>
+ isPcNotSupported ? (
+ <>
+ <p>昵称:{account.nickname}</p>
+ <p>平台:{platInfo?.name}</p>
+ <p style={{ color: '#ff4d4f' }}>Web不支持该平台,请下载App</p>
+ </>
+ ) : (
+ <>
+ <p>昵称:{account.nickname}</p>
+ <p>平台:{platInfo?.name}</p>
+ </>
+ )
}
>
<div className="simpleAccountChoose-accounts-item-avatar">
@@ -226,9 +247,15 @@ const SimpleAccountChoose = memo(
</span>
</Tooltip>
- <div className="simpleAccountChoose-accounts-item-choose">
- <CheckOutlined />
- </div>
+ {isPcNotSupported ? (
+ <div className="simpleAccountChoose-accounts-item-overlay">
+ <span className="simpleAccountChoose-accounts-item-overlay-text">APP</span>
+ </div>
+ ) : (
+ <div className="simpleAccountChoose-accounts-item-choose">
+ <CheckOutlined />
+ </div>
+ )}
</div>
);
};
@@ -318,6 +345,14 @@ const SimpleAccountChoose = memo(
{renderGroupContent()}
</>
)}
+
+ {/* 下载App弹窗 */}
+ <DownloadAppModal
+ visible={downloadModalVisible}
+ onClose={() => setDownloadModalVisible(false)}
+ platform={currentPlatform}
+ appName="Aitoearn App"
+ />
</div>
);
},
diff --git a/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsx b/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsx
index 2d70eb28..087a4f9e 100644
--- a/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsx
+++ b/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/PinterestParams.tsx
@@ -122,7 +122,7 @@ const PinterestParams = memo(
setCreatingBoard(true);
const response = await createPinterestBoardApi(
{ name: newBoardName.trim() },
- pinterestAccount.account
+ pinterestAccount.id
);
if (response?.code === 0) {
diff --git a/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/TikTokParams.tsx b/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/TikTokParams.tsx
index ad26c760..76ed4d9f 100644
--- a/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/TikTokParams.tsx
+++ b/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PlatParamsSetting/plats/TikTokParams.tsx
@@ -37,7 +37,7 @@ const TikTokParams = memo(
const fetchCreatorInfo = async () => {
try {
setLoading(true);
- const response = await http.get<TikTokCreatorInfo>(`plat/tiktok/creator/info/${pubItem.account.account}`);
+ const response = await http.get<TikTokCreatorInfo>(`plat/tiktok/creator/info/${pubItem.account.id}`);
if (response && response.code === 0) {
setCreatorInfo(response.data as TikTokCreatorInfo);
}
diff --git a/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextareaUpload.tsx b/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextareaUpload.tsx
index 99adf9f8..b8706067 100644
--- a/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextareaUpload.tsx
+++ b/aitoearn_web/aitoearn-web/src/components/PublishDialog/compoents/PubParmasTextarea/PubParmasTextareaUpload.tsx
@@ -158,7 +158,7 @@ const PubParmasTextareaUpload = memo(
)}
</div>
) : (
- <Tooltip title={t("upload.uploadImageOrVideo")}>
+ <Tooltip title={ t("upload.uploadImageOrVideo") } >
<Dragger
accept={uploadAccept}
multiple={uploadAccept.includes("image")}
diff --git a/aitoearn_web/aitoearn-web/src/components/PublishDialog/hooks/usePubParamsVerify.tsx b/aitoearn_web/aitoearn-web/src/components/PublishDialog/hooks/usePubParamsVerify.tsx
index b04139b1..7ef13e18 100644
--- a/aitoearn_web/aitoearn-web/src/components/PublishDialog/hooks/usePubParamsVerify.tsx
+++ b/aitoearn_web/aitoearn-web/src/components/PublishDialog/hooks/usePubParamsVerify.tsx
@@ -98,7 +98,15 @@ export default function usePubParamsVerify(data: PubItem[]) {
v.params.images?.length === 0 &&
!v.params.video
) {
- return setErrorMsg(t("validation.uploadImageOrVideo"));
+ let msgs:any = t("validation.uploadImageOrVideo");
+ if (platInfo.pubTypes.has(PubType.ImageText) && platInfo.pubTypes.has(PubType.VIDEO)) {
+ msgs = t("validation.uploadImageOrVideo");
+ } else if (platInfo.pubTypes.has(PubType.ImageText)) {
+ msgs = t("validation.uploadImage");
+ } else if (platInfo.pubTypes.has(PubType.VIDEO)) {
+ msgs = t("validation.uploadVideo");
+ }
+ return setErrorMsg(msgs);
}
// 话题数量校验
diff --git a/aitoearn_web/aitoearn-web/src/components/PublishDialog/index.tsx b/aitoearn_web/aitoearn-web/src/components/PublishDialog/index.tsx
index 3699ee60..30c5377f 100644
--- a/aitoearn_web/aitoearn-web/src/components/PublishDialog/index.tsx
+++ b/aitoearn_web/aitoearn-web/src/components/PublishDialog/index.tsx
@@ -9,19 +9,21 @@ import {
useState,
} from "react";
import styles from "./publishDialog.module.scss";
-import { Button, message, Modal, List, Spin } from "antd";
+import { Button, message, Modal, List, Spin, Tooltip } from "antd";
+import DownloadAppModal from "@/components/common/DownloadAppModal";
import {
ArrowRightOutlined,
ExclamationCircleFilled,
FileTextOutlined,
FolderOpenOutlined,
PictureOutlined,
+ InfoCircleOutlined,
} from "@ant-design/icons";
import PublishDialogAi from "@/components/PublishDialog/compoents/PublishDialogAi";
import PublishDialogPreview from "@/components/PublishDialog/compoents/PublishDialogPreview";
import { CSSTransition } from "react-transition-group";
import { SocialAccount } from "@/api/types/account.type";
-import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";
+import { AccountPlatInfoMap } from "@/app/config/platConfig";
import AvatarPlat from "@/components/AvatarPlat";
import { usePublishDialog } from "@/components/PublishDialog/usePublishDialog";
import { useShallow } from "zustand/react/shallow";
@@ -41,6 +43,22 @@ import { apiGetMaterialGroupList, apiGetMaterialList } from "@/api/material";
import { getMediaGroupList, getMediaList } from "@/api/media";
import { getOssUrl } from "@/utils/oss";
import { toolsApi } from "@/api/tools";
+import { useRouter } from "next/navigation";
+import { PlatType } from "@/app/config/platConfig";
+// 导入各平台授权函数
+import { kwaiSkip } from "@/app/[lng]/accounts/plat/kwaiLogin";
+import { bilibiliSkip } from "@/app/[lng]/accounts/plat/BilibiliLogin";
+import { youtubeSkip } from "@/app/[lng]/accounts/plat/YoutubeLogin";
+import { twitterSkip } from "@/app/[lng]/accounts/plat/TwtterLogin";
+import { tiktokSkip } from "@/app/[lng]/accounts/plat/TiktokLogin";
+import { facebookSkip } from "@/app/[lng]/accounts/plat/FacebookLogin";
+import { instagramSkip } from "@/app/[lng]/accounts/plat/InstagramLogin";
+import { threadsSkip } from "@/app/[lng]/accounts/plat/ThreadsLogin";
+import { wxGzhSkip } from "@/app/[lng]/accounts/plat/WxGzh";
+import { pinterestSkip } from "@/app/[lng]/accounts/plat/PinterestLogin";
+import { linkedinSkip } from "@/app/[lng]/accounts/plat/LinkedinLogin";
+import { useAccountStore } from "@/store/account";
+import { updateAccountApi } from "@/api/account";
export interface IPublishDialogRef {
// 设置发布时间
@@ -114,7 +132,132 @@ const PublishDialog = memo(
const [moderationLoading, setModerationLoading] = useState(false);
const [moderationResult, setModerationResult] = useState<boolean | null>(null);
const [moderationDesc, setModerationDesc] = useState<string>("");
+ const [moderationLevel, setModerationLevel] = useState<any>(null);
+ // 下载App弹窗状态
+ const [downloadModalVisible, setDownloadModalVisible] = useState(false);
+ const [currentPlatform, setCurrentPlatform] = useState<string>('');
const { t } = useTransClient("publish");
+ const router = useRouter();
+
+ // 获取账户store
+ const { accountGroupList, getAccountList } = useAccountStore(
+ useShallow((state) => ({
+ accountGroupList: state.accountGroupList,
+ getAccountList: state.getAccountList,
+ }))
+ );
+
+ // 处理离线账户头像点击,直接跳转到对应平台授权页面
+ const handleOfflineAvatarClick = useCallback(async (account: SocialAccount) => {
+ const platform = account.type;
+ const targetSpaceId = account.groupId; // 使用账户原本的空间ID
+
+ try {
+ // 记录授权前的账号数量,用于后续识别新账号
+ const beforeAuthCount = accountGroupList.reduce((total, group) => total + group.children.length, 0);
+
+ // 根据平台类型调用对应的授权函数
+ switch (platform) {
+ case PlatType.KWAI:
+ await kwaiSkip(platform);
+ break;
+ case PlatType.BILIBILI:
+ await bilibiliSkip(platform);
+ break;
+ case PlatType.YouTube:
+ await youtubeSkip(platform);
+ break;
+ case PlatType.Twitter:
+ await twitterSkip(platform);
+ break;
+ case PlatType.Tiktok:
+ await tiktokSkip(platform);
+ break;
+ case PlatType.Facebook:
+ try {
+ await facebookSkip(platform);
+ // Facebook授权成功后显示页面选择弹窗
+ // handleFacebookAuthSuccess(); // 这里可能需要处理Facebook页面选择
+ } catch (error) {
+ console.error('Facebook授权失败:', error);
+ }
+ break;
+ case PlatType.Instagram:
+ await instagramSkip(platform);
+ break;
+ case PlatType.Threads:
+ await threadsSkip(platform);
+ break;
+ case PlatType.WxGzh:
+ await wxGzhSkip(platform);
+ break;
+ case PlatType.Pinterest:
+ await pinterestSkip(platform);
+ break;
+ case PlatType.LinkedIn:
+ await linkedinSkip(platform);
+ break;
+ default:
+ console.warn(`未支持的平台类型: ${platform}`);
+ message.warning(`暂不支持 ${platform} 平台的直接授权`);
+ return;
+ }
+
+ // 如果指定了目标空间,等待授权完成后移动新账号
+ if (targetSpaceId) {
+ // 检查选中的空间是否是默认空间
+ const targetGroup = accountGroupList.find(group => group.id === targetSpaceId);
+ const isDefaultSpace = targetGroup?.isDefault;
+
+ // 只有当选择了非默认空间时才移动账号
+ if (!isDefaultSpace) {
+ console.log('准备移动账号到空间:', targetGroup?.name);
+ setTimeout(async () => {
+ try {
+ // 刷新账号列表
+ await getAccountList();
+
+ // 获取最新的账号组列表
+ const currentState = useAccountStore.getState();
+ const defaultGroup = currentState.accountGroupList.find(group => group.isDefault);
+
+ if (defaultGroup) {
+ // 找到相同平台类型的最后一个账号(最新添加的)
+ const sameTypeAccounts = defaultGroup.children.filter(account => account.type === platform);
+ const latestAccount = sameTypeAccounts[sameTypeAccounts.length - 1];
+
+ if (latestAccount) {
+ console.log('找到最新账号:', latestAccount.account, '平台:', platform);
+
+ // 将新账号移动到指定空间
+ console.log('移动账号:', latestAccount.account, '到空间:', targetGroup?.name);
+ await updateAccountApi({
+ id: latestAccount.id,
+ groupId: targetSpaceId
+ });
+ } else {
+ console.log('未找到相同平台类型的账号');
+ }
+
+ // 再次刷新账号列表以更新UI
+ await getAccountList();
+ console.log('账号移动完成');
+ }
+ } catch (error) {
+ console.error('移动账号到指定空间失败:', error);
+ }
+ }, 3000); // 等待3秒让授权完成
+ } else {
+ console.log('选择的是默认空间,无需移动账号');
+ }
+ } else {
+ console.log('未选择空间,不移动账号');
+ }
+ } catch (error) {
+ console.error('授权失败:', error);
+ message.error('授权失败,请重试');
+ }
+ }, [accountGroupList, getAccountList]);
// 内容安全检测函数
const handleContentModeration = useCallback(async () => {
@@ -137,6 +280,7 @@ const PublishDialog = memo(
setModerationLoading(true);
setModerationResult(null);
setModerationDesc("");
+ setModerationLevel(null);
const result = await toolsApi.textModeration(contentToCheck);
console.log("result",result);
@@ -144,9 +288,10 @@ const PublishDialog = memo(
const data: any = result?.data || {} as any;
const descriptions: string = (data && (data.descriptions as string)) || "";
const labels: string = (data && (data.labels as string)) || "";
- const reason: string = (data && (data.reason as string)) || "";
+ const reason: any = (data && (data.reason ? JSON.parse(data.reason) : ""));
const isSafe = !descriptions && !labels && !reason;
setModerationResult(isSafe);
+ setModerationLevel(reason);
setModerationDesc(isSafe ? "" : (descriptions || reason || "内容不安全"));
if (isSafe) {
message.success("内容安全");
@@ -178,6 +323,7 @@ const PublishDialog = memo(
useEffect(() => {
setModerationResult(null);
setModerationDesc("");
+ setModerationLevel(null);
}, [commonPubParams.des, expandedPubItem?.params.des, pubListChoosed.map(item => item.params.des).join(',')]);
// 当内容被清空时,也重置检测状态
@@ -185,6 +331,7 @@ const PublishDialog = memo(
if (!hasDescription) {
setModerationResult(null);
setModerationDesc("");
+ setModerationLevel(null);
}
}, [hasDescription]);
@@ -344,16 +491,7 @@ const PublishDialog = memo(
}
}, [pubListChoosed, setPubListChoosed]);
- // 过滤PC端不支持的平台账户:如被默认选中则自动移除
- useEffect(() => {
- const filtered = pubListChoosed.filter((item) => {
- const plat = AccountPlatInfoMap.get(item.account.type);
- return !(plat && plat.pcNoThis === true);
- });
- if (filtered.length !== pubListChoosed.length) {
- setPubListChoosed(filtered);
- }
- }, [pubListChoosed, setPubListChoosed]);
+ // 移除PC端不支持的平台账户过滤逻辑,改为在UI中显示遮罩
// 关闭弹框并确认关闭
const closeDialog = useCallback(() => {
@@ -578,10 +716,6 @@ const PublishDialog = memo(
</div>
<div className="publishDialog-con-acconts">
{pubList
- .filter((pubItem) => {
- const plat = AccountPlatInfoMap.get(pubItem.account.type);
- return !(plat && plat.pcNoThis === true);
- })
.map((pubItem) => {
const platConfig = AccountPlatInfoMap.get(
pubItem.account.type,
@@ -590,25 +724,47 @@ const PublishDialog = memo(
(v) => v.account.id === pubItem.account.id,
);
const isOffline = pubItem.account.status === 0;
+ const isPcNotSupported = platConfig && platConfig.pcNoThis === true;
+ const isTikTokForbidden = pubItem.account.type === PlatType.Tiktok;
return (
- <div
- className={[
- "publishDialog-con-acconts-item",
- isChoosed
- ? "publishDialog-con-acconts-item--active"
- : "",
- ].join(" ")}
- style={{
- borderColor: isChoosed
- ? platConfig.themeColor
- : "transparent",
- }}
+ <Tooltip
+ title={
+ isTikTokForbidden
+ ? t('tips.tiktokForbidden' as any)
+ : isPcNotSupported
+ ? t('tips.pcNotSupported' as any)
+ : isOffline
+ ? t('tips.accountOffline' as any)
+ : undefined
+ }
key={pubItem.account.id}
- onClick={(e) => {
+ >
+ <div
+ className={[
+ "publishDialog-con-acconts-item",
+ isChoosed
+ ? "publishDialog-con-acconts-item--active"
+ : "",
+ ].join(" ")}
+ style={{
+ borderColor: isChoosed
+ ? platConfig.themeColor
+ : "transparent",
+ }}
+ onClick={(e) => {
e.stopPropagation();
+ // TikTok 禁止发布,直接禁止点击
+ if (isTikTokForbidden) {
+ return;
+ }
+ // 离线账户的点击由头像容器处理,这里不处理
if (isOffline) {
- message.warning("该账号已离线,无法发布");
+ return;
+ }
+ if (isPcNotSupported) {
+ setCurrentPlatform(platConfig?.name || '');
+ setDownloadModalVisible(true);
return;
}
const newPubListChoosed = [...pubListChoosed];
@@ -651,16 +807,49 @@ const PublishDialog = memo(
setPubListChoosed(newPubListChoosed);
}}
>
- {/* 账号头像:离线显示遮罩并禁用 */}
- <div style={{ position: "relative" }}>
+ {/* 账号头像:离线或PC不支持显示遮罩并禁用 */}
+ <div
+ style={{ position: "relative" }}
+
+ >
<AvatarPlat
- className={`publishDialog-con-acconts-item-avatar ${!isChoosed || isOffline ? 'disabled' : ''}`}
+ className={`publishDialog-con-acconts-item-avatar ${!isChoosed || isOffline || isPcNotSupported || isTikTokForbidden ? 'disabled' : ''}`}
account={pubItem.account}
size="large"
- disabled={isOffline || !isChoosed}
+ disabled={isOffline || !isChoosed || isPcNotSupported || isTikTokForbidden}
/>
+ {isTikTokForbidden && (
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ background: "rgba(0,0,0,0.6)",
+ borderRadius: "50%",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ color: "#fff",
+ fontSize: 12,
+ fontWeight: 600,
+ pointerEvents: "none",
+ }}
+ >
+ {t('badges.forbidden' as any)}
+ </div>
+ )}
{isOffline && (
<div
+ onClick={(e) => {
+ // TikTok 禁止发布:不允许任何点击
+ if (isTikTokForbidden) {
+ return;
+ }
+ // 只有离线账户才触发授权跳转
+ if (isOffline) {
+ handleOfflineAvatarClick(pubItem.account);
+ }
+ // 正常账户的点击事件由父容器处理,这里不需要额外处理
+ }}
style={{
position: "absolute",
inset: 0,
@@ -672,14 +861,37 @@ const PublishDialog = memo(
color: "#fff",
fontSize: 12,
fontWeight: 600,
+ pointerEvents: "auto",
+ cursor: "pointer",
+ }}
+ >
+ {t('badges.offline' as any)}
+ </div>
+ )}
+ {isPcNotSupported && !isOffline && (
+ <div
+ style={{
+ position: "absolute",
+ inset: 0,
+ background: "rgba(0,0,0,0.6)",
+ borderRadius: "50%",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ color: "#fff",
+ fontSize: 10,
+ fontWeight: 600,
pointerEvents: "none",
+ textAlign: "center",
+ lineHeight: 1.2,
}}
>
- 已离线
+ APP
</div>
)}
</div>
- </div>
+ </div>
+ </Tooltip>
);
})}
</div>
@@ -757,10 +969,15 @@ const PublishDialog = memo(
color: moderationResult ? '#52c41a' : '#ff4d4f',
fontWeight: 500,
}}>
- {moderationResult ? "内容安全" : "内容不安全"}
+ {moderationResult ? t('actions.contentSafe' as any) : (moderationLevel?.riskLevel ? `${t('actions.riskLevel' as any)} ${moderationLevel.riskLevel}` : t('actions.contentUnsafe' as any))}
</span>
{!moderationResult && !!moderationDesc && (
- <span style={{ fontSize: 12, color: '#ff4d4f', maxWidth: 360, whiteSpace: 'pre-wrap' }}>{moderationDesc}</span>
+ <span style={{ fontSize: 12, color: '#ff4d4f', maxWidth: 360, whiteSpace: 'pre-wrap', display: 'inline-flex', alignItems: 'center', gap: 6 }}>
+ {moderationDesc}
+ <Tooltip title={moderationLevel?.riskTips || ''} placement="top">
+ <InfoCircleOutlined style={{ color: '#ff4d4f' }} />
+ </Tooltip>
+ </span>
)}
</div>
)}
@@ -777,7 +994,7 @@ const PublishDialog = memo(
color: moderationResult === true || moderationResult === false ? '#fff' : undefined
}}
>
- {moderationLoading ? "检测中..." : "内容安全检测"}
+ {moderationLoading ? t('actions.checkingContent' as any) : t('actions.contentModeration' as any)}
</Button>
)}
@@ -1144,6 +1361,14 @@ const PublishDialog = memo(
</div>
)}
</Modal>
+
+ {/* 下载App弹窗 */}
+ <DownloadAppModal
+ visible={downloadModalVisible}
+ onClose={() => setDownloadModalVisible(false)}
+ platform={currentPlatform}
+ appName="Aitoearn App"
+ />
</>
);
},
diff --git a/aitoearn_web/aitoearn-web/src/components/PublishDialog/publishDialog.module.scss b/aitoearn_web/aitoearn-web/src/components/PublishDialog/publishDialog.module.scss
index b300aff1..2742caef 100644
--- a/aitoearn_web/aitoearn-web/src/components/PublishDialog/publishDialog.module.scss
+++ b/aitoearn_web/aitoearn-web/src/components/PublishDialog/publishDialog.module.scss
@@ -34,8 +34,8 @@ $assistantWidth: 330px;
}
&-acconts {
display: flex;
- flex-wrap: nowrap;
- gap: 12px;
+ flex-wrap: wrap;
+ gap: 11px;
&-item {
border: 2px solid transparent;
border-radius: 50%;
diff --git a/aitoearn_web/aitoearn-web/src/components/PublishDialog/usePublishDialogData.ts b/aitoearn_web/aitoearn-web/src/components/PublishDialog/usePublishDialogData.ts
index 48fd1661..514ecf91 100644
--- a/aitoearn_web/aitoearn-web/src/components/PublishDialog/usePublishDialogData.ts
+++ b/aitoearn_web/aitoearn-web/src/components/PublishDialog/usePublishDialogData.ts
@@ -132,7 +132,7 @@ export const usePublishDialogData = create(
return;
}
- const res:any = await getPinterestBoardListApi({ page: 1, size: 100 }, pinterestAccount.account);
+ const res:any = await getPinterestBoardListApi({ page: 1, size: 100 }, pinterestAccount.id);
set({
pinterestBoards: res?.data?.list || [],
});
diff --git a/aitoearn_web/aitoearn-web/src/components/modals/PointsDetailModal.tsx b/aitoearn_web/aitoearn-web/src/components/modals/PointsDetailModal.tsx
index 68cf1659..639d9bcd 100644
--- a/aitoearn_web/aitoearn-web/src/components/modals/PointsDetailModal.tsx
+++ b/aitoearn_web/aitoearn-web/src/components/modals/PointsDetailModal.tsx
@@ -139,14 +139,14 @@ const PointsDetailModal = memo(({ open, onClose }: PointsDetailModalProps) => {
</div>
{/* 列表 */}
- <div style={{ padding: '0 20px 16px 20px', minHeight: 360, maxHeight: '60vh', overflowY: 'auto' }}>
+ <div style={{ padding: '0 20px 16px 20px', minHeight: 550, maxHeight: '60vh', overflowY: 'auto' }}>
<Spin spinning={loading}>
{filtered.length === 0 ? (
<div style={{ textAlign: 'center', padding: '60px 0', color: '#9ca3af' }}>{translate('points.noData')}</div>
) : (
<div style={{ display: 'grid', gap: 12 }}>
- {filtered.map((r) => (
- <div key={r._id} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '12px 14px', border: '1px solid #eef2f7', borderRadius: 10 }}>
+ {filtered.map((r, index) => (
+ <div key={r._id || `record-${index}`} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '12px 14px', border: '1px solid #eef2f7', borderRadius: 10 }}>
<div>
<div style={{ fontWeight: 600, color: '#111827' }}>
{translate('points.recordChange')} - {r.type ? translate(`points.recordTypes.${r.type}`) : translate('points.recordChange')}
diff --git a/aitoearn_web/aitoearn-web/src/components/modals/SubscriptionManagementModal.tsx b/aitoearn_web/aitoearn-web/src/components/modals/SubscriptionManagementModal.tsx
new file mode 100644
index 00000000..e1cea540
--- /dev/null
+++ b/aitoearn_web/aitoearn-web/src/components/modals/SubscriptionManagementModal.tsx
@@ -0,0 +1,535 @@
+"use client";
+
+import { memo, useState, useEffect } from "react";
+import { Modal, Tabs, Table, Card, Button, Tag, Descriptions, message } from "antd";
+import { useTransClient } from "@/app/i18n/client";
+import { useUserStore } from "@/store/user";
+import {
+ getOrderListApi,
+ getSubscriptionListApi,
+ getOrderDetailApi,
+ refundOrderApi,
+ unsubscribeApi
+} from "@/api/payment";
+import { Order, OrderListParams, SubscriptionListParams, RefundParams, UnsubscribeParams, OrderStatus, PaymentType } from "@/api/types/payment";
+import styles from "./subscriptionManagementModal.module.css";
+
+import Image from "next/image";
+import plusvip from "@/assets/images/plusvip.png";
+
+const { TabPane } = Tabs;
+
+interface SubscriptionManagementModalProps {
+ open: boolean;
+ onClose: () => void;
+}
+
+const SubscriptionManagementModal = memo(({ open, onClose }: SubscriptionManagementModalProps) => {
+ const { t: tProfile } = useTransClient('profile');
+ const { t: tVip } = useTransClient('vip');
+ const { userInfo } = useUserStore();
+
+ // 订单相关状态
+ const [orders, setOrders] = useState<Order[]>([]);
+ const [subscriptions, setSubscriptions] = useState<Order[]>([]);
+ const [ordersLoading, setOrdersLoading] = useState(false);
+ const [subscriptionsLoading, setSubscriptionsLoading] = useState(false);
+ const [ordersPagination, setOrdersPagination] = useState({
+ current: 1,
+ pageSize: 10,
+ total: 0
+ });
+ const [subscriptionsPagination, setSubscriptionsPagination] = useState({
+ current: 1,
+ pageSize: 10,
+ total: 0
+ });
+
+ // 订单详情弹窗状态
+ const [orderDetailVisible, setOrderDetailVisible] = useState(false);
+ const [orderDetailLoading, setOrderDetailLoading] = useState(false);
+ const [currentOrderDetail, setCurrentOrderDetail] = useState<Order | null>(null);
+
+ // 获取购买记录
+ const fetchOrders = async (params: OrderListParams) => {
+ setOrdersLoading(true);
+ try {
+ const response = await getOrderListApi(params);
+ if (response?.code === 0 && response.data) {
+ setOrders((response.data as any).list || []);
+ setOrdersPagination({
+ current: params.page + 1,
+ pageSize: params.size,
+ total: (response.data as any).count || 0
+ });
+ }
+ } catch (error) {
+ console.error('获取订单列表失败:', error);
+ } finally {
+ setOrdersLoading(false);
+ }
+ };
+
+ // 获取订阅列表
+ const fetchSubscriptions = async (params: SubscriptionListParams) => {
+ setSubscriptionsLoading(true);
+ try {
+ const response:any = await getSubscriptionListApi(params);
+ if (response?.code === 0 && response.data) {
+ setSubscriptions((response.data as any).list || []);
+ setSubscriptionsPagination({
+ current: params.page + 1,
+ pageSize: params.size,
+ total: (response.data as any).count || 0
+ });
+ }
+ } catch (error) {
+ console.error('获取订阅列表失败:', error);
+ } finally {
+ setSubscriptionsLoading(false);
+ }
+ };
+
+ // 处理退款
+ const handleRefund = async (order: Order) => {
+ try {
+ const params: RefundParams = {
+ charge: order.id,
+ payment_intent: order.payment_intent || order.id,
+ userId: userInfo?.id || ''
+ };
+ const response = await refundOrderApi(params);
+ if (response?.code === 0) {
+ message.success(tProfile('refundSubmitted'));
+ fetchOrders({ page: ordersPagination.current - 1, size: ordersPagination.pageSize });
+ } else {
+ message.error(response?.message || tProfile('refundFailed'));
+ }
+ } catch (error) {
+ console.error('退款失败:', error);
+ message.error(tProfile('refundFailed'));
+ }
+ };
+
+ // 处理退订
+ const handleUnsubscribe = async (order: Order) => {
+ try {
+ const params: UnsubscribeParams = {
+ id: order.id,
+ userId: userInfo?.id || ''
+ };
+ const response = await unsubscribeApi(params);
+ if (response?.code === 0) {
+ message.success(tProfile('unsubscribeSuccess'));
+ fetchSubscriptions({ page: subscriptionsPagination.current - 1, size: subscriptionsPagination.pageSize });
+ }
+ } catch (error) {
+ console.error('退订失败:', error);
+ }
+ };
+
+ // 获取订单详情
+ const fetchOrderDetail = async (orderId: string) => {
+ setOrderDetailLoading(true);
+ try {
+ const response: any = await getOrderDetailApi(orderId);
+ if (response?.code === 0 && response.data) {
+ setCurrentOrderDetail(response.data[0]);
+ setOrderDetailVisible(true);
+ } else {
+ message.error(tProfile('getOrderDetailFailed'));
+ }
+ } catch (error) {
+ console.error('获取订单详情失败:', error);
+ message.error(tProfile('getOrderDetailFailed'));
+ } finally {
+ setOrderDetailLoading(false);
+ }
+ };
+
+ // 订单状态标签
+ const getOrderStatusTag = (status: OrderStatus) => {
+ const statusMap = {
+ [OrderStatus.SUCCEEDED]: { color: 'green', text: tProfile('paymentSuccess') },
+ [OrderStatus.CREATED]: { color: 'orange', text: tProfile('waitingForPayment') },
+ [OrderStatus.REFUNDED]: { color: 'purple', text: tProfile('refundSuccess') },
+ [OrderStatus.EXPIRED]: { color: 'red', text: tProfile('orderCancelled') }
+ };
+ const config = statusMap[status] || { color: 'default', text: `状态${status}` };
+ return <Tag color={config.color}>{config.text}</Tag>;
+ };
+
+ // 支付类型文本
+ const getPaymentTypeText = (paymentType: string) => {
+ const typeMap: any = {
+ [PaymentType.ONCE_MONTH]: tProfile('oneTimeMonthly'),
+ [PaymentType.MONTH]: tProfile('monthlySubscription'),
+ [PaymentType.YEAR]: tProfile('yearlySubscription')
+ };
+ return typeMap[paymentType as PaymentType] || paymentType || tProfile('unknown');
+ };
+
+
+ // 弹窗打开时加载数据
+ useEffect(() => {
+ if (open) {
+ fetchOrders({ page: 0, size: 10 });
+ fetchSubscriptions({ page: 0, size: 10 });
+
+ }
+ }, [open]);
+
+
+ return (
+ <>
+ <Modal
+ title={tVip('subscriptionManagement' as any)}
+ open={open}
+ onCancel={onClose}
+ footer={null}
+ width={1000}
+
+ className={styles.subscriptionModal}
+ destroyOnClose
+ centered
+ >
+ <div className={styles.modalContent}>
+ <Tabs defaultActiveKey="subscriptions">
+ <TabPane tab={tVip('subscriptionPlanManagement' as any)} key="subscriptions">
+ <div className={styles.myMembership}>
+ <h3>{tVip('myMembership' as any)}</h3>
+ <div className={styles.membershipCard}>
+ <div className={styles.membershipInfo}>
+ <div className={styles.membershipIcon}>
+ <Image src={plusvip} alt="plusvip" style={{ width: 28, height: 'auto', marginTop: -5 }}/>
+ </div>
+ <div className={styles.membershipDetails}>
+ <div className={styles.membershipName}>
+ {userInfo?.vipInfo?.cycleType === 1
+ ? tVip('modal.vipInfo.monthly' as any)
+ : tVip('modal.vipInfo.yearly' as any)}
+ {userInfo?.vipInfo?.autoContinue === false && ` (${tVip('modal.vipInfo.singleMonth' as any)})`}
+ </div>
+ <div>
+
+
+ <div className={styles.membershipExpire}>
+ {
+ tVip('membershipExpires' as any)
+ }
+ </div>
+ <div className={styles.membershipStatus}>
+ {userInfo?.vipInfo?.expireTime ? new Date(userInfo.vipInfo.expireTime).toLocaleString('zh-CN', {
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
+ hour: '2-digit',
+ minute: '2-digit'
+ }) : '2025-09-29 15:04'}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* 根据 autoContinue 显示不同的内容 */}
+ <div className={styles.autoRenewal}>
+ {userInfo?.vipInfo?.autoContinue ? ( <h3>{tVip('activatedAutoRenewalPlans' as any)}</h3> ) : (
+ <h3>{tVip('activatedAutoRenewalPlansno' as any)}</h3>
+ )}
+
+ {
+ subscriptions.length ?(
+ <div className={styles.subscriptionCards}>
+ {subscriptions.map((subscription) => (
+ <div key={subscription._id} className={styles.subscriptionCard}>
+ <div className={styles.subscriptionHeader}>
+ <div className={styles.subscriptionTitle}>{tVip('basicMembership' as any)}</div>
+ </div>
+ <div className={styles.subscriptionDetails}>
+ <div className={styles.subscriptionDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('subscriptionMode')}:</span>
+ <span className={styles.detailValue}>
+ {/* {subscription.metadata?.payment === 'month'
+ ? tVip('modal.vipInfo.monthly' as any)
+ : tVip('modal.vipInfo.yearly' as any)} */}
+ {
+ getPaymentTypeText(subscription.metadata?.payment)
+ }
+ </span>
+ </div>
+ {
+ subscription.amount && (
+ <div className={styles.subscriptionDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('amount')}:</span>
+ <span className={styles.detailValue}>
+ {subscription.currency}
+ {(subscription.amount / 100).toFixed(2)}</span>
+ </div>
+ )
+ }
+ <div className={styles.subscriptionDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('createTime')}:</span>
+ <span className={styles.detailValue}>
+ {new Date(subscription.created * 1000).toLocaleString('zh-CN', {
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
+ hour: '2-digit',
+ minute: '2-digit'
+ })}
+ </span>
+ </div>
+ <div className={styles.subscriptionDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('subscriptionId')}:</span>
+ <span className={styles.detailValue}>
+ {subscription.id}
+ <Button
+ type="text"
+ size="small"
+ className={styles.copyBtn}
+ onClick={() => {
+ navigator.clipboard.writeText(subscription.id);
+ message.success('已复制');
+ }}
+ >
+ 📋
+ </Button>
+ </span>
+ </div>
+ <div className={styles.subscriptionDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('status')}:</span>
+ <span className={styles.detailValue}>
+ {subscription.status === 1 ? (
+ <Tag color="green" style={{marginRight: 0,marginLeft: 6}}>{tProfile('subscriptionSuccess')}</Tag>
+ ) : subscription.status === 2 ? (
+ <Tag color="red" style={{marginRight: 0,marginLeft: 6}}>{tProfile('subscriptionCancelled')}</Tag>
+ ) : subscription.status === 3 ? (
+ <Tag color="purple" style={{marginRight: 0,marginLeft: 6}}>{tProfile('refundSuccess')}</Tag>
+ ) : (
+ <Tag color="orange" style={{marginRight: 0,marginLeft: 6}}>{tProfile('orderCancelled')}</Tag>
+ )}
+ </span>
+ </div>
+ <div className={styles.subscriptionDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('actions')}:</span>
+ <span className={styles.detailValue}>
+ {subscription.status === 1 && (
+ <Button
+ size="small"
+ danger
+ style={{fontSize: 12}}
+ onClick={() => handleUnsubscribe(subscription)}
+ >
+ {tProfile('cancelSubscription')}
+ </Button>
+ )}
+ </span>
+ </div>
+ </div>
+ </div>
+ ))}
+ {subscriptionsPagination.total > subscriptionsPagination.pageSize ? (
+ <div className={styles.paginationContainer}>
+ <Button
+ disabled={subscriptionsPagination.current === 1}
+ onClick={() => fetchSubscriptions({
+ page: subscriptionsPagination.current - 2,
+ size: subscriptionsPagination.pageSize
+ })}
+ >
+ {tVip('previousPage' as any)}
+ </Button>
+ <span className={styles.paginationInfo}>
+ {tVip('pageInfo' as any).replace('{current}', subscriptionsPagination.current.toString()).replace('{total}', Math.ceil(subscriptionsPagination.total / subscriptionsPagination.pageSize).toString())}
+ </span>
+ <Button
+ disabled={subscriptionsPagination.current >= Math.ceil(subscriptionsPagination.total / subscriptionsPagination.pageSize)}
+ onClick={() => fetchSubscriptions({
+ page: subscriptionsPagination.current,
+ size: subscriptionsPagination.pageSize
+ })}
+ >
+ {tVip('nextPage' as any)}
+ </Button>
+ </div>
+ ) : (
+ <div className={styles.noMoreContent}>
+ <p>{tVip('noMoreContent' as any)}</p>
+ </div>
+ )}
+ </div>
+ ) : (
+ <div className={styles.emptyState}>
+ <p style={{marginBottom: 20}}>{tVip('noAutoRenewalItems' as any)}</p>
+ <Button className={styles.viewMoreBtn}>{tVip('viewMorePlans' as any)}</Button>
+ </div>
+ )
+ }
+
+
+ </div>
+
+
+ </div>
+
+
+ </TabPane>
+
+ <TabPane tab={tVip('purchaseHistory' as any)} key="orders">
+ <div className={styles.purchaseHistory}>
+ {ordersLoading ? (
+ <div className={styles.loadingContainer}>
+ <div className={styles.loadingText}>{tProfile('loading')}</div>
+ </div>
+ ) : orders.length > 0 ? (
+ <div className={styles.orderCards}>
+ {orders.map((order) => (
+ <div key={order._id} className={styles.orderCard}>
+ <div className={styles.orderHeader}>
+ <div className={styles.orderTitle}>
+ {userInfo?.vipInfo?.cycleType === 1
+ ? tVip('modal.vipInfo.monthly' as any)
+ : tVip('modal.vipInfo.yearly' as any)}
+ {userInfo?.vipInfo?.autoContinue === false && ` (${tVip('modal.vipInfo.singleMonth' as any)})`}
+ </div>
+ </div>
+ <div className={styles.orderDetails}>
+ <div className={styles.orderDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('subscriptionMode')}:</span>
+ <span className={styles.detailValue}>
+ {/* {order.mode === 'subscription' ? tVip('continuousAnnual' as any) : tVip('oneTimePurchase' as any)} */}
+ {
+ getPaymentTypeText(order.metadata?.payment)
+ }
+ </span>
+ </div>
+ <div className={styles.orderDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('amount')}:</span>
+ <span className={styles.detailValue}>
+ { (order.amount / 100).toFixed(2) } &nbsp;
+ { order.currency }
+ </span>
+
+ </div>
+ <div className={styles.orderDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('createTime')}:</span>
+ <span className={styles.detailValue}>
+ {new Date(order.created * 1000).toLocaleString('zh-CN', {
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
+ hour: '2-digit',
+ minute: '2-digit'
+ })}
+ </span>
+ </div>
+ <div className={styles.orderDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('orderId')}:</span>
+ <span className={styles.detailValue}>
+ {order.id}
+ <Button
+ type="text"
+ size="small"
+ className={styles.copyBtn}
+ onClick={() => {
+ navigator.clipboard.writeText(order.id);
+ message.success('已复制');
+ }}
+ >
+ 📋
+ </Button>
+ </span>
+ </div>
+ <div className={styles.orderDetailItem}>
+ <span className={styles.detailLabel}>{tProfile('paymentMethod' as any)}:</span>
+ <span className={styles.detailValue}>
+ {(order as any).payment_method || tVip('alipayPayment' as any)}
+ </span>
+ </div>
+ </div>
+ </div>
+ ))}
+ {ordersPagination.total > ordersPagination.pageSize ? (
+ <div className={styles.paginationContainer}>
+ <Button
+ disabled={ordersPagination.current === 1}
+ onClick={() => fetchOrders({
+ page: ordersPagination.current - 2,
+ size: ordersPagination.pageSize
+ })}
+ >
+ {tVip('previousPage' as any)}
+ </Button>
+ <span className={styles.paginationInfo}>
+ {tVip('pageInfo' as any).replace('{current}', ordersPagination.current.toString()).replace('{total}', Math.ceil(ordersPagination.total / ordersPagination.pageSize).toString())}
+ </span>
+ <Button
+ disabled={ordersPagination.current >= Math.ceil(ordersPagination.total / ordersPagination.pageSize)}
+ onClick={() => fetchOrders({
+ page: ordersPagination.current,
+ size: ordersPagination.pageSize
+ })}
+ >
+ {tVip('nextPage' as any)}
+ </Button>
+ </div>
+ ) : (
+ <div className={styles.noMoreContent}>
+ <p>{tVip('noMoreContent' as any)}</p>
+ </div>
+ )}
+ </div>
+ ) : (
+ <div className={styles.emptyState}>
+ <p>{tProfile('noOrderRecords')}</p>
+ </div>
+ )}
+ </div>
+ </TabPane>
+ </Tabs>
+ </div>
+ </Modal>
+
+ {/* 订单详情弹窗 */}
+ <Modal
+ title={tProfile('orderDetails')}
+ open={orderDetailVisible}
+ onCancel={() => setOrderDetailVisible(false)}
+ className={styles.orderDetailModal}
+ footer={[
+ <Button key="close" onClick={() => setOrderDetailVisible(false)}>
+ {tProfile('close')}
+ </Button>
+ ]}
+ width={600}
+ loading={orderDetailLoading}
+ >
+ {currentOrderDetail && (
+ <Descriptions bordered column={1} size="small">
+ <Descriptions.Item label={tProfile('orderId')}>{currentOrderDetail.id}</Descriptions.Item>
+ <Descriptions.Item label={tProfile('internalId')}>{currentOrderDetail._id}</Descriptions.Item>
+ <Descriptions.Item label={tProfile('packageType')}>
+ {getPaymentTypeText(currentOrderDetail.metadata?.payment)}
+ </Descriptions.Item>
+ <Descriptions.Item label={tProfile('subscriptionMode')}>{currentOrderDetail.mode}</Descriptions.Item>
+ <Descriptions.Item label={tProfile('amount')}>
+ ¥{(currentOrderDetail.amount / 100).toFixed(2)}
+ </Descriptions.Item>
+ <Descriptions.Item label={tProfile('status')}>
+ {getOrderStatusTag(currentOrderDetail.status)}
+ </Descriptions.Item>
+ <Descriptions.Item label={tProfile('createTime')}>
+ {new Date(currentOrderDetail.created * 1000).toLocaleString()}
+ </Descriptions.Item>
+ <Descriptions.Item label={tProfile('paymentMethod' as any)}>
+ {(currentOrderDetail as any).payment_method || tProfile('unknown')}
+ </Descriptions.Item>
+ </Descriptions>
+ )}
+ </Modal>
+ </>
+ );
+});
+
+export default SubscriptionManagementModal;
diff --git a/aitoearn_web/aitoearn-web/src/components/modals/VipContentModal.tsx b/aitoearn_web/aitoearn-web/src/components/modals/VipContentModal.tsx
index dc2ec8b6..349d38ba 100644
--- a/aitoearn_web/aitoearn-web/src/components/modals/VipContentModal.tsx
+++ b/aitoearn_web/aitoearn-web/src/components/modals/VipContentModal.tsx
@@ -10,6 +10,10 @@ import vipStyles from "./vipContentModal.module.css";
import PointsDetailModal from "@/components/modals/PointsDetailModal";
import { useUserStore } from "@/store/user";
import PointsRechargeModal from "@/components/modals/PointsRechargeModal";
+import SubscriptionManagementModal from "@/components/modals/SubscriptionManagementModal";
+
+import logo from '@/assets/images/logo.png';
+import Image from "next/image";
interface VipContentModalProps {
open: boolean;
@@ -18,10 +22,11 @@ interface VipContentModalProps {
const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
const [pointsModalVisible, setPointsModalVisible] = useState(false);
+ const [subscriptionModalVisible, setSubscriptionModalVisible] = useState(false);
const userStore = useUserStore();
const router = useRouter();
const { t } = useTransClient('vip');
- const modalWidth = useMemo(() => "66%" as const, []);
+ const modalWidth = useMemo(() => "900px" as const, []);
const [rechargeVisible, setRechargeVisible] = useState(false);
const [activeTab, setActiveTab] = useState<'year' | 'month' | 'once'>('year');
const [loading, setLoading] = useState(false);
@@ -30,6 +35,31 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
// 辅助函数处理翻译
const translate = (key: string) => t(key as any);
+ // 判断用户是否为有效会员
+ const isVip = useMemo(() => {
+ return userStore.userInfo?.vipInfo &&
+ userStore.userInfo.vipInfo.expireTime &&
+ new Date(userStore.userInfo.vipInfo.expireTime) > new Date();
+ }, [userStore.userInfo]);
+
+ // 判断用户是否已经是相同类型的会员且未过期
+ const isCurrentPlan = useMemo(() => {
+ if (!userStore.userInfo?.vipInfo || !isVip) {
+ return {
+ month: false,
+ year: false,
+ once: false
+ };
+ }
+
+ const vipInfo = userStore.userInfo.vipInfo;
+ return {
+ month: vipInfo.cycleType === 1, // 1 是月度
+ year: vipInfo.cycleType === 2, // 2 是年度
+ once: false // 一次性购买不在此判断范围内
+ };
+ }, [userStore.userInfo, isVip]);
+
const handleTabClick = (tab: 'year' | 'month' | 'once') => {
setActiveTab(tab);
};
@@ -58,6 +88,13 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
return;
}
+ // 检查用户是否已经是相同类型的会员且未过期
+ if (isCurrentPlan[planType]) {
+ message.warning(translate('currentPlan'));
+ setLoading(false);
+ return;
+ }
+
// 根据选择的计划映射到支付类型
let paymentType;
let paymentMethod;
@@ -126,26 +163,96 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
centered
>
<div className={vipStyles.wrapper}>
- {/* 顶部区域 */}
- <div className={vipStyles.header}
- style={{ background: 'transparent' }}>
- <div className={vipStyles.titleBlock}>
- <h2 className={vipStyles.title}>
- {translate('modal.title')} <span className={vipStyles.highlight}>{translate('modal.highlight')}</span>
- </h2>
- <div className={vipStyles.links}>
- <span>{translate('modal.choosePlan')}</span>
- <span className={vipStyles.linkButton}
- onClick={() => setRechargeVisible(true)}
- >{translate('modal.buyPoints')}</span>
+ {/* 非会员顶部区域 */}
+ {
+ !isVip && (
+ <div className={vipStyles.header}
+ style={{ background: 'transparent' }}>
+ <div className={vipStyles.titleBlock}>
+ <h2 className={vipStyles.title}>
+ {translate('modal.title')} <span className={vipStyles.highlight}>{translate('modal.highlight')}</span>
+ </h2>
+ <div className={vipStyles.links}>
+ <span>{translate('modal.choosePlan')}</span>
+ <span className={vipStyles.linkButton}
+ onClick={() => setRechargeVisible(true)}
+ >{translate('modal.buyPoints')}</span>
+ </div>
+ </div>
+ <div className={vipStyles.headerRight}>
+ <Button className={vipStyles.pointsBtn} onClick={() => setPointsModalVisible(true)}>{translate('modal.pointsDetail')}</Button>
+ </div>
</div>
+ )
+ }
+
+
+ {/* 会员信息区域 */}
+ {isVip && userStore.userInfo?.vipInfo && (
+ <div className={vipStyles.vipInfoSection}>
+ <div className={vipStyles.vipInfoRow}>
+ <div className={vipStyles.userInfo}>
+ <div className={vipStyles.avatar}>
+ {userStore.userInfo.avatar ? (
+ <img src={userStore.userInfo.avatar} alt="用户头像" />
+ ) : (
+ <Image src={logo} alt="用户头像" style={{ padding: '3px', backgroundColor: '#e9d5ff' }} />
+ )}
+ </div>
+ <div className={vipStyles.userDetails}>
+ <div className={vipStyles.userName}>{userStore.userInfo.name}</div>
+ {/* <div className={vipStyles.userEmail}>{userStore.userInfo.mail}</div> */}
+ </div>
+ </div>
+ <div className={vipStyles.vipActions}>
+ <Button className={vipStyles.detailBtn} onClick={() => setPointsModalVisible(true)}>{translate('modal.pointsDetail')}</Button>
+ <Button className={vipStyles.subscriptionBtn} onClick={() => setSubscriptionModalVisible(true)}>{translate('modal.vipInfo.subscription')}</Button>
+ </div>
+ </div>
+
+ <div className={vipStyles.vipPlanInfo}>
+ <div className={vipStyles.planDetails}>
+ <div className={vipStyles.planType}>
+ {translate('modal.vipInfo.planType')}:
+ <span className={vipStyles.planValue}>
+ { userStore.userInfo.vipInfo.cycleType === 2 && ( userStore.userInfo.vipInfo.autoContinue ? translate('modal.vipInfo.yearly') : translate('modal.vipInfo.yearly2'))}
+ { userStore.userInfo.vipInfo.cycleType === 1 && ( userStore.userInfo.vipInfo.autoContinue ? translate('modal.vipInfo.monthly') : translate('modal.vipInfo.monthly2'))}
+
+ {/* {!userStore.userInfo.vipInfo.autoContinue && ` (${translate('modal.vipInfo.singleMonth')})`} */}
+ </span>
+ </div>
+ <div className={vipStyles.expireTime}>
+ { userStore.userInfo.vipInfo.autoContinue ? translate('modal.vipInfo.xufeiTime') : translate('modal.vipInfo.expireTime')}:
+ <span className={vipStyles.expireValue}>
+ {new Date(userStore.userInfo.vipInfo.expireTime).toLocaleDateString()}
+ </span>
+ </div>
+
+ <div className={vipStyles.expireTime}>
+ {translate('modal.vipInfo.remainingPoints')}:
+
+ <div>
+ <span onClick={() => setPointsModalVisible(true)} className={vipStyles.expireValue} style={{ color: '#727E84' }}>
+ {(userStore.userInfo.score || 0).toFixed(1)}
+ </span>
+ <span onClick={() => setRechargeVisible(true)} className={vipStyles.expireValueHover} style={{ color: '#a66ae4', paddingLeft: 8 }}>
+ {translate('modal.buyPoints')}
+ </span>
+ </div>
+
+ </div>
+ </div>
+ <div className={vipStyles.pointsInfo}>
+
+ </div>
+ </div>
+
</div>
- <div className={vipStyles.headerRight}>
- <Button className={vipStyles.pointsBtn} onClick={() => setPointsModalVisible(true)}>{translate('modal.pointsDetail')}</Button>
- </div>
- </div>
+ )}
+
+{isVip && userStore.userInfo?.vipInfo && (<h5 style={{ margin: 0, fontSize: 16, fontWeight: 700, color: '#0f172a', textAlign: 'center', marginTop: 16, marginBottom: 16 }}> {translate('subscriptionPlans')} </h5>)}
- {/* 顶部选项卡 */}
+ {/* 选项卡 */}
<div className={vipStyles.switchRow}>
<div onClick={() => handleTabClick('year')} className={`${vipStyles.switchBtn} ${activeTab === 'year' ? vipStyles.active : ''}`}>
{translate('modal.tabs.yearly')} <Tag style={{ marginLeft: 6, border: '1px solid rgba(184,221,255,.08)' }}>{translate('modal.savings.yearly')}</Tag>
@@ -153,9 +260,13 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
<div onClick={() => handleTabClick('month')} className={`${vipStyles.switchBtn} ${activeTab === 'month' ? vipStyles.active : ''}`}>
{translate('modal.tabs.monthly')} <Tag style={{ marginLeft: 6, border: '1px solid rgba(184,221,255,.08)' }}>{translate('modal.savings.monthly')}</Tag>
</div>
- <div onClick={() => handleTabClick('once')} className={`${vipStyles.switchBtn} ${activeTab === 'once' ? vipStyles.active : ''}`}>
- {translate('modal.tabs.once')}
- </div>
+ {
+ !userStore.userInfo?.vipInfo?.autoContinue && (
+ <div onClick={() => handleTabClick('once')} className={`${vipStyles.switchBtn} ${activeTab === 'once' ? vipStyles.active : ''}`}>
+ {translate('modal.tabs.once')}
+ </div>
+ )
+ }
</div>
{/* 价格区域 */}
@@ -170,14 +281,15 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
<div className={vipStyles.freeTitle}>{translate('modal.free.title')}</div>
<div className={vipStyles.freePrice}><span>{translate('modal.free.price')}</span><span className={vipStyles.unit}>{translate('modal.free.period')}</span></div>
<div className={vipStyles.freeForever}>{translate('modal.free.forever')}</div>
- <Button disabled className={vipStyles.freeBtn}>{translate('modal.free.currentPlan')}</Button>
+ <Button disabled className={vipStyles.freeBtn}>
+ {isVip ? translate('modal.free.freePlan') : translate('modal.free.currentPlan')}
+ </Button>
<div className={vipStyles.benefitBox}><span className={vipStyles.dot} /> {translate('modal.free.points')}</div>
<ul className={vipStyles.featureList}>
<li>{translate('modal.free.features.dailyPoints')}</li>
<li>{translate('modal.free.features.maxPoints')}</li>
<li>{translate('modal.free.features.videos')}</li>
<li>{translate('modal.free.features.images')}</li>
- <li>{translate('modal.free.features.storage')}</li>
</ul>
</div>
@@ -186,13 +298,15 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
<div className={vipStyles.planHead}>{translate('modal.plans.yearly.title')} <Tag color="#5b7cff">{translate('modal.plans.yearly.bestValue')}</Tag></div>
<div className={vipStyles.planPriceLine}><span className={vipStyles.currency}>$</span><span className={vipStyles.bigNum}>{translate('modal.plans.yearly.price')}</span><span className={vipStyles.unit}>{translate('modal.plans.yearly.period')}</span></div>
<div className={vipStyles.planDesc}>
- {canUseTrial ? translate('modal.trial') : ''} · <span style={{textDecoration: 'line-through'}}>{translate('modal.plans.yearly.originalPrice')}</span> · {translate('modal.cancelAnytime')}</div>
+ {translate('modal.plans.yearly.button')}
+ </div>
<Button
className={vipStyles.primaryBtn}
onClick={() => handleActivate('year')}
loading={loading}
+ disabled={isCurrentPlan.year&& userStore.userInfo?.vipInfo?.autoContinue}
>
- {translate('modal.plans.yearly.button')}
+ {(isCurrentPlan.year && userStore.userInfo?.vipInfo?.autoContinue) ? translate('currentPlan') : translate('modal.plans.goumai')}
</Button>
<div className={vipStyles.benefitBox}><span className={vipStyles.dot} /> {translate('modal.plans.yearly.points')}</div>
<div className={vipStyles.subDesc}>{translate('modal.plans.yearly.description')}</div>
@@ -203,7 +317,6 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
<li>{translate('modal.plans.yearly.features.textToVideo')}</li>
<li>{translate('modal.plans.yearly.features.aiGeneration')}</li>
<li>{translate('modal.plans.yearly.features.noWatermark')}</li>
- <li>{translate('modal.plans.yearly.features.storage')}</li>
</ul>
</div>
</>
@@ -217,14 +330,15 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
<div className={vipStyles.freeTitle}>{translate('modal.free.title')}</div>
<div className={vipStyles.freePrice}><span>{translate('modal.free.price')}</span><span className={vipStyles.unit}>{translate('modal.free.period')}</span></div>
<div className={vipStyles.freeForever}>{translate('modal.free.forever')}</div>
- <Button disabled className={vipStyles.freeBtn}>{translate('modal.free.currentPlan')}</Button>
+ <Button disabled className={vipStyles.freeBtn}>
+ {isVip ? translate('modal.free.freePlan') : translate('modal.free.currentPlan')}
+ </Button>
<div className={vipStyles.benefitBox}><span className={vipStyles.dot} /> {translate('modal.free.points')}</div>
<ul className={vipStyles.featureList}>
<li>{translate('modal.free.features.dailyPoints')}</li>
<li>{translate('modal.free.features.maxPoints')}</li>
<li>{translate('modal.free.features.videos')}</li>
<li>{translate('modal.free.features.images')}</li>
- <li>{translate('modal.free.features.storage')}</li>
</ul>
</div>
@@ -233,13 +347,15 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
<div className={vipStyles.planHead}>{translate('modal.plans.monthly.title')} </div>
<div className={vipStyles.planPriceLine}><span className={vipStyles.currency}>$</span><span className={vipStyles.bigNum}>{translate('modal.plans.monthly.price')}</span><span className={vipStyles.unit}>{translate('modal.plans.monthly.period')}</span></div>
<div className={vipStyles.planDesc}>
- {canUseTrial ? translate('modal.trial') : ''} · <span style={{textDecoration: 'line-through'}}>{translate('modal.plans.monthly.originalPrice')}</span> · {translate('modal.cancelMonthly')}</div>
+ {translate('modal.plans.monthly.button')}
+ </div>
<Button
className={vipStyles.primaryBtn}
onClick={() => handleActivate('month')}
loading={loading}
+ disabled={isCurrentPlan.month&& userStore.userInfo?.vipInfo?.autoContinue}
>
- {translate('modal.plans.monthly.button')}
+ {(isCurrentPlan.month && userStore.userInfo?.vipInfo?.autoContinue) ? translate('currentPlan') : translate('modal.plans.goumai')}
</Button>
<div className={vipStyles.benefitBox}><span className={vipStyles.dot} /> {translate('modal.plans.monthly.points')}</div>
<div className={vipStyles.subDesc}>{translate('modal.plans.monthly.description')}</div>
@@ -250,7 +366,6 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
<li>{translate('modal.plans.yearly.features.textToVideo')}</li>
<li>{translate('modal.plans.yearly.features.aiGeneration')}</li>
<li>{translate('modal.plans.yearly.features.noWatermark')}</li>
- <li>{translate('modal.plans.yearly.features.storage')}</li>
</ul>
</div>
</>
@@ -263,14 +378,15 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
<div className={vipStyles.freeTitle}>{translate('modal.free.title')}</div>
<div className={vipStyles.freePrice}><span>{translate('modal.free.price')}</span><span className={vipStyles.unit}>{translate('modal.free.period')}</span></div>
<div className={vipStyles.freeForever}>{translate('modal.free.forever')}</div>
- <Button disabled className={vipStyles.freeBtn}>{translate('modal.free.currentPlan')}</Button>
+ <Button disabled className={vipStyles.freeBtn}>
+ {isVip ? translate('modal.free.freePlan') : translate('modal.free.currentPlan')}
+ </Button>
<div className={vipStyles.benefitBox}><span className={vipStyles.dot} /> {translate('modal.free.points')}</div>
<ul className={vipStyles.featureList}>
<li>{translate('modal.free.features.dailyPoints')}</li>
<li>{translate('modal.free.features.maxPoints')}</li>
<li>{translate('modal.free.features.videos')}</li>
<li>{translate('modal.free.features.images')}</li>
- <li>{translate('modal.free.features.storage')}</li>
</ul>
</div>
@@ -283,7 +399,7 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
onClick={() => handleActivate('once')}
loading={loading}
>
- {translate('modal.plans.once.button')}
+ {translate('modal.plans.goumai')}
</Button>
<div className={vipStyles.benefitBox}><span className={vipStyles.dot} /> {translate('modal.plans.once.points')}</div>
<div className={vipStyles.subDesc}>{translate('modal.plans.once.description')}</div>
@@ -294,7 +410,6 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
<li>{translate('modal.plans.yearly.features.textToVideo')}</li>
<li>{translate('modal.plans.yearly.features.aiGeneration')}</li>
<li>{translate('modal.plans.yearly.features.noWatermark')}</li>
- <li>{translate('modal.plans.once.storage')}</li>
</ul>
</div>
</>
@@ -369,6 +484,9 @@ const VipContentModal = memo(({ open, onClose }: VipContentModalProps) => {
<PointsDetailModal open={pointsModalVisible} onClose={() => setPointsModalVisible(false)} />
<PointsRechargeModal open={rechargeVisible} onClose={() => setRechargeVisible(false)} />
+
+ {/* 订阅管理弹窗 */}
+ <SubscriptionManagementModal open={subscriptionModalVisible} onClose={() => setSubscriptionModalVisible(false)} />
</Modal>
);
});
diff --git a/aitoearn_web/aitoearn-web/src/components/modals/subscriptionManagementModal.module.css b/aitoearn_web/aitoearn-web/src/components/modals/subscriptionManagementModal.module.css
new file mode 100644
index 00000000..07c62338
--- /dev/null
+++ b/aitoearn_web/aitoearn-web/src/components/modals/subscriptionManagementModal.module.css
@@ -0,0 +1,445 @@
+/* 订阅管理弹窗样式 */
+.subscriptionModal {
+ background: white;
+ border-radius: 12px;
+}
+
+.subscriptionModal .ant-modal-content {
+ border-radius: 12px;
+ overflow: hidden;
+}
+
+.subscriptionModal .ant-modal-header {
+ border-radius: 12px 12px 0 0;
+ border-bottom: 1px solid #f0f0f0;
+}
+
+.subscriptionModal .ant-modal-body {
+ border-radius: 0 0 12px 12px;
+ padding: 0;
+}
+
+.modalContent {
+ background: white;
+ padding: 0;
+ margin-top: 8px;
+}
+
+/* 我的会员区域 */
+.myMembership {
+ min-height: 785px;
+ max-height: 60vh;
+ overflow: scroll;
+}
+
+.myMembership h3 {
+ margin: 0 0 16px 0;
+ font-size: 16px;
+ font-weight: 500;
+ color: #111827;
+}
+
+.membershipCard {
+ background: #f8f9fa;
+ border-radius: 8px;
+ padding: 16px;
+}
+
+.membershipInfo {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+}
+
+.membershipIcon {
+ font-size: 24px;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-radius: 8px;
+}
+
+.membershipDetails {
+ flex: 1;
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.membershipName {
+ font-size: 16px;
+ font-weight: 600;
+ color: #111827;
+ margin-bottom: 4px;
+}
+
+.membershipExpire {
+ font-size: 14px;
+ color: #6b7280;
+}
+
+/* 自动续费区域 */
+.autoRenewal {
+ margin-top: 24px;
+ margin-bottom: 24px;
+}
+
+/* 会员状态 */
+.membershipStatus {
+ font-size: 12px;
+ color: #666;
+ margin-top: 4px;
+}
+
+/* 活跃订阅区域 */
+.activeSubscription {
+ border-radius: 8px;
+}
+
+.subscriptionItem {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 12px 0;
+}
+
+.subscriptionInfo {
+ flex: 1;
+}
+
+.subscriptionName {
+ font-size: 16px;
+ font-weight: 600;
+ color: #1f2937;
+ margin-bottom: 4px;
+}
+
+.subscriptionStatus {
+ font-size: 14px;
+ color: #10b981;
+ font-weight: 500;
+}
+
+.subscriptionActions {
+ margin-left: 16px;
+}
+
+/* 订阅卡片样式 */
+.subscriptionCards {
+ margin-top: 16px;
+}
+
+.subscriptionCard {
+ background: white;
+ border-radius: 8px;
+ margin-bottom: 16px;
+ padding: 16px;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
+}
+
+.subscriptionHeader {
+ margin-bottom: 16px;
+ padding-bottom: 12px;
+ border-bottom: 1px solid #f3f4f6;
+}
+
+.subscriptionTitle {
+ font-size: 16px;
+ font-weight: 600;
+ color: #1f2937;
+ margin: 0;
+}
+
+.subscriptionDetails {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.subscriptionDetailItem {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 4px 0;
+}
+
+.subscriptionDetailItem .detailLabel {
+ font-size: 14px;
+ color: #6b7280;
+ font-weight: 500;
+ min-width: 80px;
+}
+
+.subscriptionDetailItem .detailValue {
+ font-size: 14px;
+ color: #1f2937;
+ font-weight: 400;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.subscriptionDetailItem .copyBtn {
+ padding: 0;
+ height: auto;
+ font-size: 12px;
+ color: #6b7280;
+}
+
+.subscriptionDetailItem .copyBtn:hover {
+ color: #374151;
+}
+
+.autoRenewal h3 {
+ margin: 0 0 16px 0;
+ font-size: 14px;
+ font-weight: 500;
+ color: #111827;
+}
+
+.emptyState {
+ text-align: center;
+ padding: 40px 20px;
+ border-radius: 8px;
+}
+
+.emptyState p {
+ margin: 0 0 16px 0;
+ color: #6b7280;
+ font-size: 14px;
+}
+
+.viewMoreBtn {
+ background: #374151;
+ border-color: #374151;
+ color: white;
+ border-radius: 6px;
+ font-weight: 500;
+}
+
+.viewMoreBtn:hover {
+ background: #4b5563;
+ border-color: #4b5563;
+}
+
+/* 操作按钮 */
+.actionButtons {
+ display: flex;
+ gap: 8px;
+ flex-wrap: wrap;
+}
+
+.actionButtons .ant-btn {
+ font-size: 12px;
+ padding: 4px 8px;
+ height: auto;
+}
+
+/* 订单详情弹窗 */
+.orderDetailModal .ant-descriptions-item-label {
+ font-weight: 600;
+ color: #374151;
+ width: 120px;
+}
+
+.orderDetailModal .ant-descriptions-item-content {
+ color: #111827;
+}
+
+/* 表格样式优化 */
+.ant-table-thead > tr > th {
+ background: #f8f9fa;
+ font-weight: 600;
+ color: #374151;
+ border-bottom: 2px solid #e5e7eb;
+}
+
+.ant-table-tbody > tr:hover > td {
+ background: #f8f9fa;
+}
+
+/* 分页样式 */
+.ant-pagination {
+ margin-top: 16px;
+ text-align: right;
+}
+
+/* 标签样式 */
+.ant-tag {
+ border-radius: 4px;
+ font-size: 12px;
+ font-weight: 500;
+ padding: 2px 8px;
+}
+
+/* 购买记录卡片布局 */
+.purchaseHistory {
+ padding: 0;
+ min-height: 780px;
+ max-height: 60vh;
+ overflow: scroll;
+}
+
+.loadingContainer {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 40px;
+}
+
+.loadingText {
+ color: #6b7280;
+ font-size: 14px;
+}
+
+.orderCards {
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+}
+
+.orderCard {
+ background: white;
+ border-radius: 8px;
+ margin-bottom: 16px;
+ padding: 16px;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
+}
+
+.orderCard:hover {
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
+ transform: translateY(-1px);
+}
+
+.orderHeader {
+ margin-bottom: 16px;
+ padding-bottom: 12px;
+}
+
+.orderTitle {
+ font-size: 18px;
+ font-weight: 600;
+ color: #111827;
+}
+
+.orderDetails {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.orderDetailItem {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 2px 0;
+}
+
+.detailLabel {
+ font-size: 14px;
+ color: #6b7280;
+ font-weight: 500;
+ min-width: 100px;
+}
+
+.detailValue {
+ font-size: 14px;
+ color: #111827;
+ font-weight: 500;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.copyBtn {
+ padding: 4px 8px;
+ height: auto;
+ font-size: 12px;
+ border: none;
+ background: transparent;
+ color: #6b7280;
+ cursor: pointer;
+ border-radius: 4px;
+ transition: all 0.2s ease;
+}
+
+.copyBtn:hover {
+ background: #e5e7eb;
+ color: #374151;
+}
+
+.paginationContainer {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ gap: 16px;
+ margin-top: 24px;
+ padding: 16px 0;
+}
+
+.paginationInfo {
+ font-size: 14px;
+ color: #6b7280;
+}
+
+.emptyState {
+ text-align: center;
+ padding: 60px 20px;
+ color: #6b7280;
+}
+
+.emptyState p {
+ margin: 0;
+ font-size: 14px;
+}
+
+.noMoreContent {
+ text-align: center;
+ padding: 20px;
+ color: #6b7280;
+ font-size: 14px;
+}
+
+.noMoreContent p {
+ margin: 0;
+}
+
+/* 响应式设计 */
+@media (max-width: 768px) {
+ .subscriptionModal {
+ width: 95% !important;
+ max-width: none;
+ }
+
+ .membershipInfo {
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 8px;
+ }
+
+ .actionButtons {
+ flex-direction: column;
+ gap: 4px;
+ }
+
+ .actionButtons .ant-btn {
+ width: 100%;
+ }
+
+ .orderDetailItem {
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 4px;
+ }
+
+ .detailLabel {
+ min-width: auto;
+ }
+
+ .paginationContainer {
+ flex-direction: column;
+ gap: 12px;
+ }
+}
diff --git a/aitoearn_web/aitoearn-web/src/components/modals/vipContentModal.module.css b/aitoearn_web/aitoearn-web/src/components/modals/vipContentModal.module.css
index 5be2da5e..a414d18b 100644
--- a/aitoearn_web/aitoearn-web/src/components/modals/vipContentModal.module.css
+++ b/aitoearn_web/aitoearn-web/src/components/modals/vipContentModal.module.css
@@ -139,4 +139,160 @@
.subDesc { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.featureList { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #374151; font-size: 13px; }
+/* 会员信息区域样式 */
+.vipInfoSection {
+ border-radius: 12px;
+ margin: 20px 24px;
+ padding: 20px;
+ background: aliceblue;
+}
+
+.vipInfoRow {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 16px;
+}
+
+.userInfo {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+}
+
+.avatar {
+ width: 48px;
+ height: 48px;
+ border-radius: 50%;
+ overflow: hidden;
+ background: #e5e7eb;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.avatar img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
+
+.defaultAvatar {
+ width: 100%;
+ height: 100%;
+ background: linear-gradient(135deg, #a66ae4 0%, #5b7cff 100%);
+ color: white;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-weight: 700;
+ font-size: 18px;
+}
+
+.userDetails {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+}
+
+.userName {
+ font-weight: 600;
+ font-size: 16px;
+ color: #111827;
+}
+
+.userEmail {
+ font-size: 14px;
+ color: #6b7280;
+}
+
+.vipActions {
+ display: flex;
+ gap: 28px;
+}
+
+.detailBtn {
+ height: 32px;
+ border-radius: 6px;
+ font-size: 13px;
+ border: 1px solid #d1d5db;
+ color: #374151;
+ background: white;
+}
+
+.subscriptionBtn {
+ height: 32px;
+ border-radius: 6px;
+ font-size: 13px;
+ background: #a66ae4;
+ border-color: #a66ae4;
+ color: white;
+}
+
+.vipPlanInfo {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding-bottom: 16px;
+ border-radius: 8px;
+}
+
+.planDetails {
+ display: flex;
+ flex-direction: row;
+ gap: 88px;
+}
+
+.planType, .expireTime {
+ font-size: 14px;
+ color: #374151;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+
+.planValue, .expireValue {
+ color: #111827;
+}
+
+.expireValueHover {
+ color: #a66ae4;
+ cursor: pointer;
+}
+
+.pointsInfo {
+ display: flex;
+ align-items: center;
+ gap: 16px;
+}
+
+.remainingPoints {
+ font-size: 14px;
+ color: #374151;
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.pointsValue {
+ font-weight: 600;
+ color: #a66ae4;
+ font-size: 16px;
+}
+
+.buyPointsBtn {
+ height: 32px;
+ border-radius: 6px;
+ font-size: 13px;
+ background: #10b981;
+ border-color: #10b981;
+ color: white;
+ font-weight: 600;
+}
+
+.buyPointsBtn:hover {
+ background: #059669;
+ border-color: #059669;
+}
+
diff --git a/aitoearn_web/aitoearn-web/src/store/user.ts b/aitoearn_web/aitoearn-web/src/store/user.ts
index 4048e2be..f82fa494 100644
--- a/aitoearn_web/aitoearn-web/src/store/user.ts
+++ b/aitoearn_web/aitoearn-web/src/store/user.ts
@@ -21,6 +21,7 @@ export interface UserInfo {
id: string;
cycleType: number;
expireTime: string;
+ autoContinue: boolean;
_id: string;
};
}
diff --git a/aitoearn_web/aitoearn-web/src/utils/request.ts b/aitoearn_web/aitoearn-web/src/utils/request.ts
index 52eabe23..4d07c6f8 100644
--- a/aitoearn_web/aitoearn-web/src/utils/request.ts
+++ b/aitoearn_web/aitoearn-web/src/utils/request.ts
@@ -10,6 +10,10 @@ type ResponseType<T> = {
url: string;
};
+type RequestParamsWithSilent = RequestParams & {
+ silent?: boolean; // 是否静默处理错误,不显示提示
+};
+
const fetchService = new FetchService({
baseURL: `${process.env.NEXT_PUBLIC_API_URL}/`,
requestInterceptor(requestParams) {
@@ -36,7 +40,7 @@ const fetchService = new FetchService({
},
});
-export async function request<T>(params: RequestParams) {
+export async function request<T>(params: RequestParamsWithSilent) {
try {
const res = await fetchService.request(params);
const data: ResponseType<T> = await res.json();
@@ -53,29 +57,31 @@ export async function request<T>(params: RequestParams) {
contact: isZh ? "如需帮助请联系客服:" : "Need help? Contact support:",
};
- if (res.status === 401) {
- // useUserStore.getState().logout();
- // message.error({
- // key: "NoPermission",
- // content: "登录状态过期,请重新登录",
- // });
- return data;
+ // 未登录拦截
+ if (data.code === 401 && !useUserStore.getState().token) {
+ return null;
+ }
+
+ // 已登录、但是登录过期
+ if (data.code === 401) {
+ useUserStore.getState().logout();
}
if (data.code !== 0) {
- if (typeof window !== "undefined")
+ if (!params.silent && typeof window !== "undefined") {
message.warning({
content: `${data.message || i18nText.networkBusy} ${i18nText.contact} https://t.me/harryyyy2025`,
key: "apiErrorMessage",
duration: 6,
});
+ }
return null;
}
return data;
} catch (e) {
console.warn(e);
- if (typeof window !== "undefined") {
+ if (!params.silent && typeof window !== "undefined") {
message.error({
content: `${(useUserStore.getState().lang || "zh-CN").toLowerCase().startsWith("zh") ? "网络异常,请稍后重试!" : "Network error, please try again later!"} ${(useUserStore.getState().lang || "zh-CN").toLowerCase().startsWith("zh") ? "如需帮助请联系客服:" : "Need help? Contact support:"} https://t.me/harryyyy2025`,
key: "apiErrorMessage",
@@ -87,32 +93,36 @@ export async function request<T>(params: RequestParams) {
}
export default {
- get<T>(url: string, data?: any) {
+ get<T>(url: string, data?: any, silent?: boolean) {
return request<T>({
url,
params: data,
method: "GET",
+ silent,
});
},
- post<T>(url: string, data?: any) {
+ post<T>(url: string, data?: any, silent?: boolean) {
return request<T>({
url,
data: data,
method: "POST",
+ silent,
});
},
- put<T>(url: string, data?: any) {
+ put<T>(url: string, data?: any, silent?: boolean) {
return request<T>({
url,
data: data,
method: "PUT",
+ silent,
});
},
- delete<T>(url: string, data?: any) {
+ delete<T>(url: string, data?: any, silent?: boolean) {
return request<T>({
url,
data: data,
method: "DELETE",
+ silent,
});
},
};