mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-17 04:15:07 +08:00
新增社交用户 RUD
This commit is contained in:
34
src/api/system/social/user/index.ts
Normal file
34
src/api/system/social/user/index.ts
Normal file
@ -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 })
|
||||
}
|
Reference in New Issue
Block a user