@ningboyz/apis 1.0.72 → 1.0.73
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/package.json +2 -2
- package/packages/core/types.ts +12 -0
- package/packages/core/user.ts +13 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.73",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "宁波甬政请求库",
|
|
6
6
|
"author": "nbyt-syq",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"registry": "https://registry.npmjs.org/"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ningboyz/types": "1.0.
|
|
20
|
+
"@ningboyz/types": "1.0.73",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/core/types.ts
CHANGED
|
@@ -398,6 +398,18 @@ export class TCoreUserUpdatemmQuerys implements ICoreUserUpdatemmQuerys {
|
|
|
398
398
|
pswd4old: string = "";
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
export interface ICoreUserClearpwdQuerys {
|
|
402
|
+
whobuild: number;
|
|
403
|
+
userindx: number;
|
|
404
|
+
initpswd: number;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export class TCoreUserClearpwdQuerys implements ICoreUserClearpwdQuerys {
|
|
408
|
+
whobuild: number = -1;
|
|
409
|
+
userindx: number = -1;
|
|
410
|
+
initpswd: number = -1;
|
|
411
|
+
}
|
|
412
|
+
|
|
401
413
|
export interface ICoreUserMobileidUpdatedbQuerys {
|
|
402
414
|
whobuild: number;
|
|
403
415
|
userindx: number;
|
package/packages/core/user.ts
CHANGED
|
@@ -17,7 +17,8 @@ import {
|
|
|
17
17
|
ICoreUserSendMessageQuerys,
|
|
18
18
|
ICoreUserSourcendSet4kjndQuerys,
|
|
19
19
|
ICoreUserUpdatemmQuerys,
|
|
20
|
-
ICoreUserVerifydbDingdingQuerys
|
|
20
|
+
ICoreUserVerifydbDingdingQuerys,
|
|
21
|
+
TCoreUserClearpwdQuerys
|
|
21
22
|
} from "./types";
|
|
22
23
|
|
|
23
24
|
class UserRequest {
|
|
@@ -182,13 +183,23 @@ class UserRequest {
|
|
|
182
183
|
|
|
183
184
|
/**
|
|
184
185
|
* 修改密码
|
|
185
|
-
* @param
|
|
186
|
+
* @param querys
|
|
186
187
|
* @param header
|
|
187
188
|
*/
|
|
188
189
|
updatemm(querys: ICoreUserUpdatemmQuerys, header: object) {
|
|
189
190
|
return this.httpRequest.post<string>("/core/tuser/updatemm", querys, undefined, header);
|
|
190
191
|
}
|
|
191
192
|
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* 重置密码
|
|
196
|
+
* @param querys
|
|
197
|
+
* @param params
|
|
198
|
+
*/
|
|
199
|
+
clearpwd(querys: TCoreUserClearpwdQuerys, params: object) {
|
|
200
|
+
return this.httpRequest.post<string>("/core/tuser/clearpwd", querys, params);
|
|
201
|
+
}
|
|
202
|
+
|
|
192
203
|
/**
|
|
193
204
|
* 更新用户信息(未登录修改手机号)
|
|
194
205
|
* @param querys
|