@be-link/ecommerce-trade-service-node-sdk 0.1.147 → 0.1.148
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,6 +2,7 @@ import { MemberOrderQueryService } from './types';
|
|
|
2
2
|
import BaseService from '../../../BaseService';
|
|
3
3
|
declare class MemberOrderQueryByInternalService extends BaseService implements MemberOrderQueryService.ByInternal.QueryController {
|
|
4
4
|
protected prefixUrl: string;
|
|
5
|
+
countUserOrder(request: MemberOrderQueryService.ByInternal.Request.ICountUserOrder): Promise<MemberOrderQueryService.ByInternal.Response.ICountUserOrder>;
|
|
5
6
|
/**
|
|
6
7
|
* 根据直播间ID统计会员订单数(内部接口)
|
|
7
8
|
* 统计口径:支付状态=SUCCESS 且 退款状态!=CLOSED
|
|
@@ -21,6 +21,9 @@ let MemberOrderQueryByInternalService = class MemberOrderQueryByInternalService
|
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.prefixUrl = '/member/pos/query/internal';
|
|
23
23
|
}
|
|
24
|
+
countUserOrder(request) {
|
|
25
|
+
return (0, http_1.callApi)(this.getApiUrl(this.countUserOrder), request);
|
|
26
|
+
}
|
|
24
27
|
/**
|
|
25
28
|
* 根据直播间ID统计会员订单数(内部接口)
|
|
26
29
|
* 统计口径:支付状态=SUCCESS 且 退款状态!=CLOSED
|
|
@@ -32,6 +35,11 @@ let MemberOrderQueryByInternalService = class MemberOrderQueryByInternalService
|
|
|
32
35
|
return (0, http_1.callApi)(this.getApiUrl(this.queryMemberOrderList), request);
|
|
33
36
|
}
|
|
34
37
|
};
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, tsoa_1.OperationId)('根据用户ID统计会员已完成订单数'),
|
|
40
|
+
(0, tsoa_1.Post)('count-user-order'),
|
|
41
|
+
__param(0, (0, tsoa_1.Body)())
|
|
42
|
+
], MemberOrderQueryByInternalService.prototype, "countUserOrder", null);
|
|
35
43
|
__decorate([
|
|
36
44
|
(0, tsoa_1.OperationId)('根据直播间ID统计会员有效支付订单数'),
|
|
37
45
|
(0, tsoa_1.Post)('count-live-room-paid-orders'),
|
|
@@ -272,6 +272,10 @@ export declare namespace MemberOrderQueryService {
|
|
|
272
272
|
namespace ByInternal {
|
|
273
273
|
/** 内部服务查询参数 */
|
|
274
274
|
namespace Request {
|
|
275
|
+
interface ICountUserOrder {
|
|
276
|
+
/** 用户ID */
|
|
277
|
+
userId: string;
|
|
278
|
+
}
|
|
275
279
|
interface ICountLiveRoomPaidOrders {
|
|
276
280
|
/** 直播间ID */
|
|
277
281
|
liveRoomId: string;
|
|
@@ -285,6 +289,10 @@ export declare namespace MemberOrderQueryService {
|
|
|
285
289
|
}
|
|
286
290
|
/** 内部服务返回参数 */
|
|
287
291
|
namespace Response {
|
|
292
|
+
interface ICountUserOrder {
|
|
293
|
+
/** 用户已完成订单数量 */
|
|
294
|
+
total: number;
|
|
295
|
+
}
|
|
288
296
|
interface ICountLiveRoomPaidOrders {
|
|
289
297
|
/**
|
|
290
298
|
* 订单数
|
|
@@ -300,6 +308,8 @@ export declare namespace MemberOrderQueryService {
|
|
|
300
308
|
}
|
|
301
309
|
}
|
|
302
310
|
interface QueryController {
|
|
311
|
+
/** 根据用户ID统计会员已完成订单数(内部接口) */
|
|
312
|
+
countUserOrder(request: Request.ICountUserOrder, req: any): Promise<Response.ICountUserOrder>;
|
|
303
313
|
/**
|
|
304
314
|
* 根据直播间ID统计会员订单数(内部接口)
|
|
305
315
|
* 统计口径:支付状态=SUCCESS 且 退款状态!=CLOSED
|
|
@@ -372,8 +372,24 @@ export declare namespace PosOrderQueryService {
|
|
|
372
372
|
/** 直播间 */
|
|
373
373
|
liveRoom?: ILiveRoom;
|
|
374
374
|
};
|
|
375
|
-
/**
|
|
376
|
-
|
|
375
|
+
/**
|
|
376
|
+
* 分页(与 cursorPaging 二选一,优先 pagination;都不传时走 cursorPaging 的首页)
|
|
377
|
+
*/
|
|
378
|
+
pagination?: Dto.IPagination;
|
|
379
|
+
/**
|
|
380
|
+
* 游标分页(与 pagination 二选一)
|
|
381
|
+
*/
|
|
382
|
+
cursorPaging?: {
|
|
383
|
+
/** 游标信息(首页不传) */
|
|
384
|
+
cursor?: {
|
|
385
|
+
/** 上一页最后一条记录的创建时间 */
|
|
386
|
+
lastCreatedAt: number;
|
|
387
|
+
/** 上一页最后一条记录的ID */
|
|
388
|
+
lastId: string;
|
|
389
|
+
};
|
|
390
|
+
/** 每页数量 */
|
|
391
|
+
pageSize: number;
|
|
392
|
+
};
|
|
377
393
|
/** 排序 */
|
|
378
394
|
sort?: {
|
|
379
395
|
/** 订单创建时间 */
|
|
@@ -570,6 +586,11 @@ export declare namespace PosOrderQueryService {
|
|
|
570
586
|
interface IList {
|
|
571
587
|
list: IListItem[];
|
|
572
588
|
total: number;
|
|
589
|
+
/** 下一页游标(使用游标分页时,如果还有下一页则返回) */
|
|
590
|
+
nextCursor?: {
|
|
591
|
+
lastCreatedAt: number;
|
|
592
|
+
lastId: string;
|
|
593
|
+
};
|
|
573
594
|
}
|
|
574
595
|
interface IOrderList {
|
|
575
596
|
}
|
|
@@ -604,6 +625,13 @@ export declare namespace PosOrderQueryService {
|
|
|
604
625
|
headers: string[];
|
|
605
626
|
/** 数据 */
|
|
606
627
|
data: string[][];
|
|
628
|
+
/** 游标分页-下一页游标信息(仅在使用 cursor 时返回) */
|
|
629
|
+
nextCursor?: {
|
|
630
|
+
/** 最后一条记录的创建时间 */
|
|
631
|
+
lastCreatedAt: number;
|
|
632
|
+
/** 最后一条记录的ID */
|
|
633
|
+
lastId: string;
|
|
634
|
+
};
|
|
607
635
|
}
|
|
608
636
|
interface IExportOrderDataByIds extends IExportOrderData {
|
|
609
637
|
}
|