mirror of
https://github.com/labring/FastGPT.git
synced 2026-02-28 01:02:28 +08:00
add plan activity config (#6139)
* activity points * modal * ui * fix * pref: zod schema * perf: ad api with zod * perf: plan year switch * perf: plan * i18n * fix: hook * fix: activity checker * fix: i18n * fix clear token * fix * back * can close modal in pay * ad token * rename * fix * total points * eng i18n --------- Co-authored-by: archer <545436317@qq.com>
This commit is contained in:
6
packages/global/openapi/support/user/index.ts
Normal file
6
packages/global/openapi/support/user/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { UserInformPath } from './inform';
|
||||
import type { OpenAPIPath } from '../../type';
|
||||
|
||||
export const UserPath: OpenAPIPath = {
|
||||
...UserInformPath
|
||||
};
|
||||
61
packages/global/openapi/support/user/inform/index.ts
Normal file
61
packages/global/openapi/support/user/inform/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { OpenAPIPath } from '../../../type';
|
||||
import {
|
||||
SystemMsgModalResponseSchema,
|
||||
OperationalAdResponseSchema,
|
||||
ActivityAdResponseSchema
|
||||
} from '../../../admin/support/user/inform/api';
|
||||
import { TagsMap } from '../../../tag';
|
||||
|
||||
export const UserInformPath: OpenAPIPath = {
|
||||
'/proApi/support/user/inform/getSystemMsgModal': {
|
||||
get: {
|
||||
summary: '获取系统弹窗内容',
|
||||
description: '获取系统消息弹窗的内容',
|
||||
tags: [TagsMap.userInform],
|
||||
responses: {
|
||||
200: {
|
||||
description: '成功获取系统弹窗内容',
|
||||
content: {
|
||||
'application/json': {
|
||||
schema: SystemMsgModalResponseSchema
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
'/proApi/support/user/inform/getOperationalAd': {
|
||||
get: {
|
||||
summary: '获取运营广告',
|
||||
description: '获取运营广告的图片和链接',
|
||||
tags: [TagsMap.userInform],
|
||||
responses: {
|
||||
200: {
|
||||
description: '成功获取运营广告',
|
||||
content: {
|
||||
'application/json': {
|
||||
schema: OperationalAdResponseSchema
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
'/proApi/support/user/inform/getActivityAd': {
|
||||
get: {
|
||||
summary: '获取活动广告',
|
||||
description: '获取活动广告的图片和链接',
|
||||
tags: [TagsMap.userInform],
|
||||
responses: {
|
||||
200: {
|
||||
description: '成功获取活动广告',
|
||||
content: {
|
||||
'application/json': {
|
||||
schema: ActivityAdResponseSchema
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user