lzh-common 0.0.209 → 0.0.210

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.
@@ -8,7 +8,7 @@ export interface IMessageDB {
8
8
  /** 接收方用户ID */
9
9
  receiver_user_id: number;
10
10
  /** 消息内容 */
11
- content: number;
11
+ content: string;
12
12
  /** 是否已读:0-未读,1-已读 */
13
13
  is_read: number;
14
14
  /** 创建时间 */
@@ -1,7 +1,8 @@
1
1
  import { IMessageDB } from "./base.js";
2
2
  export interface IMessageClientListOfOrderReq {
3
3
  filters: {
4
- order_id: string;
4
+ order_id?: string;
5
+ last_message_id?: number;
5
6
  };
6
7
  }
7
8
  export type IMessageClientListOfOrderRes = IMessageDB;
@@ -11,6 +12,9 @@ export interface IMessageClientSendReq {
11
12
  sender_user_id: IMessageDB['sender_user_id'];
12
13
  receiver_user_id: IMessageDB['receiver_user_id'];
13
14
  }
15
+ export type IMessageClientSendRes = {
16
+ insertId: number;
17
+ };
14
18
  export interface IMessageClientSetIsReadReq {
15
19
  message_id: IMessageDB['id'];
16
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/message/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAOvC,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF;AAED,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAA;AAMrD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC7C,gBAAgB,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CAClD;AAGD,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;CAC7B"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/message/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAOvC,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE;QACP,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAA;CACF;AAED,MAAM,MAAM,4BAA4B,GAAG,UAAU,CAAA;AAMrD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC7C,gBAAgB,EAAE,UAAU,CAAC,kBAAkB,CAAC,CAAC;CAClD;AAID,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAGD,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;CAC7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lzh-common",
3
- "version": "0.0.209",
3
+ "version": "0.0.210",
4
4
  "description": "Shared TypeScript interfaces",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",