shared-ritm 1.3.132 → 1.3.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +14558 -12665
- package/dist/shared-ritm.umd.js +600 -597
- package/dist/types/api/services/UserService.d.ts +9 -1
- package/dist/types/api/types/Api_Controls.d.ts +1 -0
- package/dist/types/api/types/Api_User.d.ts +24 -0
- package/package.json +5 -1
- package/src/api/services/AuthService.ts +67 -67
- package/src/api/services/UserService.ts +151 -129
- package/src/api/types/Api_Controls.ts +113 -112
- package/src/api/types/Api_User.ts +186 -161
- package/src/common/app-select/AppSelect.vue +167 -167
- package/src/common/app-table/AppTable.vue +324 -313
- package/src/common/app-table/AppTableLayout.vue +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ApiService from '../settings/ApiService';
|
|
2
|
-
import { Api_User, Api_User_Create, Api_User_Delete_Body, Api_User_Delete_Photos_Body, Api_User_Position, Api_User_Role, Api_User_Team, Api_User_Team_Search, Api_User_Warehouse, Api_User_Change_Password_Payload } from '../types/Api_User';
|
|
2
|
+
import { Api_User, Api_User_Create, Api_User_Delete_Body, Api_User_Delete_Photos_Body, Api_User_Position, Api_User_Role, Api_User_Team, Api_User_Team_Search, Api_User_Warehouse, Api_User_Change_Password_Payload, Api_Visitor_Dto } from '../types/Api_User';
|
|
3
3
|
import { ResponseApi } from '../types/Api_Service';
|
|
4
4
|
declare class UserService extends ApiService {
|
|
5
5
|
editUser({ id, model }: {
|
|
@@ -68,6 +68,14 @@ declare class UserService extends ApiService {
|
|
|
68
68
|
checkUserBeforeArchive(body: {
|
|
69
69
|
user_id: string;
|
|
70
70
|
}): Promise<any>;
|
|
71
|
+
getListVisitorLog(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>>;
|
|
72
|
+
entryVisitorLog(body: {
|
|
73
|
+
user_id: string;
|
|
74
|
+
task_id: string;
|
|
75
|
+
}): Promise<Api_Visitor_Dto>;
|
|
76
|
+
exitVisitorLog(id: string): Promise<Api_Visitor_Dto>;
|
|
77
|
+
deleteVisitorLog(): Promise<any>;
|
|
78
|
+
findUserByVideo(data: any): Promise<any>;
|
|
71
79
|
}
|
|
72
80
|
export default function useUserService(): UserService;
|
|
73
81
|
export {};
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks';
|
|
2
2
|
import { Api_Instrument } from '@/api/types/Api_Instruments';
|
|
3
3
|
import { Api_Search_User_Passes, Api_Search_User_Positions } from '@/api/types/Api_Search';
|
|
4
|
+
export type Api_Visitor_Dto = {
|
|
5
|
+
id: string;
|
|
6
|
+
entry_at: string;
|
|
7
|
+
exit_at: null | string;
|
|
8
|
+
in_zone: boolean;
|
|
9
|
+
is_auto: boolean;
|
|
10
|
+
user: {
|
|
11
|
+
id: string;
|
|
12
|
+
email: string;
|
|
13
|
+
full_name: string;
|
|
14
|
+
divisions: string;
|
|
15
|
+
};
|
|
16
|
+
task: {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
state_id: string;
|
|
20
|
+
project_id: string;
|
|
21
|
+
status: {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
title: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
4
28
|
export type Api_User_Team = {
|
|
5
29
|
id: string;
|
|
6
30
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shared-ritm",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.135",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"@types/node": "^22.19.1",
|
|
49
49
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
50
50
|
"@vue/compiler-sfc": "^3.5.24",
|
|
51
|
+
"vue": "^3.5.12",
|
|
51
52
|
"install": "^0.13.0",
|
|
52
53
|
"npm": "^11.6.2",
|
|
53
54
|
"prettier": "^3.3.3",
|
|
@@ -66,5 +67,8 @@
|
|
|
66
67
|
"eslint-plugin-vue": "^9.26.0",
|
|
67
68
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
68
69
|
"@vue/eslint-config-typescript": "^12.0.0"
|
|
70
|
+
},
|
|
71
|
+
"overrides": {
|
|
72
|
+
"vue": "$vue"
|
|
69
73
|
}
|
|
70
74
|
}
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import ApiService from '../settings/ApiService'
|
|
2
|
-
import {
|
|
3
|
-
Api_Auth_Login,
|
|
4
|
-
ChangePasswordAndActivatePayload,
|
|
5
|
-
ChangePasswordPayload,
|
|
6
|
-
ChangePasswordResponse,
|
|
7
|
-
ConfigResponse,
|
|
8
|
-
LoginPayload,
|
|
9
|
-
} from '@/api/types/Api_Auth'
|
|
10
|
-
|
|
11
|
-
class AuthService extends ApiService {
|
|
12
|
-
public login(email: string, password: string): Promise<Api_Auth_Login> {
|
|
13
|
-
return this.post<LoginPayload, Api_Auth_Login>(`/v2/login`, {
|
|
14
|
-
email,
|
|
15
|
-
password,
|
|
16
|
-
})
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
public loginPhoto(photo: any): Promise<Api_Auth_Login> {
|
|
20
|
-
return this.post<any, Api_Auth_Login>(`/login/from_photo`, { photo })
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
public loginVideo(data: any): Promise<Api_Auth_Login> {
|
|
24
|
-
return this.post<any, Api_Auth_Login>(`/login/video`, data, {
|
|
25
|
-
transformRequest: d => d,
|
|
26
|
-
})
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public logout(): Promise<Api_Auth_Login> {
|
|
30
|
-
return this.logoutUser()
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
public userInfo() {
|
|
34
|
-
return this.get<any>(`/users/auth`)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
public configs(): Promise<ConfigResponse> {
|
|
38
|
-
return this.get<ConfigResponse>(`/v2/configs`)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
public changePassword(id: string, password: string, password_confirmation: string) {
|
|
42
|
-
return this.put<ChangePasswordPayload, ChangePasswordResponse>(`/v2/auth/users/${id}/password`, {
|
|
43
|
-
password,
|
|
44
|
-
password_confirmation,
|
|
45
|
-
})
|
|
46
|
-
}
|
|
47
|
-
public changePasswordAndActivate(
|
|
48
|
-
email: string,
|
|
49
|
-
currentPassword: string,
|
|
50
|
-
password: string,
|
|
51
|
-
passwordConfirmation: string,
|
|
52
|
-
) {
|
|
53
|
-
return this.post<ChangePasswordAndActivatePayload, ChangePasswordResponse>(`/v2/auth/users/activate`, {
|
|
54
|
-
email,
|
|
55
|
-
currentPassword,
|
|
56
|
-
password,
|
|
57
|
-
passwordConfirmation,
|
|
58
|
-
})
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
let api: AuthService
|
|
63
|
-
|
|
64
|
-
export default function useAuthService() {
|
|
65
|
-
if (!api) api = new AuthService()
|
|
66
|
-
return api
|
|
67
|
-
}
|
|
1
|
+
import ApiService from '../settings/ApiService'
|
|
2
|
+
import {
|
|
3
|
+
Api_Auth_Login,
|
|
4
|
+
ChangePasswordAndActivatePayload,
|
|
5
|
+
ChangePasswordPayload,
|
|
6
|
+
ChangePasswordResponse,
|
|
7
|
+
ConfigResponse,
|
|
8
|
+
LoginPayload,
|
|
9
|
+
} from '@/api/types/Api_Auth'
|
|
10
|
+
|
|
11
|
+
class AuthService extends ApiService {
|
|
12
|
+
public login(email: string, password: string): Promise<Api_Auth_Login> {
|
|
13
|
+
return this.post<LoginPayload, Api_Auth_Login>(`/v2/login`, {
|
|
14
|
+
email,
|
|
15
|
+
password,
|
|
16
|
+
})
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public loginPhoto(photo: any): Promise<Api_Auth_Login> {
|
|
20
|
+
return this.post<any, Api_Auth_Login>(`/login/from_photo`, { photo })
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public loginVideo(data: any): Promise<Api_Auth_Login> {
|
|
24
|
+
return this.post<any, Api_Auth_Login>(`/login/video`, data, {
|
|
25
|
+
transformRequest: d => d,
|
|
26
|
+
})
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
public logout(): Promise<Api_Auth_Login> {
|
|
30
|
+
return this.logoutUser()
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
public userInfo() {
|
|
34
|
+
return this.get<any>(`/users/auth`)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public configs(): Promise<ConfigResponse> {
|
|
38
|
+
return this.get<ConfigResponse>(`/v2/configs`)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public changePassword(id: string, password: string, password_confirmation: string) {
|
|
42
|
+
return this.put<ChangePasswordPayload, ChangePasswordResponse>(`/v2/auth/users/${id}/password`, {
|
|
43
|
+
password,
|
|
44
|
+
password_confirmation,
|
|
45
|
+
})
|
|
46
|
+
}
|
|
47
|
+
public changePasswordAndActivate(
|
|
48
|
+
email: string,
|
|
49
|
+
currentPassword: string,
|
|
50
|
+
password: string,
|
|
51
|
+
passwordConfirmation: string,
|
|
52
|
+
) {
|
|
53
|
+
return this.post<ChangePasswordAndActivatePayload, ChangePasswordResponse>(`/v2/auth/users/activate`, {
|
|
54
|
+
email,
|
|
55
|
+
currentPassword,
|
|
56
|
+
password,
|
|
57
|
+
passwordConfirmation,
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let api: AuthService
|
|
63
|
+
|
|
64
|
+
export default function useAuthService() {
|
|
65
|
+
if (!api) api = new AuthService()
|
|
66
|
+
return api
|
|
67
|
+
}
|
|
@@ -1,129 +1,151 @@
|
|
|
1
|
-
import ApiService from '../settings/ApiService'
|
|
2
|
-
import {
|
|
3
|
-
Api_User,
|
|
4
|
-
Api_User_Create,
|
|
5
|
-
Api_User_Delete_Body,
|
|
6
|
-
Api_User_Delete_Photos_Body,
|
|
7
|
-
Api_User_Position,
|
|
8
|
-
Api_User_Role,
|
|
9
|
-
Api_User_Team,
|
|
10
|
-
Api_User_Team_Search,
|
|
11
|
-
Api_User_Warehouse,
|
|
12
|
-
Api_User_Change_Password_Payload,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
1
|
+
import ApiService from '../settings/ApiService'
|
|
2
|
+
import {
|
|
3
|
+
Api_User,
|
|
4
|
+
Api_User_Create,
|
|
5
|
+
Api_User_Delete_Body,
|
|
6
|
+
Api_User_Delete_Photos_Body,
|
|
7
|
+
Api_User_Position,
|
|
8
|
+
Api_User_Role,
|
|
9
|
+
Api_User_Team,
|
|
10
|
+
Api_User_Team_Search,
|
|
11
|
+
Api_User_Warehouse,
|
|
12
|
+
Api_User_Change_Password_Payload,
|
|
13
|
+
Api_Visitor_Dto,
|
|
14
|
+
} from '../types/Api_User'
|
|
15
|
+
|
|
16
|
+
import { ResponseApi } from '../types/Api_Service'
|
|
17
|
+
import { Api_Auth_Login } from '@/api/types/Api_Auth'
|
|
18
|
+
|
|
19
|
+
class UserService extends ApiService {
|
|
20
|
+
public async editUser({ id, model }: { id: string; model: any }): Promise<Api_User> {
|
|
21
|
+
return await this.put<Partial<Api_User>, Api_User>(`/admin/users/${id}`, model)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public async getUser(id: string): Promise<Api_User> {
|
|
25
|
+
return await this.get<Api_User>(`/admin/users/${id}`)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public async changeUserPassword(payload: Api_User_Change_Password_Payload): Promise<Api_User> {
|
|
29
|
+
return await this.patch<Api_User_Change_Password_Payload, Api_User>(`/v2/auth/users/password`, payload)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public async getUserWarehouses(params: {
|
|
33
|
+
user_id: string
|
|
34
|
+
page?: number
|
|
35
|
+
}): Promise<ResponseApi<Api_User_Warehouse[]>> {
|
|
36
|
+
return await this.get<ResponseApi<Api_User_Warehouse[]>>(`users/get_warehouse_list_by_user`, { params })
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public async createUser(model: Api_User_Create): Promise<Api_User> {
|
|
40
|
+
return await this.post<Api_User_Create, Api_User>('/admin/users', model)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public async deleteUser({
|
|
44
|
+
user_id,
|
|
45
|
+
archive_reason,
|
|
46
|
+
}: Api_User_Delete_Body): Promise<{ data: boolean; status: number }> {
|
|
47
|
+
return await this.post(`/users/archive_user`, { user_id, archive_reason })
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public async deleteUserPhotos({
|
|
51
|
+
user_id,
|
|
52
|
+
photos,
|
|
53
|
+
}: Api_User_Delete_Photos_Body): Promise<{ data: boolean; status: number }> {
|
|
54
|
+
return await this.post(`/users/photos/delete`, { user_id, photos })
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public async restoreUser(user_id: string): Promise<{ data: boolean; status: number }> {
|
|
58
|
+
return await this.post(`/users/restore_user`, { user_id })
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public async getRoles(params?: { per_page?: number }): Promise<ResponseApi<Api_User_Role[]>> {
|
|
62
|
+
return await this.get<ResponseApi<Api_User_Role[]>>('/search/roles', { params })
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public async getPositions(params?: { per_page?: number }): Promise<ResponseApi<Api_User_Position[]>> {
|
|
66
|
+
return await this.get<ResponseApi<Api_User_Position[]>>('/search/positions', { params })
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public async createPosition(body: Partial<Api_User_Position>): Promise<ResponseApi<Api_User_Position>> {
|
|
70
|
+
return await this.post<Partial<Api_User_Position>, ResponseApi<Api_User_Position>>('/admin/positions', body)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
public async editPosition(id: string, body: Partial<Api_User_Position>): Promise<ResponseApi<Api_User_Position>> {
|
|
74
|
+
return await this.put<Partial<Api_User_Position>, ResponseApi<Api_User_Position>>(`/admin/positions/${id}`, body)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public async deletePosition(id: string): Promise<{ data: boolean; status: number }> {
|
|
78
|
+
return await this.delete(`/admin/positions/${id}`)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
public async getTeams(params?: { per_page?: number }): Promise<ResponseApi<Api_User_Team_Search[]>> {
|
|
82
|
+
return await this.get<ResponseApi<Api_User_Team_Search[]>>('/search/teams', { params })
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
public async createTeam(body: Partial<Api_User_Team_Search>): Promise<ResponseApi<Api_User_Team>> {
|
|
86
|
+
return await this.post<Partial<Api_User_Team_Search>, ResponseApi<Api_User_Team>>('/teams', body)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
public async editTeam(id: string, body: Partial<Api_User_Team_Search>): Promise<{ data: boolean; status: number }> {
|
|
90
|
+
return await this.patch<Partial<Api_User_Team_Search>, { data: boolean; status: number }>(`/teams/${id}`, body)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
public async deleteTeam(id: string): Promise<{ data: boolean; status: number }> {
|
|
94
|
+
return await this.delete(`/teams/${id}`)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public async checkUserVectors(id: string): Promise<{ count: number }> {
|
|
98
|
+
return await this.get(`/user/get-vectors/${id}`)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
public async checkArchiveUserVectors(id: string): Promise<{ count: number }> {
|
|
102
|
+
return await this.get(`/users/get_vector_count_by_user?user_id=${id}`)
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
public async addUserVectors(formData: FormData): Promise<{ response: string }> {
|
|
106
|
+
return await this.post(`/user/add-vector`, formData, {
|
|
107
|
+
headers: { 'Content-Type': 'multipart/form-data' },
|
|
108
|
+
})
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
public async removeUserVectors(id: string): Promise<unknown> {
|
|
112
|
+
return await this.delete(`/user/delete-vectors/${id}`)
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public async deleteUserPasses(body: {
|
|
116
|
+
personnel_number: number
|
|
117
|
+
}): Promise<{ delete_passes: boolean; user: Partial<Api_User> }> {
|
|
118
|
+
return await this.post('admin/delete/passes', body)
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
public async checkUserBeforeArchive(body: { user_id: string }): Promise<any> {
|
|
122
|
+
return await this.post('users/check_user_before_archive', body)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
public async getListVisitorLog(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>> {
|
|
126
|
+
return await this.get(`get_list_visitor_log`, { params })
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
public entryVisitorLog(body: { user_id: string; task_id: string }): Promise<Api_Visitor_Dto> {
|
|
130
|
+
return this.post('entry_visitor_log', body)
|
|
131
|
+
}
|
|
132
|
+
public async exitVisitorLog(id: string): Promise<Api_Visitor_Dto> {
|
|
133
|
+
return await this.post(`exit_visitor_log/${id}`, {})
|
|
134
|
+
}
|
|
135
|
+
public async deleteVisitorLog(): Promise<any> {
|
|
136
|
+
return await this.post(`delete_not_in_zone_visitor_log`, {})
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
public findUserByVideo(data: any): Promise<any> {
|
|
140
|
+
return this.post<any, Api_Auth_Login>(`/user/recognition`, data, {
|
|
141
|
+
transformRequest: d => d,
|
|
142
|
+
})
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
let api: UserService
|
|
147
|
+
|
|
148
|
+
export default function useUserService() {
|
|
149
|
+
if (!api) api = new UserService()
|
|
150
|
+
return api
|
|
151
|
+
}
|