-
Notifications
You must be signed in to change notification settings - Fork 55
/
consts.go
32 lines (29 loc) · 757 Bytes
/
consts.go
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 dingtalk
const dingTalkURL = "https://oapi.dingtalk.com/robot/send?"
const dtmdFormat = "[%s](dtmd:https://dingtalkclient/sendMessage?content=%s)"
const formatSpliter = "$$"
const (
H1 MarkType = "h1"
H2 MarkType = "h2"
H3 MarkType = "h3"
H4 MarkType = "h4"
H5 MarkType = "h5"
H6 MarkType = "h6"
RED MarkType = "red"
BLUE MarkType = "blue"
GREEN MarkType = "green"
GOLD MarkType = "gold"
N MarkType = ""
)
var hMap = map[MarkType]string{
H1: "# %s",
H2: "## %s",
H3: "### %s",
H4: "#### %s",
H5: "##### %s",
H6: "###### %s",
RED: "<font color=#ff0000>%s</font>",
BLUE: "<font color=#1E90FF>%s</font>",
GREEN: "<font color=#00CD66>%s</font>",
GOLD: "<font color=#FFD700>%s</font>",
}