# wechat-service **Repository Path**: zeyc/wechat-service ## Basic Information - **Project Name**: wechat-service - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-28 - **Last Updated**: 2025-09-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 微信公众号服务端API(SDK) #### 介绍 此SDK通过简单配置就可以调用微信公众号API,简化繁琐的代码编写。 目前只对接了以下接口,后续有其他接口需求可以自行增加 ![输入图片说明](image.png) #### 微信公众号服务端API 该SDK是基于Spring-boot、retrofit-spring-boot-starter、redis技术进行搭建,核心是retrofit-spring-boot-starter #### 安装教程 自行引入该项目,可以自行搬代码 #### 使用说明 1. Springboot启动类增加 @RetrofitScan(basePackages = "com.czy.tech.client") ![输入图片说明](https://foruda.gitee.com/images/1759031488644726224/530e5658_8232811.png "屏幕截图") 2. application.yml配置项 ```yml ## 微信公众号相关信息配置 wechat: public: appSecret: xxxxxx appId: xxxxxx serviceUrl: https://api.weixin.qq.com/cgi-bin/ grantType: client_credential ## 参考retrofit配置 retrofit: global-retry: enable: true max-retries: 2 ## redis相关配置 spring: data: redis: password: xxx database: 0 host: xxxx port: xxx ``` #### 参与贡献