attendance

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package attendance 考勤

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttendanceGroupMemberList

func AttendanceGroupMemberList(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取考勤组成员

See: https://ding-doc.dingtalk.com/doc#/serverapi2/uvt47u

POST https://oapi.dingtalk.com/topapi/attendance/group/member/list?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func AttendanceGroupMemberListbyids

func AttendanceGroupMemberListbyids(ctx *dingding.App, payload []byte) (resp []byte, err error)

考勤组成员校验

See: https://ding-doc.dingtalk.com/doc#/serverapi2/uvt47u

POST https://oapi.dingtalk.com/topapi/attendance/group/member/listbyids?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func AttendanceGroupMemberUpdate

func AttendanceGroupMemberUpdate(ctx *dingding.App, payload []byte) (resp []byte, err error)

考勤组成员更新

See: https://ding-doc.dingtalk.com/doc#/serverapi2/uvt47u

POST https://oapi.dingtalk.com/topapi/attendance/group/member/update?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func AttendanceGroupMemberUsersList

func AttendanceGroupMemberUsersList(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取考勤组员工id

See: https://ding-doc.dingtalk.com/doc#/serverapi2/uvt47u

POST https://oapi.dingtalk.com/topapi/attendance/group/memberusers/list?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func AttendanceGroupMinimalismList

func AttendanceGroupMinimalismList(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取考勤组摘要

See: https://ding-doc.dingtalk.com/doc#/serverapi2/ksk4o2

POST https://oapi.dingtalk.com/topapi/attendance/group/minimalism/list?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func AttendanceGroupQuery

func AttendanceGroupQuery(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取考勤组详情

See: https://ding-doc.dingtalk.com/doc#/serverapi2/ksk4o2

POST https://oapi.dingtalk.com/topapi/attendance/group/query?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func AttendanceGroupSearch

func AttendanceGroupSearch(ctx *dingding.App, payload []byte) (resp []byte, err error)

搜索考勤组摘要

See: https://ding-doc.dingtalk.com/doc#/serverapi2/ksk4o2

POST https://oapi.dingtalk.com/topapi/attendance/group/search?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func AttendanceList

func AttendanceList(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取打卡结果

See: https://ding-doc.dingtalk.com/doc#/serverapi2/ul33mm

POST https://oapi.dingtalk.com/attendance/list?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func AttendanceShiftList

func AttendanceShiftList(ctx *dingding.App, payload []byte) (resp []byte, err error)

批量查询班次摘要信息

See: https://ding-doc.dingtalk.com/doc#/serverapi2/pmug9c

POST https://oapi.dingtalk.com/topapi/attendance/shift/list?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func AttendanceShiftQuery

func AttendanceShiftQuery(ctx *dingding.App, payload []byte) (resp []byte, err error)

查询班次详情

See: https://ding-doc.dingtalk.com/doc#/serverapi2/pmug9c

POST https://oapi.dingtalk.com/topapi/attendance/shift/query?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func AttendanceShiftSearch

func AttendanceShiftSearch(ctx *dingding.App, payload []byte) (resp []byte, err error)

按名称搜索班次

See: https://ding-doc.dingtalk.com/doc#/serverapi2/pmug9c

POST https://oapi.dingtalk.com/topapi/attendance/shift/search?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func GetAttColumns

func GetAttColumns(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取报表列定义

See: https://ding-doc.dingtalk.com/doc#/serverapi2/vg7ned

POST https://oapi.dingtalk.com/topapi/attendance/getattcolumns?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func GetColumnVal

func GetColumnVal(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取报表列值

See: https://ding-doc.dingtalk.com/doc#/serverapi2/vg7ned

POST https://oapi.dingtalk.com/topapi/attendance/getcolumnval?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func GetLeaveStatus

func GetLeaveStatus(ctx *dingding.App, payload []byte) (resp []byte, err error)

查询请假状态

See: https://ding-doc.dingtalk.com/doc#/serverapi2/chhwzv

POST https://oapi.dingtalk.com/topapi/attendance/getleavestatus?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func GetLeaveTimeByNames

func GetLeaveTimeByNames(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取报表假期数据

See: https://ding-doc.dingtalk.com/doc#/serverapi2/vg7ned

POST https://oapi.dingtalk.com/topapi/attendance/getleavetimebynames?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func GetSimpleGroups

func GetSimpleGroups(ctx *dingding.App, payload []byte) (resp []byte, err error)

批量获取企业考勤组详情

See: https://ding-doc.dingtalk.com/doc#/serverapi2/ksk4o2

POST https://oapi.dingtalk.com/topapi/attendance/getsimplegroups?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func GetUserGroup

func GetUserGroup(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取用户考勤组

See: https://ding-doc.dingtalk.com/doc#/serverapi2/uvt47u

POST https://oapi.dingtalk.com/topapi/attendance/getusergroup?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func IsOpenSmartReport

func IsOpenSmartReport(ctx *dingding.App, payload []byte) (resp []byte, err error)

是否启用智能统计报表

See: https://ding-doc.dingtalk.com/doc#/serverapi2/vg7ned

POST https://oapi.dingtalk.com/topapi/attendance/isopensmartreport?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func ListByDay

func ListByDay(ctx *dingding.App, payload []byte) (resp []byte, err error)

查询成员排班信息

See: https://ding-doc.dingtalk.com/doc#/serverapi2/ufc8dl

POST https://oapi.dingtalk.com/topapi/attendance/schedule/listbyday?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func ListByIds

func ListByIds(ctx *dingding.App, payload []byte) (resp []byte, err error)

查询排班打卡结果

See: https://ding-doc.dingtalk.com/doc#/serverapi2/ufc8dl

POST https://oapi.dingtalk.com/topapi/attendance/schedule/result/listbyids?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func ListByUsers

func ListByUsers(ctx *dingding.App, payload []byte) (resp []byte, err error)

批量查询成员排班信息

See: https://ding-doc.dingtalk.com/doc#/serverapi2/ufc8dl

POST https://oapi.dingtalk.com/topapi/attendance/schedule/listbyusers?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func ListRecord

func ListRecord(ctx *dingding.App, payload []byte) (resp []byte, err error)

获取打卡详情

See: https://ding-doc.dingtalk.com/doc#/serverapi2/potcn9

POST https://oapi.dingtalk.com/attendance/listRecord?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func ListSchedule

func ListSchedule(ctx *dingding.App, payload []byte) (resp []byte, err error)

查询企业考勤排班详情

See: https://ding-doc.dingtalk.com/doc#/serverapi2/ufc8dl

POST https://oapi.dingtalk.com/topapi/attendance/listschedule?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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

	fmt.Println(resp, err)
}
Output:

func ScheduleAsync

func ScheduleAsync(ctx *dingding.App, payload []byte) (resp []byte, err error)

排班制考勤组排班

See: https://ding-doc.dingtalk.com/doc#/serverapi2/ufc8dl

POST https://oapi.dingtalk.com/topapi/attendance/group/schedule/async?access_token=ACCESS_TOKEN

Example
package main

import (
	"fmt"

	"github.com/fastwego/dingding"
	"github.com/fastwego/dingding/apis/attendance"
)

func main() {
	var ctx *dingding.App

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