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 CreateRuleExternalPathReqBodyBuilder
- type CreateRuleExternalReq
- type CreateRuleExternalReqBody
- type CreateRuleExternalReqBodyBuilder
- type CreateRuleExternalReqBuilder
- func (builder *CreateRuleExternalReqBuilder) Body(body *CreateRuleExternalReqBody) *CreateRuleExternalReqBuilder
- func (builder *CreateRuleExternalReqBuilder) Build() *CreateRuleExternalReq
- func (builder *CreateRuleExternalReqBuilder) RuleId(ruleId string) *CreateRuleExternalReqBuilder
- func (builder *CreateRuleExternalReqBuilder) UserIdType(userIdType string) *CreateRuleExternalReqBuilder
- type CreateRuleExternalResp
- type CreateRuleExternalRespData
- type CreateVisitorPathReqBodyBuilder
- type CreateVisitorReq
- type CreateVisitorReqBody
- type CreateVisitorReqBodyBuilder
- type CreateVisitorReqBuilder
- type CreateVisitorResp
- type CreateVisitorRespData
- type DeleteRuleExternalReq
- type DeleteRuleExternalReqBuilder
- type DeleteRuleExternalResp
- type DeleteVisitorReq
- type DeleteVisitorReqBuilder
- type DeleteVisitorResp
- type DepartmentId
- type DepartmentIdBuilder
- type Device
- type DeviceBindRuleExternalPathReqBodyBuilder
- func (builder *DeviceBindRuleExternalPathReqBodyBuilder) Build() (*DeviceBindRuleExternalReqBody, error)
- func (builder *DeviceBindRuleExternalPathReqBodyBuilder) DeviceId(deviceId string) *DeviceBindRuleExternalPathReqBodyBuilder
- func (builder *DeviceBindRuleExternalPathReqBodyBuilder) RuleIds(ruleIds []string) *DeviceBindRuleExternalPathReqBodyBuilder
- type DeviceBindRuleExternalReq
- type DeviceBindRuleExternalReqBody
- type DeviceBindRuleExternalReqBodyBuilder
- func (builder *DeviceBindRuleExternalReqBodyBuilder) Build() *DeviceBindRuleExternalReqBody
- func (builder *DeviceBindRuleExternalReqBodyBuilder) DeviceId(deviceId string) *DeviceBindRuleExternalReqBodyBuilder
- func (builder *DeviceBindRuleExternalReqBodyBuilder) RuleIds(ruleIds []string) *DeviceBindRuleExternalReqBodyBuilder
- type DeviceBindRuleExternalReqBuilder
- type DeviceBindRuleExternalResp
- 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 GetRuleExternalReq
- type GetRuleExternalReqBuilder
- type GetRuleExternalResp
- type GetRuleExternalRespData
- 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) IsTemp(isTemp bool) *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) DepartmentId(departmentId string) *UserExternalBuilder
- 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
- type V1
Constants ¶
const ( UserIdTypeUserId = "user_id" // 以user_id来识别用户 UserIdTypeUnionId = "union_id" // 以union_id来识别用户 UserIdTypeOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeCreateRuleExternalUserId = "user_id" // 以user_id来识别用户 UserIdTypeCreateRuleExternalUnionId = "union_id" // 以union_id来识别用户 UserIdTypeCreateRuleExternalOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeGetRuleExternalUserId = "user_id" // 以user_id来识别用户 UserIdTypeGetRuleExternalUnionId = "union_id" // 以union_id来识别用户 UserIdTypeGetRuleExternalOpenId = "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来识别用户 )
const ( UserIdTypeCreateVisitorUserId = "user_id" // 以user_id来识别用户 UserIdTypeCreateVisitorUnionId = "union_id" // 以union_id来识别用户 UserIdTypeCreateVisitorOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeDeleteVisitorUserId = "user_id" // 以user_id来识别用户 UserIdTypeDeleteVisitorUnionId = "union_id" // 以union_id来识别用户 UserIdTypeDeleteVisitorOpenId = "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 CreateRuleExternalPathReqBodyBuilder ¶ added in v3.1.2
type CreateRuleExternalPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewCreateRuleExternalPathReqBodyBuilder ¶ added in v3.1.2
func NewCreateRuleExternalPathReqBodyBuilder() *CreateRuleExternalPathReqBodyBuilder
func (*CreateRuleExternalPathReqBodyBuilder) Build ¶ added in v3.1.2
func (builder *CreateRuleExternalPathReqBodyBuilder) Build() (*CreateRuleExternalReqBody, error)
func (*CreateRuleExternalPathReqBodyBuilder) Rule ¶ added in v3.1.2
func (builder *CreateRuleExternalPathReqBodyBuilder) Rule(rule *Rule) *CreateRuleExternalPathReqBodyBuilder
权限组信息
示例值:
type CreateRuleExternalReq ¶ added in v3.1.2
type CreateRuleExternalReq struct { Body *CreateRuleExternalReqBody `body:""` // contains filtered or unexported fields }
type CreateRuleExternalReqBody ¶ added in v3.1.2
type CreateRuleExternalReqBody struct {
Rule *Rule `json:"rule,omitempty"` // 权限组信息
}
type CreateRuleExternalReqBodyBuilder ¶ added in v3.1.2
type CreateRuleExternalReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewCreateRuleExternalReqBodyBuilder ¶ added in v3.1.2
func NewCreateRuleExternalReqBodyBuilder() *CreateRuleExternalReqBodyBuilder
func (*CreateRuleExternalReqBodyBuilder) Build ¶ added in v3.1.2
func (builder *CreateRuleExternalReqBodyBuilder) Build() *CreateRuleExternalReqBody
func (*CreateRuleExternalReqBodyBuilder) Rule ¶ added in v3.1.2
func (builder *CreateRuleExternalReqBodyBuilder) Rule(rule *Rule) *CreateRuleExternalReqBodyBuilder
权限组信息
示例值:
type CreateRuleExternalReqBuilder ¶ added in v3.1.2
type CreateRuleExternalReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateRuleExternalReqBuilder ¶ added in v3.1.2
func NewCreateRuleExternalReqBuilder() *CreateRuleExternalReqBuilder
func (*CreateRuleExternalReqBuilder) Body ¶ added in v3.1.2
func (builder *CreateRuleExternalReqBuilder) Body(body *CreateRuleExternalReqBody) *CreateRuleExternalReqBuilder
func (*CreateRuleExternalReqBuilder) Build ¶ added in v3.1.2
func (builder *CreateRuleExternalReqBuilder) Build() *CreateRuleExternalReq
func (*CreateRuleExternalReqBuilder) RuleId ¶ added in v3.1.2
func (builder *CreateRuleExternalReqBuilder) RuleId(ruleId string) *CreateRuleExternalReqBuilder
权限组id-为空创建,不为空则更新
示例值:7298933941867135276
func (*CreateRuleExternalReqBuilder) UserIdType ¶ added in v3.1.2
func (builder *CreateRuleExternalReqBuilder) UserIdType(userIdType string) *CreateRuleExternalReqBuilder
此次调用中使用的用户ID的类型
示例值:
type CreateRuleExternalResp ¶ added in v3.1.2
type CreateRuleExternalResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *CreateRuleExternalRespData `json:"data"` // 业务数据 }
func (*CreateRuleExternalResp) Success ¶ added in v3.1.2
func (resp *CreateRuleExternalResp) Success() bool
type CreateRuleExternalRespData ¶ added in v3.1.2
type CreateRuleExternalRespData struct {
RuleId *string `json:"rule_id,omitempty"` // 权限组id
}
type CreateVisitorPathReqBodyBuilder ¶ added in v3.1.2
type CreateVisitorPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewCreateVisitorPathReqBodyBuilder ¶ added in v3.1.2
func NewCreateVisitorPathReqBodyBuilder() *CreateVisitorPathReqBodyBuilder
func (*CreateVisitorPathReqBodyBuilder) Build ¶ added in v3.1.2
func (builder *CreateVisitorPathReqBodyBuilder) Build() (*CreateVisitorReqBody, error)
func (*CreateVisitorPathReqBodyBuilder) User ¶ added in v3.1.2
func (builder *CreateVisitorPathReqBodyBuilder) User(user *UserExternal) *CreateVisitorPathReqBodyBuilder
访客信息
示例值:
type CreateVisitorReq ¶ added in v3.1.2
type CreateVisitorReq struct { Body *CreateVisitorReqBody `body:""` // contains filtered or unexported fields }
type CreateVisitorReqBody ¶ added in v3.1.2
type CreateVisitorReqBody struct {
User *UserExternal `json:"user,omitempty"` // 访客信息
}
type CreateVisitorReqBodyBuilder ¶ added in v3.1.2
type CreateVisitorReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewCreateVisitorReqBodyBuilder ¶ added in v3.1.2
func NewCreateVisitorReqBodyBuilder() *CreateVisitorReqBodyBuilder
func (*CreateVisitorReqBodyBuilder) Build ¶ added in v3.1.2
func (builder *CreateVisitorReqBodyBuilder) Build() *CreateVisitorReqBody
func (*CreateVisitorReqBodyBuilder) User ¶ added in v3.1.2
func (builder *CreateVisitorReqBodyBuilder) User(user *UserExternal) *CreateVisitorReqBodyBuilder
访客信息
示例值:
type CreateVisitorReqBuilder ¶ added in v3.1.2
type CreateVisitorReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateVisitorReqBuilder ¶ added in v3.1.2
func NewCreateVisitorReqBuilder() *CreateVisitorReqBuilder
func (*CreateVisitorReqBuilder) Body ¶ added in v3.1.2
func (builder *CreateVisitorReqBuilder) Body(body *CreateVisitorReqBody) *CreateVisitorReqBuilder
func (*CreateVisitorReqBuilder) Build ¶ added in v3.1.2
func (builder *CreateVisitorReqBuilder) Build() *CreateVisitorReq
func (*CreateVisitorReqBuilder) UserIdType ¶ added in v3.1.2
func (builder *CreateVisitorReqBuilder) UserIdType(userIdType string) *CreateVisitorReqBuilder
此次调用中使用的用户ID的类型
示例值:
type CreateVisitorResp ¶ added in v3.1.2
type CreateVisitorResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *CreateVisitorRespData `json:"data"` // 业务数据 }
func (*CreateVisitorResp) Success ¶ added in v3.1.2
func (resp *CreateVisitorResp) Success() bool
type CreateVisitorRespData ¶ added in v3.1.2
type CreateVisitorRespData struct {
VisitorId *string `json:"visitor_id,omitempty"` // 访客的id
}
type DeleteRuleExternalReq ¶ added in v3.1.2
type DeleteRuleExternalReq struct {
// contains filtered or unexported fields
}
type DeleteRuleExternalReqBuilder ¶ added in v3.1.2
type DeleteRuleExternalReqBuilder struct {
// contains filtered or unexported fields
}
func NewDeleteRuleExternalReqBuilder ¶ added in v3.1.2
func NewDeleteRuleExternalReqBuilder() *DeleteRuleExternalReqBuilder
func (*DeleteRuleExternalReqBuilder) Build ¶ added in v3.1.2
func (builder *DeleteRuleExternalReqBuilder) Build() *DeleteRuleExternalReq
func (*DeleteRuleExternalReqBuilder) RuleId ¶ added in v3.1.2
func (builder *DeleteRuleExternalReqBuilder) RuleId(ruleId string) *DeleteRuleExternalReqBuilder
权限组id
示例值:7298933941867135276
type DeleteRuleExternalResp ¶ added in v3.1.2
type DeleteRuleExternalResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*DeleteRuleExternalResp) Success ¶ added in v3.1.2
func (resp *DeleteRuleExternalResp) Success() bool
type DeleteVisitorReq ¶ added in v3.1.2
type DeleteVisitorReq struct {
// contains filtered or unexported fields
}
type DeleteVisitorReqBuilder ¶ added in v3.1.2
type DeleteVisitorReqBuilder struct {
// contains filtered or unexported fields
}
func NewDeleteVisitorReqBuilder ¶ added in v3.1.2
func NewDeleteVisitorReqBuilder() *DeleteVisitorReqBuilder
func (*DeleteVisitorReqBuilder) Build ¶ added in v3.1.2
func (builder *DeleteVisitorReqBuilder) Build() *DeleteVisitorReq
func (*DeleteVisitorReqBuilder) UserIdType ¶ added in v3.1.2
func (builder *DeleteVisitorReqBuilder) UserIdType(userIdType string) *DeleteVisitorReqBuilder
此次调用中使用的用户ID的类型
示例值:
func (*DeleteVisitorReqBuilder) VisitorId ¶ added in v3.1.2
func (builder *DeleteVisitorReqBuilder) VisitorId(visitorId string) *DeleteVisitorReqBuilder
访客id
示例值:6939433228970082566
type DeleteVisitorResp ¶ added in v3.1.2
type DeleteVisitorResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*DeleteVisitorResp) Success ¶ added in v3.1.2
func (resp *DeleteVisitorResp) Success() bool
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 DeviceBindRuleExternalPathReqBodyBuilder ¶ added in v3.1.2
type DeviceBindRuleExternalPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewDeviceBindRuleExternalPathReqBodyBuilder ¶ added in v3.1.2
func NewDeviceBindRuleExternalPathReqBodyBuilder() *DeviceBindRuleExternalPathReqBodyBuilder
func (*DeviceBindRuleExternalPathReqBodyBuilder) Build ¶ added in v3.1.2
func (builder *DeviceBindRuleExternalPathReqBodyBuilder) Build() (*DeviceBindRuleExternalReqBody, error)
func (*DeviceBindRuleExternalPathReqBodyBuilder) DeviceId ¶ added in v3.1.2
func (builder *DeviceBindRuleExternalPathReqBodyBuilder) DeviceId(deviceId string) *DeviceBindRuleExternalPathReqBodyBuilder
设备id
示例值:6939433228970082593
func (*DeviceBindRuleExternalPathReqBodyBuilder) RuleIds ¶ added in v3.1.2
func (builder *DeviceBindRuleExternalPathReqBodyBuilder) RuleIds(ruleIds []string) *DeviceBindRuleExternalPathReqBodyBuilder
权限组id列表
示例值:
type DeviceBindRuleExternalReq ¶ added in v3.1.2
type DeviceBindRuleExternalReq struct { Body *DeviceBindRuleExternalReqBody `body:""` // contains filtered or unexported fields }
type DeviceBindRuleExternalReqBody ¶ added in v3.1.2
type DeviceBindRuleExternalReqBodyBuilder ¶ added in v3.1.2
type DeviceBindRuleExternalReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewDeviceBindRuleExternalReqBodyBuilder ¶ added in v3.1.2
func NewDeviceBindRuleExternalReqBodyBuilder() *DeviceBindRuleExternalReqBodyBuilder
func (*DeviceBindRuleExternalReqBodyBuilder) Build ¶ added in v3.1.2
func (builder *DeviceBindRuleExternalReqBodyBuilder) Build() *DeviceBindRuleExternalReqBody
func (*DeviceBindRuleExternalReqBodyBuilder) DeviceId ¶ added in v3.1.2
func (builder *DeviceBindRuleExternalReqBodyBuilder) DeviceId(deviceId string) *DeviceBindRuleExternalReqBodyBuilder
设备id
示例值:6939433228970082593
func (*DeviceBindRuleExternalReqBodyBuilder) RuleIds ¶ added in v3.1.2
func (builder *DeviceBindRuleExternalReqBodyBuilder) RuleIds(ruleIds []string) *DeviceBindRuleExternalReqBodyBuilder
权限组id列表
示例值:
type DeviceBindRuleExternalReqBuilder ¶ added in v3.1.2
type DeviceBindRuleExternalReqBuilder struct {
// contains filtered or unexported fields
}
func NewDeviceBindRuleExternalReqBuilder ¶ added in v3.1.2
func NewDeviceBindRuleExternalReqBuilder() *DeviceBindRuleExternalReqBuilder
func (*DeviceBindRuleExternalReqBuilder) Body ¶ added in v3.1.2
func (builder *DeviceBindRuleExternalReqBuilder) Body(body *DeviceBindRuleExternalReqBody) *DeviceBindRuleExternalReqBuilder
func (*DeviceBindRuleExternalReqBuilder) Build ¶ added in v3.1.2
func (builder *DeviceBindRuleExternalReqBuilder) Build() *DeviceBindRuleExternalReq
type DeviceBindRuleExternalResp ¶ added in v3.1.2
type DeviceBindRuleExternalResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*DeviceBindRuleExternalResp) Success ¶ added in v3.1.2
func (resp *DeviceBindRuleExternalResp) Success() bool
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 ¶ added in v3.0.34
func (builder *DeviceBuilder) Property(property *Property) *DeviceBuilder
设备属性
示例值:
type DeviceExternal ¶ added in v3.0.34
type DeviceExternalBuilder ¶ added in v3.0.34
type DeviceExternalBuilder struct {
// contains filtered or unexported fields
}
func NewDeviceExternalBuilder ¶ added in v3.0.34
func NewDeviceExternalBuilder() *DeviceExternalBuilder
func (*DeviceExternalBuilder) Build ¶ added in v3.0.34
func (builder *DeviceExternalBuilder) Build() *DeviceExternal
func (*DeviceExternalBuilder) Id ¶ added in v3.0.34
func (builder *DeviceExternalBuilder) Id(id string) *DeviceExternalBuilder
设备id
示例值:534545234523452345
func (*DeviceExternalBuilder) Name ¶ added in v3.0.34
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 GetRuleExternalReq ¶ added in v3.1.2
type GetRuleExternalReq struct {
// contains filtered or unexported fields
}
type GetRuleExternalReqBuilder ¶ added in v3.1.2
type GetRuleExternalReqBuilder struct {
// contains filtered or unexported fields
}
func NewGetRuleExternalReqBuilder ¶ added in v3.1.2
func NewGetRuleExternalReqBuilder() *GetRuleExternalReqBuilder
func (*GetRuleExternalReqBuilder) Build ¶ added in v3.1.2
func (builder *GetRuleExternalReqBuilder) Build() *GetRuleExternalReq
func (*GetRuleExternalReqBuilder) DeviceId ¶ added in v3.1.2
func (builder *GetRuleExternalReqBuilder) DeviceId(deviceId string) *GetRuleExternalReqBuilder
设备id
示例值:7296700518380863767
func (*GetRuleExternalReqBuilder) UserIdType ¶ added in v3.1.2
func (builder *GetRuleExternalReqBuilder) UserIdType(userIdType string) *GetRuleExternalReqBuilder
此次调用中使用的用户ID的类型
示例值:
type GetRuleExternalResp ¶ added in v3.1.2
type GetRuleExternalResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *GetRuleExternalRespData `json:"data"` // 业务数据 }
func (*GetRuleExternalResp) Success ¶ added in v3.1.2
func (resp *GetRuleExternalResp) Success() bool
type GetRuleExternalRespData ¶ added in v3.1.2
type GetRuleExternalRespData struct {
Rules []*Rule `json:"rules,omitempty"` // 设备权限组信息
}
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 ¶ added in v3.0.34
type OpeningTimeExternal struct { ValidDay *OpeningTimeValidDayExternal `json:"valid_day,omitempty"` // 有效日期 Weekdays []int `json:"weekdays,omitempty"` // 有效星期 DayTimes []*OpeningTimePeriodExternal `json:"day_times,omitempty"` // 有效时间 }
type OpeningTimeExternalBuilder ¶ added in v3.0.34
type OpeningTimeExternalBuilder struct {
// contains filtered or unexported fields
}
func NewOpeningTimeExternalBuilder ¶ added in v3.0.34
func NewOpeningTimeExternalBuilder() *OpeningTimeExternalBuilder
func (*OpeningTimeExternalBuilder) Build ¶ added in v3.0.34
func (builder *OpeningTimeExternalBuilder) Build() *OpeningTimeExternal
func (*OpeningTimeExternalBuilder) DayTimes ¶ added in v3.0.34
func (builder *OpeningTimeExternalBuilder) DayTimes(dayTimes []*OpeningTimePeriodExternal) *OpeningTimeExternalBuilder
有效时间
示例值:
func (*OpeningTimeExternalBuilder) ValidDay ¶ added in v3.0.34
func (builder *OpeningTimeExternalBuilder) ValidDay(validDay *OpeningTimeValidDayExternal) *OpeningTimeExternalBuilder
有效日期
示例值:
func (*OpeningTimeExternalBuilder) Weekdays ¶ added in v3.0.34
func (builder *OpeningTimeExternalBuilder) Weekdays(weekdays []int) *OpeningTimeExternalBuilder
有效星期
示例值:
type OpeningTimePeriodExternal ¶ added in v3.0.34
type OpeningTimePeriodExternalBuilder ¶ added in v3.0.34
type OpeningTimePeriodExternalBuilder struct {
// contains filtered or unexported fields
}
func NewOpeningTimePeriodExternalBuilder ¶ added in v3.0.34
func NewOpeningTimePeriodExternalBuilder() *OpeningTimePeriodExternalBuilder
func (*OpeningTimePeriodExternalBuilder) Build ¶ added in v3.0.34
func (builder *OpeningTimePeriodExternalBuilder) Build() *OpeningTimePeriodExternal
func (*OpeningTimePeriodExternalBuilder) EndHhmm ¶ added in v3.0.34
func (builder *OpeningTimePeriodExternalBuilder) EndHhmm(endHhmm int) *OpeningTimePeriodExternalBuilder
结束时间
示例值:1400
func (*OpeningTimePeriodExternalBuilder) StartHhmm ¶ added in v3.0.34
func (builder *OpeningTimePeriodExternalBuilder) StartHhmm(startHhmm int) *OpeningTimePeriodExternalBuilder
起始时间
示例值:1200
type OpeningTimeValidDayExternal ¶ added in v3.0.34
type OpeningTimeValidDayExternalBuilder ¶ added in v3.0.34
type OpeningTimeValidDayExternalBuilder struct {
// contains filtered or unexported fields
}
func NewOpeningTimeValidDayExternalBuilder ¶ added in v3.0.34
func NewOpeningTimeValidDayExternalBuilder() *OpeningTimeValidDayExternalBuilder
func (*OpeningTimeValidDayExternalBuilder) Build ¶ added in v3.0.34
func (builder *OpeningTimeValidDayExternalBuilder) Build() *OpeningTimeValidDayExternal
func (*OpeningTimeValidDayExternalBuilder) EndDay ¶ added in v3.0.34
func (builder *OpeningTimeValidDayExternalBuilder) EndDay(endDay int) *OpeningTimeValidDayExternalBuilder
权限结束时间
示例值:1699931483
func (*OpeningTimeValidDayExternalBuilder) StartDay ¶ added in v3.0.34
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 ¶ added in v3.0.34
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 ¶ added in v3.0.34
type PropertyBuilder struct {
// contains filtered or unexported fields
}
func NewPropertyBuilder ¶ added in v3.0.34
func NewPropertyBuilder() *PropertyBuilder
func (*PropertyBuilder) Build ¶ added in v3.0.34
func (builder *PropertyBuilder) Build() *Property
func (*PropertyBuilder) CurrentDeviceFaceCount ¶ added in v3.0.34
func (builder *PropertyBuilder) CurrentDeviceFaceCount(currentDeviceFaceCount int) *PropertyBuilder
当前设备人脸数量
示例值:300
func (*PropertyBuilder) DeviceName ¶ added in v3.0.34
func (builder *PropertyBuilder) DeviceName(deviceName string) *PropertyBuilder
设备名称
示例值:南门
func (*PropertyBuilder) IsClockIn ¶ added in v3.0.34
func (builder *PropertyBuilder) IsClockIn(isClockIn bool) *PropertyBuilder
是否是打卡
示例值:true
func (*PropertyBuilder) MaxFaceCapacity ¶ added in v3.0.34
func (builder *PropertyBuilder) MaxFaceCapacity(maxFaceCapacity int) *PropertyBuilder
设备最大人脸容量
示例值:5000
func (*PropertyBuilder) OnlineStatus ¶ added in v3.0.34
func (builder *PropertyBuilder) OnlineStatus(onlineStatus int) *PropertyBuilder
在线状态
示例值:1
func (*PropertyBuilder) Version ¶ added in v3.0.34
func (builder *PropertyBuilder) Version(version string) *PropertyBuilder
设备版本号
示例值:2.3.10
type Rule ¶ added in v3.0.34
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"` // 开门时间段 IsTemp *bool `json:"is_temp,omitempty"` // 是否为临时权限组 }
type RuleBuilder ¶ added in v3.0.34
type RuleBuilder struct {
// contains filtered or unexported fields
}
func NewRuleBuilder ¶ added in v3.0.34
func NewRuleBuilder() *RuleBuilder
func (*RuleBuilder) Build ¶ added in v3.0.34
func (builder *RuleBuilder) Build() *Rule
func (*RuleBuilder) Devices ¶ added in v3.0.34
func (builder *RuleBuilder) Devices(devices []*DeviceExternal) *RuleBuilder
权限组包含的设备
示例值:
func (*RuleBuilder) Id ¶ added in v3.0.34
func (builder *RuleBuilder) Id(id string) *RuleBuilder
权限组id
示例值:34252345234523
func (*RuleBuilder) IsTemp ¶ added in v3.1.2
func (builder *RuleBuilder) IsTemp(isTemp bool) *RuleBuilder
是否为临时权限组
示例值:false
func (*RuleBuilder) Name ¶ added in v3.0.34
func (builder *RuleBuilder) Name(name string) *RuleBuilder
权限组名称
示例值:南门
func (*RuleBuilder) OpeningTime ¶ added in v3.0.34
func (builder *RuleBuilder) OpeningTime(openingTime *OpeningTimeExternal) *RuleBuilder
开门时间段
示例值:
func (*RuleBuilder) RemindFace ¶ added in v3.0.34
func (builder *RuleBuilder) RemindFace(remindFace bool) *RuleBuilder
是否通知人员录入
示例值:false
func (*RuleBuilder) UserCount ¶ added in v3.0.34
func (builder *RuleBuilder) UserCount(userCount string) *RuleBuilder
权限组包含的员工个数
示例值:3
func (*RuleBuilder) Users ¶ added in v3.0.34
func (builder *RuleBuilder) Users(users []*UserExternal) *RuleBuilder
权限组包含的员工列表
示例值:
func (*RuleBuilder) VisitorCount ¶ added in v3.0.34
func (builder *RuleBuilder) VisitorCount(visitorCount string) *RuleBuilder
权限组包含的访客个数
示例值:3
func (*RuleBuilder) Visitors ¶ added in v3.0.34
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 ¶ added in v3.0.34
type UserExternalBuilder ¶ added in v3.0.34
type UserExternalBuilder struct {
// contains filtered or unexported fields
}
func NewUserExternalBuilder ¶ added in v3.0.34
func NewUserExternalBuilder() *UserExternalBuilder
func (*UserExternalBuilder) Build ¶ added in v3.0.34
func (builder *UserExternalBuilder) Build() *UserExternal
func (*UserExternalBuilder) DepartmentId ¶ added in v3.1.2
func (builder *UserExternalBuilder) DepartmentId(departmentId string) *UserExternalBuilder
部门id
示例值:od-f7d44ab733f7602f5cc5194735fd9aaf
func (*UserExternalBuilder) PhoneNum ¶ added in v3.0.34
func (builder *UserExternalBuilder) PhoneNum(phoneNum string) *UserExternalBuilder
电话号码
示例值:1357890001
func (*UserExternalBuilder) UserId ¶ added in v3.0.34
func (builder *UserExternalBuilder) UserId(userId string) *UserExternalBuilder
用户id
示例值:ou_7dab8a3d3cdcc9da365777c7ad535d62
func (*UserExternalBuilder) UserName ¶ added in v3.0.34
func (builder *UserExternalBuilder) UserName(userName string) *UserExternalBuilder
用户名称
示例值:张三
func (*UserExternalBuilder) UserType ¶ added in v3.0.34
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
示例值:
type V1 ¶ added in v3.1.0
type V1 struct { AccessRecord *accessRecord // 门禁记录 AccessRecordAccessPhoto *accessRecordAccessPhoto // access_record.access_photo Device *device // 门禁设备 RuleExternal *ruleExternal // rule_external User *user // 用户管理 UserFace *userFace // user.face Visitor *visitor // visitor }