- Redesign website homepage & product-center per Figma (fonts, logos, hero/footer/customer cases) - Add API upload module (multer) with static serving for uploads/public assets - Add OriginGood.delisted flag and SDS request retry logic - Add admin ImageUpload component and goods import/upload flows - Add vitest suite for website components and composables (32 tests) - Add skills, docs, plans and PRODUCT.md
19 lines
452 B
TypeScript
19 lines
452 B
TypeScript
import request from './request'
|
|
import type { SyncLog } from '@/types'
|
|
|
|
export const syncApi = {
|
|
syncProducts: () => {
|
|
return request.post<any, { message: string }>('/sync/products')
|
|
},
|
|
|
|
syncCategories: () => {
|
|
return request.post<any, { message: string }>('/sync/categories')
|
|
},
|
|
|
|
getSyncStatus: (limit?: number) => {
|
|
return request.get<any, SyncLog[]>('/sync/status', {
|
|
params: limit ? { limit } : undefined,
|
|
})
|
|
},
|
|
}
|