import http from '@/api'; 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); };