larkacs

package
v3.2.9 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 9 Imported by: 9

Documentation

Index

Constants

View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeCreateRuleExternalUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateRuleExternalUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateRuleExternalOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeGetRuleExternalUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetRuleExternalUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetRuleExternalOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeGetUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeListUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypePatchUserUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypePatchUserUnionId = "union_id" // 以union_id来识别用户
	UserIdTypePatchUserOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeGetUserFaceUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetUserFaceUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetUserFaceOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeUpdateUserFaceUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUpdateUserFaceUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUpdateUserFaceOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeCreateVisitorUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateVisitorUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateVisitorOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
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 (*CreateRuleExternalPathReqBodyBuilder) Rule added in v3.1.2

权限组信息

示例值:

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 (*CreateRuleExternalReqBodyBuilder) Rule added in v3.1.2

权限组信息

示例值:

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 (*CreateRuleExternalReqBuilder) Build added in v3.1.2

func (*CreateRuleExternalReqBuilder) RuleId added in v3.1.2

权限组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 (*CreateVisitorPathReqBodyBuilder) User added in v3.1.2

访客信息

示例值:

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 (*CreateVisitorReqBodyBuilder) User added in v3.1.2

访客信息

示例值:

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 (*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 (*DeleteRuleExternalReqBuilder) RuleId added in v3.1.2

权限组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 DepartmentId struct {
	DepartmentId     *string `json:"department_id,omitempty"`      //
	OpenDepartmentId *string `json:"open_department_id,omitempty"` //
}

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 Device

type Device struct {
	DeviceId   *string   `json:"device_id,omitempty"`   // 门禁设备 ID
	DeviceName *string   `json:"device_name,omitempty"` // 设备名称
	DeviceSn   *string   `json:"device_sn,omitempty"`   // 设备 SN 码
	Property   *Property `json:"property,omitempty"`    // 设备属性
}

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 (*DeviceBindRuleExternalPathReqBodyBuilder) DeviceId added in v3.1.2

设备id

示例值:6939433228970082593

func (*DeviceBindRuleExternalPathReqBodyBuilder) RuleIds added in v3.1.2

权限组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 DeviceBindRuleExternalReqBody struct {
	DeviceId *string  `json:"device_id,omitempty"` // 设备id
	RuleIds  []string `json:"rule_ids,omitempty"`  // 权限组id列表
}

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 (*DeviceBindRuleExternalReqBodyBuilder) DeviceId added in v3.1.2

设备id

示例值:6939433228970082593

func (*DeviceBindRuleExternalReqBodyBuilder) RuleIds added in v3.1.2

权限组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 (*DeviceBindRuleExternalReqBuilder) Build added in v3.1.2

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 DeviceExternal struct {
	Id   *string `json:"id,omitempty"`   // 设备id
	Name *string `json:"name,omitempty"` // 设备名称
}

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

设备id

示例值:534545234523452345

func (*DeviceExternalBuilder) Name added in v3.0.34

func (builder *DeviceExternalBuilder) Name(name string) *DeviceExternalBuilder

设备名称

示例值:北门

type Feature

type Feature struct {
	Card         *int  `json:"card,omitempty"`          // 卡号
	FaceUploaded *bool `json:"face_uploaded,omitempty"` // 是否已上传人脸图片
}

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 File

type File struct {
	Files    io.Reader `json:"files,omitempty"`     // 人脸图片内容
	FileType *string   `json:"file_type,omitempty"` // 文件类型,可选的类型有jpg,png
	FileName *string   `json:"file_name,omitempty"` // 带后缀的文件名
}

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

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 (*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 (*ListAccessRecordReqBuilder) DeviceId

func (builder *ListAccessRecordReqBuilder) DeviceId(deviceId string) *ListAccessRecordReqBuilder

门禁设备 ID

示例值:7091146989218002577

func (*ListAccessRecordReqBuilder) From

记录开始时间,单位秒

示例值:1624520521

func (*ListAccessRecordReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

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

记录结束时间,单位秒,;时间跨度不能超过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) Next

func (iterator *ListUserIterator) Next() (bool, *User, error)

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 ListUserRespData struct {
	Items     []*User `json:"items,omitempty"`      // -
	PageToken *string `json:"page_token,omitempty"` // 分页标记,当 has_more 为 true 时,会同时返回新的 page_token,否则不返回 page_token
	HasMore   *bool   `json:"has_more,omitempty"`   // 是否还有更多项
}

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 (*OpeningTimeExternalBuilder) DayTimes added in v3.0.34

有效时间

示例值:

func (*OpeningTimeExternalBuilder) ValidDay added in v3.0.34

有效日期

示例值:

func (*OpeningTimeExternalBuilder) Weekdays added in v3.0.34

func (builder *OpeningTimeExternalBuilder) Weekdays(weekdays []int) *OpeningTimeExternalBuilder

有效星期

示例值:

type OpeningTimePeriodExternal added in v3.0.34

type OpeningTimePeriodExternal struct {
	StartHhmm *int `json:"start_hhmm,omitempty"` // 起始时间
	EndHhmm   *int `json:"end_hhmm,omitempty"`   // 结束时间
}

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 (*OpeningTimePeriodExternalBuilder) EndHhmm added in v3.0.34

结束时间

示例值:1400

func (*OpeningTimePeriodExternalBuilder) StartHhmm added in v3.0.34

起始时间

示例值:1200

type OpeningTimeValidDayExternal added in v3.0.34

type OpeningTimeValidDayExternal struct {
	StartDay *int `json:"start_day,omitempty"` // 权限开始时间
	EndDay   *int `json:"end_day,omitempty"`   // 权限结束时间
}

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 (*OpeningTimeValidDayExternalBuilder) EndDay added in v3.0.34

权限结束时间

示例值:1699931483

func (*OpeningTimeValidDayExternalBuilder) StartDay added in v3.0.34

权限开始时间

示例值: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 (*P2AccessRecordCreatedV1Handler) Event

func (h *P2AccessRecordCreatedV1Handler) Event() interface{}

返回事件的消息体的实例,用于反序列化用

func (*P2AccessRecordCreatedV1Handler) Handle

func (h *P2AccessRecordCreatedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

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 P2UserUpdatedV1Data struct {
	UserId       *UserId `json:"user_id,omitempty"`       // 用户 ID
	Card         *int    `json:"card,omitempty"`          // 卡号
	FaceUploaded *bool   `json:"face_uploaded,omitempty"` // 是否上传人脸图片
}

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{}

返回事件的消息体的实例,用于反序列化用

func (*P2UserUpdatedV1Handler) Handle

func (h *P2UserUpdatedV1Handler) Handle(ctx context.Context, event interface{}) error

回调开发者注册的handle

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

用户需要录入人脸图片才可以使用门禁考勤机。使用该 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 User

type User struct {
	Feature *Feature `json:"feature,omitempty"` // 用户特征
	UserId  *string  `json:"user_id,omitempty"` // 用户 ID
}

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 UserExternal struct {
	UserType     *int    `json:"user_type,omitempty"`     // 用户类型
	UserId       *string `json:"user_id,omitempty"`       // 用户id
	UserName     *string `json:"user_name,omitempty"`     // 用户名称
	PhoneNum     *string `json:"phone_num,omitempty"`     // 电话号码
	DepartmentId *string `json:"department_id,omitempty"` // 部门id
}

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 UserId

type UserId struct {
	UserId  *string `json:"user_id,omitempty"`  //
	OpenId  *string `json:"open_id,omitempty"`  //
	UnionId *string `json:"union_id,omitempty"` //
}

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
}

func New added in v3.1.0

func New(config *larkcore.Config) *V1

Jump to

Keyboard shortcuts

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