From 6ee2492ff167bd0036c19c9d502a1d10b4069388 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 25 Oct 2023 17:02:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A4=BE=E4=BA=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=20RUD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/social/user/index.ts | 34 +++ .../system/social/user/SocialUserForm.vue | 139 ++++++++++++ src/views/system/social/user/index.vue | 204 ++++++++++++++++++ 3 files changed, 377 insertions(+) create mode 100644 src/api/system/social/user/index.ts create mode 100644 src/views/system/social/user/SocialUserForm.vue create mode 100644 src/views/system/social/user/index.vue diff --git a/src/api/system/social/user/index.ts b/src/api/system/social/user/index.ts new file mode 100644 index 00000000..f2850a62 --- /dev/null +++ b/src/api/system/social/user/index.ts @@ -0,0 +1,34 @@ +import request from '@/config/axios' + +export interface SocialUserVO { + id: number + type: number + openid: string + token: string + rawTokenInfo: string + nickname: string + avatar: string + rawUserInfo: string + code: string + state: string +} + +// 查询社交用户列表 +export const getSocialUserPage = async (params) => { + return await request.get({ url: `/system/social-user/page`, params }) +} + +// 查询社交用户详情 +export const getSocialUser = async (id: number) => { + return await request.get({ url: `/system/social-user/get?id=` + id }) +} + +// 修改社交用户 +export const updateSocialUser = async (data: SocialUserVO) => { + return await request.put({ url: `/system/social-user/update`, data }) +} + +// 删除社交用户 +export const deleteSocialUser = async (id: number) => { + return await request.delete({ url: `/system/social-user/delete?id=` + id }) +} diff --git a/src/views/system/social/user/SocialUserForm.vue b/src/views/system/social/user/SocialUserForm.vue new file mode 100644 index 00000000..181bc6f8 --- /dev/null +++ b/src/views/system/social/user/SocialUserForm.vue @@ -0,0 +1,139 @@ + + diff --git a/src/views/system/social/user/index.vue b/src/views/system/social/user/index.vue new file mode 100644 index 00000000..f4f0a8b0 --- /dev/null +++ b/src/views/system/social/user/index.vue @@ -0,0 +1,204 @@ + + +