checkin

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 checkin OA/打卡

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCheckinUserFace

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

录入打卡人员人脸信息

企业可通过打卡应用Secret调用本接口,为企业打卡人员录入人脸信息,人脸信息仅用于人脸打卡。

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

POST https://qyapi.weixin.qq.com/cgi-bin/checkin/addcheckinuserface?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetCheckinData

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

获取打卡记录数据

企业可通过打卡应用Secret调用本接口,获取指定员工指定时间段内的打卡记录数据。

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

POST https://qyapi.weixin.qq.com/cgi-bin/checkin/getcheckindata?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetCheckinDayData

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

获取打卡日报数据

企业可通过打卡应用Secret调用本接口,获取指定员工指定时间段内的打卡日报统计数据。

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

POST https://qyapi.weixin.qq.com/cgi-bin/checkin/getcheckin_daydata?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetCheckinMonthData

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

获取打卡月报数据

企业可通过打卡应用Secret调用本接口,获取指定员工指定时间段内的打卡月报统计数据。

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

POST https://qyapi.weixin.qq.com/cgi-bin/checkin/getcheckin_monthdata?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetCheckinOption

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

获取员工打卡规则

企业可通过打卡应用Secret调用本接口,获取指定员工指定日期的打卡规则。

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

POST https://qyapi.weixin.qq.com/cgi-bin/checkin/getcheckinoption?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetCheckinScheduleList

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

获取打卡人员排班信息

企业可通过打卡应用Secret调用本接口,获取打卡规则为“按班次上下班”规则的指定员工指定时间段内的排班信息。

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

POST https://qyapi.weixin.qq.com/cgi-bin/checkin/getcheckinschedulist?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func GetCorpCheckinOption

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

获取企业所有打卡规则

企业可通过打卡应用Secret调用本接口,获取企业内所有打卡规则数据。

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

POST https://qyapi.weixin.qq.com/cgi-bin/checkin/getcorpcheckinoption?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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

	fmt.Println(resp, err)
}
Output:

func SetCheckinScheduleList

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

为打卡人员排班

企业可通过打卡应用Secret调用本接口,为打卡规则为“按班次上下班”规则的指定员工排班。

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

POST https://qyapi.weixin.qq.com/cgi-bin/checkin/setcheckinschedulist?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

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

func main() {
	var ctx *corporation.App

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