第一次提交
This commit is contained in:
28
api/love-user-profile.js
Normal file
28
api/love-user-profile.js
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user