@yolo-croket-dev/amqp-access 0.7.2-jun.2 → 0.7.2-jun.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { DeleteStoryForAdminPayload, GetStoryListForAdminPayload, GetStoryListForAdminResult, GetStoryDetailForAdminPayload, GetStoryDetailForAdminResult } from '../../dto/story.modules';
|
|
3
|
+
import { DeleteStoryForAdminPayload, EditStoryForAdminPayload, GetStoryListForAdminPayload, GetStoryListForAdminResult, GetStoryDetailForAdminPayload, GetStoryDetailForAdminResult, RegStoryForAdminPayload, RegStoryForAdminResult } from '../../dto/story.modules';
|
|
4
4
|
/**
|
|
5
5
|
* @author jun
|
|
6
6
|
* @description 스토리 관련 AMQP 서비스
|
|
@@ -12,6 +12,14 @@ export declare class AmqpStoryService {
|
|
|
12
12
|
constructor(client: ClientProxy);
|
|
13
13
|
getStoryListForAdmin(payload: GetStoryListForAdminPayload, param: AbstractParam): Promise<GetStoryListForAdminResult>;
|
|
14
14
|
getStoryDetailForAdmin(payload: GetStoryDetailForAdminPayload, param: AbstractParam): Promise<GetStoryDetailForAdminResult>;
|
|
15
|
+
/**
|
|
16
|
+
* @description 관리자용 스토리 수정
|
|
17
|
+
*/
|
|
18
|
+
editStoryForAdmin(payload: EditStoryForAdminPayload, param: AbstractParam): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* @description 관리자용 스토리 등록
|
|
21
|
+
*/
|
|
22
|
+
regStoryForAdmin(payload: RegStoryForAdminPayload, param: AbstractParam): Promise<RegStoryForAdminResult>;
|
|
15
23
|
/**
|
|
16
24
|
* @description 관리자용 스토리 삭제
|
|
17
25
|
*/
|
|
@@ -32,6 +32,18 @@ let AmqpStoryService = class AmqpStoryService {
|
|
|
32
32
|
async getStoryDetailForAdmin(payload, param) {
|
|
33
33
|
return this.amqpManager.call('관리자용 스토리 상세 조회', 'story.get.story-detail-for-admin', payload, param, { isErrorThrowing: true });
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* @description 관리자용 스토리 수정
|
|
37
|
+
*/
|
|
38
|
+
async editStoryForAdmin(payload, param) {
|
|
39
|
+
await this.amqpManager.call('관리자용 스토리 수정', 'story.edit.story-for-admin', payload, param, { isErrorThrowing: true });
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @description 관리자용 스토리 등록
|
|
43
|
+
*/
|
|
44
|
+
async regStoryForAdmin(payload, param) {
|
|
45
|
+
return this.amqpManager.call('관리자용 스토리 등록', 'story.reg.story-for-admin', payload, param, { isErrorThrowing: true });
|
|
46
|
+
}
|
|
35
47
|
/**
|
|
36
48
|
* @description 관리자용 스토리 삭제
|
|
37
49
|
*/
|