Documentation ¶
Overview ¶
Package health 家校应用/健康上报
Index ¶
- func GetHealthReportStat(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func GetReportAnswer(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func GetReportJobInfo(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func GetReportJobids(ctx *corporation.App, payload []byte) (resp []byte, err error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHealthReportStat ¶
func GetHealthReportStat(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取健康上报使用统计
See: https://work.weixin.qq.com/api/doc/90000/90135/92747
POST https://qyapi.weixin.qq.com/cgi-bin/health/get_health_report_stat?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/school_app/health" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := health.GetHealthReportStat(ctx, payload) fmt.Println(resp, err) }
Output:
func GetReportAnswer ¶
func GetReportAnswer(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取用户填写答案
通过此接口可以获取指定的健康上报任务详情。
See: https://work.weixin.qq.com/api/doc/90000/90135/92754
POST https://qyapi.weixin.qq.com/cgi-bin/health/get_report_answer?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/school_app/health" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := health.GetReportAnswer(ctx, payload) fmt.Println(resp, err) }
Output:
func GetReportJobInfo ¶
func GetReportJobInfo(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取健康上报任务详情
通过此接口可以获取指定的健康上报任务详情。
See: https://work.weixin.qq.com/api/doc/90000/90135/92751
POST https://qyapi.weixin.qq.com/cgi-bin/health/get_report_job_info?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/school_app/health" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := health.GetReportJobInfo(ctx, payload) fmt.Println(resp, err) }
Output:
func GetReportJobids ¶
func GetReportJobids(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取健康上报任务ID列表
通过此接口可以获取企业当前正在运行的上报任务ID列表。
See: https://work.weixin.qq.com/api/doc/90000/90135/92749
POST https://qyapi.weixin.qq.com/cgi-bin/health/get_report_jobids?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/school_app/health" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := health.GetReportJobids(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.