@'Ji'Hoon Kim
cc: @Bonnie You, @Alice Bae
어드민용 부스트 강화 히스토리 조회 API 인터페이스임니다
GET boost-server/boostUpAdmin/boostUp/:userId
•
소비된 번개 수
•
결과(miss, regular win, jackpot)
•
캐시백 금액
•
시점
•
캠페인 아이디
•
강화 폴리시 아이디
1. URI 매개 변수
Name | Type | Required | In (path/query) | Description |
userId | string | True | path | 유저 아이디 |
createdAtStart | date-string | False | query | createdAtStart ≤ createdAt인 강화 내역만 조회 |
createdAtEnd | date-string | False | query | createdAt ≤ createdAtEnd인 강화 내역만 조회 |
take | number | False | query | 조회할 강화 내역 개수 (limit) |
skip | number | False | query | 스킵할 강화 내역 개수 (offset) |
2. 요청 예시
1) 아담의 부스트 강화 히스토리를 보고 싶어! 근데 10개만 볼래
GET boost-server/boostUpAdmin/boostUp/아담_user_id?take=10
2) 아담이 12월 14일 하루 동안 부스트를 강화한 히스토리를 보고 싶어!
GET boost-server/boostUpAdmin/boostUp/아담_user_id?createdAtStart=2021-12-14T00:00:00&createdAtEnd=2021-12-14T23:59:59
3. 응답 예시
{
"userId": "머시기"
"total": 2,
"list": [
{
"id": 1,
"resultType": "win",
"boostUpMoment": "before_buy_boost",
"boltPrice": 1,
"cashbackAmount": 100,
"discountRate": 3,
"status": "enabled",
"boostCampaignId": 캠페인_id,
"boostId": null,
"boostUpPolicyId": 강화_정책_id;
"createdAt": "오늘 오후 3시 1분";
"updatedAt": "오늘 오후 3시 1분";
},
{
"id": 2,
"resultType": "miss",
"boostUpMoment": "before_buy_boost",
"boltPrice": 1,
"cashbackAmount": 150,
"discountRate": 2,
"status": "enabled",
"boostCampaignId": 캠페인_id,
"boostId": null,
"boostUpPolicyId": 강화_정책_id;
"createdAt": "오늘 오후 3시 2분";
"updatedAt": "오늘 오후 3시 2분";
},
]
}
JSON
복사