import http from '@/api'; import { ReqPage, ResPage } from '../interface'; import { App } from '../interface/app'; export const SyncApp = () => { return http.post('apps/sync', {}); }; export const SearchApp = (req: App.AppReq) => { return http.post('apps/search', req); }; export const GetApp = (id: number) => { return http.get('apps/' + id); }; export const GetAppDetail = (id: number, version: string) => { return http.get('apps/detail/' + id + '/' + version); }; export const InstallApp = (install: App.AppInstall) => { return http.post('apps/install', install); }; export const GetAppInstalled = (info: ReqPage) => { return http.post>('apps/installed', info); }; export const InstalledOp = (op: App.AppInstalledOp) => { return http.post('apps/installed/op', op); };