@cicctencent/midwayjs-base 1.0.38 → 1.0.40

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.
@@ -1,54 +1,54 @@
1
- import { type Session } from '@fefeding/common/dist/models/account/session';
2
- import { type LoggerOption } from '@fefeding/common/dist/utils/logger';
3
- import { ILogger, MidwayAppInfo } from '@midwayjs/core';
4
-
5
- declare module '@midwayjs/core/dist/interface' {
6
- interface MidwayConfig {
7
-
8
- }
9
- interface Context {
10
-
11
- }
12
- }
13
-
14
- // 扩展 MidwayAppInfo 接口,添加自定义属性
15
- declare module '@midwayjs/core' {
16
- interface MidwayAppInfo {
17
- dist: string;
18
- webDist: string;
19
- webPublic: string;
20
- appId: number;
21
- }
22
- }
23
-
24
- declare module '@midwayjs/koa/dist/interface' {
25
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
26
- interface Context {
27
- /**
28
- * 当前登陆态
29
- */
30
- currentSession?: Session;
31
- /**
32
- * 当前登陆态token
33
- */
34
- auth_token?: string;
35
- clientIP?: string; // 客户IP
36
- // 当当请
37
- detect: {
38
- IS_MOBILE: boolean,
39
- IS_MQQ: boolean,
40
- IS_WEIXIN: boolean,
41
- IS_WECHATTOOLS: boolean,
42
- IS_PCWEIXIN: boolean,
43
- IS_WXWORK: boolean,
44
- IS_MINA: boolean,
45
- REQUESTIP: string,
46
- HOSTNAME: string,
47
- CLIENTIP: string,
48
- },
49
- logger: ILogger & {
50
- // 设置环境变量
51
- setOptions(options: LoggerOption): void;
52
- };
53
- }
54
- }
1
+ import { type Session } from '@fefeding/common/dist/models/account/session';
2
+ import { type LoggerOption } from '@fefeding/common/dist/utils/logger';
3
+ import { ILogger, MidwayAppInfo } from '@midwayjs/core';
4
+
5
+ declare module '@midwayjs/core/dist/interface' {
6
+ interface MidwayConfig {
7
+
8
+ }
9
+ interface Context {
10
+
11
+ }
12
+ }
13
+
14
+ // 扩展 MidwayAppInfo 接口,添加自定义属性
15
+ declare module '@midwayjs/core' {
16
+ interface MidwayAppInfo {
17
+ dist: string;
18
+ webDist: string;
19
+ webPublic: string;
20
+ appId: number;
21
+ }
22
+ }
23
+
24
+ declare module '@midwayjs/koa/dist/interface' {
25
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
26
+ interface Context {
27
+ /**
28
+ * 当前登陆态
29
+ */
30
+ currentSession?: Session;
31
+ /**
32
+ * 当前登陆态token
33
+ */
34
+ auth_token?: string;
35
+ clientIP?: string; // 客户IP
36
+ // 当当请
37
+ detect: {
38
+ IS_MOBILE: boolean,
39
+ IS_MQQ: boolean,
40
+ IS_WEIXIN: boolean,
41
+ IS_WECHATTOOLS: boolean,
42
+ IS_PCWEIXIN: boolean,
43
+ IS_WXWORK: boolean,
44
+ IS_MINA: boolean,
45
+ REQUESTIP: string,
46
+ HOSTNAME: string,
47
+ CLIENTIP: string,
48
+ },
49
+ logger: ILogger & {
50
+ // 设置环境变量
51
+ setOptions(options: LoggerOption): void;
52
+ };
53
+ }
54
+ }