WEB/src/api/index/index.ts
2026-04-15 21:01:12 +08:00

167 lines
3.2 KiB
TypeScript

import request from '@/utils/request'
export function fastWhereTree(type:any) {
return request({
url: '/system',
method: 'post',
params: {
method: 'index.fastWhereTree',
v: '1.0',
timestamp: new Date().getTime()
},
data: {type},
isSystemApi: true
} as any)
}
export function loadStores(type:any) {
return request({
url: '/system',
method: 'post',
params: {
method: 'index.loadStores',
v: '1.0',
timestamp: new Date().getTime()
},
data: {type},
isSystemApi: true
} as any)
}
export function getCOSUploadConfig(data:any){
return request({
url: '/system',
method: 'post',
params: {
method: 'index.getCOSUploadConfig',
v: '1.0',
timestamp: new Date().getTime()
},
data: {data},
isSystemApi: true
} as any)
}
export function getImages(data:any){
return request({
url: '/system',
method: 'post',
params: {
method: 'index.getImages',
v: '1.0',
timestamp: new Date().getTime()
},
data: data,
isSystemApi: true
} as any)
}
export function uploadSuccessNotify(data:any){
return request({
url: '/system',
method: 'post',
params: {
method: 'index.uploadSuccessNotify',
v: '1.0',
timestamp: new Date().getTime()
},
data: data,
isSystemApi: true
} as any)
}
export function ReferenceFile(data:any){
return request({
url: '/system',
method: 'post',
params: {
method: 'index.ReferenceFile',
v: '1.0',
timestamp: new Date().getTime()
},
data: data,
isSystemApi: true
} as any)
}
export function getMessageDetail(data:any){
return request({
url: '/system',
method: 'post',
params: {
method: 'index.getMessageDetail',
v: '1.0',
timestamp: new Date().getTime()
},
data: data,
isSystemApi: true
} as any)
}
export function getI18nMessage(data:any){
return request({
url: '/system',
method: 'post',
params: {
method: 'index.getI18nMessage',
v: '1.0',
timestamp: new Date().getTime()
},
data: data,
isSystemApi: true
} as any)
}
export function putI18nCollect(data:any){
return request({
url: '/system',
method: 'post',
params: {
method: 'index.putI18nCollect',
v: '1.0',
timestamp: new Date().getTime()
},
data: data,
isSystemApi: true
} as any)
}
export function getExpressList(){
return request({
url: '/system',
method: 'post',
params: {
method: 'index.getExpressList',
v: '1.0',
timestamp: new Date().getTime()
},
isSystemApi: true
} as any)
}
/** 查询所有已启用的接口类型列表(无需权限,仅需登录) */
export function listInterfaceTypes() {
return request({
url: '/system',
method: 'post',
params: {
method: 'index.listInterfaceTypes',
v: '1.0',
timestamp: new Date().getTime()
},
data: {},
isSystemApi: true
} as any)
}
export function searchSpace(data:any){
return request({
url: '/system',
method: 'post',
params: {
method: 'index.searchSpace',
v: '1.0',
timestamp: new Date().getTime()
},
data: data,
isSystemApi: true
} as any)
}