patrol_report

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 patrol_report 政民沟通/巡查上报

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func CategoryStatistic

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

获取上报事件分类统计

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

POST https://qyapi.weixin.qq.com/cgi-bin/report/patrol/category_statistic?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/gov/patrol_report"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetCorpStatus

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

获取单位巡查上报数据统计

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

POST https://qyapi.weixin.qq.com/cgi-bin/report/patrol/get_corp_status?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/gov/patrol_report"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetGridInfo

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

获取配置的网格及网格负责人

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

GET https://qyapi.weixin.qq.com/cgi-bin/report/patrol/get_grid_info?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/gov/patrol_report"
)

func main() {
	var ctx *corporation.App

	resp, err := patrol_report.GetGridInfo(ctx)

	fmt.Println(resp, err)
}
Output:

func GetOrderInfo

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

获取巡查上报的事件详情信息

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

POST https://qyapi.weixin.qq.com/cgi-bin/report/patrol/get_order_info?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/gov/patrol_report"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetOrderList

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

获取巡查上报事件列表

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

POST https://qyapi.weixin.qq.com/cgi-bin/report/patrol/get_order_list?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/gov/patrol_report"
)

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetUserStatus

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

获取个人巡查上报数据统计

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

POST https://qyapi.weixin.qq.com/cgi-bin/report/patrol/get_user_status?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/cvblood/qywxapi/corporation"
	"github.com/cvblood/qywxapi/corporation/apis/gov/patrol_report"
)

func main() {
	var ctx *corporation.App

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