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 NewConfigCorp ¶
func NewConfigCorp() *configCorp
Types ¶
type BaseProvider ¶
type BaseProvider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider() BaseProvider
type IDingTalkConfig ¶
type IDingTalkConfig interface {
RefreshConfigCorp(corpId string) *configCorp // 刷新企业号配置
}
Source Files ¶
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. |
user
* * Created by GoLand.
|
* * Created by GoLand. |
workrecord
* * Created by GoLand.
|
* * Created by GoLand. |
provider
|
|
Click to show internal directories.
Click to hide internal directories.