-
Notifications
You must be signed in to change notification settings - Fork 5
/
struct.go
94 lines (87 loc) · 1.71 KB
/
struct.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
package main
type userInfo struct {
IsDeleted bool
Name string
ImeiCode string
UseLeft string
Distance string
Email string
LastTime string
}
const (
smtpServer = "smtp.qq.com:25"
userName = ""
Vcode = ""
contentType = "Content-Type: text/html; charset=UTF-8"
mailFrom = ""
infoText = "姓名: (name) 剩余次数: (time) 跑步距离: (runDistance)"
infoSubject = "提醒:今日份(date)阳光长跑已自动完成"
infoBody = `
<html>
<body>
<h3>
(text)
</h3>
</body>
</html>
`
apiRoot = "http://client3.aipao.me/api"
appVersion = "2.40"
appVersionForIOS = "2.25"
UserAgent = "Dalvik/2.1.0 (Linux; U; Android 9.0.0; COL-AL10 Build/HUAWEICOL-LL10)"
longtitude = "31.93178" // 自行更改
latitute = "118.8865121" // 自行更改
)
type codeInfo struct {
Code string
ImeiCode string
Data struct {
Name string
Time string
CreateTime string
}
}
type Data struct {
Name string
Time string
CreateTime string
}
type returnInfo struct {
Success bool
Data struct {
Token string
UserId int
IMEICode string
// AndroidVer float32
// AppleVer float32
// WinVer float32
}
}
type returnRun struct {
Success bool
Data struct {
StartTime string
RunId string
// FUserId int
// FieldId int
Routes string
// LifeValue int
// Powers int
// LenValue float32
Point struct {
// PointNo string
// Lat float32
// Lng float32
// Minor int
}
// FiledName string
// Area string
// SenseType string
// ImgUrl string
// Major int
}
}
type returnEnd struct {
Success bool
Data string
}