feat: 项目初始化
This commit is contained in:
17
src/api/sub.ts
Normal file
17
src/api/sub.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import httpService from '@/utils/request'
|
||||
// 获取子账号列表
|
||||
export function list_user_child() {
|
||||
return httpService.get(`/api/user-center/list_user_child`)
|
||||
}
|
||||
// 添加
|
||||
export function add_user_child(data) {
|
||||
return httpService.post(`/api/user-center/add_user_child?mobilePhone=${data}`)
|
||||
}
|
||||
// 删除
|
||||
export function delete_user_child(data) {
|
||||
return httpService.delete(`/api/user-center/delete_user_child`,{data})
|
||||
}
|
||||
// 获取父级账号
|
||||
export function list_user_parent() {
|
||||
return httpService.get(`/api/user-center/list_user_parent`)
|
||||
}
|
||||
Reference in New Issue
Block a user