mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-06 13:42:26 +08:00
22 lines
392 B
Go
22 lines
392 B
Go
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
|
|
}
|