@be-link/ecommerce-client-backend-service-node-sdk 0.0.1 → 0.0.2
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/modules/room/service.d.ts +14 -0
- package/modules/room/service.js +78 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RoomService } from './types';
|
|
2
|
+
import BaseService from '../BaseService';
|
|
3
|
+
import { ListActivityAPIRequest, ListActivityAPIResponse } from '@be-link/ecommerce-volcengine-open-api-sdk';
|
|
4
|
+
declare class RoomServiceClass extends BaseService implements RoomService.BaseController {
|
|
5
|
+
protected prefixUrl: string;
|
|
6
|
+
sync(request: ListActivityAPIRequest): Promise<ListActivityAPIResponse>;
|
|
7
|
+
list(request: RoomService.Request.List): Promise<RoomService.Response.List>;
|
|
8
|
+
detail(request: RoomService.Request.Detail): Promise<RoomService.Response.Detail>;
|
|
9
|
+
share(request: RoomService.Request.Share): Promise<RoomService.Response.Share>;
|
|
10
|
+
uploadShareCover(request: RoomService.Request.UploadShareCover): Promise<RoomService.Response.UploadShareCover>;
|
|
11
|
+
settle(request: RoomService.Request.settle): Promise<RoomService.Response.settle>;
|
|
12
|
+
}
|
|
13
|
+
export declare const roomService: RoomServiceClass;
|
|
14
|
+
export default roomService;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.roomService = void 0;
|
|
16
|
+
const tsoa_1 = require("tsoa");
|
|
17
|
+
const http_1 = require("../../utils/http");
|
|
18
|
+
const BaseService_1 = __importDefault(require("../BaseService"));
|
|
19
|
+
let RoomServiceClass = class RoomServiceClass extends BaseService_1.default {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.prefixUrl = '/room';
|
|
23
|
+
}
|
|
24
|
+
sync(request) {
|
|
25
|
+
return (0, http_1.callApi)(this.getApiUrl(this.sync), request);
|
|
26
|
+
}
|
|
27
|
+
list(request) {
|
|
28
|
+
return (0, http_1.callApi)(this.getApiUrl(this.list), request);
|
|
29
|
+
}
|
|
30
|
+
detail(request) {
|
|
31
|
+
return (0, http_1.callApi)(this.getApiUrl(this.detail), request);
|
|
32
|
+
}
|
|
33
|
+
share(request) {
|
|
34
|
+
return (0, http_1.callApi)(this.getApiUrl(this.share), request);
|
|
35
|
+
}
|
|
36
|
+
uploadShareCover(request) {
|
|
37
|
+
return (0, http_1.callApi)(this.getApiUrl(this.uploadShareCover), request);
|
|
38
|
+
}
|
|
39
|
+
settle(request) {
|
|
40
|
+
return (0, http_1.callApi)(this.getApiUrl(this.settle), request);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, tsoa_1.OperationId)('同步活动'),
|
|
45
|
+
(0, tsoa_1.Post)('sync'),
|
|
46
|
+
__param(0, (0, tsoa_1.Body)())
|
|
47
|
+
], RoomServiceClass.prototype, "sync", null);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, tsoa_1.OperationId)('房间列表查询'),
|
|
50
|
+
(0, tsoa_1.Post)('list'),
|
|
51
|
+
__param(0, (0, tsoa_1.Body)())
|
|
52
|
+
], RoomServiceClass.prototype, "list", null);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, tsoa_1.OperationId)('房间详情查询'),
|
|
55
|
+
(0, tsoa_1.Post)('detail'),
|
|
56
|
+
__param(0, (0, tsoa_1.Body)())
|
|
57
|
+
], RoomServiceClass.prototype, "detail", null);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, tsoa_1.OperationId)('房间分享信息查询'),
|
|
60
|
+
(0, tsoa_1.Post)('share'),
|
|
61
|
+
__param(0, (0, tsoa_1.Body)())
|
|
62
|
+
], RoomServiceClass.prototype, "share", null);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, tsoa_1.OperationId)('上传分分享封面'),
|
|
65
|
+
(0, tsoa_1.Post)('upload-share-cover'),
|
|
66
|
+
__param(0, (0, tsoa_1.Body)())
|
|
67
|
+
], RoomServiceClass.prototype, "uploadShareCover", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, tsoa_1.OperationId)('结算状态查询'),
|
|
70
|
+
(0, tsoa_1.Post)('settle'),
|
|
71
|
+
__param(0, (0, tsoa_1.Body)())
|
|
72
|
+
], RoomServiceClass.prototype, "settle", null);
|
|
73
|
+
RoomServiceClass = __decorate([
|
|
74
|
+
(0, tsoa_1.Route)('room'),
|
|
75
|
+
(0, tsoa_1.Tags)('Room')
|
|
76
|
+
], RoomServiceClass);
|
|
77
|
+
exports.roomService = new RoomServiceClass();
|
|
78
|
+
exports.default = exports.roomService;
|