@ningboyz/wxmp 1.0.13 → 1.0.14

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,7 +1,9 @@
1
1
  import { IWxConfig } from '../../types';
2
2
  import { default as UserRequest } from './user';
3
+ import { default as UnitRequest } from './unit';
3
4
  declare class CoreClient {
4
5
  user: UserRequest;
6
+ unit: UnitRequest;
5
7
  private constructor();
6
8
  static create: (config: IWxConfig) => CoreClient;
7
9
  }
@@ -1,15 +1,17 @@
1
- import { createWxRequest as c } from "../../request/wxRequest.js";
1
+ import { createWxRequest as n } from "../../request/wxRequest.js";
2
2
  import o from "./user.js";
3
- class r {
3
+ import u from "./unit.js";
4
+ class t {
4
5
  user;
6
+ unit;
5
7
  constructor(e) {
6
- const s = c(e);
7
- this.user = new o(s);
8
+ const r = n(e);
9
+ this.user = new o(r), this.unit = new u(r);
8
10
  }
9
- static create = (e) => new r(e);
11
+ static create = (e) => new t(e);
10
12
  }
11
- const a = (t) => r.create(t);
13
+ const m = (s) => t.create(s);
12
14
  export {
13
- r as CoreClient,
14
- a as createCoreClient
15
+ t as CoreClient,
16
+ m as createCoreClient
15
17
  };
@@ -9,3 +9,12 @@ export declare class TWxLoginParams implements IWxLoginParams {
9
9
  encryptedData: string;
10
10
  iv: string;
11
11
  }
12
+ /** ========== unit ========== */
13
+ export interface ICoreUnitSelectdbQuerys {
14
+ unitmain: number;
15
+ queuesby: string;
16
+ }
17
+ export declare class TCoreUnitSelectdbQuerys implements ICoreUnitSelectdbQuerys {
18
+ unitmain: number;
19
+ queuesby: string;
20
+ }
@@ -1,8 +1,13 @@
1
- class e {
1
+ class a {
2
2
  code = "";
3
3
  encryptedData = "";
4
4
  iv = "";
5
5
  }
6
+ class s {
7
+ unitmain = -1;
8
+ queuesby = "-1";
9
+ }
6
10
  export {
7
- e as TWxLoginParams
11
+ s as TCoreUnitSelectdbQuerys,
12
+ a as TWxLoginParams
8
13
  };
@@ -0,0 +1,15 @@
1
+ import { TCore } from '@ningboyz/types';
2
+ import { WxRequest } from '../../request/wxRequest';
3
+ import { ICoreUnitSelectdbQuerys } from './types';
4
+ declare class UnitRequest {
5
+ private wxRequest;
6
+ constructor(wxRequest: WxRequest);
7
+ /**
8
+ * 获取单位列表
9
+ * @param querys
10
+ * @param params
11
+ * @returns
12
+ */
13
+ selectdb(querys: ICoreUnitSelectdbQuerys, params: object): Promise<import('@ningboyz/types/src/response').IResponse<TCore.IUnitResponse[]>>;
14
+ }
15
+ export default UnitRequest;
@@ -0,0 +1,18 @@
1
+ class u {
2
+ wxRequest;
3
+ constructor(t) {
4
+ this.wxRequest = t;
5
+ }
6
+ /**
7
+ * 获取单位列表
8
+ * @param querys
9
+ * @param params
10
+ * @returns
11
+ */
12
+ selectdb(t, e) {
13
+ return this.wxRequest.post("/gapi/core/tunit/selectdb", t, e);
14
+ }
15
+ }
16
+ export {
17
+ u as default
18
+ };
@@ -1,6 +1,6 @@
1
1
  import { TNoti } from '@ningboyz/types';
2
2
  import { WxRequest } from '../../request/wxRequest';
3
- import { INotiMainGet4NotiQuerys } from './types';
3
+ import { INotiMainDetaildbQuerys, INotiMainGet4NotiQuerys } from './types';
4
4
  declare class MainRequest {
5
5
  private wxRequest;
6
6
  constructor(wxRequest: WxRequest);
@@ -10,5 +10,12 @@ declare class MainRequest {
10
10
  * @returns
11
11
  */
12
12
  get4noti(querys: INotiMainGet4NotiQuerys): Promise<import('@ningboyz/types/src/response').IResponse<TNoti.INotiMainResponse[]>>;
13
+ /**
14
+ * 获取公告详情
15
+ * @param querys
16
+ * @param params
17
+ * @returns
18
+ */
19
+ detaildb(querys: INotiMainDetaildbQuerys, params: object): Promise<import('@ningboyz/types/src/response').IResponse<TNoti.INotiMainResponse[]>>;
13
20
  }
14
21
  export default MainRequest;
@@ -11,6 +11,15 @@ class s {
11
11
  get4noti(t) {
12
12
  return this.wxRequest.post("/gapi/noti/tmain/get4noti", t);
13
13
  }
14
+ /**
15
+ * 获取公告详情
16
+ * @param querys
17
+ * @param params
18
+ * @returns
19
+ */
20
+ detaildb(t, e) {
21
+ return this.wxRequest.post("/gapi/noti/tmain/detaildb", t, e);
22
+ }
14
23
  }
15
24
  export {
16
25
  s as default
@@ -7,3 +7,9 @@ export declare class TNotiMainGet4NotiQuerys implements INotiMainGet4NotiQuerys
7
7
  syspartc: number;
8
8
  sourcend: number;
9
9
  }
10
+ export interface INotiMainDetaildbQuerys {
11
+ notimain: number;
12
+ }
13
+ export declare class TNotiMainDetaildbQuerys implements INotiMainDetaildbQuerys {
14
+ notimain: number;
15
+ }
package/es/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { CoreClient, createCoreClient, IWxLoginParams, TWxLoginParams } from './client/core';
1
+ import { CoreClient, createCoreClient, IWxLoginParams, TWxLoginParams, ICoreUnitSelectdbQuerys, TCoreUnitSelectdbQuerys } from './client/core';
2
2
  import { NoticeClient, createNoticeClient, INotiMainGet4NotiQuerys, TNotiMainGet4NotiQuerys } from './client/noti';
3
3
  import { WxRequest, createWxRequest } from './request/wxRequest';
4
4
  import { IWxConfig, IWxInternalRequestConfig, IWxQueryParams, IWxRequestOptions, IWxResponse, TWxConfig, TWxHttpMethod, TWxInterceptorsRequest, TWxInterceptorsResponse } from './types';
5
- export { type CoreClient, createCoreClient, type NoticeClient, createNoticeClient, type INotiMainGet4NotiQuerys, TNotiMainGet4NotiQuerys, type WxRequest, createWxRequest, type IWxConfig, type IWxInternalRequestConfig, type IWxLoginParams, type IWxQueryParams, type IWxRequestOptions, type IWxResponse, type TWxHttpMethod, type TWxInterceptorsRequest, type TWxInterceptorsResponse, TWxConfig, TWxLoginParams };
5
+ export { type CoreClient, createCoreClient, type ICoreUnitSelectdbQuerys, TCoreUnitSelectdbQuerys, type NoticeClient, createNoticeClient, type INotiMainGet4NotiQuerys, TNotiMainGet4NotiQuerys, type WxRequest, createWxRequest, type IWxConfig, type IWxInternalRequestConfig, type IWxLoginParams, type IWxQueryParams, type IWxRequestOptions, type IWxResponse, type TWxHttpMethod, type TWxInterceptorsRequest, type TWxInterceptorsResponse, TWxConfig, TWxLoginParams };
package/es/index.js CHANGED
@@ -1,14 +1,15 @@
1
- import { createCoreClient as r } from "./client/core/index.js";
2
- import { createNoticeClient as x } from "./client/noti/index.js";
1
+ import { createCoreClient as o } from "./client/core/index.js";
2
+ import { createNoticeClient as i } from "./client/noti/index.js";
3
3
  import { createWxRequest as f } from "./request/wxRequest.js";
4
4
  import { TWxConfig as a } from "./types.js";
5
- import { TNotiMainGet4NotiQuerys as n } from "./client/noti/types.js";
6
- import { TWxLoginParams as C } from "./client/core/types.js";
5
+ import { TCoreUnitSelectdbQuerys as p, TWxLoginParams as c } from "./client/core/types.js";
6
+ import { TNotiMainGet4NotiQuerys as s } from "./client/noti/types.js";
7
7
  export {
8
- n as TNotiMainGet4NotiQuerys,
8
+ p as TCoreUnitSelectdbQuerys,
9
+ s as TNotiMainGet4NotiQuerys,
9
10
  a as TWxConfig,
10
- C as TWxLoginParams,
11
- r as createCoreClient,
12
- x as createNoticeClient,
11
+ c as TWxLoginParams,
12
+ o as createCoreClient,
13
+ i as createNoticeClient,
13
14
  f as createWxRequest
14
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/wxmp",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "private": false,
5
5
  "description": "宁波甬政微信小程序库",
6
6
  "author": "nbyt-syq",