Documentation ¶
Index ¶
- Constants
- type AccessRecord
- type AccessRecordBuilder
- func (builder *AccessRecordBuilder) AccessData(accessData string) *AccessRecordBuilder
- func (builder *AccessRecordBuilder) AccessRecordId(accessRecordId string) *AccessRecordBuilder
- func (builder *AccessRecordBuilder) AccessTime(accessTime string) *AccessRecordBuilder
- func (builder *AccessRecordBuilder) AccessType(accessType string) *AccessRecordBuilder
- func (builder *AccessRecordBuilder) Build() *AccessRecord
- func (builder *AccessRecordBuilder) DeviceId(deviceId string) *AccessRecordBuilder
- func (builder *AccessRecordBuilder) IsClockIn(isClockIn bool) *AccessRecordBuilder
- func (builder *AccessRecordBuilder) IsDoorOpen(isDoorOpen bool) *AccessRecordBuilder
- func (builder *AccessRecordBuilder) UserId(userId string) *AccessRecordBuilder
- type AcsService
- type DepartmentId
- type DepartmentIdBuilder
- type Device
- type DeviceBuilder
- func (builder *DeviceBuilder) Build() *Device
- func (builder *DeviceBuilder) DeviceId(deviceId string) *DeviceBuilder
- func (builder *DeviceBuilder) DeviceName(deviceName string) *DeviceBuilder
- func (builder *DeviceBuilder) DeviceSn(deviceSn string) *DeviceBuilder
- func (builder *DeviceBuilder) Property(property *Property) *DeviceBuilder
- type DeviceExternal
- type DeviceExternalBuilder
- type Feature
- type FeatureBuilder
- type File
- type FileBuilder
- type GetAccessRecordAccessPhotoReq
- type GetAccessRecordAccessPhotoReqBuilder
- type GetAccessRecordAccessPhotoResp
- type GetUserFaceReq
- type GetUserFaceReqBuilder
- func (builder *GetUserFaceReqBuilder) Build() *GetUserFaceReq
- func (builder *GetUserFaceReqBuilder) IsCropped(isCropped bool) *GetUserFaceReqBuilder
- func (builder *GetUserFaceReqBuilder) UserId(userId string) *GetUserFaceReqBuilder
- func (builder *GetUserFaceReqBuilder) UserIdType(userIdType string) *GetUserFaceReqBuilder
- type GetUserFaceResp
- type GetUserReq
- type GetUserReqBuilder
- type GetUserResp
- type GetUserRespData
- type ListAccessRecordIterator
- type ListAccessRecordReq
- type ListAccessRecordReqBuilder
- func (builder *ListAccessRecordReqBuilder) Build() *ListAccessRecordReq
- func (builder *ListAccessRecordReqBuilder) DeviceId(deviceId string) *ListAccessRecordReqBuilder
- func (builder *ListAccessRecordReqBuilder) From(from int) *ListAccessRecordReqBuilder
- func (builder *ListAccessRecordReqBuilder) Limit(limit int) *ListAccessRecordReqBuilder
- func (builder *ListAccessRecordReqBuilder) PageSize(pageSize int) *ListAccessRecordReqBuilder
- func (builder *ListAccessRecordReqBuilder) PageToken(pageToken string) *ListAccessRecordReqBuilder
- func (builder *ListAccessRecordReqBuilder) To(to int) *ListAccessRecordReqBuilder
- func (builder *ListAccessRecordReqBuilder) UserIdType(userIdType string) *ListAccessRecordReqBuilder
- type ListAccessRecordResp
- type ListAccessRecordRespData
- type ListDeviceResp
- type ListDeviceRespData
- type ListUserIterator
- type ListUserReq
- type ListUserReqBuilder
- func (builder *ListUserReqBuilder) Build() *ListUserReq
- func (builder *ListUserReqBuilder) Limit(limit int) *ListUserReqBuilder
- func (builder *ListUserReqBuilder) PageSize(pageSize int) *ListUserReqBuilder
- func (builder *ListUserReqBuilder) PageToken(pageToken string) *ListUserReqBuilder
- func (builder *ListUserReqBuilder) UserIdType(userIdType string) *ListUserReqBuilder
- type ListUserResp
- type ListUserRespData
- type OpeningTimeExternal
- type OpeningTimeExternalBuilder
- func (builder *OpeningTimeExternalBuilder) Build() *OpeningTimeExternal
- func (builder *OpeningTimeExternalBuilder) DayTimes(dayTimes []*OpeningTimePeriodExternal) *OpeningTimeExternalBuilder
- func (builder *OpeningTimeExternalBuilder) ValidDay(validDay *OpeningTimeValidDayExternal) *OpeningTimeExternalBuilder
- func (builder *OpeningTimeExternalBuilder) Weekdays(weekdays []int) *OpeningTimeExternalBuilder
- type OpeningTimePeriodExternal
- type OpeningTimePeriodExternalBuilder
- type OpeningTimeValidDayExternal
- type OpeningTimeValidDayExternalBuilder
- func (builder *OpeningTimeValidDayExternalBuilder) Build() *OpeningTimeValidDayExternal
- func (builder *OpeningTimeValidDayExternalBuilder) EndDay(endDay int) *OpeningTimeValidDayExternalBuilder
- func (builder *OpeningTimeValidDayExternalBuilder) StartDay(startDay int) *OpeningTimeValidDayExternalBuilder
- type P2AccessRecordCreatedV1
- type P2AccessRecordCreatedV1Data
- type P2AccessRecordCreatedV1Handler
- type P2UserUpdatedV1
- type P2UserUpdatedV1Data
- type P2UserUpdatedV1Handler
- type PatchUserReq
- type PatchUserReqBuilder
- type PatchUserResp
- type Property
- type PropertyBuilder
- func (builder *PropertyBuilder) Build() *Property
- func (builder *PropertyBuilder) CurrentDeviceFaceCount(currentDeviceFaceCount int) *PropertyBuilder
- func (builder *PropertyBuilder) DeviceName(deviceName string) *PropertyBuilder
- func (builder *PropertyBuilder) IsClockIn(isClockIn bool) *PropertyBuilder
- func (builder *PropertyBuilder) MaxFaceCapacity(maxFaceCapacity int) *PropertyBuilder
- func (builder *PropertyBuilder) OnlineStatus(onlineStatus int) *PropertyBuilder
- func (builder *PropertyBuilder) Version(version string) *PropertyBuilder
- type Rule
- type RuleBuilder
- func (builder *RuleBuilder) Build() *Rule
- func (builder *RuleBuilder) Devices(devices []*DeviceExternal) *RuleBuilder
- func (builder *RuleBuilder) Id(id string) *RuleBuilder
- func (builder *RuleBuilder) Name(name string) *RuleBuilder
- func (builder *RuleBuilder) OpeningTime(openingTime *OpeningTimeExternal) *RuleBuilder
- func (builder *RuleBuilder) RemindFace(remindFace bool) *RuleBuilder
- func (builder *RuleBuilder) UserCount(userCount string) *RuleBuilder
- func (builder *RuleBuilder) Users(users []*UserExternal) *RuleBuilder
- func (builder *RuleBuilder) VisitorCount(visitorCount string) *RuleBuilder
- func (builder *RuleBuilder) Visitors(visitors []*UserExternal) *RuleBuilder
- type UpdateUserFaceReq
- type UpdateUserFaceReqBuilder
- func (builder *UpdateUserFaceReqBuilder) Build() *UpdateUserFaceReq
- func (builder *UpdateUserFaceReqBuilder) File(file *File) *UpdateUserFaceReqBuilder
- func (builder *UpdateUserFaceReqBuilder) UserId(userId string) *UpdateUserFaceReqBuilder
- func (builder *UpdateUserFaceReqBuilder) UserIdType(userIdType string) *UpdateUserFaceReqBuilder
- type UpdateUserFaceResp
- type User
- type UserBuilder
- type UserExternal
- type UserExternalBuilder
- func (builder *UserExternalBuilder) Build() *UserExternal
- func (builder *UserExternalBuilder) PhoneNum(phoneNum string) *UserExternalBuilder
- func (builder *UserExternalBuilder) UserId(userId string) *UserExternalBuilder
- func (builder *UserExternalBuilder) UserName(userName string) *UserExternalBuilder
- func (builder *UserExternalBuilder) UserType(userType int) *UserExternalBuilder
- type UserId
- type UserIdBuilder
Constants ¶
const ( UserIdTypeUserId = "user_id" // 以user_id来识别用户 UserIdTypeUnionId = "union_id" // 以union_id来识别用户 UserIdTypeOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeGetUserUserId = "user_id" // 以user_id来识别用户 UserIdTypeGetUserUnionId = "union_id" // 以union_id来识别用户 UserIdTypeGetUserOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeListUserUserId = "user_id" // 以user_id来识别用户 UserIdTypeListUserUnionId = "union_id" // 以union_id来识别用户 UserIdTypeListUserOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypePatchUserUserId = "user_id" // 以user_id来识别用户 UserIdTypePatchUserUnionId = "union_id" // 以union_id来识别用户 UserIdTypePatchUserOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeGetUserFaceUserId = "user_id" // 以user_id来识别用户 UserIdTypeGetUserFaceUnionId = "union_id" // 以union_id来识别用户 UserIdTypeGetUserFaceOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeUpdateUserFaceUserId = "user_id" // 以user_id来识别用户 UserIdTypeUpdateUserFaceUnionId = "union_id" // 以union_id来识别用户 UserIdTypeUpdateUserFaceOpenId = "open_id" // 以open_id来识别用户 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessRecord ¶
type AccessRecord struct { AccessRecordId *string `json:"access_record_id,omitempty"` // 门禁记录 ID UserId *string `json:"user_id,omitempty"` // 门禁记录所属用户 ID DeviceId *string `json:"device_id,omitempty"` // 门禁设备 ID IsClockIn *bool `json:"is_clock_in,omitempty"` // 是否是打卡 AccessTime *string `json:"access_time,omitempty"` // 访问时间,单位秒 AccessType *string `json:"access_type,omitempty"` // 识别方式 AccessData *string `json:"access_data,omitempty"` // 识别相关数据,根据 access_type 不同,取值不同 IsDoorOpen *bool `json:"is_door_open,omitempty"` // 是否开门 }
type AccessRecordBuilder ¶
type AccessRecordBuilder struct {
// contains filtered or unexported fields
}
func NewAccessRecordBuilder ¶
func NewAccessRecordBuilder() *AccessRecordBuilder
func (*AccessRecordBuilder) AccessData ¶
func (builder *AccessRecordBuilder) AccessData(accessData string) *AccessRecordBuilder
识别相关数据,根据 access_type 不同,取值不同
示例值:{\"has_access_photo\":true}
func (*AccessRecordBuilder) AccessRecordId ¶
func (builder *AccessRecordBuilder) AccessRecordId(accessRecordId string) *AccessRecordBuilder
门禁记录 ID
示例值:6939433228970082591
func (*AccessRecordBuilder) AccessTime ¶
func (builder *AccessRecordBuilder) AccessTime(accessTime string) *AccessRecordBuilder
访问时间,单位秒
示例值:1624520221
func (*AccessRecordBuilder) AccessType ¶
func (builder *AccessRecordBuilder) AccessType(accessType string) *AccessRecordBuilder
识别方式
示例值:FA
func (*AccessRecordBuilder) Build ¶
func (builder *AccessRecordBuilder) Build() *AccessRecord
func (*AccessRecordBuilder) DeviceId ¶
func (builder *AccessRecordBuilder) DeviceId(deviceId string) *AccessRecordBuilder
门禁设备 ID
示例值:6939433228970082593
func (*AccessRecordBuilder) IsClockIn ¶
func (builder *AccessRecordBuilder) IsClockIn(isClockIn bool) *AccessRecordBuilder
是否是打卡
示例值:true
func (*AccessRecordBuilder) IsDoorOpen ¶
func (builder *AccessRecordBuilder) IsDoorOpen(isDoorOpen bool) *AccessRecordBuilder
是否开门
示例值:true
func (*AccessRecordBuilder) UserId ¶
func (builder *AccessRecordBuilder) UserId(userId string) *AccessRecordBuilder
门禁记录所属用户 ID
示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62
type AcsService ¶
type AcsService struct { AccessRecord *accessRecord // 门禁记录 AccessRecordAccessPhoto *accessRecordAccessPhoto // access_record.access_photo Device *device // 门禁设备 User *user // 用户管理 UserFace *userFace // user.face // contains filtered or unexported fields }
func NewService ¶
func NewService(config *larkcore.Config) *AcsService
type DepartmentId ¶
type DepartmentIdBuilder ¶
type DepartmentIdBuilder struct {
// contains filtered or unexported fields
}
func NewDepartmentIdBuilder ¶
func NewDepartmentIdBuilder() *DepartmentIdBuilder
func (*DepartmentIdBuilder) Build ¶
func (builder *DepartmentIdBuilder) Build() *DepartmentId
func (*DepartmentIdBuilder) DepartmentId ¶
func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder
示例值:
func (*DepartmentIdBuilder) OpenDepartmentId ¶
func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder
示例值:
type DeviceBuilder ¶
type DeviceBuilder struct {
// contains filtered or unexported fields
}
func NewDeviceBuilder ¶
func NewDeviceBuilder() *DeviceBuilder
func (*DeviceBuilder) Build ¶
func (builder *DeviceBuilder) Build() *Device
func (*DeviceBuilder) DeviceId ¶
func (builder *DeviceBuilder) DeviceId(deviceId string) *DeviceBuilder
门禁设备 ID
示例值:6939433228970082593
func (*DeviceBuilder) DeviceName ¶
func (builder *DeviceBuilder) DeviceName(deviceName string) *DeviceBuilder
设备名称
示例值:东门
func (*DeviceBuilder) DeviceSn ¶
func (builder *DeviceBuilder) DeviceSn(deviceSn string) *DeviceBuilder
设备 SN 码
示例值:3X811621174000240
func (*DeviceBuilder) Property ¶
func (builder *DeviceBuilder) Property(property *Property) *DeviceBuilder
设备属性
示例值:
type DeviceExternal ¶
type DeviceExternalBuilder ¶
type DeviceExternalBuilder struct {
// contains filtered or unexported fields
}
func NewDeviceExternalBuilder ¶
func NewDeviceExternalBuilder() *DeviceExternalBuilder
func (*DeviceExternalBuilder) Build ¶
func (builder *DeviceExternalBuilder) Build() *DeviceExternal
func (*DeviceExternalBuilder) Id ¶
func (builder *DeviceExternalBuilder) Id(id string) *DeviceExternalBuilder
设备id
示例值:534545234523452345
func (*DeviceExternalBuilder) Name ¶
func (builder *DeviceExternalBuilder) Name(name string) *DeviceExternalBuilder
设备名称
示例值:北门
type FeatureBuilder ¶
type FeatureBuilder struct {
// contains filtered or unexported fields
}
func NewFeatureBuilder ¶
func NewFeatureBuilder() *FeatureBuilder
func (*FeatureBuilder) Build ¶
func (builder *FeatureBuilder) Build() *Feature
func (*FeatureBuilder) Card ¶
func (builder *FeatureBuilder) Card(card int) *FeatureBuilder
卡号
示例值:123456
func (*FeatureBuilder) FaceUploaded ¶
func (builder *FeatureBuilder) FaceUploaded(faceUploaded bool) *FeatureBuilder
是否已上传人脸图片
示例值:true
type FileBuilder ¶
type FileBuilder struct {
// contains filtered or unexported fields
}
func NewFileBuilder ¶
func NewFileBuilder() *FileBuilder
func (*FileBuilder) Build ¶
func (builder *FileBuilder) Build() *File
func (*FileBuilder) FileName ¶
func (builder *FileBuilder) FileName(fileName string) *FileBuilder
带后缀的文件名
示例值:efeqz12f.jpg
func (*FileBuilder) FileType ¶
func (builder *FileBuilder) FileType(fileType string) *FileBuilder
文件类型,可选的类型有jpg,png
示例值:jpg
func (*FileBuilder) Files ¶
func (builder *FileBuilder) Files(files io.Reader) *FileBuilder
人脸图片内容
示例值:jpg图片
type GetAccessRecordAccessPhotoReq ¶
type GetAccessRecordAccessPhotoReq struct {
// contains filtered or unexported fields
}
type GetAccessRecordAccessPhotoReqBuilder ¶
type GetAccessRecordAccessPhotoReqBuilder struct {
// contains filtered or unexported fields
}
func NewGetAccessRecordAccessPhotoReqBuilder ¶
func NewGetAccessRecordAccessPhotoReqBuilder() *GetAccessRecordAccessPhotoReqBuilder
func (*GetAccessRecordAccessPhotoReqBuilder) AccessRecordId ¶
func (builder *GetAccessRecordAccessPhotoReqBuilder) AccessRecordId(accessRecordId string) *GetAccessRecordAccessPhotoReqBuilder
门禁访问记录 ID
示例值:6939433228970082591
func (*GetAccessRecordAccessPhotoReqBuilder) Build ¶
func (builder *GetAccessRecordAccessPhotoReqBuilder) Build() *GetAccessRecordAccessPhotoReq
type GetAccessRecordAccessPhotoResp ¶
type GetAccessRecordAccessPhotoResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError File io.Reader `json:"-"` FileName string `json:"-"` }
func (*GetAccessRecordAccessPhotoResp) Success ¶
func (resp *GetAccessRecordAccessPhotoResp) Success() bool
func (*GetAccessRecordAccessPhotoResp) WriteFile ¶
func (resp *GetAccessRecordAccessPhotoResp) WriteFile(fileName string) error
type GetUserFaceReq ¶
type GetUserFaceReq struct {
// contains filtered or unexported fields
}
type GetUserFaceReqBuilder ¶
type GetUserFaceReqBuilder struct {
// contains filtered or unexported fields
}
func NewGetUserFaceReqBuilder ¶
func NewGetUserFaceReqBuilder() *GetUserFaceReqBuilder
func (*GetUserFaceReqBuilder) Build ¶
func (builder *GetUserFaceReqBuilder) Build() *GetUserFaceReq
func (*GetUserFaceReqBuilder) IsCropped ¶
func (builder *GetUserFaceReqBuilder) IsCropped(isCropped bool) *GetUserFaceReqBuilder
裁剪图
示例值:true
func (*GetUserFaceReqBuilder) UserId ¶
func (builder *GetUserFaceReqBuilder) UserId(userId string) *GetUserFaceReqBuilder
用户 ID
示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62
func (*GetUserFaceReqBuilder) UserIdType ¶
func (builder *GetUserFaceReqBuilder) UserIdType(userIdType string) *GetUserFaceReqBuilder
此次调用中使用的用户ID的类型
示例值:
type GetUserFaceResp ¶
type GetUserFaceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError File io.Reader `json:"-"` FileName string `json:"-"` }
func (*GetUserFaceResp) Success ¶
func (resp *GetUserFaceResp) Success() bool
func (*GetUserFaceResp) WriteFile ¶
func (resp *GetUserFaceResp) WriteFile(fileName string) error
type GetUserReq ¶
type GetUserReq struct {
// contains filtered or unexported fields
}
type GetUserReqBuilder ¶
type GetUserReqBuilder struct {
// contains filtered or unexported fields
}
func NewGetUserReqBuilder ¶
func NewGetUserReqBuilder() *GetUserReqBuilder
func (*GetUserReqBuilder) Build ¶
func (builder *GetUserReqBuilder) Build() *GetUserReq
func (*GetUserReqBuilder) UserId ¶
func (builder *GetUserReqBuilder) UserId(userId string) *GetUserReqBuilder
用户 ID
示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62
func (*GetUserReqBuilder) UserIdType ¶
func (builder *GetUserReqBuilder) UserIdType(userIdType string) *GetUserReqBuilder
此次调用中使用的用户ID的类型
示例值:
type GetUserResp ¶
type GetUserResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *GetUserRespData `json:"data"` // 业务数据 }
func (*GetUserResp) Success ¶
func (resp *GetUserResp) Success() bool
type GetUserRespData ¶
type GetUserRespData struct {
User *User `json:"user,omitempty"` // 门禁用户信息
}
type ListAccessRecordIterator ¶
type ListAccessRecordIterator struct {
// contains filtered or unexported fields
}
func (*ListAccessRecordIterator) Next ¶
func (iterator *ListAccessRecordIterator) Next() (bool, *AccessRecord, error)
func (*ListAccessRecordIterator) NextPageToken ¶
func (iterator *ListAccessRecordIterator) NextPageToken() *string
type ListAccessRecordReq ¶
type ListAccessRecordReq struct { Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效 // contains filtered or unexported fields }
type ListAccessRecordReqBuilder ¶
type ListAccessRecordReqBuilder struct {
// contains filtered or unexported fields
}
func NewListAccessRecordReqBuilder ¶
func NewListAccessRecordReqBuilder() *ListAccessRecordReqBuilder
func (*ListAccessRecordReqBuilder) Build ¶
func (builder *ListAccessRecordReqBuilder) Build() *ListAccessRecordReq
func (*ListAccessRecordReqBuilder) DeviceId ¶
func (builder *ListAccessRecordReqBuilder) DeviceId(deviceId string) *ListAccessRecordReqBuilder
门禁设备 ID
示例值:7091146989218002577
func (*ListAccessRecordReqBuilder) From ¶
func (builder *ListAccessRecordReqBuilder) From(from int) *ListAccessRecordReqBuilder
记录开始时间,单位秒
示例值:1624520521
func (*ListAccessRecordReqBuilder) Limit ¶
func (builder *ListAccessRecordReqBuilder) Limit(limit int) *ListAccessRecordReqBuilder
最大返回多少记录,当使用迭代器访问时才有效
func (*ListAccessRecordReqBuilder) PageSize ¶
func (builder *ListAccessRecordReqBuilder) PageSize(pageSize int) *ListAccessRecordReqBuilder
分页大小
示例值:100
func (*ListAccessRecordReqBuilder) PageToken ¶
func (builder *ListAccessRecordReqBuilder) PageToken(pageToken string) *ListAccessRecordReqBuilder
分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
示例值:AQD9/Rn9eij9Pm39ED40/dk53s4Ebp882DYfFaPFbz00L4CMZJrqGdzNyc8BcZtDbwVUvRmQTvyMYicnGWrde9X56TgdBuS+JKiSIkdexPw=
func (*ListAccessRecordReqBuilder) To ¶
func (builder *ListAccessRecordReqBuilder) To(to int) *ListAccessRecordReqBuilder
记录结束时间,单位秒,;时间跨度不能超过30天
示例值:1624520521
func (*ListAccessRecordReqBuilder) UserIdType ¶
func (builder *ListAccessRecordReqBuilder) UserIdType(userIdType string) *ListAccessRecordReqBuilder
此次调用中使用的用户ID的类型
示例值:
type ListAccessRecordResp ¶
type ListAccessRecordResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *ListAccessRecordRespData `json:"data"` // 业务数据 }
func (*ListAccessRecordResp) Success ¶
func (resp *ListAccessRecordResp) Success() bool
type ListAccessRecordRespData ¶
type ListAccessRecordRespData struct { Items []*AccessRecord `json:"items,omitempty"` // - PageToken *string `json:"page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token HasMore *bool `json:"has_more,omitempty"` // 是否还有更多项 }
type ListDeviceResp ¶
type ListDeviceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *ListDeviceRespData `json:"data"` // 业务数据 }
func (*ListDeviceResp) Success ¶
func (resp *ListDeviceResp) Success() bool
type ListDeviceRespData ¶
type ListDeviceRespData struct {
Items []*Device `json:"items,omitempty"` // -
}
type ListUserIterator ¶
type ListUserIterator struct {
// contains filtered or unexported fields
}
func (*ListUserIterator) NextPageToken ¶
func (iterator *ListUserIterator) NextPageToken() *string
type ListUserReq ¶
type ListUserReq struct { Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效 // contains filtered or unexported fields }
type ListUserReqBuilder ¶
type ListUserReqBuilder struct {
// contains filtered or unexported fields
}
func NewListUserReqBuilder ¶
func NewListUserReqBuilder() *ListUserReqBuilder
func (*ListUserReqBuilder) Build ¶
func (builder *ListUserReqBuilder) Build() *ListUserReq
func (*ListUserReqBuilder) Limit ¶
func (builder *ListUserReqBuilder) Limit(limit int) *ListUserReqBuilder
最大返回多少记录,当使用迭代器访问时才有效
func (*ListUserReqBuilder) PageSize ¶
func (builder *ListUserReqBuilder) PageSize(pageSize int) *ListUserReqBuilder
分页大小
示例值:10
func (*ListUserReqBuilder) PageToken ¶
func (builder *ListUserReqBuilder) PageToken(pageToken string) *ListUserReqBuilder
分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
示例值:10
func (*ListUserReqBuilder) UserIdType ¶
func (builder *ListUserReqBuilder) UserIdType(userIdType string) *ListUserReqBuilder
此次调用中使用的用户ID的类型
示例值:
type ListUserResp ¶
type ListUserResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *ListUserRespData `json:"data"` // 业务数据 }
func (*ListUserResp) Success ¶
func (resp *ListUserResp) Success() bool
type ListUserRespData ¶
type OpeningTimeExternal ¶
type OpeningTimeExternal struct { ValidDay *OpeningTimeValidDayExternal `json:"valid_day,omitempty"` // 有效日期 Weekdays []int `json:"weekdays,omitempty"` // 有效星期 DayTimes []*OpeningTimePeriodExternal `json:"day_times,omitempty"` // 有效时间 }
type OpeningTimeExternalBuilder ¶
type OpeningTimeExternalBuilder struct {
// contains filtered or unexported fields
}
func NewOpeningTimeExternalBuilder ¶
func NewOpeningTimeExternalBuilder() *OpeningTimeExternalBuilder
func (*OpeningTimeExternalBuilder) Build ¶
func (builder *OpeningTimeExternalBuilder) Build() *OpeningTimeExternal
func (*OpeningTimeExternalBuilder) DayTimes ¶
func (builder *OpeningTimeExternalBuilder) DayTimes(dayTimes []*OpeningTimePeriodExternal) *OpeningTimeExternalBuilder
有效时间
示例值:
func (*OpeningTimeExternalBuilder) ValidDay ¶
func (builder *OpeningTimeExternalBuilder) ValidDay(validDay *OpeningTimeValidDayExternal) *OpeningTimeExternalBuilder
有效日期
示例值:
func (*OpeningTimeExternalBuilder) Weekdays ¶
func (builder *OpeningTimeExternalBuilder) Weekdays(weekdays []int) *OpeningTimeExternalBuilder
有效星期
示例值:
type OpeningTimePeriodExternalBuilder ¶
type OpeningTimePeriodExternalBuilder struct {
// contains filtered or unexported fields
}
func NewOpeningTimePeriodExternalBuilder ¶
func NewOpeningTimePeriodExternalBuilder() *OpeningTimePeriodExternalBuilder
func (*OpeningTimePeriodExternalBuilder) Build ¶
func (builder *OpeningTimePeriodExternalBuilder) Build() *OpeningTimePeriodExternal
func (*OpeningTimePeriodExternalBuilder) EndHhmm ¶
func (builder *OpeningTimePeriodExternalBuilder) EndHhmm(endHhmm int) *OpeningTimePeriodExternalBuilder
结束时间
示例值:1400
func (*OpeningTimePeriodExternalBuilder) StartHhmm ¶
func (builder *OpeningTimePeriodExternalBuilder) StartHhmm(startHhmm int) *OpeningTimePeriodExternalBuilder
起始时间
示例值:1200
type OpeningTimeValidDayExternalBuilder ¶
type OpeningTimeValidDayExternalBuilder struct {
// contains filtered or unexported fields
}
func NewOpeningTimeValidDayExternalBuilder ¶
func NewOpeningTimeValidDayExternalBuilder() *OpeningTimeValidDayExternalBuilder
func (*OpeningTimeValidDayExternalBuilder) Build ¶
func (builder *OpeningTimeValidDayExternalBuilder) Build() *OpeningTimeValidDayExternal
func (*OpeningTimeValidDayExternalBuilder) EndDay ¶
func (builder *OpeningTimeValidDayExternalBuilder) EndDay(endDay int) *OpeningTimeValidDayExternalBuilder
权限结束时间
示例值:1699931483
func (*OpeningTimeValidDayExternalBuilder) StartDay ¶
func (builder *OpeningTimeValidDayExternalBuilder) StartDay(startDay int) *OpeningTimeValidDayExternalBuilder
权限开始时间
示例值:1699031483
type P2AccessRecordCreatedV1 ¶
type P2AccessRecordCreatedV1 struct { *larkevent.EventV2Base // 事件基础数据 *larkevent.EventReq // 请求原生数据 Event *P2AccessRecordCreatedV1Data `json:"event"` // 事件内容 }
func (*P2AccessRecordCreatedV1) RawReq ¶
func (m *P2AccessRecordCreatedV1) RawReq(req *larkevent.EventReq)
type P2AccessRecordCreatedV1Data ¶
type P2AccessRecordCreatedV1Data struct { AccessRecordId *string `json:"access_record_id,omitempty"` // 门禁记录 ID UserId *UserId `json:"user_id,omitempty"` // 用户 ID DeviceId *string `json:"device_id,omitempty"` // 设备 ID IsClockIn *bool `json:"is_clock_in,omitempty"` // 是否打卡 IsDoorOpen *bool `json:"is_door_open,omitempty"` // 是否开门 AccessTime *string `json:"access_time,omitempty"` // 识别时间 (单位:秒) }
type P2AccessRecordCreatedV1Handler ¶
type P2AccessRecordCreatedV1Handler struct {
// contains filtered or unexported fields
}
消息处理器定义
func NewP2AccessRecordCreatedV1Handler ¶
func NewP2AccessRecordCreatedV1Handler(handler func(context.Context, *P2AccessRecordCreatedV1) error) *P2AccessRecordCreatedV1Handler
func (*P2AccessRecordCreatedV1Handler) Event ¶
func (h *P2AccessRecordCreatedV1Handler) Event() interface{}
返回事件的消息体的实例,用于反序列化用
type P2UserUpdatedV1 ¶
type P2UserUpdatedV1 struct { *larkevent.EventV2Base // 事件基础数据 *larkevent.EventReq // 请求原生数据 Event *P2UserUpdatedV1Data `json:"event"` // 事件内容 }
func (*P2UserUpdatedV1) RawReq ¶
func (m *P2UserUpdatedV1) RawReq(req *larkevent.EventReq)
type P2UserUpdatedV1Data ¶
type P2UserUpdatedV1Handler ¶
type P2UserUpdatedV1Handler struct {
// contains filtered or unexported fields
}
消息处理器定义
func NewP2UserUpdatedV1Handler ¶
func NewP2UserUpdatedV1Handler(handler func(context.Context, *P2UserUpdatedV1) error) *P2UserUpdatedV1Handler
func (*P2UserUpdatedV1Handler) Event ¶
func (h *P2UserUpdatedV1Handler) Event() interface{}
返回事件的消息体的实例,用于反序列化用
type PatchUserReq ¶
type PatchUserReq struct { User *User `body:""` // contains filtered or unexported fields }
type PatchUserReqBuilder ¶
type PatchUserReqBuilder struct {
// contains filtered or unexported fields
}
func NewPatchUserReqBuilder ¶
func NewPatchUserReqBuilder() *PatchUserReqBuilder
func (*PatchUserReqBuilder) Build ¶
func (builder *PatchUserReqBuilder) Build() *PatchUserReq
func (*PatchUserReqBuilder) User ¶
func (builder *PatchUserReqBuilder) User(user *User) *PatchUserReqBuilder
飞书智能门禁在人脸识别成功后会有韦根信号输出,输出用户的卡号。;对于使用韦根协议的门禁系统,企业可使用该接口录入用户卡号。
func (*PatchUserReqBuilder) UserId ¶
func (builder *PatchUserReqBuilder) UserId(userId string) *PatchUserReqBuilder
用户 ID
示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62
func (*PatchUserReqBuilder) UserIdType ¶
func (builder *PatchUserReqBuilder) UserIdType(userIdType string) *PatchUserReqBuilder
此次调用中使用的用户ID的类型
示例值:
type PatchUserResp ¶
type PatchUserResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*PatchUserResp) Success ¶
func (resp *PatchUserResp) Success() bool
type Property ¶
type Property struct { Version *string `json:"version,omitempty"` // 设备版本号 CurrentDeviceFaceCount *int `json:"current_device_face_count,omitempty"` // 当前设备人脸数量 MaxFaceCapacity *int `json:"max_face_capacity,omitempty"` // 设备最大人脸容量 OnlineStatus *int `json:"online_status,omitempty"` // 在线状态 DeviceName *string `json:"device_name,omitempty"` // 设备名称 IsClockIn *bool `json:"is_clock_in,omitempty"` // 是否是打卡 }
type PropertyBuilder ¶
type PropertyBuilder struct {
// contains filtered or unexported fields
}
func NewPropertyBuilder ¶
func NewPropertyBuilder() *PropertyBuilder
func (*PropertyBuilder) Build ¶
func (builder *PropertyBuilder) Build() *Property
func (*PropertyBuilder) CurrentDeviceFaceCount ¶
func (builder *PropertyBuilder) CurrentDeviceFaceCount(currentDeviceFaceCount int) *PropertyBuilder
当前设备人脸数量
示例值:300
func (*PropertyBuilder) DeviceName ¶
func (builder *PropertyBuilder) DeviceName(deviceName string) *PropertyBuilder
设备名称
示例值:南门
func (*PropertyBuilder) IsClockIn ¶
func (builder *PropertyBuilder) IsClockIn(isClockIn bool) *PropertyBuilder
是否是打卡
示例值:true
func (*PropertyBuilder) MaxFaceCapacity ¶
func (builder *PropertyBuilder) MaxFaceCapacity(maxFaceCapacity int) *PropertyBuilder
设备最大人脸容量
示例值:5000
func (*PropertyBuilder) OnlineStatus ¶
func (builder *PropertyBuilder) OnlineStatus(onlineStatus int) *PropertyBuilder
在线状态
示例值:1
func (*PropertyBuilder) Version ¶
func (builder *PropertyBuilder) Version(version string) *PropertyBuilder
设备版本号
示例值:2.3.10
type Rule ¶
type Rule struct { Id *string `json:"id,omitempty"` // 权限组id Name *string `json:"name,omitempty"` // 权限组名称 Devices []*DeviceExternal `json:"devices,omitempty"` // 权限组包含的设备 UserCount *string `json:"user_count,omitempty"` // 权限组包含的员工个数 Users []*UserExternal `json:"users,omitempty"` // 权限组包含的员工列表 VisitorCount *string `json:"visitor_count,omitempty"` // 权限组包含的访客个数 Visitors []*UserExternal `json:"visitors,omitempty"` // 权限组包含的访客列表 RemindFace *bool `json:"remind_face,omitempty"` // 是否通知人员录入 OpeningTime *OpeningTimeExternal `json:"opening_time,omitempty"` // 开门时间段 }
type RuleBuilder ¶
type RuleBuilder struct {
// contains filtered or unexported fields
}
func NewRuleBuilder ¶
func NewRuleBuilder() *RuleBuilder
func (*RuleBuilder) Build ¶
func (builder *RuleBuilder) Build() *Rule
func (*RuleBuilder) Devices ¶
func (builder *RuleBuilder) Devices(devices []*DeviceExternal) *RuleBuilder
权限组包含的设备
示例值:
func (*RuleBuilder) Id ¶
func (builder *RuleBuilder) Id(id string) *RuleBuilder
权限组id
示例值:34252345234523
func (*RuleBuilder) OpeningTime ¶
func (builder *RuleBuilder) OpeningTime(openingTime *OpeningTimeExternal) *RuleBuilder
开门时间段
示例值:
func (*RuleBuilder) RemindFace ¶
func (builder *RuleBuilder) RemindFace(remindFace bool) *RuleBuilder
是否通知人员录入
示例值:false
func (*RuleBuilder) UserCount ¶
func (builder *RuleBuilder) UserCount(userCount string) *RuleBuilder
权限组包含的员工个数
示例值:3
func (*RuleBuilder) Users ¶
func (builder *RuleBuilder) Users(users []*UserExternal) *RuleBuilder
权限组包含的员工列表
示例值:
func (*RuleBuilder) VisitorCount ¶
func (builder *RuleBuilder) VisitorCount(visitorCount string) *RuleBuilder
权限组包含的访客个数
示例值:3
func (*RuleBuilder) Visitors ¶
func (builder *RuleBuilder) Visitors(visitors []*UserExternal) *RuleBuilder
权限组包含的访客列表
示例值:
type UpdateUserFaceReq ¶
type UpdateUserFaceReq struct { File *File `body:""` // contains filtered or unexported fields }
type UpdateUserFaceReqBuilder ¶
type UpdateUserFaceReqBuilder struct {
// contains filtered or unexported fields
}
func NewUpdateUserFaceReqBuilder ¶
func NewUpdateUserFaceReqBuilder() *UpdateUserFaceReqBuilder
func (*UpdateUserFaceReqBuilder) Build ¶
func (builder *UpdateUserFaceReqBuilder) Build() *UpdateUserFaceReq
func (*UpdateUserFaceReqBuilder) File ¶
func (builder *UpdateUserFaceReqBuilder) File(file *File) *UpdateUserFaceReqBuilder
用户需要录入人脸图片才可以使用门禁考勤机。使用该 API 上传门禁用户的人脸图片。
func (*UpdateUserFaceReqBuilder) UserId ¶
func (builder *UpdateUserFaceReqBuilder) UserId(userId string) *UpdateUserFaceReqBuilder
用户 ID
示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62
func (*UpdateUserFaceReqBuilder) UserIdType ¶
func (builder *UpdateUserFaceReqBuilder) UserIdType(userIdType string) *UpdateUserFaceReqBuilder
此次调用中使用的用户ID的类型
示例值:
type UpdateUserFaceResp ¶
type UpdateUserFaceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*UpdateUserFaceResp) Success ¶
func (resp *UpdateUserFaceResp) Success() bool
type UserBuilder ¶
type UserBuilder struct {
// contains filtered or unexported fields
}
func NewUserBuilder ¶
func NewUserBuilder() *UserBuilder
func (*UserBuilder) Build ¶
func (builder *UserBuilder) Build() *User
func (*UserBuilder) Feature ¶
func (builder *UserBuilder) Feature(feature *Feature) *UserBuilder
用户特征
示例值:
func (*UserBuilder) UserId ¶
func (builder *UserBuilder) UserId(userId string) *UserBuilder
用户 ID
示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62
type UserExternal ¶
type UserExternalBuilder ¶
type UserExternalBuilder struct {
// contains filtered or unexported fields
}
func NewUserExternalBuilder ¶
func NewUserExternalBuilder() *UserExternalBuilder
func (*UserExternalBuilder) Build ¶
func (builder *UserExternalBuilder) Build() *UserExternal
func (*UserExternalBuilder) PhoneNum ¶
func (builder *UserExternalBuilder) PhoneNum(phoneNum string) *UserExternalBuilder
电话号码
示例值:1357890001
func (*UserExternalBuilder) UserId ¶
func (builder *UserExternalBuilder) UserId(userId string) *UserExternalBuilder
用户id
示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62
func (*UserExternalBuilder) UserName ¶
func (builder *UserExternalBuilder) UserName(userName string) *UserExternalBuilder
用户名称
示例值:张三
func (*UserExternalBuilder) UserType ¶
func (builder *UserExternalBuilder) UserType(userType int) *UserExternalBuilder
用户类型
示例值:1
type UserIdBuilder ¶
type UserIdBuilder struct {
// contains filtered or unexported fields
}
func NewUserIdBuilder ¶
func NewUserIdBuilder() *UserIdBuilder
func (*UserIdBuilder) Build ¶
func (builder *UserIdBuilder) Build() *UserId
func (*UserIdBuilder) OpenId ¶
func (builder *UserIdBuilder) OpenId(openId string) *UserIdBuilder
示例值:
func (*UserIdBuilder) UnionId ¶
func (builder *UserIdBuilder) UnionId(unionId string) *UserIdBuilder
示例值:
func (*UserIdBuilder) UserId ¶
func (builder *UserIdBuilder) UserId(userId string) *UserIdBuilder
示例值: