From 8935188a820c70c843780df0321008d83c407ee5 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 25 Oct 2023 16:07:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A4=BE=E4=BA=A4=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=20CRUD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/social/client/index.ts | 36 +++ src/utils/dict.ts | 1 + .../system/social/client/SocialClientForm.vue | 146 +++++++++++ src/views/system/social/client/index.vue | 248 ++++++++++++++++++ 4 files changed, 431 insertions(+) create mode 100644 src/api/system/social/client/index.ts create mode 100644 src/views/system/social/client/SocialClientForm.vue create mode 100644 src/views/system/social/client/index.vue diff --git a/src/api/system/social/client/index.ts b/src/api/system/social/client/index.ts new file mode 100644 index 00000000..da87378e --- /dev/null +++ b/src/api/system/social/client/index.ts @@ -0,0 +1,36 @@ +import request from '@/config/axios' + +export interface SocialClientVO { + id: number + name: string + socialType: number + userType: number + clientId: string + clientSecret: string + status: number +} + +// 查询社交客户端列表 +export const getSocialClientPage = async (params) => { + return await request.get({ url: `/system/social-client/page`, params }) +} + +// 查询社交客户端详情 +export const getSocialClient = async (id: number) => { + return await request.get({ url: `/system/social-client/get?id=` + id }) +} + +// 新增社交客户端 +export const createSocialClient = async (data: SocialClientVO) => { + return await request.post({ url: `/system/social-client/create`, data }) +} + +// 修改社交客户端 +export const updateSocialClient = async (data: SocialClientVO) => { + return await request.put({ url: `/system/social-client/update`, data }) +} + +// 删除社交客户端 +export const deleteSocialClient = async (id: number) => { + return await request.delete({ url: `/system/social-client/delete?id=` + id }) +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 489d8e4b..65672a8b 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -116,6 +116,7 @@ export enum DICT_TYPE { SYSTEM_OAUTH2_GRANT_TYPE = 'system_oauth2_grant_type', SYSTEM_MAIL_SEND_STATUS = 'system_mail_send_status', SYSTEM_NOTIFY_TEMPLATE_TYPE = 'system_notify_template_type', + SYSTEM_SOCIAL_CLIENT_TYPE = 'system_social_client_type', // ========== INFRA 模块 ========== INFRA_BOOLEAN_STRING = 'infra_boolean_string', diff --git a/src/views/system/social/client/SocialClientForm.vue b/src/views/system/social/client/SocialClientForm.vue new file mode 100644 index 00000000..f4d02437 --- /dev/null +++ b/src/views/system/social/client/SocialClientForm.vue @@ -0,0 +1,146 @@ + + diff --git a/src/views/system/social/client/index.vue b/src/views/system/social/client/index.vue new file mode 100644 index 00000000..de3bf705 --- /dev/null +++ b/src/views/system/social/client/index.vue @@ -0,0 +1,248 @@ + + +