lzh-common 0.0.7 → 0.0.8

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/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './category';
3
3
  export * from './goods';
4
4
  export * from './manager';
5
5
  export * from './material';
6
+ export * from './order';
6
7
  export * from './tenant';
7
8
  export * from './user';
8
9
  export * from './withdrawal';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA"}
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ export * from './category';
3
3
  export * from './goods';
4
4
  export * from './manager';
5
5
  export * from './material';
6
+ export * from './order';
6
7
  export * from './tenant';
7
8
  export * from './user';
8
9
  export * from './withdrawal';
@@ -0,0 +1,65 @@
1
+ import { GameZoneTS, OrderStatusTS, RefundStatusTS } from './base';
2
+ import { IGoodsInfoF2e } from './goods';
3
+ import { IUserInfoF2e } from './user';
4
+ /** 数据库存储的订单详情 */
5
+ export interface IOrderInfoDB {
6
+ /** 订单id */
7
+ id: number;
8
+ /** 商品ID,对应goods表的id字段 */
9
+ goods_id: number;
10
+ /** 用户付款的时候,商品的价格,防止后面又 */
11
+ goods_price: number;
12
+ /** 订单的状态 */
13
+ status: OrderStatusTS;
14
+ /** 付款交易单号,创建订单的时候生成 */
15
+ out_trade_no: string;
16
+ /** 用户实付款价格, 单位是元 */
17
+ pay_price: number;
18
+ /** 顾客的open_id */
19
+ customer_open_id: string | null;
20
+ /** 顾客游戏id */
21
+ customer_game_id: string;
22
+ /** 顾客游戏区服 */
23
+ customer_game_zone: GameZoneTS;
24
+ /** 顾客下单备注 */
25
+ customer_remark: string;
26
+ /** 接单的人的openId */
27
+ assignee_open_id: string | null;
28
+ /** 队友1的open_id, 不是一定有的 */
29
+ assignee_open_id_b1: string | null;
30
+ /** 队友2的open_id, 不是一定有的 */
31
+ assignee_open_id_b2: string | null;
32
+ /** 接单支持图片 */
33
+ support_images: string;
34
+ /** 退款相关 */
35
+ /** 退款申请状态 */
36
+ refund_status: RefundStatusTS;
37
+ /** 申请退款原因 */
38
+ refund_reason: string;
39
+ /** 申请退款备注 */
40
+ refund_remark: string;
41
+ /** 退款交易单号 */
42
+ refund_out_trade_no: string;
43
+ /** 支付成功的时间 */
44
+ pay_success_time: string;
45
+ /** 创建时间 */
46
+ create_time: string;
47
+ /** 更新时间 */
48
+ update_time: string;
49
+ }
50
+ export type IOrderInfoReturnToF2e = {
51
+ id: IOrderInfoDB['id'];
52
+ /** 订单详情 */
53
+ order_detail: Omit<IOrderInfoDB, 'support_images'> & {
54
+ support_images: {
55
+ name: string;
56
+ url: string;
57
+ }[];
58
+ };
59
+ goods_detail: IGoodsInfoF2e | null;
60
+ /** 下单老板 */
61
+ custom_user_detail: IUserInfoF2e | null;
62
+ /** 接单打手 */
63
+ assignee_user_detail: IUserInfoF2e | null;
64
+ };
65
+ //# sourceMappingURL=order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../src/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,MA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ACX,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,GAAG;QACnD,cAAc,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACjD,CAAC;IACF,YAAY,EAAE,aAAa,GAAG,IAAI,CAAC;IACnC,WAAW;IACX,kBAAkB,EAAE,YAAY,GAAG,IAAI,CAAC;IACxC,WAAW;IACX,oBAAoB,EAAE,YAAY,GAAG,IAAI,CAAC;CAC3C,CAAC"}
package/dist/order.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lzh-common",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Shared TypeScript interfaces",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -3,6 +3,7 @@ export * from './category'
3
3
  export * from './goods'
4
4
  export * from './manager'
5
5
  export * from './material'
6
+ export * from './order'
6
7
  export * from './tenant'
7
8
  export * from './user'
8
9
  export * from './withdrawal'
package/src/material.ts CHANGED
@@ -1,7 +1,9 @@
1
- export interface IMaterialInfo {
1
+ export interface IMaterialInfoDB {
2
2
  id: number;
3
3
  size: number;
4
4
  url: string;
5
5
  name: string;
6
6
  create_time: string;
7
7
  }
8
+
9
+ export type IMaterialInfoF2e = IMaterialInfoDB
package/src/order.ts ADDED
@@ -0,0 +1,69 @@
1
+ import { GameZoneTS, OrderStatusTS, RefundStatusTS } from './base';
2
+ import { IGoodsInfoF2e } from './goods';
3
+ import { IUserInfoF2e } from './user';
4
+
5
+ /** 数据库存储的订单详情 */
6
+ export interface IOrderInfoDB {
7
+ /** 订单id */
8
+ id: number;
9
+ /** 商品ID,对应goods表的id字段 */
10
+ goods_id: number;
11
+ /** 用户付款的时候,商品的价格,防止后面又 */
12
+ goods_price: number;
13
+
14
+ /** 订单的状态 */
15
+ status: OrderStatusTS;
16
+ /** 付款交易单号,创建订单的时候生成 */
17
+ out_trade_no: string;
18
+ /** 用户实付款价格, 单位是元 */
19
+ pay_price: number;
20
+
21
+ /** 顾客的open_id */
22
+ customer_open_id: string | null;
23
+ /** 顾客游戏id */
24
+ customer_game_id: string;
25
+ /** 顾客游戏区服 */
26
+ customer_game_zone: GameZoneTS;
27
+ /** 顾客下单备注 */
28
+ customer_remark: string;
29
+
30
+ /** 接单的人的openId */
31
+ assignee_open_id: string | null;
32
+ /** 队友1的open_id, 不是一定有的 */
33
+ assignee_open_id_b1: string | null;
34
+ /** 队友2的open_id, 不是一定有的 */
35
+ assignee_open_id_b2: string | null;
36
+ /** 接单支持图片 */
37
+ support_images: string;
38
+
39
+ /** 退款相关 */
40
+
41
+ /** 退款申请状态 */
42
+ refund_status: RefundStatusTS;
43
+ /** 申请退款原因 */
44
+ refund_reason: string;
45
+ /** 申请退款备注 */
46
+ refund_remark: string;
47
+ /** 退款交易单号 */
48
+ refund_out_trade_no: string;
49
+
50
+ /** 支付成功的时间 */
51
+ pay_success_time: string;
52
+ /** 创建时间 */
53
+ create_time: string;
54
+ /** 更新时间 */
55
+ update_time: string;
56
+ }
57
+
58
+ export type IOrderInfoReturnToF2e = {
59
+ id: IOrderInfoDB['id'];
60
+ /** 订单详情 */
61
+ order_detail: Omit<IOrderInfoDB, 'support_images'> & {
62
+ support_images: { name: string; url: string }[];
63
+ };
64
+ goods_detail: IGoodsInfoF2e | null;
65
+ /** 下单老板 */
66
+ custom_user_detail: IUserInfoF2e | null;
67
+ /** 接单打手 */
68
+ assignee_user_detail: IUserInfoF2e | null;
69
+ };