fix: align client integration contracts

This commit is contained in:
2026-07-31 13:43:16 +08:00
parent 5b09010be9
commit 151d76f77c
14 changed files with 120 additions and 60 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { apiRequest } from '@/api/http'
export type MerchantPartnerType = 'SENDER' | 'RECEIVER'
export type MerchantPartnerType = 'CUSTOMER' | 'SUPPLIER' | 'BOTH'
export interface MerchantPartner {
id: number | string
@@ -19,7 +19,7 @@ export interface MerchantPartner {
status: 'ACTIVE' | 'INACTIVE' | 'DISABLED' | string
}
export function getMerchantPartnerCandidates(type: MerchantPartnerType, keyword?: string) {
export function getMerchantPartnerCandidates(type?: MerchantPartnerType, keyword?: string) {
return apiRequest<MerchantPartner[]>({
method: 'GET',
url: '/merchant/v1/partners/candidates',