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
- 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 P2AccessRecordCreatedV1
- type P2AccessRecordCreatedV1Data
- type P2AccessRecordCreatedV1Handler
- type P2UserUpdatedV1
- type P2UserUpdatedV1Data
- type P2UserUpdatedV1Handler
- type PatchUserReq
- type PatchUserReqBuilder
- type PatchUserResp
- 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 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 ¶ added in v3.0.29
type DepartmentIdBuilder ¶ added in v3.0.29
type DepartmentIdBuilder struct {
// contains filtered or unexported fields
}
func NewDepartmentIdBuilder ¶ added in v3.0.29
func NewDepartmentIdBuilder() *DepartmentIdBuilder
func (*DepartmentIdBuilder) Build ¶ added in v3.0.29
func (builder *DepartmentIdBuilder) Build() *DepartmentId
func (*DepartmentIdBuilder) DepartmentId ¶ added in v3.0.29
func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder
示例值:
func (*DepartmentIdBuilder) OpenDepartmentId ¶ added in v3.0.29
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
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 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 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 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
示例值: