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 @@ + + +