index.ts 877 B

12345678910111213141516171819202122232425262728293031323334
  1. import request from '@/config/axios'
  2. export interface SocialUserVO {
  3. id: number
  4. type: number
  5. openid: string
  6. token: string
  7. rawTokenInfo: string
  8. nickname: string
  9. avatar: string
  10. rawUserInfo: string
  11. code: string
  12. state: string
  13. }
  14. // 查询社交用户列表
  15. export const getSocialUserPage = async (params) => {
  16. return await request.get({ url: `/system/social-user/page`, params })
  17. }
  18. // 查询社交用户详情
  19. export const getSocialUser = async (id: number) => {
  20. return await request.get({ url: `/system/social-user/get?id=` + id })
  21. }
  22. // 修改社交用户
  23. export const updateSocialUser = async (data: SocialUserVO) => {
  24. return await request.put({ url: `/system/social-user/update`, data })
  25. }
  26. // 删除社交用户
  27. export const deleteSocialUser = async (id: number) => {
  28. return await request.delete({ url: `/system/social-user/delete?id=` + id })
  29. }