|
|
|
@ -1,4 +1,9 @@
@@ -1,4 +1,9 @@
|
|
|
|
|
import { User, UserDto } from './model/userModel'; |
|
|
|
|
/** |
|
|
|
|
* 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 |
|
|
|
|
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved. |
|
|
|
|
* author entfrm开发团队-王翔 |
|
|
|
|
*/ |
|
|
|
|
import { User, UserDto, UserVo } from './model/userModel'; |
|
|
|
|
import { defHttp } from '/@/utils/http/axios'; |
|
|
|
|
import { ResultVo } from "/@/api/model"; |
|
|
|
|
|
|
|
|
@ -14,7 +19,7 @@ enum Api {
@@ -14,7 +19,7 @@ enum Api {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 查询用户列表
|
|
|
|
|
export const listUser = (params?: Partial<UserDto>) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); |
|
|
|
|
export const listUser = (params?: Partial<UserDto>) => defHttp.get<UserVo>({ url: Api.list, params }, { isReturnResultResponse: true }); |
|
|
|
|
|
|
|
|
|
// 新增用户
|
|
|
|
|
export const addUser = (params: Partial<User>) => defHttp.post({ url: Api.add, data: params }); |
|
|
|
|