journal

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Package journal OA/汇报

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRecordDetail

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

获取汇报记录详情

企业可通过access_token调用本接口,根据汇报记录单号查询企业微信“汇报应用”的汇报详情。

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

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

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/oa/journal"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetRecordList

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

批量获取汇报记录单号

表单ID的获取方式:管理后台—汇报应用—某个汇报的内容设置页—点击“汇报名称”,即可获取

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

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

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/oa/journal"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetStatList

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

获取汇报统计数据

企业可通过access_token调用本接口,根据汇报表单id查询企业微信“汇报应用”的汇报统计汇总信息。该接口只能拉取到已经汇总的统计数据,对于尚未完成汇总的周期不会返回。

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

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

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/oa/journal"
)

func main() {
	var ctx *corporation.App

	payload := []byte("{}")
	resp, err := journal.GetStatList(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