baja-lite 1.1.3 → 1.1.4
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/.eslintignore +7 -0
- package/.eslintrc.cjs +89 -0
- package/.prettierrc +4 -0
- package/ci.js +29 -0
- package/package-cjs.json +17 -0
- package/package.json +6 -6
- package/{boot-remote.js → src/boot-remote.ts} +7 -6
- package/{boot.js → src/boot.ts} +39 -32
- package/{code.js → src/code.ts} +67 -64
- package/{convert-xml.js → src/convert-xml.ts} +155 -105
- package/src/enum.ts +71 -0
- package/src/error.ts +11 -0
- package/src/fn.ts +295 -0
- package/{index.d.ts → src/index.ts} +11 -11
- package/{list.js → src/list.ts} +9 -8
- package/src/math.ts +405 -0
- package/src/object.ts +247 -0
- package/src/set-ex.ts +374 -0
- package/src/sql.ts +5281 -0
- package/{sqlite.js → src/sqlite.ts} +52 -53
- package/src/string.ts +111 -0
- package/{test-mysql.js → src/test-mysql.ts} +126 -135
- package/src/test-postgresql.ts +79 -0
- package/{test-sqlite.js → src/test-sqlite.ts} +80 -89
- package/{test-xml.js → src/test-xml.ts} +1 -1
- package/src/test.ts +2 -0
- package/src/wx/base.ts +76 -0
- package/src/wx/mini.ts +133 -0
- package/src/wx/organ.ts +290 -0
- package/{wx/types.d.ts → src/wx/types.ts} +10 -21
- package/test.json +0 -0
- package/tsconfig.base.json +80 -0
- package/tsconfig.cjs.json +42 -0
- package/tsconfig.json +44 -0
- package/xml/event-report.xml +13 -0
- package/yarn.lock +1493 -0
- package/boot-remote.d.ts +0 -2
- package/boot.d.ts +0 -2
- package/code.d.ts +0 -2
- package/convert-xml.d.ts +0 -10
- package/enum.d.ts +0 -18
- package/enum.js +0 -59
- package/error.d.ts +0 -5
- package/error.js +0 -13
- package/fn.d.ts +0 -128
- package/fn.js +0 -172
- package/index.js +0 -11
- package/list.d.ts +0 -10
- package/math.d.ts +0 -83
- package/math.js +0 -451
- package/object.d.ts +0 -83
- package/object.js +0 -222
- package/set-ex.d.ts +0 -198
- package/set-ex.js +0 -338
- package/sql.d.ts +0 -1858
- package/sql.js +0 -5025
- package/sqlite.d.ts +0 -32
- package/string.d.ts +0 -17
- package/string.js +0 -105
- package/test-mysql.d.ts +0 -2
- package/test-postgresql.d.ts +0 -2
- package/test-postgresql.js +0 -90
- package/test-sqlite.d.ts +0 -1
- package/test-xml.d.ts +0 -1
- package/test.d.ts +0 -1
- package/test.js +0 -2
- package/wx/base.d.ts +0 -11
- package/wx/base.js +0 -78
- package/wx/mini.d.ts +0 -45
- package/wx/mini.js +0 -102
- package/wx/organ.d.ts +0 -65
- package/wx/organ.js +0 -171
- package/wx/types.js +0 -1
- package/wx.js +0 -3
- /package/{README.md → Readme.md} +0 -0
- /package/{wx.d.ts → src/wx.ts} +0 -0
|
@@ -15,13 +15,9 @@ export interface WxOrganUser {
|
|
|
15
15
|
telephone?: string;
|
|
16
16
|
avatar_mediaid?: string;
|
|
17
17
|
enable?: 1 | 0;
|
|
18
|
-
extattr?: {
|
|
19
|
-
[key: string]: string | number;
|
|
20
|
-
};
|
|
18
|
+
extattr?: { [key: string]: string | number };
|
|
21
19
|
to_invite?: boolean;
|
|
22
|
-
external_profile?: {
|
|
23
|
-
[key: string]: string | number;
|
|
24
|
-
};
|
|
20
|
+
external_profile?: { [key: string]: string | number };
|
|
25
21
|
external_position?: string;
|
|
26
22
|
address?: string;
|
|
27
23
|
}
|
|
@@ -92,6 +88,7 @@ export interface WxCreatedorder {
|
|
|
92
88
|
};
|
|
93
89
|
};
|
|
94
90
|
}
|
|
91
|
+
|
|
95
92
|
export interface WxPayToUserResponse {
|
|
96
93
|
payment_no: string;
|
|
97
94
|
partner_trade_no: string;
|
|
@@ -134,7 +131,7 @@ export interface WxCreateOrderResult {
|
|
|
134
131
|
mweb_url?: string;
|
|
135
132
|
dataCacheId?: string;
|
|
136
133
|
devCacheId?: string;
|
|
137
|
-
}
|
|
134
|
+
}/** 微信退款返回结果 */
|
|
138
135
|
export interface WxRefResult {
|
|
139
136
|
dataCacheId?: string;
|
|
140
137
|
devCacheId?: string;
|
|
@@ -276,9 +273,7 @@ export interface WxPay {
|
|
|
276
273
|
* 通过这个参数可以将 当前支付发起时用户 追加到回调的上下文中
|
|
277
274
|
* @memberof WxPay
|
|
278
275
|
*/
|
|
279
|
-
unifiedorder(wxOrderOption: WxCreatedorder, dataCache?: {
|
|
280
|
-
[key: string]: any;
|
|
281
|
-
}, devid?: string): Promise<WxCreateOrderResult>;
|
|
276
|
+
unifiedorder(wxOrderOption: WxCreatedorder, dataCache?: { [key: string]: any }, devid?: string): Promise<WxCreateOrderResult>;
|
|
282
277
|
/**
|
|
283
278
|
*
|
|
284
279
|
* https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_2
|
|
@@ -320,9 +315,7 @@ export interface WxPay {
|
|
|
320
315
|
* @returns {Promise<void>}
|
|
321
316
|
* @memberof WxPay
|
|
322
317
|
*/
|
|
323
|
-
refund(option: WxCreateRefundOrder, dataCache?: {
|
|
324
|
-
[key: string]: any;
|
|
325
|
-
}, devid?: string): Promise<WxRefResult>;
|
|
318
|
+
refund(option: WxCreateRefundOrder, dataCache?: { [key: string]: any }, devid?: string): Promise<WxRefResult>;
|
|
326
319
|
/**
|
|
327
320
|
*
|
|
328
321
|
* https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_5
|
|
@@ -339,6 +332,7 @@ export interface WxPay {
|
|
|
339
332
|
resetDataCache(dataCache: {
|
|
340
333
|
[key: string]: any;
|
|
341
334
|
}, dataCacheId: string): Promise<void>;
|
|
335
|
+
|
|
342
336
|
/**
|
|
343
337
|
* 修改支付、退款时缓存的会话id
|
|
344
338
|
* @param devid
|
|
@@ -352,11 +346,7 @@ export interface WxMiniConfig {
|
|
|
352
346
|
/** 小程序二维码设置 */
|
|
353
347
|
qrcode?: {
|
|
354
348
|
/** 线条颜色 */
|
|
355
|
-
lineColor?: {
|
|
356
|
-
r: number;
|
|
357
|
-
g: number;
|
|
358
|
-
b: number;
|
|
359
|
-
};
|
|
349
|
+
lineColor?: { r: number; g: number; b: number };
|
|
360
350
|
/** 宽度 */
|
|
361
351
|
width?: number;
|
|
362
352
|
};
|
|
@@ -468,6 +458,7 @@ export interface WxOrganConfig {
|
|
|
468
458
|
msgtype: 'text' | 'image' | 'voice' | 'video' | 'file' | 'textcard' | 'news' | 'mpnews' | 'markdown' | 'taskcard';
|
|
469
459
|
safe?: 0 | 1;
|
|
470
460
|
}>;
|
|
461
|
+
|
|
471
462
|
/**
|
|
472
463
|
*
|
|
473
464
|
* 接口模拟调用?
|
|
@@ -480,9 +471,7 @@ export interface WxOrganConfig {
|
|
|
480
471
|
export interface WxOrganMini {
|
|
481
472
|
title: string;
|
|
482
473
|
description?: string;
|
|
483
|
-
content_item?: {
|
|
484
|
-
[key: string]: string;
|
|
485
|
-
};
|
|
474
|
+
content_item?: { [key: string]: string };
|
|
486
475
|
emphasis_first_item?: boolean;
|
|
487
476
|
}
|
|
488
477
|
export interface WxOrganText {
|
package/test.json
ADDED
|
File without changes
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// {
|
|
2
|
+
// "files": [],
|
|
3
|
+
// "extends": [],
|
|
4
|
+
// "include": [
|
|
5
|
+
// "src/**/*"
|
|
6
|
+
// ],
|
|
7
|
+
// "exclude": [
|
|
8
|
+
// "node_modules",
|
|
9
|
+
// "dist",
|
|
10
|
+
// "test/**/*",
|
|
11
|
+
// "*.spec.ts"
|
|
12
|
+
// ],
|
|
13
|
+
// "references": [],
|
|
14
|
+
// "compilerOptions": {
|
|
15
|
+
// "alwaysStrict": true,
|
|
16
|
+
// "allowJs": false,
|
|
17
|
+
// "baseUrl": "./src",
|
|
18
|
+
// "declaration": true,
|
|
19
|
+
// "emitDecoratorMetadata": true,
|
|
20
|
+
// "experimentalDecorators": true,
|
|
21
|
+
// "esModuleInterop": true,
|
|
22
|
+
// "noPropertyAccessFromIndexSignature": true,
|
|
23
|
+
// "noUncheckedIndexedAccess": true,
|
|
24
|
+
// "importHelpers": true,
|
|
25
|
+
// "module": "ES2022",
|
|
26
|
+
// "noImplicitAny": false,
|
|
27
|
+
// "outDir": "./dist",
|
|
28
|
+
// "paths": {},
|
|
29
|
+
// "removeComments": false,
|
|
30
|
+
// "rootDir": "./src",
|
|
31
|
+
// "skipLibCheck": false,
|
|
32
|
+
// "sourceMap": false,
|
|
33
|
+
// "strict": true,
|
|
34
|
+
// "strictNullChecks": true,
|
|
35
|
+
// "target": "ES2022",
|
|
36
|
+
// "useUnknownInCatchVariables": false
|
|
37
|
+
// }
|
|
38
|
+
// }
|
|
39
|
+
{
|
|
40
|
+
"include": [
|
|
41
|
+
"src/**/*"
|
|
42
|
+
],
|
|
43
|
+
"exclude": [
|
|
44
|
+
"node_modules",
|
|
45
|
+
"dist",
|
|
46
|
+
"test/**/*",
|
|
47
|
+
"*.spec.ts"
|
|
48
|
+
],
|
|
49
|
+
"compilerOptions": {
|
|
50
|
+
"outDir": "dist",
|
|
51
|
+
"target": "ES2020",
|
|
52
|
+
"module": "esnext",
|
|
53
|
+
"baseUrl": "./src",
|
|
54
|
+
"rootDir": "./src",
|
|
55
|
+
"sourceMap": false,
|
|
56
|
+
"moduleResolution": "node",
|
|
57
|
+
"allowJs": false,
|
|
58
|
+
"strict": true,
|
|
59
|
+
"declaration": true,
|
|
60
|
+
"noUnusedLocals": true,
|
|
61
|
+
"emitDecoratorMetadata": true,
|
|
62
|
+
"strictNullChecks": true,
|
|
63
|
+
"composite": true,
|
|
64
|
+
"experimentalDecorators": true,
|
|
65
|
+
"resolveJsonModule": true,
|
|
66
|
+
"allowSyntheticDefaultImports": true,
|
|
67
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
68
|
+
"useUnknownInCatchVariables": false,
|
|
69
|
+
"noUncheckedIndexedAccess": true,
|
|
70
|
+
"noImplicitAny": false,
|
|
71
|
+
"esModuleInterop": true,
|
|
72
|
+
"removeComments": false,
|
|
73
|
+
"types": [],
|
|
74
|
+
"paths": {
|
|
75
|
+
"@element-plus/*": [
|
|
76
|
+
"packages/*"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": [
|
|
3
|
+
"src/**/*"
|
|
4
|
+
],
|
|
5
|
+
"exclude": [
|
|
6
|
+
"node_modules",
|
|
7
|
+
"dist",
|
|
8
|
+
"test/**/*",
|
|
9
|
+
"*.spec.ts"
|
|
10
|
+
],
|
|
11
|
+
"compilerOptions": {
|
|
12
|
+
"target": "ES2020",
|
|
13
|
+
"baseUrl": "./src",
|
|
14
|
+
"rootDir": "./src",
|
|
15
|
+
"sourceMap": false,
|
|
16
|
+
"moduleResolution": "node",
|
|
17
|
+
"allowJs": false,
|
|
18
|
+
"strict": true,
|
|
19
|
+
"declaration": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"emitDecoratorMetadata": true,
|
|
22
|
+
"strictNullChecks": true,
|
|
23
|
+
"composite": true,
|
|
24
|
+
"experimentalDecorators": true,
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
"allowSyntheticDefaultImports": true,
|
|
27
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
28
|
+
"useUnknownInCatchVariables": false,
|
|
29
|
+
"noUncheckedIndexedAccess": true,
|
|
30
|
+
"noImplicitAny": false,
|
|
31
|
+
"esModuleInterop": true,
|
|
32
|
+
"removeComments": false,
|
|
33
|
+
"types": [],
|
|
34
|
+
"paths": {
|
|
35
|
+
"@element-plus/*": [
|
|
36
|
+
"packages/*"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"module": "commonjs",
|
|
40
|
+
"outDir": "./dist-cjs"
|
|
41
|
+
}
|
|
42
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": [
|
|
3
|
+
"src/**/*"
|
|
4
|
+
],
|
|
5
|
+
"exclude": [
|
|
6
|
+
"node_modules",
|
|
7
|
+
"dist",
|
|
8
|
+
"test/**/*",
|
|
9
|
+
"*.spec.ts"
|
|
10
|
+
],
|
|
11
|
+
"compilerOptions": {
|
|
12
|
+
"target": "ES2020",
|
|
13
|
+
"module": "esnext",
|
|
14
|
+
"baseUrl": "./src",
|
|
15
|
+
"rootDir": "./src",
|
|
16
|
+
"sourceMap": false,
|
|
17
|
+
"moduleResolution": "node",
|
|
18
|
+
"allowJs": false,
|
|
19
|
+
"strict": true,
|
|
20
|
+
"declaration": true,
|
|
21
|
+
"noUnusedLocals": true,
|
|
22
|
+
"emitDecoratorMetadata": true,
|
|
23
|
+
"strictNullChecks": true,
|
|
24
|
+
"composite": true,
|
|
25
|
+
"experimentalDecorators": true,
|
|
26
|
+
"resolveJsonModule": true,
|
|
27
|
+
"allowSyntheticDefaultImports": true,
|
|
28
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
29
|
+
"useUnknownInCatchVariables": false,
|
|
30
|
+
"noUncheckedIndexedAccess": true,
|
|
31
|
+
"noImplicitAny": false,
|
|
32
|
+
"esModuleInterop": true,
|
|
33
|
+
"removeComments": false,
|
|
34
|
+
"paths": {
|
|
35
|
+
"@element-plus/*": [
|
|
36
|
+
"packages/*"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"lib": ["ESNext"],
|
|
40
|
+
"types": ["node"],
|
|
41
|
+
"skipLibCheck": true,
|
|
42
|
+
"outDir": "./dist"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
3
|
+
<mapper namespace="org.jeecg.modules.system.mapper.SysUserDataPermissionMapper">
|
|
4
|
+
<insert id="addDataPermissionByDataId">
|
|
5
|
+
insert into sys_user_data_permission (eventh_user_id,data_id,user_id,data_type)
|
|
6
|
+
<foreach collection="dataPermission.userIds" open="(" close=")" item="userId" separator="),(" >
|
|
7
|
+
UUID_SHORT(),#{dataPermission.dataId},#{userId},#{dataPermission.dataType}
|
|
8
|
+
</foreach>
|
|
9
|
+
</insert>
|
|
10
|
+
<select id="getDataPermissionByDataId" resultType="java.lang.String">
|
|
11
|
+
select user_id from sys_user_data_permission where #{dataId}
|
|
12
|
+
</select>
|
|
13
|
+
</mapper>
|