@be-link/cs-cli-nodejs 0.0.87 → 0.0.88
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/cs/modules/itemManage/index.d.ts +32 -0
- package/cs/modules/itemManage/index.js +13 -0
- package/cs/modules/itemManage/index.js.map +1 -0
- package/cs/modules/itemManage/item/service.d.ts +12 -0
- package/cs/modules/itemManage/item/service.js +31 -0
- package/cs/modules/itemManage/item/service.js.map +1 -0
- package/cs/modules/itemManage/item/type.d.ts +94 -0
- package/cs/modules/itemManage/item/type.js +3 -0
- package/cs/modules/itemManage/item/type.js.map +1 -0
- package/cs/modules/itemManage/itemCombo/service.d.ts +13 -0
- package/cs/modules/itemManage/itemCombo/service.js +34 -0
- package/cs/modules/itemManage/itemCombo/service.js.map +1 -0
- package/cs/modules/itemManage/itemCombo/type.d.ts +105 -0
- package/cs/modules/itemManage/itemCombo/type.js +3 -0
- package/cs/modules/itemManage/itemCombo/type.js.map +1 -0
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const itemManageService: {
|
|
2
|
+
byItem: {
|
|
3
|
+
prefixUrl: string;
|
|
4
|
+
prepareItem(request: import("./item/type").ManageByItem.Request.prepareItem): Promise<string>;
|
|
5
|
+
updateItem(request: import("./item/type").ManageByItem.Request.updateItem): Promise<void>;
|
|
6
|
+
copyItem(request: import("./item/type").ManageByItem.Request.copyItem): Promise<string>;
|
|
7
|
+
deleteDraftItem(request: import("./item/type").ManageByItem.Request.deleteDraftItem): Promise<void>;
|
|
8
|
+
toggleItemStatus(request: import("./item/type").ManageByItem.Request.toggleItemStatus): Promise<void>;
|
|
9
|
+
isPublicEnv: boolean;
|
|
10
|
+
readonly natDevHost: "http://qgostaxv.cs.nmkh74o4.rlwzae9d.com:8090";
|
|
11
|
+
readonly natProdHost: "";
|
|
12
|
+
readonly publicDevHost: "https://cs-74680-5-1304510571.sh.run.tcloudbase.com";
|
|
13
|
+
readonly publicProdHost: "";
|
|
14
|
+
getApiUrl(func: Function): string;
|
|
15
|
+
};
|
|
16
|
+
byItemCombo: {
|
|
17
|
+
prefixUrl: string;
|
|
18
|
+
upsertCombo(request: import("./itemCombo/type").ManageByItemCombo.Request.upsertCombo): Promise<void>;
|
|
19
|
+
upsertComboShortcut(request: import("./itemCombo/type").ManageByItemCombo.Request.upsertComboShortcut): Promise<void>;
|
|
20
|
+
modifyComboOrderIndex(request: import("./itemCombo/type").ManageByItemCombo.Request.modifyComboOrderIndex): Promise<void>;
|
|
21
|
+
toggleComboStatus(request: import("./itemCombo/type").ManageByItemCombo.Request.toggleComboStatus): Promise<void>;
|
|
22
|
+
batchCreateSkus(request: import("./itemCombo/type").ManageByItemCombo.Request.batchCreateSkus): Promise<void>;
|
|
23
|
+
batchUpdateSkus(request: import("./itemCombo/type").ManageByItemCombo.Request.batchUpdateSkus): Promise<void>;
|
|
24
|
+
isPublicEnv: boolean;
|
|
25
|
+
readonly natDevHost: "http://qgostaxv.cs.nmkh74o4.rlwzae9d.com:8090";
|
|
26
|
+
readonly natProdHost: "";
|
|
27
|
+
readonly publicDevHost: "https://cs-74680-5-1304510571.sh.run.tcloudbase.com";
|
|
28
|
+
readonly publicProdHost: "";
|
|
29
|
+
getApiUrl(func: Function): string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default itemManageService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const service_1 = __importDefault(require("./item/service"));
|
|
7
|
+
const service_2 = __importDefault(require("./itemCombo/service"));
|
|
8
|
+
const itemManageService = {
|
|
9
|
+
byItem: service_1.default,
|
|
10
|
+
byItemCombo: service_2.default,
|
|
11
|
+
};
|
|
12
|
+
exports.default = itemManageService;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/cs/modules/itemManage/index.ts"],"names":[],"mappings":";;;;;AAAA,6DAAmC;AACnC,kEAA6C;AAE7C,MAAM,iBAAiB,GAAG;IACxB,MAAM,EAAN,iBAAM;IACN,WAAW,EAAX,iBAAW;CACZ,CAAA;AAED,kBAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import BaseService from '../../baseService';
|
|
2
|
+
import { ManageByItem } from './type';
|
|
3
|
+
declare class ManageByItemService extends BaseService implements ManageByItem.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
prepareItem(request: ManageByItem.Request.prepareItem): Promise<string>;
|
|
6
|
+
updateItem(request: ManageByItem.Request.updateItem): Promise<void>;
|
|
7
|
+
copyItem(request: ManageByItem.Request.copyItem): Promise<string>;
|
|
8
|
+
deleteDraftItem(request: ManageByItem.Request.deleteDraftItem): Promise<void>;
|
|
9
|
+
toggleItemStatus(request: ManageByItem.Request.toggleItemStatus): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
declare const byItem: ManageByItemService;
|
|
12
|
+
export default byItem;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const http_1 = require("../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../baseService"));
|
|
8
|
+
class ManageByItemService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/item/manage/by-item';
|
|
12
|
+
}
|
|
13
|
+
prepareItem(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.prepareItem), request);
|
|
15
|
+
}
|
|
16
|
+
updateItem(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.updateItem), request);
|
|
18
|
+
}
|
|
19
|
+
copyItem(request) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.copyItem), request);
|
|
21
|
+
}
|
|
22
|
+
deleteDraftItem(request) {
|
|
23
|
+
return (0, http_1.callApi)(this.getApiUrl(this.deleteDraftItem), request);
|
|
24
|
+
}
|
|
25
|
+
toggleItemStatus(request) {
|
|
26
|
+
return (0, http_1.callApi)(this.getApiUrl(this.toggleItemStatus), request);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const byItem = new ManageByItemService();
|
|
30
|
+
exports.default = byItem;
|
|
31
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemManage/item/service.ts"],"names":[],"mappings":";;;;;AAAA,wCAAuC;AACvC,oEAA2C;AAG3C,MAAM,mBAAoB,SAAQ,qBAAW;IAA7C;;QACE,cAAS,GAAW,sBAAsB,CAAA;IA8B5C,CAAC;IA5BC,WAAW,CAAC,OAAyC;QACnD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAChC,OAAO,CACR,CAAA;IACH,CAAC;IAED,UAAU,CAAC,OAAwC;QACjD,OAAO,IAAA,cAAO,EAAwC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,CAAA;IACjG,CAAC;IAED,QAAQ,CAAC,OAAsC;QAC7C,OAAO,IAAA,cAAO,EAAsC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAA;IAC7F,CAAC;IAED,eAAe,CAAC,OAA6C;QAC3D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,EACpC,OAAO,CACR,CAAA;IACH,CAAC;IAED,gBAAgB,CAAC,OAA8C;QAC7D,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EACrC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,MAAM,GAAG,IAAI,mBAAmB,EAAE,CAAA;AAExC,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ItemStatus } from 'vitality-meta/enums/commodity';
|
|
2
|
+
import { DescriptionContentItem, EntertainmentInfo } from '../../../../types';
|
|
3
|
+
export declare namespace ManageByItem {
|
|
4
|
+
namespace Request {
|
|
5
|
+
interface prepareItem {
|
|
6
|
+
categoryOne: string;
|
|
7
|
+
categoryTwo: string;
|
|
8
|
+
}
|
|
9
|
+
interface updateItem {
|
|
10
|
+
basicInfo: {
|
|
11
|
+
id: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
headVideo?: string;
|
|
14
|
+
headPics?: string[];
|
|
15
|
+
wxChannelInfo?: {
|
|
16
|
+
finderId?: string;
|
|
17
|
+
feedId?: string;
|
|
18
|
+
};
|
|
19
|
+
supplierId?: string;
|
|
20
|
+
venueId?: string;
|
|
21
|
+
featureTags?: string[];
|
|
22
|
+
invoiceInfo?: {
|
|
23
|
+
party?: string;
|
|
24
|
+
type?: ('ELECTRONIC' | 'PAPER')[];
|
|
25
|
+
};
|
|
26
|
+
finance?: {
|
|
27
|
+
settlementDesc?: string;
|
|
28
|
+
contractEffectTime?: number;
|
|
29
|
+
contractExpireTime?: number;
|
|
30
|
+
contractFile?: string;
|
|
31
|
+
};
|
|
32
|
+
discountActivity?: DescriptionContentItem[];
|
|
33
|
+
description?: DescriptionContentItem[];
|
|
34
|
+
costInclusion?: {
|
|
35
|
+
title: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}[];
|
|
38
|
+
costExclusion?: string;
|
|
39
|
+
cancellationPolicy?: string;
|
|
40
|
+
};
|
|
41
|
+
attributes?: {
|
|
42
|
+
isShareOnly?: number;
|
|
43
|
+
isOnlyStaffCanSee?: number;
|
|
44
|
+
canModifyMeal?: number;
|
|
45
|
+
canUseCakeCoupon?: number;
|
|
46
|
+
isSelfLead?: number;
|
|
47
|
+
needWxGroup?: number;
|
|
48
|
+
isCloseStayMore?: number;
|
|
49
|
+
};
|
|
50
|
+
innerInfo?: {
|
|
51
|
+
bizOperators: string[];
|
|
52
|
+
bizDevelopers: string[];
|
|
53
|
+
description: {
|
|
54
|
+
title: string;
|
|
55
|
+
subCategory: DescriptionContentItem[];
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
58
|
+
hotelExtraInfo?: {
|
|
59
|
+
venueId?: string;
|
|
60
|
+
supplierId?: string;
|
|
61
|
+
entertainmentInfo: {
|
|
62
|
+
ktv?: EntertainmentInfo;
|
|
63
|
+
card?: EntertainmentInfo;
|
|
64
|
+
swimmingPool?: EntertainmentInfo;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
interface copyItem {
|
|
69
|
+
itemId: string;
|
|
70
|
+
operatorName: string;
|
|
71
|
+
}
|
|
72
|
+
interface deleteDraftItem {
|
|
73
|
+
itemId: string;
|
|
74
|
+
operatorName: string;
|
|
75
|
+
}
|
|
76
|
+
interface toggleItemStatus {
|
|
77
|
+
itemId: string;
|
|
78
|
+
status: ItemStatus;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
namespace Response { }
|
|
82
|
+
interface Controller {
|
|
83
|
+
/** 预生成商品id */
|
|
84
|
+
prepareItem(request: Request.prepareItem): Promise<string>;
|
|
85
|
+
/** 更新商品信息 */
|
|
86
|
+
updateItem(request: Request.updateItem): Promise<void>;
|
|
87
|
+
/** 复制商品 */
|
|
88
|
+
copyItem(request: Request.copyItem): Promise<string>;
|
|
89
|
+
/** 删除草稿商品 */
|
|
90
|
+
deleteDraftItem(request: Request.deleteDraftItem): Promise<void>;
|
|
91
|
+
/** 修改商品状态 */
|
|
92
|
+
toggleItemStatus(request: Request.toggleItemStatus): Promise<void>;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemManage/item/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import BaseService from '../../baseService';
|
|
2
|
+
import { ManageByItemCombo } from './type';
|
|
3
|
+
declare class ManageByItemComboService extends BaseService implements ManageByItemCombo.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
upsertCombo(request: ManageByItemCombo.Request.upsertCombo): Promise<void>;
|
|
6
|
+
upsertComboShortcut(request: ManageByItemCombo.Request.upsertComboShortcut): Promise<void>;
|
|
7
|
+
modifyComboOrderIndex(request: ManageByItemCombo.Request.modifyComboOrderIndex): Promise<void>;
|
|
8
|
+
toggleComboStatus(request: ManageByItemCombo.Request.toggleComboStatus): Promise<void>;
|
|
9
|
+
batchCreateSkus(request: ManageByItemCombo.Request.batchCreateSkus): Promise<void>;
|
|
10
|
+
batchUpdateSkus(request: ManageByItemCombo.Request.batchUpdateSkus): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
declare const byItemCombo: ManageByItemComboService;
|
|
13
|
+
export default byItemCombo;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const http_1 = require("../../../http");
|
|
7
|
+
const baseService_1 = __importDefault(require("../../baseService"));
|
|
8
|
+
class ManageByItemComboService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/item/manage/by-item-combo';
|
|
12
|
+
}
|
|
13
|
+
upsertCombo(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.upsertCombo), request);
|
|
15
|
+
}
|
|
16
|
+
upsertComboShortcut(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.upsertComboShortcut), request);
|
|
18
|
+
}
|
|
19
|
+
modifyComboOrderIndex(request) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.modifyComboOrderIndex), request);
|
|
21
|
+
}
|
|
22
|
+
toggleComboStatus(request) {
|
|
23
|
+
return (0, http_1.callApi)(this.getApiUrl(this.toggleComboStatus), request);
|
|
24
|
+
}
|
|
25
|
+
batchCreateSkus(request) {
|
|
26
|
+
return (0, http_1.callApi)(this.getApiUrl(this.batchCreateSkus), request);
|
|
27
|
+
}
|
|
28
|
+
batchUpdateSkus(request) {
|
|
29
|
+
return (0, http_1.callApi)(this.getApiUrl(this.batchUpdateSkus), request);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const byItemCombo = new ManageByItemComboService();
|
|
33
|
+
exports.default = byItemCombo;
|
|
34
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemManage/itemCombo/service.ts"],"names":[],"mappings":";;;;;AAAA,wCAAuC;AACvC,oEAA2C;AAG3C,MAAM,wBAAyB,SAAQ,qBAAW;IAAlD;;QACE,cAAS,GAAW,4BAA4B,CAAA;IA2ClD,CAAC;IAzCC,WAAW,CAAC,OAA8C;QACxD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,EAChC,OAAO,CACR,CAAA;IACH,CAAC;IAED,mBAAmB,CAAC,OAAsD;QACxE,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,EACxC,OAAO,CACR,CAAA;IACH,CAAC;IAED,qBAAqB,CAAC,OAAwD;QAC5E,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAC1C,OAAO,CACR,CAAA;IACH,CAAC;IAED,iBAAiB,CAAC,OAAoD;QACpE,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC,EACtC,OAAO,CACR,CAAA;IACH,CAAC;IAED,eAAe,CAAC,OAAkD;QAChE,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,EACpC,OAAO,CACR,CAAA;IACH,CAAC;IAED,eAAe,CAAC,OAAkD;QAChE,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,EACpC,OAAO,CACR,CAAA;IACH,CAAC;CACF;AAED,MAAM,WAAW,GAAG,IAAI,wBAAwB,EAAE,CAAA;AAElD,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { CommonSaleStatus, CommonStatus, ItemRoomSaleBindConditionType } from 'vitality-meta/enums/commodity';
|
|
2
|
+
import { DescriptionContentItem } from '../../../../types';
|
|
3
|
+
export declare namespace ManageByItemCombo {
|
|
4
|
+
namespace Request {
|
|
5
|
+
interface upsertCombo {
|
|
6
|
+
itemId: string;
|
|
7
|
+
comboInfo: {
|
|
8
|
+
id?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
roomList?: string[];
|
|
11
|
+
minOrderCount?: number;
|
|
12
|
+
description?: DescriptionContentItem[];
|
|
13
|
+
extraInfo?: {
|
|
14
|
+
mealBitmap?: string;
|
|
15
|
+
isCanModifyMeal?: boolean;
|
|
16
|
+
mealDiffPrice?: number;
|
|
17
|
+
ktvSupplierList?: string[];
|
|
18
|
+
cardSupplierList?: string[];
|
|
19
|
+
minNightNum?: number;
|
|
20
|
+
maxNightNum?: number;
|
|
21
|
+
isOnlyDoubleQuantity?: boolean;
|
|
22
|
+
mealMenuPics?: string[];
|
|
23
|
+
isCanShowEntertainmentInfo?: boolean;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
roomSaleBindCondition?: {
|
|
27
|
+
status: CommonStatus;
|
|
28
|
+
roomId: string;
|
|
29
|
+
condition: {
|
|
30
|
+
type: ItemRoomSaleBindConditionType;
|
|
31
|
+
value: number;
|
|
32
|
+
};
|
|
33
|
+
saleCount: number;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
interface upsertComboShortcut {
|
|
37
|
+
itemId: string;
|
|
38
|
+
id?: string;
|
|
39
|
+
name?: string;
|
|
40
|
+
comboId?: string;
|
|
41
|
+
nightNum?: number;
|
|
42
|
+
description?: DescriptionContentItem[];
|
|
43
|
+
extraInfo?: {
|
|
44
|
+
isCanShowEntertainmentInfo?: boolean;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
interface modifyComboOrderIndex {
|
|
48
|
+
itemId: string;
|
|
49
|
+
comboId: string;
|
|
50
|
+
operation: 'UP' | 'DOWN';
|
|
51
|
+
type: 'COMBO_SHORTCUT' | 'COMBO';
|
|
52
|
+
}
|
|
53
|
+
interface toggleComboStatus {
|
|
54
|
+
itemId: string;
|
|
55
|
+
comboId: string;
|
|
56
|
+
type: 'COMBO_SHORTCUT' | 'COMBO';
|
|
57
|
+
status: CommonSaleStatus;
|
|
58
|
+
}
|
|
59
|
+
interface batchCreateSkus {
|
|
60
|
+
itemId: string;
|
|
61
|
+
comboId: string;
|
|
62
|
+
createList: {
|
|
63
|
+
dateStrList: string[];
|
|
64
|
+
skuInfo: {
|
|
65
|
+
status: CommonSaleStatus;
|
|
66
|
+
salePrice?: number;
|
|
67
|
+
settlementPrice?: number;
|
|
68
|
+
memberPrice?: number;
|
|
69
|
+
memberPriceLimitCnt?: number;
|
|
70
|
+
singleRoomPrice?: number;
|
|
71
|
+
singleRoomSettlementPrice?: number;
|
|
72
|
+
};
|
|
73
|
+
}[];
|
|
74
|
+
}
|
|
75
|
+
interface batchUpdateSkus {
|
|
76
|
+
itemId: string;
|
|
77
|
+
skuIds: string[];
|
|
78
|
+
skuInfo: {
|
|
79
|
+
status?: CommonSaleStatus;
|
|
80
|
+
salePrice?: number;
|
|
81
|
+
settlementPrice?: number;
|
|
82
|
+
memberPrice?: number | null;
|
|
83
|
+
memberPriceLimitCnt?: number | null;
|
|
84
|
+
singleRoomPrice?: number | null;
|
|
85
|
+
singleRoomSettlementPrice?: number | null;
|
|
86
|
+
saleEndTime?: number;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
namespace Response { }
|
|
91
|
+
interface Controller {
|
|
92
|
+
/** 创建&更新套餐 */
|
|
93
|
+
upsertCombo(request: Request.upsertCombo): Promise<void>;
|
|
94
|
+
/** 创建&更新快捷套餐 */
|
|
95
|
+
upsertComboShortcut(request: Request.upsertComboShortcut): Promise<void>;
|
|
96
|
+
/** 套餐排序 */
|
|
97
|
+
modifyComboOrderIndex(request: Request.modifyComboOrderIndex): Promise<void>;
|
|
98
|
+
/** 上下架删除套餐 */
|
|
99
|
+
toggleComboStatus(request: Request.toggleComboStatus): Promise<void>;
|
|
100
|
+
/** 批量创建sku */
|
|
101
|
+
batchCreateSkus(request: Request.batchCreateSkus): Promise<void>;
|
|
102
|
+
/** 批量更新SKU */
|
|
103
|
+
batchUpdateSkus(request: Request.batchUpdateSkus): Promise<void>;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/cs/modules/itemManage/itemCombo/type.ts"],"names":[],"mappings":""}
|
package/index.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ import serviceVenueService from './cs/modules/serviceVenue/service';
|
|
|
8
8
|
import itemDiscountActivityService from './cs/modules/itemDiscountActivity/service';
|
|
9
9
|
import bizTagService from './cs/modules/bizTag/service';
|
|
10
10
|
import roomStockService from './cs/modules/roomStock/service';
|
|
11
|
-
|
|
11
|
+
import itemManageService from './cs/modules/itemManage';
|
|
12
|
+
export { BizError, CSDto, itemQueryService, supplierService, shuttleBusSupplierService, serviceVenueService, itemDiscountActivityService, bizTagService, roomStockService, itemManageService, };
|
package/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.roomStockService = exports.bizTagService = exports.itemDiscountActivityService = exports.serviceVenueService = exports.shuttleBusSupplierService = exports.supplierService = exports.itemQueryService = exports.CSDto = exports.BizError = void 0;
|
|
29
|
+
exports.itemManageService = exports.roomStockService = exports.bizTagService = exports.itemDiscountActivityService = exports.serviceVenueService = exports.shuttleBusSupplierService = exports.supplierService = exports.itemQueryService = exports.CSDto = exports.BizError = void 0;
|
|
30
30
|
const BizError_1 = __importDefault(require("./errors/BizError"));
|
|
31
31
|
exports.BizError = BizError_1.default;
|
|
32
32
|
const CSDto = __importStar(require("./types"));
|
|
@@ -46,4 +46,6 @@ const service_5 = __importDefault(require("./cs/modules/bizTag/service"));
|
|
|
46
46
|
exports.bizTagService = service_5.default;
|
|
47
47
|
const service_6 = __importDefault(require("./cs/modules/roomStock/service"));
|
|
48
48
|
exports.roomStockService = service_6.default;
|
|
49
|
+
const itemManage_1 = __importDefault(require("./cs/modules/itemManage"));
|
|
50
|
+
exports.itemManageService = itemManage_1.default;
|
|
49
51
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAwC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAwC;AActC,mBAdK,kBAAQ,CAcL;AAbV,+CAAgC;AAc9B,sBAAK;AAZP,WAAW;AACX,uEAAqD;AAYnD,2BAZK,mBAAgB,CAYL;AAXlB,4EAA2D;AAYzD,0BAZK,iBAAe,CAYL;AAXjB,sFAA+E;AAY7E,oCAZK,iBAAyB,CAYL;AAX3B,gFAAmE;AAYjE,8BAZK,iBAAmB,CAYL;AAXrB,wFAAmF;AAYjF,sCAZK,iBAA2B,CAYL;AAX7B,0EAAuD;AAYrD,wBAZK,iBAAa,CAYL;AAXf,6EAA6D;AAY3D,2BAZK,iBAAgB,CAYL;AAXlB,yEAAuD;AAYrD,4BAZK,oBAAiB,CAYL"}
|