linkedcorp

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUser

func GetUser(corpID, userID string, result *ResultUserGet) wx.Action

GetUser 获取互联企业成员详细信息

func ListAgentPerm

func ListAgentPerm(result *ResultAgentPermList) wx.Action

ListAgentPerm 获取应用的可见范围

func ListDeparment

func ListDeparment(linkedID, departmentID string, result *ResultDepartmentList) wx.Action

ListDeparment 获取互联企业部门列表

func ListSimpleUser

func ListSimpleUser(linkedID, departmentID string, fetchChild bool, result *ResultSimpleUserList) wx.Action

ListSimpleUser 获取互联企业部门成员

func ListUser

func ListUser(linkedID, departmentID string, fetchChild bool, result *ResultUserList) wx.Action

ListUser 获取互联企业部门成员详情

Types

type Attr

type Attr struct {
	Name        string     `json:"name"`
	Type        int        `json:"type"`
	Text        *AttrText  `json:"text,omitempty"`
	Web         *AttrWeb   `json:"web,omitempty"`
	Miniprogram *AttrMinip `json:"miniprogram,omitempty"`
}

type AttrMinip

type AttrMinip struct {
	Title    string `json:"title"`
	AppID    string `json:"appid"`
	PagePath string `json:"pagepath"`
}

type AttrText

type AttrText struct {
	Value string `json:"value"`
}

type AttrWeb

type AttrWeb struct {
	Title string `json:"title"`
	URL   string `json:"url"`
}

type DepartmentListData

type DepartmentListData struct {
	DepartmentID   string `json:"department_id"`
	DepartmentName string `json:"department_name"`
	ParentID       string `json:"parentid"`
	Order          int    `json:"order"`
}

type ExtAttr

type ExtAttr struct {
	Attrs []*Attr `json:"attrs"`
}

type ParamsDepartmentList

type ParamsDepartmentList struct {
	DepartmentID string `json:"department_id"`
}

type ParamsSimpleUserList

type ParamsSimpleUserList struct {
	DepartmentID string `json:"department_id"`
	FetchChild   bool   `json:"fetch_child"`
}

type ParamsUserGet

type ParamsUserGet struct {
	UserID string `json:"userid"`
}

type ParamsUserList

type ParamsUserList struct {
	DepartmentID string `json:"department_id"`
	FetchChild   bool   `json:"fetch_child"`
}

type ResultAgentPermList

type ResultAgentPermList struct {
	UserIDs       []string `json:"userids"`
	DepartmentIDs []string `json:"department_ids"`
}

type ResultDepartmentList

type ResultDepartmentList struct {
	DepartmentList []*DepartmentListData `json:"department_list"`
}

type ResultSimpleUserList

type ResultSimpleUserList struct {
	UserList []*SimpleUser `json:"userlist"`
}

type ResultUserGet

type ResultUserGet struct {
	UserInfo *UserInfo `json:"user_info"`
}

type ResultUserList

type ResultUserList struct {
	UserList []*UserInfo `json:"userlist"`
}

type SimpleUser

type SimpleUser struct {
	UserID     string   `json:"userid"`
	Name       string   `json:"name"`
	Department []string `json:"department"`
	CorpID     string   `json:"corpid"`
}

type UserInfo

type UserInfo struct {
	UserID     string   `json:"userid"`
	Name       string   `json:"name"`
	Department []string `json:"department"`
	Mobile     string   `json:"mobile"`
	Telephone  string   `json:"telephone"`
	EMail      string   `json:"email"`
	Position   string   `json:"position"`
	CorpID     string   `json:"corpid"`
	ExtAttr    *ExtAttr `json:"extattr"`
}

Jump to

Keyboard shortcuts

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