ms-types 0.0.19 → 0.0.20
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 +1 -1
- package/types/kushao.d.ts +17 -2
package/package.json
CHANGED
package/types/kushao.d.ts
CHANGED
|
@@ -31,10 +31,25 @@ declare namespace kushao {
|
|
|
31
31
|
*/
|
|
32
32
|
function verify(账号: string, 密码: string): boolean;
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* 获取用户密钥信息
|
|
36
|
+
* @param 账号 用户账号 或 卡密
|
|
37
|
+
* @param 密码 用户密码 卡密时传空字符串
|
|
38
|
+
* @returns 密钥信息
|
|
39
|
+
* @example
|
|
40
|
+
* const keyInfo = kushao.getKeyInfo("testuser", "password123");
|
|
41
|
+
* if (keyInfo) {
|
|
42
|
+
* logger.info(`密钥信息: ${keyInfo}`);
|
|
43
|
+
* } else {
|
|
44
|
+
* logger.error("获取密钥信息失败");
|
|
45
|
+
* }
|
|
46
|
+
*/
|
|
47
|
+
function getKeyInfo(账号: string, 密码: string): string;
|
|
48
|
+
|
|
34
49
|
/**
|
|
35
50
|
* 换机操作
|
|
36
|
-
* @param 账号 用户账号
|
|
37
|
-
* @param 密码 用户密码
|
|
51
|
+
* @param 账号 用户账号 或 卡密
|
|
52
|
+
* @param 密码 用户密码 卡密时传空字符串
|
|
38
53
|
* @returns 换机结果
|
|
39
54
|
* @example
|
|
40
55
|
* const success = kushao.changeDev("testuser", "password123");
|