29 lines
839 B
JavaScript
29 lines
839 B
JavaScript
import http from './index.js';
|
|
|
|
// 分页查询用户资料
|
|
export const pageUserProfile = (params) => http.get('/love/user-profile/page', {params})
|
|
|
|
// 查询全部用户资料
|
|
export const listUserProfile = (params) => http.get('/love/user-profile', {params})
|
|
|
|
// 查询用户资料(当期登录用户)
|
|
export const getUserProfile = (userId) => http.get('/love/user-profile/' + userId)
|
|
|
|
// 查询会员资料
|
|
export const getUserDetail = (userId) => http.get('/love/user-profile/detail/' + userId)
|
|
|
|
// 新增用户资料
|
|
export const updateUserProfile = (data) => http.put('/love/user-profile', data)
|
|
|
|
// 删除用户资料
|
|
export const removeUserProfile = (id) => http.get('/love/user-profile/remove/' + id)
|
|
|
|
export default {
|
|
pageUserProfile,
|
|
listUserProfile,
|
|
getUserProfile,
|
|
getUserDetail,
|
|
updateUserProfile,
|
|
removeUserProfile
|
|
}
|