22 lines
555 B
TypeScript
22 lines
555 B
TypeScript
import httpService from '@/utils/request'
|
|
import API from './config'
|
|
|
|
// 获取子账号列表
|
|
export function list_user_child() {
|
|
return httpService.get(API.SUB_ACCOUNT.LIST())
|
|
}
|
|
|
|
// 添加
|
|
export function add_user_child(mobilePhone) {
|
|
return httpService.post(API.SUB_ACCOUNT.ADD(), { data: { mobilePhone } })
|
|
}
|
|
|
|
// 删除
|
|
export function delete_user_child(id) {
|
|
return httpService.delete(`${API.SUB_ACCOUNT.DELETE()}/${id}`)
|
|
}
|
|
|
|
// 获取父级账号
|
|
export function list_user_parent() {
|
|
return httpService.get(API.SUB_ACCOUNT.PARENT())
|
|
} |