import { request } from '@umijs/max'; // 新建用户分组 export async function addUserGroup(body?: APIS.UserInfoVO) { return request('/api/v1/user', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, }); } // 获取用户分组 export async function getUserGroup(body?: APIS.UserInfoVO) { return request('/api/v1/user', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, }); } // 删除用户分组 export async function deleteUserGroup(body?: APIS.UserInfoVO) { return request('/api/v1/user', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, }); } // 查询用户分组 export async function getUserList(body?: APIS.UserInfoVO) { return request('/api/v1/user', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, }); } // 新建用户 export async function addUser(body?: APIS.UserInfoVO) { return request('/api/v1/user', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, }); } // 编辑用户 export async function editUser(body?: APIS.UserInfoVO) { return request('/api/v1/user', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, }); } //获取某个用户信息 export async function getUserById(body?: APIS.UserInfoVO) { return request('/api/v1/user', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, }); } //删除用户 export async function deleteUser(body?: APIS.UserInfoVO) { return request('/api/v1/user', { method: 'DELETE', headers: { 'Content-Type': 'application/json', }, data: body, }); }