forked from taoshihan1991/go-fly
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.go
54 lines (52 loc) · 968 Bytes
/
types.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package tools
import "html/template"
type MailServer struct {
Server, Email, Password string
}
type ViewHtml struct {
Header template.HTML
Nav template.HTML
}
type IndexData struct {
ViewHtml
Folders map[string]int
Mails interface{}
MailPagelist []*MailItem
CurrentPage int
Fid string
NextPage, PrePage string
NumPages template.HTML
}
type ViewData struct {
Folders map[string]int
HtmlBody template.HTML
MailItem
}
type MailItem struct {
Subject string
Fid string
Id uint32
From string
To string
Body string
Date string
}
type MailPageList struct {
MailItems []*MailItem
}
type JsonResult struct {
Code int `json:"code"`
Msg string `json:"msg"`
}
type JsonListResult struct {
JsonResult
Result interface{} `json:"result"`
}
type SmtpBody struct {
Smtp string
From string
To []string
Password string
Subject string
Body string
}