app.ts
433 字节
import { useGet } from "~/utils/request";
import type { queryParams } from "./types/app";
// 获取应用列表
export const getAppList = (params: queryParams) => {
return useGet('/dh/app/listFrontApp', params)
}
// 获取已分类的所有应用
export const getAllApp = () => {
return useGet('/dh/app/allFrontApp')
}
// 获取应用详情
export const getAppDetail = (appId: number) => {
return useGet(`/dh/app/${appId}`)
}