Documentation ¶
Overview ¶
Package attendance 考勤
Index ¶
- func AttendanceGroupMemberList(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func AttendanceGroupMemberListbyids(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func AttendanceGroupMemberUpdate(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func AttendanceGroupMemberUsersList(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func AttendanceGroupMinimalismList(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func AttendanceGroupQuery(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func AttendanceGroupSearch(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func AttendanceList(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func AttendanceShiftList(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func AttendanceShiftQuery(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func AttendanceShiftSearch(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func GetAttColumns(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func GetColumnVal(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func GetLeaveStatus(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func GetLeaveTimeByNames(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func GetSimpleGroups(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func GetUserGroup(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func IsOpenSmartReport(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func ListByDay(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func ListByIds(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func ListByUsers(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func ListRecord(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func ListSchedule(ctx *dingding.App, payload []byte) (resp []byte, err error)
- func ScheduleAsync(ctx *dingding.App, payload []byte) (resp []byte, err error)
Examples ¶
- AttendanceGroupMemberList
- AttendanceGroupMemberListbyids
- AttendanceGroupMemberUpdate
- AttendanceGroupMemberUsersList
- AttendanceGroupMinimalismList
- AttendanceGroupQuery
- AttendanceGroupSearch
- AttendanceList
- AttendanceShiftList
- AttendanceShiftQuery
- AttendanceShiftSearch
- GetAttColumns
- GetColumnVal
- GetLeaveStatus
- GetLeaveTimeByNames
- GetSimpleGroups
- GetUserGroup
- IsOpenSmartReport
- ListByDay
- ListByIds
- ListByUsers
- ListRecord
- ListSchedule
- ScheduleAsync
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttendanceGroupMemberList ¶
获取考勤组成员
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 ¶
考勤组成员校验
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 ¶
考勤组成员更新
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 ¶
获取考勤组员工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 ¶
获取考勤组摘要
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 ¶
获取考勤组详情
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 ¶
搜索考勤组摘要
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 ¶
获取打卡结果
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 ¶
批量查询班次摘要信息
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 ¶
查询班次详情
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 ¶
按名称搜索班次
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 ¶
获取报表列定义
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 ¶
获取报表列值
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 ¶
查询请假状态
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 ¶
获取报表假期数据
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 ¶
批量获取企业考勤组详情
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 ¶
获取用户考勤组
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 ¶
是否启用智能统计报表
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 ¶
查询成员排班信息
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 ¶
查询排班打卡结果
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 ¶
批量查询成员排班信息
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 ¶
获取打卡详情
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 ¶
查询企业考勤排班详情
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 ¶
排班制考勤组排班
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.