@be-link/ecs-cli-nodejs 0.0.61 → 0.0.62
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.
|
@@ -8,6 +8,9 @@ export declare namespace Service {
|
|
|
8
8
|
pageIndex?: number;
|
|
9
9
|
pageSize?: number;
|
|
10
10
|
}
|
|
11
|
+
interface TotalPayAmountRequest {
|
|
12
|
+
vzanUserId: string;
|
|
13
|
+
}
|
|
11
14
|
}
|
|
12
15
|
namespace Response {
|
|
13
16
|
interface IQuerySummary {
|
|
@@ -46,11 +49,16 @@ export declare namespace Service {
|
|
|
46
49
|
pageIndex: number;
|
|
47
50
|
pageSize: number;
|
|
48
51
|
}
|
|
52
|
+
interface TotalPayAmountResponse {
|
|
53
|
+
totalPayAmount: number;
|
|
54
|
+
}
|
|
49
55
|
}
|
|
50
56
|
interface UserOrderController {
|
|
51
57
|
/** 获取用户订单汇总信息 */
|
|
52
58
|
summary(request: Request.IQuerySummary): Promise<Response.IQuerySummary>;
|
|
53
59
|
/** 获取用户订单列表 */
|
|
54
60
|
list(request: Request.IQueryList): Promise<Response.IQueryList>;
|
|
61
|
+
/** 获取用户已支付订单总金额 */
|
|
62
|
+
getTotalPayAmount(request: Request.TotalPayAmountRequest): Promise<Response.TotalPayAmountResponse>;
|
|
55
63
|
}
|
|
56
64
|
}
|
|
@@ -4,6 +4,7 @@ declare class UserOrderService extends BaseService implements Service.UserOrderC
|
|
|
4
4
|
protected prefixUrl: string;
|
|
5
5
|
summary(request: Service.Request.IQuerySummary): Promise<Service.Response.IQuerySummary>;
|
|
6
6
|
list(request: Service.Request.IQueryList): Promise<Service.Response.IQueryList>;
|
|
7
|
+
getTotalPayAmount(request: Service.Request.TotalPayAmountRequest): Promise<Service.Response.TotalPayAmountResponse>;
|
|
7
8
|
}
|
|
8
9
|
declare const userOrderService: UserOrderService;
|
|
9
10
|
export default userOrderService;
|
|
@@ -16,6 +16,9 @@ class UserOrderService extends service_1.default {
|
|
|
16
16
|
list(request) {
|
|
17
17
|
return (0, http_1.callApi)(this.getApiUrl(this.list), request);
|
|
18
18
|
}
|
|
19
|
+
getTotalPayAmount(request) {
|
|
20
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getTotalPayAmount), request);
|
|
21
|
+
}
|
|
19
22
|
}
|
|
20
23
|
const userOrderService = new UserOrderService();
|
|
21
24
|
exports.default = userOrderService;
|