Archer e3eb05beed
update package;fix: input data model ui (#4181)
* update package

* fix: ts

* update config

* update jieba package

* add type sign

* fix: input data ui
2025-03-15 23:49:32 +08:00

18 lines
623 B
TypeScript

import { GET, POST } from '@/web/common/api/request';
import type { PromotionRecordType } from '@/global/support/api/userRes.d';
import type { PaginationProps, PaginationResponse } from '@fastgpt/web/common/fetch/type';
/* get promotion init data */
export const getPromotionInitData = () =>
GET<{
invitedAmount: number;
earningsAmount: number;
}>('/proApi/support/activity/promotion/getPromotionData');
/* promotion records */
export const getPromotionRecords = (data: PaginationProps) =>
POST<PaginationResponse<PromotionRecordType>>(
`/proApi/support/activity/promotion/getPromotions`,
data
);