mirror of
https://github.com/xiaoyiweb/YiAi.git
synced 2025-11-16 14:13:44 +08:00
初始化
This commit is contained in:
17
chat/src/api/crami.ts
Normal file
17
chat/src/api/crami.ts
Normal 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,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user