初始化

This commit is contained in:
xiaoyi
2024-01-27 19:53:17 +08:00
commit 07dbe71c31
840 changed files with 119152 additions and 0 deletions

17
chat/src/api/crami.ts Normal file
View File

@@ -0,0 +1,17 @@
import { get, post } from '@/utils/request'
/* use crami */
export function fetchUseCramiAPI<T>(data: { code: string }): Promise<T> {
return post<T>({
url: '/crami/useCrami',
data,
})
}
/* get all crami package */
export function fetchGetPackageAPI<T>(data: { status: number; type?: number; size?: number }): Promise<T> {
return get<T>({
url: '/crami/queryAllPackage',
data,
})
}