Documentation ¶
Overview ¶
Package report 日志
Index ¶
- func GetUnreadCount(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func List(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func ListByType(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func ListByUserId(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func ReportCommentList(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func ReportReceiverList(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func Simplelist(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func Statistics(ctx *dingding.App, payload []byte) (resp []byte, err error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUnreadCount ¶
获取用户日志未读数
See: https://ding-doc.dingtalk.com/doc#/serverapi2/yz2vbx
POST https://oapi.dingtalk.com/topapi/report/getunreadcount?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/dingding" "github.com/fastwego/dingding/apis/report" ) func main() { var ctx *dingding.App payload := []byte("{}") resp, err := report.GetUnreadCount(ctx, payload) fmt.Println(resp, err) }
Output:
func List ¶
获取企业用户日志数据
See: https://ding-doc.dingtalk.com/doc#/serverapi2/yknhmg
POST https://oapi.dingtalk.com/topapi/report/list?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/dingding" "github.com/fastwego/dingding/apis/report" ) func main() { var ctx *dingding.App payload := []byte("{}") resp, err := report.List(ctx, payload) fmt.Println(resp, err) }
Output:
func ListByType ¶
获取日志相关人员列表
See: https://ding-doc.dingtalk.com/doc#/serverapi2/qga9wa
POST https://oapi.dingtalk.com/topapi/report/statistics/listbytype?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/dingding" "github.com/fastwego/dingding/apis/report" ) func main() { var ctx *dingding.App payload := []byte("{}") resp, err := report.ListByType(ctx, payload) fmt.Println(resp, err) }
Output:
func ListByUserId ¶
获取用户可见的日志模板
See: https://ding-doc.dingtalk.com/doc#/serverapi2/lbt9b4
POST https://oapi.dingtalk.com/topapi/report/template/listbyuserid?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/dingding" "github.com/fastwego/dingding/apis/report" ) func main() { var ctx *dingding.App payload := []byte("{}") resp, err := report.ListByUserId(ctx, payload) fmt.Println(resp, err) }
Output:
func ReportCommentList ¶
获取日志评论详情
See: https://ding-doc.dingtalk.com/doc#/serverapi2/pmyeg8
POST https://oapi.dingtalk.com/topapi/report/comment/list?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/dingding" "github.com/fastwego/dingding/apis/report" ) func main() { var ctx *dingding.App payload := []byte("{}") resp, err := report.ReportCommentList(ctx, payload) fmt.Println(resp, err) }
Output:
func ReportReceiverList ¶
获取日志接收人员列表
See: https://ding-doc.dingtalk.com/doc#/serverapi2/el6lgx
POST https://oapi.dingtalk.com/topapi/report/receiver/list?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/dingding" "github.com/fastwego/dingding/apis/report" ) func main() { var ctx *dingding.App payload := []byte("{}") resp, err := report.ReportReceiverList(ctx, payload) fmt.Println(resp, err) }
Output:
func Simplelist ¶
获取用户发送日志概要信息
See: https://ding-doc.dingtalk.com/doc#/serverapi2/cp4mxh
POST https://oapi.dingtalk.com/topapi/report/simplelist?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/dingding" "github.com/fastwego/dingding/apis/report" ) func main() { var ctx *dingding.App payload := []byte("{}") resp, err := report.Simplelist(ctx, payload) fmt.Println(resp, err) }
Output:
func Statistics ¶
获取日志统计数据
See: https://ding-doc.dingtalk.com/doc#/serverapi2/lhlow3
POST https://oapi.dingtalk.com/topapi/report/statistics?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/dingding" "github.com/fastwego/dingding/apis/report" ) func main() { var ctx *dingding.App payload := []byte("{}") resp, err := report.Statistics(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.