index.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import request from '@/config/axios'
  2. // 用户信息 VO
  3. export interface UserInformationVO {
  4. id: number // 自增主键
  5. userId: number // 用户编号
  6. creditInformation: string // 个人征信信息
  7. idCardInformation: string // 个人身份证信息
  8. businessLicenseInformation: string // 个人营业执照信息
  9. creditId: number // 征信id
  10. idCardId: number // 身份证ID
  11. businessLicenseId: number // 营业执照id
  12. }
  13. // 用户信息 API
  14. export const UserInformationApi = {
  15. // 查询用户信息分页
  16. getUserInformationPage: async (params: any) => {
  17. return await request.get({ url: `/member/user-information/page`, params })
  18. },
  19. // 查询用户信息详情
  20. getUserInformation: async (id: number) => {
  21. return await request.get({ url: `/member/user-information/get?id=` + id })
  22. },
  23. // 新增用户信息
  24. createUserInformation: async (data: UserInformationVO) => {
  25. return await request.post({ url: `/member/user-information/create`, data })
  26. },
  27. // 修改用户信息
  28. updateUserInformation: async (data: UserInformationVO) => {
  29. return await request.put({ url: `/member/user-information/update`, data })
  30. },
  31. // 删除用户信息
  32. deleteUserInformation: async (id: number) => {
  33. return await request.delete({ url: `/member/user-information/delete?id=` + id })
  34. },
  35. // 导出用户信息 Excel
  36. exportUserInformation: async (params) => {
  37. return await request.download({ url: `/member/user-information/export-excel`, params })
  38. }
  39. }