lzh-common 0.0.137 → 0.0.139
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/goods.d.ts +60 -27
- package/dist/goods.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/goods.d.ts
CHANGED
|
@@ -2,46 +2,46 @@ import { MoneyDECIMALTs } from "./base.js";
|
|
|
2
2
|
import { IF2ePaginationReqData } from "./http.js";
|
|
3
3
|
/** 商品状态 */
|
|
4
4
|
export type GoodsStatusTS = 'active' | 'inactive';
|
|
5
|
-
/**
|
|
5
|
+
export type GoodsType = /** 普通商品 */ 'normal' |
|
|
6
|
+
/** 抽奖商品 */
|
|
7
|
+
'prize';
|
|
6
8
|
export interface IGoodsInfoDB {
|
|
7
|
-
/** TINYINT(1) COMMENT '商品类型,0:普通商品,1:抽奖商品' */
|
|
8
|
-
type:
|
|
9
|
-
/** 普通商品 */
|
|
10
|
-
'normal' |
|
|
11
|
-
/** 抽奖商品 */
|
|
12
|
-
'prize';
|
|
13
9
|
id: number;
|
|
14
|
-
/**
|
|
10
|
+
/** 商品名称 */
|
|
11
|
+
name: string;
|
|
12
|
+
/** 所属类别id */
|
|
15
13
|
category_id: number;
|
|
16
|
-
/**
|
|
14
|
+
/** 所属板块id */
|
|
17
15
|
plate_id: number;
|
|
18
16
|
/** 排序 */
|
|
19
17
|
sequence: number;
|
|
20
18
|
/** 商品的库存,目前用户购买和退款都不会更新,目前用来控制商品是否支持购买,如果为0则不支持购买 */
|
|
21
19
|
inventory_count: number;
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
name: string;
|
|
27
|
-
weight: number;
|
|
28
|
-
}[];
|
|
29
|
-
/** 商品名称 */
|
|
30
|
-
name: string;
|
|
20
|
+
/** 商品简述 */
|
|
21
|
+
description: string;
|
|
22
|
+
/** 商品富文本描述 */
|
|
23
|
+
rich_text_detail: string;
|
|
31
24
|
/** 价格 */
|
|
32
25
|
price: MoneyDECIMALTs;
|
|
33
26
|
/** 指导价格,仅用于划线展示 */
|
|
34
27
|
guide_price: MoneyDECIMALTs;
|
|
35
28
|
/** 手续费 */
|
|
36
29
|
service_charge: number;
|
|
37
|
-
/** 商品简述 */
|
|
38
|
-
description: string;
|
|
39
|
-
/** 商品富文本描述 */
|
|
40
|
-
rich_text_detail: string;
|
|
41
30
|
/** 封面图片 */
|
|
42
31
|
cover_url: string;
|
|
32
|
+
/** 商品轮播图 */
|
|
33
|
+
carousel_images: string[] | null;
|
|
43
34
|
/** 是否允许购买 */
|
|
44
35
|
status: GoodsStatusTS;
|
|
36
|
+
/** TINYINT(1) COMMENT '商品类型,0:普通商品,1:抽奖商品' */
|
|
37
|
+
type: GoodsType;
|
|
38
|
+
/** 奖项信息 */
|
|
39
|
+
prize_list: {
|
|
40
|
+
name: string;
|
|
41
|
+
weight: number;
|
|
42
|
+
}[];
|
|
43
|
+
/** 被删除,1表示被删除 */
|
|
44
|
+
is_deleted: 0 | 1 | null;
|
|
45
45
|
/** 对应的租户二级域名 */
|
|
46
46
|
tenant_domain: string;
|
|
47
47
|
/** 创建时间, YYYY-MM-DD HH:mm:ss */
|
|
@@ -65,10 +65,43 @@ export type IGoodsListSystemReq = IF2ePaginationReqData & {
|
|
|
65
65
|
/** 请求参数: 商品详情 */
|
|
66
66
|
export type IGoodsReqInfo = Pick<IGoodsInfoF2e, 'id'>;
|
|
67
67
|
/** 新增商品的请求参数 */
|
|
68
|
-
export type IGoodsInfoReqAdd =
|
|
68
|
+
export type IGoodsInfoReqAdd = {
|
|
69
|
+
/** 商品名称 */
|
|
70
|
+
name: IGoodsInfoDB['name'];
|
|
71
|
+
/** 所属类别id */
|
|
72
|
+
category_id: IGoodsInfoDB['category_id'];
|
|
73
|
+
/** 所属板块id */
|
|
74
|
+
plate_id?: IGoodsInfoDB['plate_id'];
|
|
75
|
+
/** 排序 */
|
|
76
|
+
sequence: IGoodsInfoDB['sequence'];
|
|
77
|
+
/** 商品的库存,目前用户购买和退款都不会更新,目前用来控制商品是否支持购买,如果为0则不支持购买 */
|
|
78
|
+
inventory_count: IGoodsInfoDB['inventory_count'];
|
|
79
|
+
/** 商品简述 */
|
|
80
|
+
description: IGoodsInfoDB['description'];
|
|
81
|
+
/** 商品富文本描述 */
|
|
82
|
+
rich_text_detail: IGoodsInfoDB['rich_text_detail'];
|
|
83
|
+
/** 价格 */
|
|
84
|
+
price: IGoodsInfoDB['price'];
|
|
85
|
+
/** 指导价格,仅用于划线展示 */
|
|
86
|
+
guide_price: IGoodsInfoDB['guide_price'];
|
|
87
|
+
/** 手续费 */
|
|
88
|
+
service_charge: IGoodsInfoDB['service_charge'];
|
|
89
|
+
/** 封面图片 */
|
|
90
|
+
cover_url: IGoodsInfoDB['cover_url'];
|
|
91
|
+
/** 商品轮播图 */
|
|
92
|
+
carousel_images: IGoodsInfoDB['carousel_images'];
|
|
93
|
+
/** 是否允许购买 */
|
|
94
|
+
status: IGoodsInfoDB['status'];
|
|
95
|
+
/** TINYINT(1) COMMENT '商品类型,0:普通商品,1:抽奖商品' */
|
|
96
|
+
type: IGoodsInfoDB['type'];
|
|
97
|
+
/** 奖项信息 */
|
|
98
|
+
prize_list: IGoodsInfoDB['prize_list'];
|
|
99
|
+
};
|
|
69
100
|
/** 请求参数: 编辑商品的 */
|
|
70
|
-
export type IGoodsInfoReqEdit =
|
|
71
|
-
|
|
101
|
+
export type IGoodsInfoReqEdit = {
|
|
102
|
+
id: IGoodsInfoDB['id'];
|
|
103
|
+
} & IGoodsInfoReqAdd;
|
|
104
|
+
/** 请求参数: 编辑商品上架、下架状态 */
|
|
72
105
|
export type IGoodsInfoReqEditStatus = Pick<IGoodsInfoDB, 'id' | 'status'>;
|
|
73
106
|
/** 请求参数,销量 */
|
|
74
107
|
export type IGoodsSystemReqSales = Pick<IGoodsInfoF2e, 'id'>;
|
|
@@ -81,8 +114,8 @@ export type IIGoodsListReqH5 = IF2ePaginationReqData & {
|
|
|
81
114
|
plate_id?: IGoodsInfoDB['plate_id'];
|
|
82
115
|
category_id?: IGoodsInfoDB['category_id'];
|
|
83
116
|
};
|
|
84
|
-
/**
|
|
85
|
-
export type IGoodsDatumInfoF2eH5 = Pick<IGoodsInfoDB, 'type' | 'id' | 'category_id' | 'plate_id' | 'sequence' | 'inventory_count' | 'name' | 'price' | 'guide_price' | 'service_charge' | 'description' | 'cover_url' | 'status' | 'tenant_domain' | 'create_time' | 'update_time'> & {
|
|
117
|
+
/** 返回参数:详情 */
|
|
118
|
+
export type IGoodsDatumInfoF2eH5 = Pick<IGoodsInfoDB, 'type' | 'id' | 'category_id' | 'plate_id' | 'sequence' | 'inventory_count' | 'name' | 'price' | 'guide_price' | 'service_charge' | 'description' | 'cover_url' | 'carousel_images' | 'status' | 'tenant_domain' | 'create_time' | 'update_time'> & {
|
|
86
119
|
category_name: string;
|
|
87
120
|
plate_name: string;
|
|
88
121
|
category_cover_url: string;
|
package/dist/goods.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goods.d.ts","sourceRoot":"","sources":["../src/goods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAIlD,WAAW;AACX,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"goods.d.ts","sourceRoot":"","sources":["../src/goods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAIlD,WAAW;AACX,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,CAAC;AAClD,MAAM,MAAM,SAAS,GACnB,AADsB,WAAW,CACjC,QAAQ;AACR,WAAW;AACX,OAAO,CAAC;AAEV,MAAM,WAAW,YAAY;IAC3B,EAAE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