12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import request from '@/config/axios'
- // 用户信息 VO
- export interface UserInformationVO {
- id: number // 自增主键
- userId: number // 用户编号
- creditInformation: string // 个人征信信息
- idCardInformation: string // 个人身份证信息
- businessLicenseInformation: string // 个人营业执照信息
- creditId: number // 征信id
- idCardId: number // 身份证ID
- businessLicenseId: number // 营业执照id
- }
- // 用户信息 API
- export const UserInformationApi = {
- // 查询用户信息分页
- getUserInformationPage: async (params: any) => {
- return await request.get({ url: `/member/user-information/page`, params })
- },
- // 查询用户信息详情
- getUserInformation: async (id: number) => {
- return await request.get({ url: `/member/user-information/get?id=` + id })
- },
- // 新增用户信息
- createUserInformation: async (data: UserInformationVO) => {
- return await request.post({ url: `/member/user-information/create`, data })
- },
- // 修改用户信息
- updateUserInformation: async (data: UserInformationVO) => {
- return await request.put({ url: `/member/user-information/update`, data })
- },
- // 删除用户信息
- deleteUserInformation: async (id: number) => {
- return await request.delete({ url: `/member/user-information/delete?id=` + id })
- },
- // 导出用户信息 Excel
- exportUserInformation: async (params) => {
- return await request.download({ url: `/member/user-information/export-excel`, params })
- }
- }
|