index.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import request from '@/config/axios'
  2. export interface SocialClientVO {
  3. id: number
  4. name: string
  5. socialType: number
  6. userType: number
  7. clientId: string
  8. clientSecret: string
  9. agentId: string
  10. status: number
  11. }
  12. // 查询社交客户端列表
  13. export const getSocialClientPage = async (params) => {
  14. return await request.get({ url: `/system/social-client/page`, params })
  15. }
  16. // 查询社交客户端详情
  17. export const getSocialClient = async (id: number) => {
  18. return await request.get({ url: `/system/social-client/get?id=` + id })
  19. }
  20. // 新增社交客户端
  21. export const createSocialClient = async (data: SocialClientVO) => {
  22. return await request.post({ url: `/system/social-client/create`, data })
  23. }
  24. // 修改社交客户端
  25. export const updateSocialClient = async (data: SocialClientVO) => {
  26. return await request.put({ url: `/system/social-client/update`, data })
  27. }
  28. // 删除社交客户端
  29. export const deleteSocialClient = async (id: number) => {
  30. return await request.delete({ url: `/system/social-client/delete?id=` + id })
  31. }