@be-link/cs-cli-nodejs 0.0.30 → 0.0.31
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.
|
@@ -2,8 +2,10 @@ import BaseService from '../baseService';
|
|
|
2
2
|
import { ItemDiscountActivityNamespace } from './types';
|
|
3
3
|
declare class ItemDiscountActivityService extends BaseService implements ItemDiscountActivityNamespace.Controller {
|
|
4
4
|
prefixUrl: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
get(request: ItemDiscountActivityNamespace.Request.IGet): Promise<ItemDiscountActivityNamespace.Response.IGet>;
|
|
6
|
+
create(request: ItemDiscountActivityNamespace.Request.ICreate): Promise<void>;
|
|
7
|
+
update(request: ItemDiscountActivityNamespace.Request.IUpdate): Promise<void>;
|
|
8
|
+
delete(request: ItemDiscountActivityNamespace.Request.IDelete): Promise<void>;
|
|
7
9
|
}
|
|
8
10
|
declare const itemDiscountActivityService: ItemDiscountActivityService;
|
|
9
11
|
export default itemDiscountActivityService;
|
|
@@ -10,11 +10,17 @@ class ItemDiscountActivityService extends baseService_1.default {
|
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.prefixUrl = '/item-discount-activity';
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
return (0, http_1.callApi)(this.getApiUrl(this.
|
|
13
|
+
get(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.get), request);
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
return (0, http_1.callApi)(this.getApiUrl(this.
|
|
16
|
+
create(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.create), request);
|
|
18
|
+
}
|
|
19
|
+
update(request) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.update), request);
|
|
21
|
+
}
|
|
22
|
+
delete(request) {
|
|
23
|
+
return (0, http_1.callApi)(this.getApiUrl(this.delete), request);
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
26
|
const itemDiscountActivityService = new ItemDiscountActivityService();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/itemDiscountActivity/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,2BACJ,SAAQ,qBAAW;IADrB;;QAIE,cAAS,GAAG,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/itemDiscountActivity/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,2BACJ,SAAQ,qBAAW;IADrB;;QAIE,cAAS,GAAG,yBAAyB,CAAA;IA+BvC,CAAC;IA7BC,GAAG,CACD,OAAmD;QAEnD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EACxB,OAAO,CACR,CAAA;IACH,CAAC;IAED,MAAM,CAAC,OAAsD;QAC3D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAC3B,OAAO,CACR,CAAA;IACH,CAAC;IAED,MAAM,CAAC,OAAsD;QAC3D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAC3B,OAAO,CACR,CAAA;IACH,CAAC;IAED,MAAM,CAAC,OAAsD;QAC3D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAC3B,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,2BAA2B,GAAG,IAAI,2BAA2B,EAAE,CAAA;AAErE,kBAAe,2BAA2B,CAAA"}
|
|
@@ -1,83 +1,45 @@
|
|
|
1
|
+
import { CommonStatus, ItemDiscountActivityDiscountType } from 'vitality-meta/enums/commodity';
|
|
1
2
|
export declare namespace ItemDiscountActivityNamespace {
|
|
2
3
|
namespace Request {
|
|
3
|
-
interface
|
|
4
|
-
|
|
4
|
+
interface IGet {
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
interface ICreate {
|
|
8
|
+
itemId: string;
|
|
9
|
+
comboId: string;
|
|
10
|
+
type: ItemDiscountActivityDiscountType;
|
|
11
|
+
nightNum: number;
|
|
12
|
+
discountType: string;
|
|
13
|
+
discountSalePrice: number;
|
|
14
|
+
discountSettlementPrice: number;
|
|
15
|
+
}
|
|
16
|
+
type IUpdate = {
|
|
17
|
+
id: string;
|
|
18
|
+
nightNum?: number;
|
|
19
|
+
discountSalePrice?: number;
|
|
20
|
+
discountSettlementPrice?: number;
|
|
21
|
+
};
|
|
22
|
+
interface IDelete {
|
|
23
|
+
id: string;
|
|
5
24
|
}
|
|
6
25
|
}
|
|
7
26
|
namespace Response {
|
|
8
|
-
interface
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
willDeleted: number;
|
|
19
|
-
};
|
|
20
|
-
/** 将添加的数据 */
|
|
21
|
-
addedData: {
|
|
22
|
-
/** 商品ID */
|
|
23
|
-
itemId: string;
|
|
24
|
-
/** 商品名称 */
|
|
25
|
-
itemName: string;
|
|
26
|
-
/** 套餐ID */
|
|
27
|
-
comboId: string;
|
|
28
|
-
/** 套餐名称 */
|
|
29
|
-
comboName: string;
|
|
30
|
-
/** 折扣价格 */
|
|
31
|
-
discountPrice: number;
|
|
32
|
-
/** 折扣结算价格 */
|
|
33
|
-
discountSettlementPrice: number;
|
|
34
|
-
/** 连住晚数 */
|
|
35
|
-
nightNum: number;
|
|
36
|
-
}[];
|
|
37
|
-
/** 将更新的数据 */
|
|
38
|
-
updatedData: {
|
|
39
|
-
/** 商品ID */
|
|
40
|
-
itemId: string;
|
|
41
|
-
/** 商品名称 */
|
|
42
|
-
itemName: string;
|
|
43
|
-
/** 套餐ID */
|
|
44
|
-
comboId: string;
|
|
45
|
-
/** 套餐名称 */
|
|
46
|
-
comboName: string;
|
|
47
|
-
/** 折扣价格 */
|
|
48
|
-
discountPrice: number;
|
|
49
|
-
/** 折扣结算价格 */
|
|
50
|
-
discountSettlementPrice: number;
|
|
51
|
-
/** 连住晚数 */
|
|
52
|
-
nightNum: number;
|
|
53
|
-
}[];
|
|
54
|
-
/** 将删除的数据 */
|
|
55
|
-
deletedData: {
|
|
56
|
-
/** 商品ID */
|
|
57
|
-
itemId: string;
|
|
58
|
-
/** 商品名称 */
|
|
59
|
-
itemName: string;
|
|
60
|
-
/** 套餐ID */
|
|
61
|
-
comboId: string;
|
|
62
|
-
/** 套餐名称 */
|
|
63
|
-
comboName: string;
|
|
64
|
-
/** 折扣价格 */
|
|
65
|
-
discountPrice: number;
|
|
66
|
-
/** 折扣结算价格 */
|
|
67
|
-
discountSettlementPrice: number;
|
|
68
|
-
/** 连住晚数 */
|
|
69
|
-
nightNum: number;
|
|
70
|
-
}[];
|
|
27
|
+
interface IGet {
|
|
28
|
+
id: string;
|
|
29
|
+
status: CommonStatus;
|
|
30
|
+
itemId: string;
|
|
31
|
+
comboId: string;
|
|
32
|
+
type: ItemDiscountActivityDiscountType;
|
|
33
|
+
nightNum: number;
|
|
34
|
+
discountType: string;
|
|
35
|
+
discountSalePrice: number;
|
|
36
|
+
discountSettlementPrice: number;
|
|
71
37
|
}
|
|
72
38
|
}
|
|
73
39
|
interface Controller {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* 导入连住优惠
|
|
80
|
-
*/
|
|
81
|
-
importItemDiscountActivity(request: Request.IImportItemDiscountActivity): Promise<void>;
|
|
40
|
+
get(request: Request.IGet): Promise<Response.IGet>;
|
|
41
|
+
create(request: Request.ICreate): Promise<void>;
|
|
42
|
+
update(request: Request.IUpdate): Promise<void>;
|
|
43
|
+
delete(request: Request.IDelete): Promise<void>;
|
|
82
44
|
}
|
|
83
45
|
}
|