Skip to content

Commit

Permalink
Merge pull request #41 from deancn/master
Browse files Browse the repository at this point in the history
feat: add subscribe and unsubscribe event
  • Loading branch information
esap authored Dec 9, 2022
2 parents 69c10b4 + d11d59a commit 09c148b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion type.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ const (
TypeFile = "file" // 仅企业微信可用
TypeNews = "news"
TypeMpNews = "mpnews" // 仅企业微信可用
TypeEvent = "event" // 订阅或取消订阅
)

//WxErr 通用错误
const (
EventSubscribe = "subscribe"
EventUnsubscribe = "unsubscribe"
)

// WxErr 通用错误
type WxErr struct {
ErrCode int
ErrMsg string
Expand Down

1 comment on commit 09c148b

@esap
Copy link
Owner Author

@esap esap commented on 09c148b Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix #40

Please sign in to comment.