Documentation ¶
Index ¶
- Constants
- func Validate(appID, secret string) error
- type ApprovalInstanceInfo
- type ApprovalType
- type CancelApprovalInstanceArgs
- type Client
- func (client *Client) CancelApprovalInstance(args *CancelApprovalInstanceArgs) error
- func (client *Client) CreateApprovalDefinition(arg *CreateApprovalDefinitionArgs) (string, error)
- func (client *Client) CreateApprovalInstance(args *CreateApprovalInstanceArgs) (string, error)
- func (client *Client) GetApprovalInstance(args *GetApprovalInstanceArgs) (*ApprovalInstanceInfo, error)
- func (client *Client) GetDepartmentInfoByID(id string) (*DepartmentInfo, error)
- func (client *Client) GetUserInfoByID(id string) (*UserInfo, error)
- func (client *Client) GetUserOpenIDByEmailOrMobile(_type, value string) (string, error)
- func (client *Client) ListAppContactRange() (*ContactRange, error)
- func (client *Client) ListSubDepartmentsInfo(departmentID string) ([]*DepartmentInfo, error)
- func (client *Client) ListUserFromDepartment(departmentID string) ([]*UserInfo, error)
- func (client *Client) SubscribeApprovalDefinition(args *SubscribeApprovalDefinitionArgs) error
- type ContactRange
- type CreateApprovalDefinitionArgs
- type CreateApprovalInstanceArgs
- type DepartmentInfo
- type GetApprovalInstanceArgs
- type SubscribeApprovalDefinitionArgs
- type UserInfo
Constants ¶
View Source
const ( ApproveTypeAnd ApprovalType = "AND" ApproveTypeOr ApprovalType = "OR" QueryTypeEmail = "email" QueryTypeMobile = "mobile" )
View Source
const ( // ApproverSelectionMethodFree is the approver selection method in the definition of approval // Free means the approval sponsor can choose the approver freely ApproverSelectionMethodFree = "Free" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApprovalInstanceInfo ¶
type ApprovalInstanceInfo struct { config.ApproveOrReject ApproverInfo *UserInfo Comment string Time int64 }
type ApprovalType ¶ added in v1.16.0
type ApprovalType string
type Client ¶
func (*Client) CancelApprovalInstance ¶
func (client *Client) CancelApprovalInstance(args *CancelApprovalInstanceArgs) error
func (*Client) CreateApprovalDefinition ¶
func (client *Client) CreateApprovalDefinition(arg *CreateApprovalDefinitionArgs) (string, error)
func (*Client) CreateApprovalInstance ¶
func (client *Client) CreateApprovalInstance(args *CreateApprovalInstanceArgs) (string, error)
func (*Client) GetApprovalInstance ¶
func (client *Client) GetApprovalInstance(args *GetApprovalInstanceArgs) (*ApprovalInstanceInfo, error)
func (*Client) GetDepartmentInfoByID ¶
func (client *Client) GetDepartmentInfoByID(id string) (*DepartmentInfo, error)
func (*Client) GetUserInfoByID ¶
func (*Client) GetUserOpenIDByEmailOrMobile ¶
func (*Client) ListAppContactRange ¶
func (client *Client) ListAppContactRange() (*ContactRange, error)
ListAppContactRange get users, departments, groups open id authorized by the lark app
func (*Client) ListSubDepartmentsInfo ¶
func (client *Client) ListSubDepartmentsInfo(departmentID string) ([]*DepartmentInfo, error)
func (*Client) ListUserFromDepartment ¶
func (*Client) SubscribeApprovalDefinition ¶
func (client *Client) SubscribeApprovalDefinition(args *SubscribeApprovalDefinitionArgs) error
type ContactRange ¶
type CreateApprovalDefinitionArgs ¶
type CreateApprovalDefinitionArgs struct { Name string Description string Type ApprovalType }
type DepartmentInfo ¶
type GetApprovalInstanceArgs ¶
type GetApprovalInstanceArgs struct {
InstanceID string
}
type SubscribeApprovalDefinitionArgs ¶
type SubscribeApprovalDefinitionArgs struct {
ApprovalID string
}
Click to show internal directories.
Click to hide internal directories.