feishu

package module
v0.0.0-...-b1cb751 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapter

func Adapter() *feiShuAdapter

Types

type AppService

type AppService struct {
	AppId     string
	AppSecret string
}

func (*AppService) AppClient

func (s *AppService) AppClient() (*gclient.Client, error)

AppClient AppGetTenantToken

func (*AppService) AppClientAccessToken

func (s *AppService) AppClientAccessToken() (*gclient.Client, error)

AppClientAccessToken AppClientAccessToken

func (*AppService) AppClientTenantClient

func (s *AppService) AppClientTenantClient() (*gclient.Client, error)

AppClientTenantClient AppClientTenantClient

func (*AppService) AppExcelCreate

func (s *AppService) AppExcelCreate(title, folderToken string) (string, error)

AppExcelCreate title, folderToken

func (*AppService) AppExcelGetSheetId

func (s *AppService) AppExcelGetSheetId(sheetToken string) (string, error)

AppExcelGetSheetId sheetToken

func (*AppService) AppExcelInsertLine

func (s *AppService) AppExcelInsertLine(sheetToken, data string) (string, error)

AppExcelInsertLine sheetToken, data

func (*AppService) AppGetAccessToken

func (s *AppService) AppGetAccessToken() (string, error)

func (*AppService) AppGetDepartment

func (s *AppService) AppGetDepartment(id string) (string, error)

AppGetDepartment id DepartmentId(default 0)

func (*AppService) AppGetDepartmentUser

func (s *AppService) AppGetDepartmentUser(id string) (string, error)

AppGetDepartmentUser id DepartmentId

func (*AppService) AppGetDepartmentUsers

func (s *AppService) AppGetDepartmentUsers(ids []string) (string, error)

AppGetDepartmentUsers ids DepartmentIdList

func (*AppService) AppGetOpenId

func (s *AppService) AppGetOpenId(emails, mobiles []string) (string, error)

func (*AppService) AppGetOpenIdPersonFormEmail

func (s *AppService) AppGetOpenIdPersonFormEmail(email string) (string, error)

func (*AppService) AppGetOpenIdPersonFormMobile

func (s *AppService) AppGetOpenIdPersonFormMobile(mobile string) (string, error)

func (*AppService) AppGetOpenIdUser

func (s *AppService) AppGetOpenIdUser(user string) (string, error)

func (*AppService) AppGetOpenIdUsers

func (s *AppService) AppGetOpenIdUsers(users []string) ([]string, error)

func (*AppService) AppGetTenantToken

func (s *AppService) AppGetTenantToken() (string, error)

func (*AppService) AppGetUid

func (s *AppService) AppGetUid(emails, mobiles []string) (string, error)

func (*AppService) AppGetUidPersonFormEmail

func (s *AppService) AppGetUidPersonFormEmail(email string) (string, error)

func (*AppService) AppGetUidPersonFormMobile

func (s *AppService) AppGetUidPersonFormMobile(mobile string) (string, error)

func (*AppService) AppGetUidUser

func (s *AppService) AppGetUidUser(user string) (string, error)

func (*AppService) AppGetUidUsers

func (s *AppService) AppGetUidUsers(users []string) ([]string, error)

func (*AppService) AppGetUserDetail

func (s *AppService) AppGetUserDetail(user string) (string, error)

func (*AppService) AppSendMsgUrgentUsers

func (s *AppService) AppSendMsgUrgentUsers(msgType string, user []string, content, urgent string) (string, error)

AppSendMsgUrgentUsers msgType(text, post, image, share_chat, ...) content `json` urgent(phone, sms, app)

func (*AppService) AppSendMsgUser

func (s *AppService) AppSendMsgUser(msgType, user string, content, urgent string) (string, error)

AppSendMsgUser msgType(text, post, image, share_chat, ...) content `json` urgent(phone, sms, app)

func (*AppService) AppSendMsgUsers

func (s *AppService) AppSendMsgUsers(user []string, msgType, content string) (string, error)

AppSendMsgUsers msgType(text, post, image, share_chat, ...) content `json`

func (*AppService) AppSendMsgUsersCard

func (s *AppService) AppSendMsgUsersCard(user []string, card string) (string, error)

AppSendMsgUsersCard card `json`

func (*AppService) AppUrgentApp

func (s *AppService) AppUrgentApp(user string, messageId string) (string, error)

AppUrgentApp user(open_id)

func (*AppService) AppUrgentPhone

func (s *AppService) AppUrgentPhone(user string, messageId string) (string, error)

AppUrgentPhone user(open_id)

func (*AppService) AppUrgentSms

func (s *AppService) AppUrgentSms(user string, messageId string) (string, error)

AppUrgentSms user(open_id)

type User

type User struct {
	Code int `json:"code"`
	Data struct {
		HasMore bool `json:"has_more"`
		Items   []struct {
			Email    string `json:"email"`
			JobTitle string `json:"job_title"`
			Mobile   string `json:"mobile"`
			Name     string `json:"name"`
			UserId   string `json:"user_id"`
		} `json:"items"`
		PageToken string `json:"page_token"`
	} `json:"data"`
	Msg string `json:"msg"`
}

Jump to

Keyboard shortcuts

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