////
Search

BoostUpInput

태그
입력파라메터
설명
강화하기 입력값
Related to 강화 API (Response)
강화 API (Request)에 관계됨

api-server

POST /v1/boost/campaign/:campaignId/up
Request Body
{ "boostUpCount": number; "moment": BoostUpMomentType, "boostId": number | null; }
TypeScript
복사
boostId
구매 전 강화, 후적용 강화 → null
구매 후 강화 → 구매한 부스트의 id

1) 구매 전 강화 예시

POST /v1/boost/campaign/130/up → 캠페인 130번 강화 시도
Request Body
{ "boostUpCount": 2, // 2번 강화 시도 "moment": "before_buy_boost", // 구매 전 강화 "boostId": null // 구매 전 강화의 경우 boostId에 null 입력 }
TypeScript
복사

2) 구매 후 강화 예시

POST /v1/boost/campaign/130/up → 캠페인 130번 강화 시도
Request Body
{ "boostUpCount": 1, // 1번 강화 시도 "moment": "after_buy_boost", // 구매 후 강화 "boostId": 30 // 구매 후 강화의 경우 boostId에 구매한 부스트의 id 입력 }
TypeScript
복사
캠페인 130번을 구매해서 생긴 Boost의 id가 30일때, 위와 같이 boostId로 30을 넘겨줘야 한다

3) 후적용 강화 예시

Request Body
{ "boostUpCount": 2, // 2번 강화 시도 "moment": "manual_use_boost", // 후적용 강화 "boostId": null // 후적용 강화의 경우 boostId에 null 입력 }
TypeScript
복사
얘는 boost-server에 요청할때 export class BoostUpInput { @IsNumber() @ApiProperty() readonly campaignId: number; // v1/boost/campaign/:campaignId/up @IsNumber() @ApiProperty({ description: '강화 시도 횟수', example: 1 }) readonly boostUpCount: number; @IsEnum(BoostUpMomentType) @ApiProperty({ description: '강화 시도 위치', example: BoostUpMomentType.BEFORE_BUY_BOOST }) readonly moment: BoostUpMomentType; } @IsNumber() @IsOptional() @ApiProperty({ description: '강화하고자 하는 boost의 id (구매 후 강화)', example: 123, required: false }) readonly boostId: number | null; export enum BoostUpMomentType { BEFORE_BUY_BOOST = 'before_buy_boost', AFTER_BUY_BOOST = 'after_buy_boost', MANUAL_USE_BOOST = 'manual_use_boost', }
TypeScript
복사