@be-link/pos-cli-nodejs 0.0.28 → 0.0.30
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/package.json +1 -1
- package/pos/modules/dataMigrate/service.d.ts +9 -0
- package/pos/modules/dataMigrate/service.js +21 -0
- package/pos/modules/dataMigrate/types.d.ts +6 -0
- package/pos/modules/dataMigrate/types.js +2 -0
- package/pos/modules/service.d.ts +2 -2
- package/pos/modules/service.js +2 -2
- package/types.d.ts +6 -6
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Service } from './types';
|
|
2
|
+
import BaseService from '../service';
|
|
3
|
+
declare class DataMigrateService extends BaseService implements Service.DataMigrateController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
pos(): Promise<void>;
|
|
6
|
+
rev(): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
declare const dataMigrateService: DataMigrateService;
|
|
9
|
+
export default dataMigrateService;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 service_1 = __importDefault(require("../service"));
|
|
8
|
+
class DataMigrateService extends service_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/dataMigrate';
|
|
12
|
+
}
|
|
13
|
+
pos() {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.pos));
|
|
15
|
+
}
|
|
16
|
+
rev() {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.rev));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const dataMigrateService = new DataMigrateService();
|
|
21
|
+
exports.default = dataMigrateService;
|
package/pos/modules/service.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export default abstract class BaseService {
|
|
|
4
4
|
protected abstract prefixUrl: string;
|
|
5
5
|
/** 子网域名 */
|
|
6
6
|
protected readonly natDevHost = "http://qgostaxv.pos-app.nmkh74o4.rlwzae9d.com";
|
|
7
|
-
protected readonly natProdHost = "";
|
|
7
|
+
protected readonly natProdHost = "http://bxbvjnca.pos-app.cwl9ok0a.mk2u3r3l.com";
|
|
8
8
|
/** 公网域名 */
|
|
9
9
|
protected readonly publicDevHost = "https://pos-app-74680-5-1304510571.sh.run.tcloudbase.com";
|
|
10
|
-
protected readonly publicProdHost = "";
|
|
10
|
+
protected readonly publicProdHost = "https://pos-app-60660-10-1304510571.sh.run.tcloudbase.com";
|
|
11
11
|
constructor();
|
|
12
12
|
/** 获取API URL */
|
|
13
13
|
protected getApiUrl(func: Function): string;
|
package/pos/modules/service.js
CHANGED
|
@@ -9,10 +9,10 @@ class BaseService {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
/** 子网域名 */
|
|
11
11
|
this.natDevHost = 'http://qgostaxv.pos-app.nmkh74o4.rlwzae9d.com';
|
|
12
|
-
this.natProdHost = '';
|
|
12
|
+
this.natProdHost = 'http://bxbvjnca.pos-app.cwl9ok0a.mk2u3r3l.com';
|
|
13
13
|
/** 公网域名 */
|
|
14
14
|
this.publicDevHost = 'https://pos-app-74680-5-1304510571.sh.run.tcloudbase.com';
|
|
15
|
-
this.publicProdHost = '';
|
|
15
|
+
this.publicProdHost = 'https://pos-app-60660-10-1304510571.sh.run.tcloudbase.com';
|
|
16
16
|
/** 如果是云函数环境, 默认走公网访问 */
|
|
17
17
|
this.isPublicEnv = (process.env.CONTAINER_ENV || 'SCF') === 'SFC';
|
|
18
18
|
}
|
package/types.d.ts
CHANGED
|
@@ -222,6 +222,12 @@ export interface IPositiveItemInfo {
|
|
|
222
222
|
periodEndTime?: number;
|
|
223
223
|
/** 是否可以修改餐食 */
|
|
224
224
|
canUpdateMealInfo: number | boolean;
|
|
225
|
+
/** 历史商品数据,从快照原样返回 */
|
|
226
|
+
voucherInfo?: {
|
|
227
|
+
[key: string]: any;
|
|
228
|
+
};
|
|
229
|
+
/** 提前预定天数(0~255) */
|
|
230
|
+
bookingDays?: number;
|
|
225
231
|
}
|
|
226
232
|
export interface IPositiveSkuInfo {
|
|
227
233
|
/** SKU ID */
|
|
@@ -316,12 +322,6 @@ export interface IPositiveSkuInfo {
|
|
|
316
322
|
categoryOne: string;
|
|
317
323
|
/** 二级类目 */
|
|
318
324
|
categoryTwo: string;
|
|
319
|
-
/** 历史商品数据,从快照原样返回 */
|
|
320
|
-
voucherInfo?: {
|
|
321
|
-
[key: string]: any;
|
|
322
|
-
};
|
|
323
|
-
/** 提前预定天数(0~255) */
|
|
324
|
-
bookingDays?: number;
|
|
325
325
|
}
|
|
326
326
|
export interface IWxPaymentInfo {
|
|
327
327
|
appId: string;
|