| package com.mzl.flower.config; | 
|   | 
| import org.springframework.boot.context.properties.ConfigurationProperties; | 
| import org.springframework.context.annotation.Configuration; | 
|   | 
| import java.util.Map; | 
|   | 
| @Configuration | 
| @ConfigurationProperties(prefix = "wechat") | 
| public class WxMiniappProperties { | 
|     private Miniapp customer; | 
|     private Miniapp supplier; | 
|     private Miniapp partner; | 
|   | 
|     private String merchantId; | 
|   | 
|     public String getMerchantId() { | 
|         return merchantId; | 
|     } | 
|   | 
|     public void setMerchantId(String merchantId) { | 
|         this.merchantId = merchantId; | 
|     } | 
|   | 
|     public Miniapp getCustomer() { | 
|         return customer; | 
|     } | 
|   | 
|     public void setCustomer(Miniapp customer) { | 
|         this.customer = customer; | 
|     } | 
|   | 
|     public Miniapp getSupplier() { | 
|         return supplier; | 
|     } | 
|   | 
|     public void setSupplier(Miniapp supplier) { | 
|         this.supplier = supplier; | 
|     } | 
|   | 
|     public Miniapp getPartner() { | 
|         return partner; | 
|     } | 
|   | 
|     public void setPartner(Miniapp partner) { | 
|         this.partner = partner; | 
|     } | 
|   | 
|     public static class Miniapp { | 
|         private String appid; | 
|         private String secret; | 
|   | 
|         public String getAppid() { | 
|             return appid; | 
|         } | 
|   | 
|         public void setAppid(String appid) { | 
|             this.appid = appid; | 
|         } | 
|   | 
|         public String getSecret() { | 
|             return secret; | 
|         } | 
|   | 
|         public void setSecret(String secret) { | 
|             this.secret = secret; | 
|         } | 
|     } | 
| } |