@yolo-croket-dev/amqp-access 0.4.31-slowquery.4 → 0.4.31
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/cart/query/get-carts-store-item-users.dto.d.ts +18 -0
- package/user-service/dto/cart/query/get-carts-store-item-users.dto.js +30 -0
- package/user-service/dto/cart/query/index.d.ts +1 -0
- package/user-service/dto/cart/query/index.js +1 -0
- package/user-service/services/amqp.cart.service.d.ts +2 -0
- package/user-service/services/amqp.cart.service.js +3 -0
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** 상품을 장바구니에 담은 유저 목록 조회 */
|
|
2
|
+
export declare class GetCartsStoreItemUsersPayload {
|
|
3
|
+
/** 상품 아이디 */
|
|
4
|
+
storeItemId: string;
|
|
5
|
+
/** 마지막 아이디 기준으로 검색 */
|
|
6
|
+
lastId?: string;
|
|
7
|
+
/** 가져올 개수 */
|
|
8
|
+
limit: number;
|
|
9
|
+
}
|
|
10
|
+
export interface GetCartsStoreItemUser {
|
|
11
|
+
/** 찜 아이디 */
|
|
12
|
+
_id: string;
|
|
13
|
+
/** 유저아이디 */
|
|
14
|
+
userId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GetCartsStoreItemUsersResult {
|
|
17
|
+
itemCartUsers: GetCartsStoreItemUser[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.GetCartsStoreItemUsersPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** 상품을 장바구니에 담은 유저 목록 조회 */
|
|
15
|
+
class GetCartsStoreItemUsersPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.GetCartsStoreItemUsersPayload = GetCartsStoreItemUsersPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsMongoId)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GetCartsStoreItemUsersPayload.prototype, "storeItemId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsMongoId)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], GetCartsStoreItemUsersPayload.prototype, "lastId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], GetCartsStoreItemUsersPayload.prototype, "limit", void 0);
|
|
@@ -2,3 +2,4 @@ export { GetCartsForWritePayPayload, GetCartsForWritePayResult, } from './get-ca
|
|
|
2
2
|
export * from './get-carts-for-seduce-add-cart.dto';
|
|
3
3
|
export * from './get-my-item-ids-for-seduce-add-cart.dto';
|
|
4
4
|
export * from './get-satisfied-cart-receipt-coupon.dto';
|
|
5
|
+
export * from './get-carts-store-item-users.dto';
|
|
@@ -21,3 +21,4 @@ Object.defineProperty(exports, "GetCartsForWritePayResult", { enumerable: true,
|
|
|
21
21
|
__exportStar(require("./get-carts-for-seduce-add-cart.dto"), exports);
|
|
22
22
|
__exportStar(require("./get-my-item-ids-for-seduce-add-cart.dto"), exports);
|
|
23
23
|
__exportStar(require("./get-satisfied-cart-receipt-coupon.dto"), exports);
|
|
24
|
+
__exportStar(require("./get-carts-store-item-users.dto"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { GetCartsForSeduceAddCartResult, GetCartsForWritePayPayload, GetCartsForWritePayResult, ReAddCartByChangedPayload, GetMyItemIdsForSeduceAddCartResult, CartReceiptCouponProcessorResult } from '@yolo-croket-dev/amqp-access/user-service/dto/cart';
|
|
4
|
+
import { GetCartsStoreItemUsersPayload, GetCartsStoreItemUsersResult } from '../dto/cart';
|
|
4
5
|
export declare class AmqpCartService {
|
|
5
6
|
private readonly client;
|
|
6
7
|
private readonly amqpManager;
|
|
@@ -10,4 +11,5 @@ export declare class AmqpCartService {
|
|
|
10
11
|
reAddCartByChanged(payload: ReAddCartByChangedPayload, param: AbstractParam): Promise<void>;
|
|
11
12
|
getMyItemIdsForSeduceAddCart(param: AbstractParam): Promise<GetMyItemIdsForSeduceAddCartResult>;
|
|
12
13
|
getSatisfiedCartReceiptCoupon(param: AbstractParam): Promise<CartReceiptCouponProcessorResult>;
|
|
14
|
+
getCartsStoreItemUsers(payload: GetCartsStoreItemUsersPayload, param: AbstractParam): Promise<GetCartsStoreItemUsersResult>;
|
|
13
15
|
}
|
|
@@ -36,6 +36,9 @@ let AmqpCartService = class AmqpCartService {
|
|
|
36
36
|
async getSatisfiedCartReceiptCoupon(param) {
|
|
37
37
|
return this.amqpManager.call('장바구니 쿠폰 조회', 'cart.get.satisfied-cart-receipt-coupon', undefined, param, { isErrorThrowing: true });
|
|
38
38
|
}
|
|
39
|
+
async getCartsStoreItemUsers(payload, param) {
|
|
40
|
+
return this.amqpManager.call('장바구니에 특정 상품을 담은 유저목록 조회', 'cart.get.store-item-users', payload, param, { isErrorThrowing: true });
|
|
41
|
+
}
|
|
39
42
|
};
|
|
40
43
|
exports.AmqpCartService = AmqpCartService;
|
|
41
44
|
exports.AmqpCartService = AmqpCartService = __decorate([
|