功能:完善登录安全与客服手动下单

This commit is contained in:
yml2213
2026-08-13 12:40:04 +08:00
parent aea65a2fd3
commit 8c47b961e1
10 changed files with 161 additions and 43 deletions
+4
View File
@@ -37,6 +37,8 @@ export const authApi = {
const res = await request.get('/auth/profile')
return res.data.data as User
},
changePassword: (data: { current_password: string; new_password: string }) =>
request.put('/auth/password', data).then((r) => r.data.data),
}
export const dashboardApi = {
@@ -62,6 +64,8 @@ export const merchantApi = {
request.patch(`/merchant/products/${id}/status`, { status }).then((r) => r.data.data),
orders: (params?: Record<string, unknown>) =>
request.get('/merchant/orders', { params }).then((r) => r.data.data as PageResult<FulfillmentOrder>),
manualOrderProducts: () =>
request.get('/merchant/orders/products').then((r) => r.data.data as MerchantProduct[]),
createTestOrder: (data: {
sku: string
buyer_reference?: string