package com.ruoyi.app.utils.zaloPay;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "zalo.pay")
public class ZaloPayProperties {
    private List<ZaloPayConfig> configs;

    @Data
    public static class ZaloPayConfig {
        private String app_id;
        private String key1;
        private String key2;
        private String pay_type;

        // 可选：添加业务描述字段（非必须）
        private String description;
    }

}
