forked from youduim/youdu-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.go
More file actions
32 lines (24 loc) · 731 Bytes
/
const.go
File metadata and controls
32 lines (24 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package ydapp
var Server_Addr string //服务器地址和端口(协议务必带上),例: http://localhost:7080
var Callback_Url string = "/receive/youdu/msg" //设置回调的URI
// 第三方接口URL
var (
API_GET_TOKEN = "/cgi/gettoken"
API_SEND_MSG = "/cgi/msg/send"
API_UPLOAD_FILE = "/cgi/media/upload"
API_DOWNLOAD_FILE = "/cgi/media/get"
API_SEARCH_FILE = "/cgi/media/search"
)
//文件类型定义
const (
MediaTypeFile = "file" //文件
MediaTypeImage = "image" //图片
)
//消息类型定义
const (
MsgTypeText = "text" //文本
MsgTypeFile = "file" //文件
MsgTypeImage = "image" //图片
MsgTypeMpnews = "mpnews" //图文
MsgTypeExlink = "exlink" //外链
)