@ningboyz/apis 1.2.74 → 1.2.76
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/skdw.ts +0 -8
- package/packages/core/types.ts +10 -0
- package/packages/core/user.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.76",
|
|
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.2.
|
|
20
|
+
"@ningboyz/types": "1.2.76",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
package/packages/core/skdw.ts
CHANGED
|
@@ -44,14 +44,6 @@ class SkdwRequest {
|
|
|
44
44
|
deletedb(querys: IEmptyQuerys, params: object) {
|
|
45
45
|
return this.httpRequest.post<TCore.IUserAcnoResponse[]>("/core/tskdw/deletedb", querys, params);
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 银行账号详情
|
|
50
|
-
* @returns
|
|
51
|
-
*/
|
|
52
|
-
detaildb(querys: IEmptyQuerys, params: object) {
|
|
53
|
-
return this.httpRequest.post<TCore.IUserAcnoResponse[]>("/core/tskdw/detaildb", querys, params);
|
|
54
|
-
}
|
|
55
47
|
}
|
|
56
48
|
|
|
57
49
|
export default SkdwRequest;
|
package/packages/core/types.ts
CHANGED
|
@@ -528,6 +528,16 @@ export class TCoreUserScanloginQuerys implements ICoreUserScanloginQuerys {
|
|
|
528
528
|
code: string = "";
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
+
export interface ICoreUserVerifydbAuthcodeQuerys {
|
|
532
|
+
authcode: string;
|
|
533
|
+
appid: string;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
export class TCoreUserVerifydbAuthcodeQuerys implements ICoreUserVerifydbAuthcodeQuerys {
|
|
538
|
+
authcode: string = "";
|
|
539
|
+
appid: string = "";
|
|
540
|
+
}
|
|
531
541
|
export interface ICoreUserVerifydbDingdingQuerys {
|
|
532
542
|
thirdapp: "DD" | "SSO" | "";
|
|
533
543
|
}
|
package/packages/core/user.ts
CHANGED
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
ICoreUserUploadd2Querys,
|
|
28
28
|
ICoreUserUploadd3Querys,
|
|
29
29
|
ICoreUserUploaddbQuerys,
|
|
30
|
+
ICoreUserVerifydbAuthcodeQuerys,
|
|
30
31
|
ICoreUserVerifydbDingdingQuerys
|
|
31
32
|
} from "./types";
|
|
32
33
|
import { IEmptyQuerys } from "../type";
|
|
@@ -334,6 +335,15 @@ class UserRequest {
|
|
|
334
335
|
return this.httpRequest.post<TCore.IUserResponse[]>(`${querys.ddurl}/dapi/user/get_userinfo_by_qrcode?appid=${querys.appid}&authcode=${querys.code}`);
|
|
335
336
|
}
|
|
336
337
|
|
|
338
|
+
/**
|
|
339
|
+
* 通过授权码登录
|
|
340
|
+
* @param querys
|
|
341
|
+
* @returns
|
|
342
|
+
*/
|
|
343
|
+
verifydbAuthcode(querys: ICoreUserVerifydbAuthcodeQuerys) {
|
|
344
|
+
return this.httpRequest.post<TCore.IUserResponse[]>(`/dapi/user/get_userinfo_by_authcode`, querys, undefined);
|
|
345
|
+
}
|
|
346
|
+
|
|
337
347
|
/**
|
|
338
348
|
* 扫码三方登录
|
|
339
349
|
* @param querys
|