diff --git a/src/pages/table-list/give-vip/index.tsx b/src/pages/table-list/give-vip/index.tsx index ee79931..c2a3804 100644 --- a/src/pages/table-list/give-vip/index.tsx +++ b/src/pages/table-list/give-vip/index.tsx @@ -48,7 +48,7 @@ const TableList: React.FC = () => { const columns: ProColumns[] = [ { title: '用户ID', - dataIndex: 'imOpenId', + dataIndex: 'userId', valueType: 'textarea', search: true, }, @@ -129,7 +129,7 @@ const TableList: React.FC = () => { onOpenChange={handleUpdateModalOpen} onFinish={async formData => { const params: API.PostGiveVip = { - imOpenId: formData.imOpenId, + userId: formData.userId, userPhone: formData.userPhone, productType: formData.productType, productSpecId: formData.productSpecId, diff --git a/src/services/typings.d.ts b/src/services/typings.d.ts index db44701..331e764 100644 --- a/src/services/typings.d.ts +++ b/src/services/typings.d.ts @@ -385,7 +385,7 @@ declare namespace API { interface GiveVipListItem { id: number; - imOpenId: string; + userId: string; userPhone: string; productType: ProductType; productSpecId: string; @@ -396,7 +396,7 @@ declare namespace API { } interface PostGiveVip { - imOpenId: string; + userId: string; userPhone?: string; productType?: ProductType; productSpecId?: string;