package com.example.demo.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "app.finance")
public class FinanceDefaultsProperties {

    // 形如 key:label, key:label 用逗号分隔
    private String incomeCategories;
    private String expenseCategories;

    public String getIncomeCategories() { return incomeCategories; }
    public void setIncomeCategories(String incomeCategories) { this.incomeCategories = incomeCategories; }

    public String getExpenseCategories() { return expenseCategories; }
    public void setExpenseCategories(String expenseCategories) { this.expenseCategories = expenseCategories; }
}


