@yolo-croket-dev/amqp-access 0.5.181-beta.18-sj → 0.5.181-beta.18
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 +1 -1
- package/user-service/dto/store-md-theme/query/get-store-md-themes-by-brand-name.dto.d.ts +12 -0
- package/user-service/dto/store-md-theme/query/get-store-md-themes-by-brand-name.dto.js +24 -0
- package/user-service/dto/store-md-theme/query/index.d.ts +1 -0
- package/user-service/dto/store-md-theme/query/index.js +1 -0
- package/user-service/services/amqp.store-md-theme.service.d.ts +2 -1
- package/user-service/services/amqp.store-md-theme.service.js +3 -0
package/package.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StoreMDThemeEntity } from '@yolo-croket-dev/entity/src/storemdtheme';
|
|
2
|
+
export declare class GetStoreMDThemesByBrandNamePayload {
|
|
3
|
+
brandName: string;
|
|
4
|
+
}
|
|
5
|
+
export interface StoreMDThemesByBrandName extends Pick<StoreMDThemeEntity, 'MDThemeMainTitle' | 'MDThemeSubTitle' | 'MDThemeImg'> {
|
|
6
|
+
MDThemeId: string;
|
|
7
|
+
appLink: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class GetStoreMDThemesByBrandNameResult {
|
|
10
|
+
allMDThemeNums: number;
|
|
11
|
+
MDThemeList: StoreMDThemesByBrandName[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetStoreMDThemesByBrandNameResult = exports.GetStoreMDThemesByBrandNamePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetStoreMDThemesByBrandNamePayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetStoreMDThemesByBrandNamePayload = GetStoreMDThemesByBrandNamePayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GetStoreMDThemesByBrandNamePayload.prototype, "brandName", void 0);
|
|
22
|
+
class GetStoreMDThemesByBrandNameResult {
|
|
23
|
+
}
|
|
24
|
+
exports.GetStoreMDThemesByBrandNameResult = GetStoreMDThemesByBrandNameResult;
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./get-store-md-theme-by-id.dto"), exports);
|
|
18
18
|
__exportStar(require("./search-store-md-theme-detail-by-id.dto"), exports);
|
|
19
19
|
__exportStar(require("./search-store-md-theme-ids-by-item-id.dto"), exports);
|
|
20
|
+
__exportStar(require("./get-store-md-themes-by-brand-name.dto"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { StoreMDThemeEntity } from '@yolo-croket-dev/entity/src/storemdtheme';
|
|
4
|
-
import { GetStoreMDThemeByIdPayload, SearchStoreMDThemeDetailByIdPayload, SearchStoreMDThemeDetailByIdResult, SearchStoreMDThemeIdsByItemIdPayload, SearchStoreMDThemeIdsByItemIdResult } from '../dto/store-md-theme';
|
|
4
|
+
import { GetStoreMDThemeByIdPayload, SearchStoreMDThemeDetailByIdPayload, SearchStoreMDThemeDetailByIdResult, SearchStoreMDThemeIdsByItemIdPayload, SearchStoreMDThemeIdsByItemIdResult, GetStoreMDThemesByBrandNamePayload, GetStoreMDThemesByBrandNameResult } from '../dto/store-md-theme';
|
|
5
5
|
export declare class AmqpStoreMdThemeService {
|
|
6
6
|
private readonly client;
|
|
7
7
|
private readonly amqpManager;
|
|
@@ -9,4 +9,5 @@ export declare class AmqpStoreMdThemeService {
|
|
|
9
9
|
getStoreMDThemeById(payload: GetStoreMDThemeByIdPayload, param: AbstractParam): Promise<StoreMDThemeEntity>;
|
|
10
10
|
searchStoreMDThemeDetailById(payload: SearchStoreMDThemeDetailByIdPayload, param: AbstractParam): Promise<SearchStoreMDThemeDetailByIdResult>;
|
|
11
11
|
searchStoreMDThemeIdsByItemId(payload: SearchStoreMDThemeIdsByItemIdPayload, param: AbstractParam): Promise<SearchStoreMDThemeIdsByItemIdResult>;
|
|
12
|
+
getStoreMDThemesByBrandName(payload: GetStoreMDThemesByBrandNamePayload, param: AbstractParam): Promise<GetStoreMDThemesByBrandNameResult>;
|
|
12
13
|
}
|
|
@@ -30,6 +30,9 @@ let AmqpStoreMdThemeService = class AmqpStoreMdThemeService {
|
|
|
30
30
|
async searchStoreMDThemeIdsByItemId(payload, param) {
|
|
31
31
|
return this.amqpManager.call('상품 아이디로 MDTheme 아이디 리스트 조회', 'store-md-theme.get.ids-by-item-id', payload, param, { isErrorThrowing: true });
|
|
32
32
|
}
|
|
33
|
+
async getStoreMDThemesByBrandName(payload, param) {
|
|
34
|
+
return this.amqpManager.call('브랜드 이름으로 MDTheme 리스트 조회', 'store-md-theme.get.by-brand-name', payload, param, { isErrorThrowing: true });
|
|
35
|
+
}
|
|
33
36
|
};
|
|
34
37
|
exports.AmqpStoreMdThemeService = AmqpStoreMdThemeService;
|
|
35
38
|
exports.AmqpStoreMdThemeService = AmqpStoreMdThemeService = __decorate([
|