|
|
@@ -20,7 +20,7 @@ import { Skeleton } from '@d8d/shared-ui-components/components/ui/skeleton'
|
|
|
import { DataTablePagination } from '@d8d/shared-ui-components/components/admin/DataTablePagination'
|
|
|
|
|
|
import { merchantClient, merchantClientManager } from '../api/merchantClient'
|
|
|
-import { AdminCreateMerchantDto, AdminUpdateMerchantDto } from '@d8d/merchant-module-mt/schemas'
|
|
|
+import { AdminCreateMerchantDtoMt, AdminUpdateMerchantDtoMt } from '@d8d/merchant-module-mt/schemas'
|
|
|
|
|
|
// 使用RPC方式提取类型
|
|
|
type CreateMerchantRequest = InferRequestType<typeof merchantClient.index.$post>['json']
|
|
|
@@ -28,8 +28,8 @@ type UpdateMerchantRequest = InferRequestType<typeof merchantClient[':id']['$put
|
|
|
type MerchantResponse = InferResponseType<typeof merchantClient.index.$get, 200>['data'][0]
|
|
|
|
|
|
// 直接使用后端定义的 schema
|
|
|
-const createFormSchema = AdminCreateMerchantDto
|
|
|
-const updateFormSchema = AdminUpdateMerchantDto
|
|
|
+const createFormSchema = AdminCreateMerchantDtoMt
|
|
|
+const updateFormSchema = AdminUpdateMerchantDtoMt
|
|
|
|
|
|
|
|
|
// 商户状态类型
|