merge(main): 同步主站最新 UI 与审核优化代码并保持分销多租户隔离
This commit is contained in:
@@ -332,3 +332,19 @@ export async function rejectListing(id: number, reason: string) {
|
||||
})
|
||||
return data.data
|
||||
}
|
||||
|
||||
export interface AdminListingScreenshotsPayload {
|
||||
screenshot_urls: string[]
|
||||
screenshot_groups?: Record<string, unknown>
|
||||
}
|
||||
|
||||
export async function adminUpdateListingScreenshots(
|
||||
id: number,
|
||||
payload: AdminListingScreenshotsPayload
|
||||
) {
|
||||
const { data } = await apiClient.put<ApiResponse<Listing>>(
|
||||
`/admin/listings/${id}/screenshots`,
|
||||
payload
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user