Skip to content

Conversation

@Jeongminyooa
Copy link
Collaborator

#️⃣연관된 이슈

#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
    }
}

별통이 통계 : 요청 월에 대한 행복/후회 개수 + 기록리스트 + 최초 기록 여부

  • case 1 : 사용자의 기록이 없는 경우(최초 기록도 없음)
    GET /api/v1/expenses/statistics/{userKey}?year=2025&month=2
{
    "year": 2025,
    "month": 2,
    "goodCount": 0,
    "badCount": 0,
    "hasRecords": false,
    "records": []
}
  • case2 : 기록 있는 경우
{
    "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}

@Jeongminyooa Jeongminyooa added the enhancement New feature or request label Mar 29, 2025
@Jeongminyooa Jeongminyooa self-assigned this Mar 29, 2025
@github-actions
Copy link

Unit Test Results

1 tests   1 ✔️  0s ⏱️
1 suites  0 💤
1 files    0

Results for commit bb3b658.

@Jeongminyooa Jeongminyooa merged commit feeb6d3 into dev Mar 29, 2025
2 checks passed
@Jeongminyooa Jeongminyooa deleted the feature-36 branch June 16, 2025 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants