dingtalk

package
v0.0.0-...-3faa710 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

README

目录

  • corp: 企业号
  • provider: 企业服务商

Documentation

Index

Constants

View Source
const (
	UrlService = "https://oapi.dingtalk.com"

	AccessTokenTypeCorp              = "corp"
	AccessTokenTypeProviderAuthorize = "provider_authorize"

	MessageTypeText       = "text"
	MessageTypeImage      = "image"
	MessageTypeVoice      = "voice"
	MessageTypeFile       = "file"
	MessageTypeLink       = "link"
	MessageTypeOA         = "oa"
	MessageTypeMarkdown   = "markdown"
	MessageTypeActionCard = "action_card"

	MediaTypeImage = "image"
	MediaTypeVoice = "voice"
	MediaTypeFile  = "file"
)

Variables

View Source
var (
	MessageTypes map[string]string
	MediaTypes   map[string]string
)

Functions

func LoadConfig

func LoadConfig(outer IDingTalkConfig)

func NewConfig

func NewConfig() *configDingTalk

func NewConfigCorp

func NewConfigCorp() *configCorp

func NewUtil

func NewUtil() *utilDingTalk

Types

type BaseCorp

type BaseCorp struct {
	// contains filtered or unexported fields
}

func NewCorp

func NewCorp() BaseCorp

func (*BaseCorp) GetRequest

func (dt *BaseCorp) GetRequest() (*fasthttp.Client, *fasthttp.Request)

type BaseProvider

type BaseProvider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider() BaseProvider

func (*BaseProvider) GetRequest

func (dt *BaseProvider) GetRequest() (*fasthttp.Client, *fasthttp.Request)

type IDingTalkConfig

type IDingTalkConfig interface {
	RefreshConfigCorp(corpId string) *configCorp // 刷新企业号配置
}

Directories

Path Synopsis
corp
role
* * Created by GoLand.
* * Created by GoLand.
smarthrm/employee
* * Created by GoLand.
* * Created by GoLand.
sns
* * Created by GoLand.
* * Created by GoLand.
sso
user
* * Created by GoLand.
* * Created by GoLand.
workrecord
* * Created by GoLand.
* * Created by GoLand.
provider

Jump to

Keyboard shortcuts

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