-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathmodels.go
executable file
·62 lines (53 loc) · 1.37 KB
/
models.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
package main
import (
"net/url"
"time"
"github.com/go-redis/redis"
)
var (
cqsscId = 1
redisClient *redis.Client
ChanArray = make([]chan int, 100)
getOpenDataApiUrl = "http://127.0.0.1:8080/apiMyself/" //获取开奖信息地址
dataNotice = "http://127.0.0.1:8080/dataInNotice/" //采集入库后数据通知地址
)
type Result struct { //全站通用json返回结果
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data"`
}
type OpenInfo struct { //输出当前期号、开奖信息等
Type int `json:"type"` //上期期号
Last_period int `json:"last_period"` //上期期号
Last_open string `json:"last_open"` //上期开奖号码
Current_period int `json:"current_period"`
Current_period_status string `json:"current_period_status"`
Timeleft int64 `json:"timeleft"`
}
type data struct {
Id int
Type int
Time time.Time
Data string
Issue int
}
type DataTime struct {
Id int
Type int
ActionNo int
ActionTime string
StopTime string
}
type httpReq struct {
method string
url url.URL
referer string
httpProxyStatus bool
httpProxy httpProxy
}
type httpProxy struct {
user string
password string
host string
port string
}