ding2

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Department

type Department struct {
	PackData
	SubDeptIDList []int `json:"sub_dept_id_list"`
}

type Ding

type Ding struct {
	Client *dingtalk.DingTalkClient
}

func NewClient

func NewClient(corp_id string, corp_secret string) *Ding

func (*Ding) GetAccessToken

func (d *Ding) GetAccessToken() string

func (*Ding) GetDepartment

func (d *Ding) GetDepartment() (deptIds []int, err error)

type PackData

type PackData struct {
	ErrCode int    `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

type Token

type Token struct {
	PackData
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

type WorkRecord

type WorkRecord struct {
	PackData
	HasMore      bool `json:"hasMore"`
	Recordresult []struct {
		CheckType      string `json:"checkType"`
		CorpId         string `json:"corpId"`
		LocationResult string `json:"locationResult"`
		BaseCheckTime  int64  `json:"baseCheckTime"`
		GroupId        int    `json:"groupId"`
		TimeResult     string `json:"timeResult"`
		UserId         string `json:"userId"`
		RecordId       int64  `json:"recordId"`
		WorkDate       int64  `json:"workDate"`
		SourceType     string `json:"sourceType"`
		UserCheckTime  int64  `json:"userCheckTime"`
		PlanId         int64  `json:"planId"`
		Id             int64  `json:"id"`
	} `json:"recordresult"`
}

打卡记录

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL