calendar

package
v0.0.0-...-b3dc21d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package calendar 效率工具/日程

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalendarAdd

func CalendarAdd(ctx *corporation.App, payload []byte) (resp []byte, err error)

创建日历

See: https://work.weixin.qq.com/api/doc/90000/90135/92618

POST https://qyapi.weixin.qq.com/cgi-bin/oa/calendar/add?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/efficiency/calendar"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := calendar.CalendarAdd(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func CalendarDel

func CalendarDel(ctx *corporation.App, payload []byte) (resp []byte, err error)

删除日历

See: https://work.weixin.qq.com/api/doc/90000/90135/92620

POST https://qyapi.weixin.qq.com/cgi-bin/oa/calendar/del?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/efficiency/calendar"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := calendar.CalendarDel(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func CalendarGet

func CalendarGet(ctx *corporation.App, payload []byte) (resp []byte, err error)

获取日历

See: https://work.weixin.qq.com/api/doc/90000/90135/92621

POST https://qyapi.weixin.qq.com/cgi-bin/oa/calendar/get?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/efficiency/calendar"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := calendar.CalendarGet(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func CalendarUpdate

func CalendarUpdate(ctx *corporation.App, payload []byte) (resp []byte, err error)

更新日历

See: https://work.weixin.qq.com/api/doc/90000/90135/92619

POST https://qyapi.weixin.qq.com/cgi-bin/oa/calendar/update?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/efficiency/calendar"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := calendar.CalendarUpdate(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func ScheduleAdd

func ScheduleAdd(ctx *corporation.App, payload []byte) (resp []byte, err error)

创建日程

该接口用于在日历中创建一个日程。

See: https://work.weixin.qq.com/api/doc/90000/90135/92622

POST https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/add?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/efficiency/calendar"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := calendar.ScheduleAdd(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func ScheduleDel

func ScheduleDel(ctx *corporation.App, payload []byte) (resp []byte, err error)

取消日程

该接口用于取消指定的日程。

See: https://work.weixin.qq.com/api/doc/90000/90135/92625

POST https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/del?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/efficiency/calendar"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := calendar.ScheduleDel(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func ScheduleGet

func ScheduleGet(ctx *corporation.App, payload []byte) (resp []byte, err error)

获取日程

该接口用于获取指定的日程详情。

See: https://work.weixin.qq.com/api/doc/90000/90135/92624

POST https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/get?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/efficiency/calendar"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := calendar.ScheduleGet(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func ScheduleGetByCalendar

func ScheduleGetByCalendar(ctx *corporation.App, payload []byte) (resp []byte, err error)

获取日历下的日程列表

该接口用于获取指定的日历下的日程列表。

See: https://work.weixin.qq.com/api/doc/90000/90135/92626

POST https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/get_by_calendar?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/efficiency/calendar"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := calendar.ScheduleGetByCalendar(ctx, payload)

	fmt.Println(resp, err)
}
Output:

func ScheduleUpdate

func ScheduleUpdate(ctx *corporation.App, payload []byte) (resp []byte, err error)

更新日程

See: https://work.weixin.qq.com/api/doc/90000/90135/92623

POST https://qyapi.weixin.qq.com/cgi-bin/oa/schedule/update?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/linbaozhong/wxwork/corporation"
	"github.com/linbaozhong/wxwork/corporation/apis/efficiency/calendar"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := calendar.ScheduleUpdate(ctx, payload)

	fmt.Println(resp, err)
}
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL