1- import { Result } from '@/request/Result'
2- import { get , post } from '@/request/index'
3- import type { User , ResetPasswordRequest , CheckCodeRequest } from '@/api/type/user'
4- import type { Ref } from 'vue'
1+ import { Result } from '@/request/Result'
2+ import { get , post } from '@/request/index'
3+ import type { User , ResetPasswordRequest , CheckCodeRequest } from '@/api/type/user'
4+ import type { Ref } from 'vue'
5+
56/**
67 * 获取用户基本信息
78 * @param loading 接口加载器
@@ -20,20 +21,21 @@ const getProfile: (loading?: Ref<boolean>) => Promise<Result<any>> = (loading) =
2021/**
2122 * 获取全部用户
2223 */
23- const getUserList : ( loading ?: Ref < boolean > ) => Promise < Result < Record < string , any > [ ] > > = (
24+ const getUserList : ( arg ?: any , loading ?: Ref < boolean > ) => Promise < Result < Record < string , any > [ ] > > = (
25+ arg ,
2426 loading ,
2527) => {
26- return get ( '/user/list' , undefined , loading )
28+ return get ( '/user/list' , arg , loading )
2729}
2830
2931/**
3032 * 获取全部用户
3133 */
32- const getAllMemberList : ( arg : string , loading ?: Ref < boolean > ) => Promise < Result < Record < string , any > [ ] > > = (
34+ const getAllMemberList : ( arg : any , loading ?: Ref < boolean > ) => Promise < Result < Record < string , any > [ ] > > = (
3335 arg ,
3436 loading ,
3537) => {
36- return get ( '/user/list' , undefined , loading )
38+ return get ( '/user/list' , arg , loading )
3739}
3840
3941/**
@@ -60,7 +62,7 @@ const sendEmit: (
6062 type : 'register' | 'reset_password' ,
6163 loading ?: Ref < boolean > ,
6264) => Promise < Result < boolean > > = ( email , type , loading ) => {
63- return post ( '/user/send_email' , { email, type } , undefined , loading )
65+ return post ( '/user/send_email' , { email, type} , undefined , loading )
6466}
6567
6668/**
0 commit comments