silenceper / wechat

WeChat SDK for Go (微信SDK:简单、易用)
https://silenceper.com/wechat/
Apache License 2.0
4.74k stars 1.09k forks source link

wechat sdk 2.0版本发布 #230

Open silenceper opened 4 years ago

silenceper commented 4 years ago

目前wechat sdk从开源至今已经过去近4年,目前已经有大量用户使用该sdk。 同时随着微信开放平台发展,该sdk的架构组织已经凸显鸡肋。

同时在2.0版本未稳定以前,v1版本也会继续维护

v2.0 版本主要内容:

分支:

目前v2.0版本内容在 release-2.0

主要影响:

因为变化较大,所用升级到了v2.0版本,1.x版本同时也会继续维护。

使用go module的用户引入包路径变更为:

import "https://github.com/silenceper/wechat/v2"

参与贡献

在进行贡献前,请先提交issue,描述需要参与贡献的内容

有三个地方可以参与进来:

源码

仓库地址:https://github.com/gowechat/docs

使用例子

非常建议在完善新增API之后,同时增加使用的样例

仓库地址:https://github.com/gowechat/example

solarhell commented 4 years ago

有意参与 有具体的变更计划吗

silenceper commented 4 years ago

有意参与 有具体的变更计划吗 👍

欢迎哈,release-2.0的大致框架已经定出来了,我会列出一个待完善功能,欢迎参与。

amorist commented 4 years ago

~~期待规划微信第三方平台功能,希望可以参与贡献。 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Third_party_platform_appid.html~~

我刚刚看到有第三方平台相关接口了,在openplatform下面。

solarhell commented 4 years ago

公众号目前是和web框架绑定的比较深的,小程序不是,感觉分开来做反而好一些。

solarhell commented 4 years ago

以目前Java里最流行的 https://github.com/Wechat-Group/WxJava 为例子,他主要的用户群体就是Spring Boot, 所以我们是不是可以把大部分接口都设置成兼容 http.Handler 签名或者直接兼容 gin?

silenceper commented 4 years ago

以目前Java里最流行的 https://github.com/Wechat-Group/WxJava 为例子,他主要的用户群体就是Spring Boot, 所以我们是不是可以把大部分接口都设置成兼容 http.Handler 签名或者直接兼容 gin?

现在是已经兼容web框架,对于消息、事件通知暴露req,writer。

silenceper commented 4 years ago

Release v2.0.0

maskshell commented 4 years ago

将分支名称命名为 release vXXX,不合乎习惯,release 是根据tag打出来的一个发布 tag和release包含的代码是固定的,是对某个时点的固化。而branch的内容是动态变化的。

silenceper commented 4 years ago

将分支名称命名为 release vXXX,不合乎习惯,release 是根据tag打出来的一个发布 tag和release包含的代码是固定的,是对某个时点的固化。而branch的内容是动态变化的。

go module 最终还是先根据tag。release-xxxx 这里有参考kubernetes的分支命名。