@be-link/ecommerce-trade-service-node-sdk 0.0.51 → 0.0.52
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as DTO from '../../../types';
|
|
2
|
+
import { ENUM } from '../../..';
|
|
2
3
|
export declare namespace RosOrderQueryService {
|
|
3
4
|
namespace Entity { }
|
|
4
5
|
namespace Request {
|
|
@@ -42,4 +43,59 @@ export declare namespace RosOrderQueryService {
|
|
|
42
43
|
interface QueryByWebController {
|
|
43
44
|
orderList(request: RosOrderQueryService.Request.IOrderList): Promise<DTO.ReverseQueryResult[]>;
|
|
44
45
|
}
|
|
46
|
+
namespace ByUser {
|
|
47
|
+
namespace Request {
|
|
48
|
+
interface IRefundOrderList {
|
|
49
|
+
userId: string;
|
|
50
|
+
status?: ENUM.ReverseOrderStatus;
|
|
51
|
+
pageIndex: number;
|
|
52
|
+
pageSize: number;
|
|
53
|
+
}
|
|
54
|
+
interface IRefundOrderDetail {
|
|
55
|
+
reverseOrderId: string;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
namespace Response {
|
|
59
|
+
interface IRefundOrderListItem {
|
|
60
|
+
orderId: string;
|
|
61
|
+
productName: string;
|
|
62
|
+
productSpec: string;
|
|
63
|
+
quantity: number;
|
|
64
|
+
unitPrice: number;
|
|
65
|
+
productImage: string;
|
|
66
|
+
totalAmount: number;
|
|
67
|
+
actualAmount: number;
|
|
68
|
+
orderStatus: ENUM.OrderStatus;
|
|
69
|
+
reverseOrderStatus: ENUM.ReverseOrderStatus;
|
|
70
|
+
createdAt: number;
|
|
71
|
+
productPick: string;
|
|
72
|
+
source: ENUM.OrderSource;
|
|
73
|
+
orderType: ENUM.OrderType;
|
|
74
|
+
}
|
|
75
|
+
interface IRefundOrderList {
|
|
76
|
+
list: IRefundOrderListItem[];
|
|
77
|
+
total: number;
|
|
78
|
+
}
|
|
79
|
+
interface IRefundOrderDetail {
|
|
80
|
+
basic: {
|
|
81
|
+
reverseOrderId: string;
|
|
82
|
+
status: ENUM.ReverseOrderStatus;
|
|
83
|
+
arrivalStatus: ENUM.ReverseArrivalStatus;
|
|
84
|
+
amount: number;
|
|
85
|
+
reason: string;
|
|
86
|
+
applyReason: string;
|
|
87
|
+
};
|
|
88
|
+
product: {
|
|
89
|
+
productImage: string;
|
|
90
|
+
productName: string;
|
|
91
|
+
productSpec: string;
|
|
92
|
+
unitPrice: number;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
interface QueryByUserController {
|
|
98
|
+
orderList(request: RosOrderQueryService.ByUser.Request.IRefundOrderList): Promise<RosOrderQueryService.ByUser.Response.IRefundOrderList>;
|
|
99
|
+
orderDetail(request: RosOrderQueryService.ByUser.Request.IRefundOrderDetail): Promise<RosOrderQueryService.ByUser.Response.IRefundOrderDetail>;
|
|
100
|
+
}
|
|
45
101
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RosOrderQueryService } from './types';
|
|
2
|
+
import BaseService from '../../BaseService';
|
|
3
|
+
declare class RosOrderQueryByUserService extends BaseService implements RosOrderQueryService.QueryByUserController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
orderList(request: RosOrderQueryService.ByUser.Request.IRefundOrderList): Promise<RosOrderQueryService.ByUser.Response.IRefundOrderList>;
|
|
6
|
+
orderDetail(request: RosOrderQueryService.ByUser.Request.IRefundOrderDetail): Promise<RosOrderQueryService.ByUser.Response.IRefundOrderDetail>;
|
|
7
|
+
}
|
|
8
|
+
export declare const orderQueryByUserService: RosOrderQueryByUserService;
|
|
9
|
+
export default orderQueryByUserService;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.orderQueryByUserService = void 0;
|
|
16
|
+
const tsoa_1 = require("tsoa");
|
|
17
|
+
const http_1 = require("../../../utils/http");
|
|
18
|
+
const BaseService_1 = __importDefault(require("../../BaseService"));
|
|
19
|
+
let RosOrderQueryByUserService = class RosOrderQueryByUserService extends BaseService_1.default {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.prefixUrl = '/ros/query/user';
|
|
23
|
+
}
|
|
24
|
+
orderList(request) {
|
|
25
|
+
return (0, http_1.callApi)(this.getApiUrl(this.orderList), request);
|
|
26
|
+
}
|
|
27
|
+
orderDetail(request) {
|
|
28
|
+
return (0, http_1.callApi)(this.getApiUrl(this.orderDetail), request);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, tsoa_1.OperationId)('查询用户退款订单列表'),
|
|
33
|
+
(0, tsoa_1.Post)('order-list'),
|
|
34
|
+
__param(0, (0, tsoa_1.Body)())
|
|
35
|
+
], RosOrderQueryByUserService.prototype, "orderList", null);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, tsoa_1.OperationId)('查询退款订单详情'),
|
|
38
|
+
(0, tsoa_1.Post)('order-detail'),
|
|
39
|
+
__param(0, (0, tsoa_1.Body)())
|
|
40
|
+
], RosOrderQueryByUserService.prototype, "orderDetail", null);
|
|
41
|
+
RosOrderQueryByUserService = __decorate([
|
|
42
|
+
(0, tsoa_1.Route)('ros/query/user'),
|
|
43
|
+
(0, tsoa_1.Tags)('RosOrderQuery')
|
|
44
|
+
], RosOrderQueryByUserService);
|
|
45
|
+
exports.orderQueryByUserService = new RosOrderQueryByUserService();
|
|
46
|
+
exports.default = exports.orderQueryByUserService;
|