1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-07 06:02:26 +08:00

完善企业微信API

This commit is contained in:
hb
2021-10-28 14:21:02 +08:00
parent d3f1a83d46
commit 7e24cb9e8d
10 changed files with 952 additions and 0 deletions

21
work/tools/calendar.go Normal file
View File

@@ -0,0 +1,21 @@
package tools
import (
"github.com/silenceper/wechat/v2/work/context"
)
const (
calendarURL = "https://qyapi.weixin.qq.com/cgi-bin/oa/calendar/get?access_token=%s"
)
//Calendar 日历管理
type Calendar struct {
*context.Context
}
//NewCalendar 实例化
func NewCalendar(context *context.Context) *Calendar {
calendar := new(Calendar)
calendar.Context = context
return calendar
}