mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 21:48:02 +00:00
Optimize the project structure and introduce DDD design (#394)
This commit is contained in:
11
projects/app/src/global/support/api/openapiReq.d.ts
vendored
Normal file
11
projects/app/src/global/support/api/openapiReq.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { OpenApiSchema } from '@/types/support/openapi';
|
||||
|
||||
export type GetApiKeyProps = {
|
||||
appId?: string;
|
||||
};
|
||||
|
||||
export type EditApiKeyProps = {
|
||||
appId?: string;
|
||||
name: string;
|
||||
limit: OpenApiSchema['limit'];
|
||||
};
|
6
projects/app/src/global/support/api/outLinkRes.d.ts
vendored
Normal file
6
projects/app/src/global/support/api/outLinkRes.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { InitChatResponse } from '@/global/core/api/chatRes.d';
|
||||
|
||||
export type InitShareChatResponse = {
|
||||
userAvatar: string;
|
||||
app: InitChatResponse['app'];
|
||||
};
|
13
projects/app/src/global/support/api/userRes.d.ts
vendored
Normal file
13
projects/app/src/global/support/api/userRes.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { UserType } from '@/types/user';
|
||||
import type { PromotionRecordSchema } from '@/types/mongoSchema';
|
||||
export interface ResLogin {
|
||||
user: UserType;
|
||||
token: string;
|
||||
}
|
||||
|
||||
export interface PromotionRecordType {
|
||||
_id: PromotionRecordSchema['_id'];
|
||||
type: PromotionRecordSchema['type'];
|
||||
createTime: PromotionRecordSchema['createTime'];
|
||||
amount: PromotionRecordSchema['amount'];
|
||||
}
|
Reference in New Issue
Block a user