功能:完善登录安全与客服手动下单
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user