@be-link/cs-cli-nodejs 0.0.4 → 0.0.5
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/serviceVenue/service.d.ts +12 -0
- package/cs/modules/serviceVenue/service.js +31 -0
- package/cs/modules/serviceVenue/service.js.map +1 -0
- package/cs/modules/serviceVenue/types.d.ts +174 -0
- package/cs/modules/serviceVenue/types.js +3 -0
- package/cs/modules/serviceVenue/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import BaseService from '../baseService';
|
|
2
|
+
import { ServiceVenue } from './types';
|
|
3
|
+
declare class ServiceVenueService extends BaseService implements ServiceVenue.Controller {
|
|
4
|
+
prefixUrl: string;
|
|
5
|
+
createServiceVenue(request: ServiceVenue.Request.ICreateServiceVenue): Promise<ServiceVenue.Response.ICreateServiceVenueRes>;
|
|
6
|
+
getRoomTypeInfo(request: ServiceVenue.Request.IGetRoomTypeInfo): Promise<ServiceVenue.Response.IGetRoomTypeInfoRes>;
|
|
7
|
+
queryServiceVenueList(request: ServiceVenue.Request.IQueryServiceVenueList): Promise<ServiceVenue.Response.IQueryServiceVenueListRes[]>;
|
|
8
|
+
saveRoomTypeInfo(request: ServiceVenue.Request.ISaveRoomTypeInfo): Promise<ServiceVenue.Response.ISaveRoomTypeInfoRes>;
|
|
9
|
+
updateServiceVenue(request: ServiceVenue.Request.IUpdateServiceVenue): Promise<ServiceVenue.Response.IUpdateServiceVenueRes>;
|
|
10
|
+
}
|
|
11
|
+
declare const serviceVenueService: ServiceVenueService;
|
|
12
|
+
export default serviceVenueService;
|
|
@@ -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 ServiceVenueService extends baseService_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/service-venue';
|
|
12
|
+
}
|
|
13
|
+
createServiceVenue(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.createServiceVenue), request);
|
|
15
|
+
}
|
|
16
|
+
getRoomTypeInfo(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getRoomTypeInfo), request);
|
|
18
|
+
}
|
|
19
|
+
queryServiceVenueList(request) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryServiceVenueList), request);
|
|
21
|
+
}
|
|
22
|
+
saveRoomTypeInfo(request) {
|
|
23
|
+
return (0, http_1.callApi)(this.getApiUrl(this.saveRoomTypeInfo), request);
|
|
24
|
+
}
|
|
25
|
+
updateServiceVenue(request) {
|
|
26
|
+
return (0, http_1.callApi)(this.getApiUrl(this.updateServiceVenue), request);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const serviceVenueService = new ServiceVenueService();
|
|
30
|
+
exports.default = serviceVenueService;
|
|
31
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/cs/modules/serviceVenue/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,mBAAoB,SAAQ,qBAAW;IAA7C;;QACE,cAAS,GAAG,gBAAgB,CAAA;IA+C9B,CAAC;IA9CC,kBAAkB,CAChB,OAAiD;QAEjD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,EACvC,OAAO,CACR,CAAA;IACH,CAAC;IAED,eAAe,CACb,OAA8C;QAE9C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC,EACpC,OAAO,CACR,CAAA;IACH,CAAC;IAED,qBAAqB,CACnB,OAAoD;QAEpD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,qBAAqB,CAAC,EAC1C,OAAO,CACR,CAAA;IACH,CAAC;IAED,gBAAgB,CACd,OAA+C;QAE/C,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EACrC,OAAO,CACR,CAAA;IACH,CAAC;IAED,kBAAkB,CAChB,OAAiD;QAEjD,OAAO,IAAA,cAAO,EACZ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,EACvC,OAAO,CACR,CAAA;IACH,CAAC;CAGF;AAED,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAA;AAErD,kBAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
export declare namespace ServiceVenue {
|
|
2
|
+
namespace DTO {
|
|
3
|
+
interface CommonDescriptionItem {
|
|
4
|
+
type: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
namespace Request {
|
|
9
|
+
import CommonDescriptionItem = ServiceVenue.DTO.CommonDescriptionItem;
|
|
10
|
+
/** 查询门店列表 */
|
|
11
|
+
interface IQueryServiceVenueList {
|
|
12
|
+
/** 门店类型 */
|
|
13
|
+
serviceVenueType: string;
|
|
14
|
+
/** 门店名称 */
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
/** 创建门店 */
|
|
18
|
+
interface ICreateServiceVenue {
|
|
19
|
+
/** 门店类型 */
|
|
20
|
+
serviceVenueType: string;
|
|
21
|
+
}
|
|
22
|
+
/** 更新门店 */
|
|
23
|
+
interface IUpdateServiceVenue {
|
|
24
|
+
id: string;
|
|
25
|
+
basicInfo?: {
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
stress: string;
|
|
29
|
+
starLevel: number;
|
|
30
|
+
diamondLevel: number;
|
|
31
|
+
qualification: string[];
|
|
32
|
+
openYear: string;
|
|
33
|
+
renovationYear: string;
|
|
34
|
+
roomCount: number;
|
|
35
|
+
introduction: CommonDescriptionItem[];
|
|
36
|
+
};
|
|
37
|
+
cateringIntroduction?: {
|
|
38
|
+
mealTime: {
|
|
39
|
+
breakfast: [number, number];
|
|
40
|
+
lunch: [number, number];
|
|
41
|
+
dinner: [number, number];
|
|
42
|
+
};
|
|
43
|
+
tableCapacity: number;
|
|
44
|
+
introduction: CommonDescriptionItem[];
|
|
45
|
+
};
|
|
46
|
+
trafficInfo?: {
|
|
47
|
+
title: string;
|
|
48
|
+
value: string;
|
|
49
|
+
}[];
|
|
50
|
+
reportInfo?: {
|
|
51
|
+
chatId: string;
|
|
52
|
+
};
|
|
53
|
+
policy?: {
|
|
54
|
+
enterLeavingPolicy: {
|
|
55
|
+
checkInTime: number;
|
|
56
|
+
checkOutTime: number;
|
|
57
|
+
applicablePeople: string;
|
|
58
|
+
};
|
|
59
|
+
childrenPolicy: {
|
|
60
|
+
price: {
|
|
61
|
+
meal: {
|
|
62
|
+
low: string;
|
|
63
|
+
high: string;
|
|
64
|
+
medium: string;
|
|
65
|
+
};
|
|
66
|
+
room: {
|
|
67
|
+
low: string;
|
|
68
|
+
high: string;
|
|
69
|
+
medium: string;
|
|
70
|
+
};
|
|
71
|
+
traffic: {
|
|
72
|
+
low: string;
|
|
73
|
+
high: string;
|
|
74
|
+
medium: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/** 获取房型 */
|
|
81
|
+
interface IGetRoomTypeInfo {
|
|
82
|
+
/** 门店类型 */
|
|
83
|
+
serviceVenueType: string;
|
|
84
|
+
/** 门店id */
|
|
85
|
+
id: string;
|
|
86
|
+
}
|
|
87
|
+
/** 创建门店 */
|
|
88
|
+
interface ISaveRoomTypeInfo {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
status: string;
|
|
92
|
+
venueId: string;
|
|
93
|
+
capacity: number;
|
|
94
|
+
area: number;
|
|
95
|
+
bedInfo: {
|
|
96
|
+
bedWidth: number;
|
|
97
|
+
bedCount: number;
|
|
98
|
+
}[];
|
|
99
|
+
introInfo: CommonDescriptionItem[];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
namespace Response {
|
|
103
|
+
import CommonDescriptionItem = ServiceVenue.DTO.CommonDescriptionItem;
|
|
104
|
+
/** 查询套餐列表返回 */
|
|
105
|
+
interface IQueryServiceVenueListRes {
|
|
106
|
+
/** 门店id */
|
|
107
|
+
id: string;
|
|
108
|
+
/** 门店名称 */
|
|
109
|
+
name: string;
|
|
110
|
+
/** 门店地址 */
|
|
111
|
+
stress: string;
|
|
112
|
+
/** 状态 */
|
|
113
|
+
status: string;
|
|
114
|
+
/** 星级 */
|
|
115
|
+
starLevel: number;
|
|
116
|
+
/** 钻级 */
|
|
117
|
+
diamondLevel: number;
|
|
118
|
+
/** 电话 */
|
|
119
|
+
phone: string;
|
|
120
|
+
/** 联系人 */
|
|
121
|
+
contactName: string;
|
|
122
|
+
}
|
|
123
|
+
/** 创建门店 */
|
|
124
|
+
interface ICreateServiceVenueRes {
|
|
125
|
+
/** 门店id */
|
|
126
|
+
id: string;
|
|
127
|
+
}
|
|
128
|
+
/** 更新门店 */
|
|
129
|
+
interface IUpdateServiceVenueRes {
|
|
130
|
+
/** 门店id */
|
|
131
|
+
id: string;
|
|
132
|
+
}
|
|
133
|
+
/** 获取房型 */
|
|
134
|
+
interface IGetRoomTypeInfoRes {
|
|
135
|
+
id: string;
|
|
136
|
+
name: string;
|
|
137
|
+
status: string;
|
|
138
|
+
venueId: string;
|
|
139
|
+
capacity: number;
|
|
140
|
+
area: number;
|
|
141
|
+
bedInfo: {
|
|
142
|
+
bedWidth: number;
|
|
143
|
+
bedCount: number;
|
|
144
|
+
}[];
|
|
145
|
+
introInfo: CommonDescriptionItem[];
|
|
146
|
+
}
|
|
147
|
+
/** 保存房型 */
|
|
148
|
+
interface ISaveRoomTypeInfoRes {
|
|
149
|
+
id: string;
|
|
150
|
+
name: string;
|
|
151
|
+
status: string;
|
|
152
|
+
venueId: string;
|
|
153
|
+
capacity: number;
|
|
154
|
+
area: number;
|
|
155
|
+
bedInfo: {
|
|
156
|
+
bedWidth: number;
|
|
157
|
+
bedCount: number;
|
|
158
|
+
}[];
|
|
159
|
+
introInfo: CommonDescriptionItem[];
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
interface Controller {
|
|
163
|
+
/** 获取门店列表 */
|
|
164
|
+
queryServiceVenueList(request: Request.IQueryServiceVenueList): Promise<Response.IQueryServiceVenueListRes[]>;
|
|
165
|
+
/** 创建门店 */
|
|
166
|
+
createServiceVenue(request: Request.ICreateServiceVenue): Promise<Response.ICreateServiceVenueRes>;
|
|
167
|
+
/** 更新门店信息 */
|
|
168
|
+
updateServiceVenue(request: Request.IUpdateServiceVenue): Promise<Response.IUpdateServiceVenueRes>;
|
|
169
|
+
/** 获取房型信息 */
|
|
170
|
+
getRoomTypeInfo(request: Request.IGetRoomTypeInfo): Promise<Response.IGetRoomTypeInfoRes>;
|
|
171
|
+
/** 编辑房型信息 */
|
|
172
|
+
saveRoomTypeInfo(request: Request.ISaveRoomTypeInfo): Promise<Response.ISaveRoomTypeInfoRes>;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/cs/modules/serviceVenue/types.ts"],"names":[],"mappings":""}
|