[feat] 2차 MVP 기능 개발 #37
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
#36
📝작업 내용
별통이 모아보기 : 월별 별 개수 / 일 조회 (1년 단위)
GET
/api/v1/expenses/summary/{userKey}?year=2025{ "year": 2025, "monthlyRecords": { "2": { "recordCount": 10, "totalDaysInMonth": 28 }, "3": { "recordCount": 10, "totalDaysInMonth": 31 } } }별통이 통계 : 월별 카테고리 개수
GET /api/v1/expenses/category-statistics/{userKey}?year=2025&month=2{ "year": 2025, "month": 2, "categoryCounts": { "LAZINESS": 0, "BOASTFULNESS": 0, "AFFECTION": 1, "HAPPINESS": 1, "ENERGY": 1, "FLEX": 1, "SAVING": 1, "GROWTH": 1, "MISS": 0, "HEALING": 1, "DIGNITY": 1, "MEANINGLESSNESS": 0, "ADDICTION": 0, "HEALTH": 2, "HABIT": 0, "IMPULSE": 0, "NONE": 0, "OVERFRUGALITY": 0, "GREED": 0 } }별통이 통계 : 요청 월에 대한 행복/후회 개수 + 기록리스트 + 최초 기록 여부
GET /api/v1/expenses/statistics/{userKey}?year=2025&month=2{ "year": 2025, "month": 2, "goodCount": 0, "badCount": 0, "hasRecords": false, "records": [] }{ "year": 2025, "month": 2, "goodCount": 5, "badCount": 5, "hasRecords": true, "records": [ { "date": "2025-02-15", "contents": [ { "flag": "GOOD", "category": "ENERGY", "memo": "Expense for energy" } ] }, { "date": "2025-02-19", "contents": [ { "flag": "BAD", "category": "GROWTH", "memo": "Random expense for growth" } ] }, { "date": "2025-02-25", "contents": [ { "flag": "GOOD", "category": "HEALING", "memo": "Expense for healing" } ] }, { "date": "2025-02-02", "contents": [ { "flag": "BAD", "category": "HAPPINESS", "memo": "Expense for happiness" } ] }, { "date": "2025-02-14", "contents": [ { "flag": "GOOD", "category": "FLEX", "memo": "Expense for flex" } ] }, { "date": "2025-02-04", "contents": [ { "flag": "BAD", "category": "DIGNITY", "memo": "Expense for dignity" } ] }, { "date": "2025-02-10", "contents": [ { "flag": "GOOD", "category": "AFFECTION", "memo": "Expense for affection" } ] }, { "date": "2025-02-22", "contents": [ { "flag": "BAD", "category": "HEALTH", "memo": "Expense for health" } ] }, { "date": "2025-02-18", "contents": [ { "flag": "GOOD", "category": "SAVING", "memo": "Expense for saving" } ] }, { "date": "2025-02-11", "contents": [ { "flag": "BAD", "category": "HEALTH", "memo": "Expense for health" } ] } ] }공지사항 읽음 여부
GET
api/v1/notice/status/{userKey}PUT
api/v1/notice/status/{userKey}