diff --git a/apps/web-antd/src/api/system/social/client/index.ts b/apps/web-antd/src/api/system/social/client/index.ts index 181cdf86b..55978dd14 100644 --- a/apps/web-antd/src/api/system/social/client/index.ts +++ b/apps/web-antd/src/api/system/social/client/index.ts @@ -12,6 +12,7 @@ export namespace SystemSocialClientApi { clientId: string; clientSecret: string; agentId?: string; + publicKey?: string; status: number; createTime?: Date; } diff --git a/apps/web-antd/src/views/system/social/client/data.ts b/apps/web-antd/src/views/system/social/client/data.ts index 15402d12a..c9638ff37 100644 --- a/apps/web-antd/src/views/system/social/client/data.ts +++ b/apps/web-antd/src/views/system/social/client/data.ts @@ -82,6 +82,18 @@ export function useFormSchema(): VbenFormSchema[] { values.socialType === SystemUserSocialTypeEnum.WECHAT_ENTERPRISE.type, }, }, + { + fieldName: 'publicKey', + label: 'publicKey', + component: 'Input', + componentProps: { + placeholder: '请输入 publicKey 公钥', + }, + dependencies: { + triggerFields: ['socialType'], + show: (values) => values.socialType === 40, + }, + }, { fieldName: 'status', label: '状态', diff --git a/apps/web-ele/src/api/system/social/client/index.ts b/apps/web-ele/src/api/system/social/client/index.ts index 181cdf86b..55978dd14 100644 --- a/apps/web-ele/src/api/system/social/client/index.ts +++ b/apps/web-ele/src/api/system/social/client/index.ts @@ -12,6 +12,7 @@ export namespace SystemSocialClientApi { clientId: string; clientSecret: string; agentId?: string; + publicKey?: string; status: number; createTime?: Date; } diff --git a/apps/web-ele/src/views/system/social/client/data.ts b/apps/web-ele/src/views/system/social/client/data.ts index f7f15d6b3..1fcf77a28 100644 --- a/apps/web-ele/src/views/system/social/client/data.ts +++ b/apps/web-ele/src/views/system/social/client/data.ts @@ -80,6 +80,18 @@ export function useFormSchema(): VbenFormSchema[] { values.socialType === SystemUserSocialTypeEnum.WECHAT_ENTERPRISE.type, }, }, + { + fieldName: 'publicKey', + label: 'publicKey', + component: 'Input', + componentProps: { + placeholder: '请输入 publicKey 公钥', + }, + dependencies: { + triggerFields: ['socialType'], + show: (values) => values.socialType === 40, + }, + }, { fieldName: 'status', label: '状态', diff --git a/apps/web-naive/src/api/system/social/client/index.ts b/apps/web-naive/src/api/system/social/client/index.ts index 181cdf86b..55978dd14 100644 --- a/apps/web-naive/src/api/system/social/client/index.ts +++ b/apps/web-naive/src/api/system/social/client/index.ts @@ -12,6 +12,7 @@ export namespace SystemSocialClientApi { clientId: string; clientSecret: string; agentId?: string; + publicKey?: string; status: number; createTime?: Date; } diff --git a/apps/web-naive/src/views/system/social/client/data.ts b/apps/web-naive/src/views/system/social/client/data.ts index fbd3b8bd7..54ae3c7bf 100644 --- a/apps/web-naive/src/views/system/social/client/data.ts +++ b/apps/web-naive/src/views/system/social/client/data.ts @@ -79,6 +79,18 @@ export function useFormSchema(): VbenFormSchema[] { values.socialType === SystemUserSocialTypeEnum.WECHAT_ENTERPRISE.type, }, }, + { + fieldName: 'publicKey', + label: 'publicKey', + component: 'Input', + componentProps: { + placeholder: '请输入 publicKey 公钥', + }, + dependencies: { + triggerFields: ['socialType'], + show: (values) => values.socialType === 40, + }, + }, { fieldName: 'status', label: '状态', diff --git a/apps/web-tdesign/src/api/system/social/client/index.ts b/apps/web-tdesign/src/api/system/social/client/index.ts index 181cdf86b..55978dd14 100644 --- a/apps/web-tdesign/src/api/system/social/client/index.ts +++ b/apps/web-tdesign/src/api/system/social/client/index.ts @@ -12,6 +12,7 @@ export namespace SystemSocialClientApi { clientId: string; clientSecret: string; agentId?: string; + publicKey?: string; status: number; createTime?: Date; } diff --git a/apps/web-tdesign/src/views/system/social/client/data.ts b/apps/web-tdesign/src/views/system/social/client/data.ts index bbcd3c18b..7075b7bd7 100644 --- a/apps/web-tdesign/src/views/system/social/client/data.ts +++ b/apps/web-tdesign/src/views/system/social/client/data.ts @@ -81,6 +81,18 @@ export function useFormSchema(): VbenFormSchema[] { values.socialType === SystemUserSocialTypeEnum.WECHAT_ENTERPRISE.type, }, }, + { + fieldName: 'publicKey', + label: 'publicKey', + component: 'Input', + componentProps: { + placeholder: '请输入 publicKey 公钥', + }, + dependencies: { + triggerFields: ['socialType'], + show: (values) => values.socialType === 40, + }, + }, { fieldName: 'status', label: '状态',