mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-07 06:02:26 +08:00
完善企业微信API
This commit is contained in:
21
work/tools/calendar.go
Normal file
21
work/tools/calendar.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user