fs

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	Id() string
	Test() string
	TenantQuery() (res map[string]interface{})
	Applications() (res map[string]interface{})
	AppVisibility() map[string]interface{}
	AppContactsRangeConfiguration() map[string]interface{}
	DepartmentListSubId(deptIdList []interface{}) []interface{}
	DepartmentsChildren(departmentId string, pageToken string) []interface{}
	DepartmentGet(id string) (res map[string]interface{})
	UsersFindByDepartment(id string, pageToken string) []interface{}
	UserGet(id string) map[string]interface{}
	UserIdGet(id string) map[string]interface{}
	AppAccessTokenInternal() string
	TicketGet() (ticket string)
	AuthorizationCode(code string) map[string]interface{}
	MessageSend(msg Message) error
}

func NewApp

func NewApp(config Config) App

type Config

type Config struct {
	AppID     string `json:"appId"`
	AppSecret string `json:"appSecret"`
}

type Message

type Message struct {
	Type    string      `json:"msg_type"`
	ToUser  string      `json:"receive_id"`
	Content MessageCard `json:"content"`
}

type MessageCard

type MessageCard struct {
	Title   string `json:"title"`
	Url     string `json:"url"`
	Content string `json:"content"`
}

type MessageMsg

type MessageMsg struct {
	Type    string `json:"msg_type"`
	ToUser  string `json:"receive_id"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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