package com.example.demo.common;

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

@Component
@ConfigurationProperties(prefix = "app.defaults")
public class AppDefaultsProperties {

    private Long shopId = 1L;
    private Long userId = 2L;

    // 默认账户名称（可配置，避免硬编码）
    private String accountCashName = "现金";
    private String accountBankName = "银行存款";
    private String accountWechatName = "微信";
    private String accountAlipayName = "支付宝";

    public Long getShopId() { return shopId; }
    public void setShopId(Long shopId) { this.shopId = shopId; }
    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }

    public String getAccountCashName() { return accountCashName; }
    public void setAccountCashName(String accountCashName) { this.accountCashName = accountCashName; }
    public String getAccountBankName() { return accountBankName; }
    public void setAccountBankName(String accountBankName) { this.accountBankName = accountBankName; }
    public String getAccountWechatName() { return accountWechatName; }
    public void setAccountWechatName(String accountWechatName) { this.accountWechatName = accountWechatName; }
    public String getAccountAlipayName() { return accountAlipayName; }
    public void setAccountAlipayName(String accountAlipayName) { this.accountAlipayName = accountAlipayName; }
}







