优化后台商品审核价格调整
This commit is contained in:
@@ -188,6 +188,17 @@ export async function approveListing(id: number) {
|
||||
return data.data
|
||||
}
|
||||
|
||||
export interface AdminListingPriceAdjustPayload {
|
||||
buyer_ratio?: number
|
||||
buyer_total_price?: number
|
||||
reason?: string
|
||||
}
|
||||
|
||||
export async function adjustListingReviewPrice(id: number, payload: AdminListingPriceAdjustPayload) {
|
||||
const { data } = await apiClient.post<ApiResponse<Listing>>(`/admin/listings/${id}/adjust-price`, payload)
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function rejectListing(id: number, reason: string) {
|
||||
const { data } = await apiClient.post<ApiResponse<Listing>>(`/admin/listings/${id}/reject`, { reason })
|
||||
return data.data
|
||||
|
||||
Reference in New Issue
Block a user