xyvcard-wechat-auth 0.0.26 → 0.0.27
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/api/auth/index.d.ts +1 -1
- package/dist/api/auth/index.js +3 -2
- package/dist/api/auth/types.d.ts +11 -0
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/api/auth/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare class AuthApiImpl {
|
|
|
12
12
|
updateUser(data: any): Promise<ResponseData<any>>;
|
|
13
13
|
updatePwd(encodeOldPwd: string, encodeNewPwd: string): Promise<ResponseData<any>>;
|
|
14
14
|
deptTree(deptId?: string): Promise<ResponseData<any>>;
|
|
15
|
-
jobTree(): Promise<ResponseData<any>>;
|
|
15
|
+
jobTree(jobId?: string): Promise<ResponseData<any>>;
|
|
16
16
|
updateUserInfo(data: UpdateUserReq): Promise<ResponseData<UserInfo>>;
|
|
17
17
|
replaceBindphone(data: PhoneNumberReq): Promise<ResponseData<boolean>>;
|
|
18
18
|
findUserInfo(data: UserInfoReq): Promise<ResponseData<UserInfo>>;
|
package/dist/api/auth/index.js
CHANGED
|
@@ -111,11 +111,12 @@ class AuthApiImpl {
|
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
// 职务Tree
|
|
114
|
-
jobTree() {
|
|
114
|
+
jobTree(jobId) {
|
|
115
115
|
const query = {
|
|
116
116
|
tenant: db.getUserTenant(),
|
|
117
117
|
roleType: "job",
|
|
118
|
-
hasRoleType: true
|
|
118
|
+
hasRoleType: true,
|
|
119
|
+
excludeId: jobId
|
|
119
120
|
};
|
|
120
121
|
return request({
|
|
121
122
|
url: "/v1/rbac/role/treelist",
|
package/dist/api/auth/types.d.ts
CHANGED
|
@@ -56,3 +56,14 @@ export interface UpdateUserReq {
|
|
|
56
56
|
export interface UserInfoReq {
|
|
57
57
|
tenant?: string;
|
|
58
58
|
}
|
|
59
|
+
export interface RoleModel {
|
|
60
|
+
roleId?: string;
|
|
61
|
+
roleName?: string;
|
|
62
|
+
roleType?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface DeptModel {
|
|
65
|
+
deptId?: string;
|
|
66
|
+
deptName?: string;
|
|
67
|
+
deptType?: string;
|
|
68
|
+
parentId?: string;
|
|
69
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type { RequestData, ResponseData, RequestHeader, CustomEvent } from "./ap
|
|
|
9
9
|
export { Dict } from "./api/index";
|
|
10
10
|
export { EntryDict, EnumDict } from "./api/dicts";
|
|
11
11
|
export { authApi } from "./api/auth/index";
|
|
12
|
-
export type { LoginReq, LoginRes, PhoneNumberReq, RefreshTokenReq, TokenRes, RolesPerms, UserInfo, UpdateUserReq, UserInfoReq } from "./api/auth/types";
|
|
12
|
+
export type { LoginReq, LoginRes, PhoneNumberReq, RefreshTokenReq, TokenRes, RolesPerms, UserInfo, UpdateUserReq, UserInfoReq, RoleModel, DeptModel } from "./api/auth/types";
|
|
13
13
|
export { dictApi } from "./api/dict/index";
|
|
14
14
|
export type { Entry, DictEntryModel, DictEntryReq } from "./api/dict/types";
|
|
15
15
|
export { fileApi } from "./api/files/index";
|