forked from XiaoMengXinX/Fuck163MusicTasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
60 lines (56 loc) · 1.59 KB
/
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
55
56
57
58
59
60
package main
import (
"net/http"
)
// Config 配置文件结构
type Config struct {
DEBUG bool `json:"DEBUG"`
Users []struct {
Cookies []*http.Cookie `json:"Cookies"`
} `json:"Users"`
MusicShareConfig struct {
MySongID int `json:"MySongID"`
} `json:"MusicShareConfig"`
EventSendConfig struct {
LagConfig LagConfig `json:"LagConfig"`
} `json:"EventSendConfig"`
CommentConfig struct {
RepliedComment []struct {
MusicID int `json:"MusicID"`
CommentID int `json:"CommentID"`
} `json:"RepliedComment"`
LagConfig LagConfig `json:"LagConfig"`
} `json:"CommentConfig"`
SendMsgConfig struct {
UserID [][]int `json:"UserID"`
LagConfig LagConfig `json:"LagConfig"`
}
SendMlogConfig struct {
PicFolder string `json:"PicFolder"`
MusicIDs []int `json:"MusicIDs"`
LagConfig LagConfig `json:"LagConfig"`
} `json:"SendMlogConfig"`
AutoGetVipGrowthpoint bool `json:"AutoGetVipGrowthpoint"`
Content []string `json:"Content"`
Cron struct {
Enabled bool `json:"Enabled"`
Expression string `json:"Expression"`
EnableLag bool `json:"EnableLag"`
LagConfig LagConfig `json:"LagConfig"`
} `json:"Cron"`
}
// LagConfig 延迟设置
type LagConfig struct {
LagBetweenSendAndDelete bool `json:"LagBetweenSendAndDelete"`
RandomLag bool `json:"RandomLag"`
DefaultLag int `json:"DefaultLag"`
LagMin int `json:"LagMin"`
LagMax int `json:"LagMax"`
}
// RandomNum 随机数设置
type RandomNum struct {
IsRandom bool
DefaultNum int
MinNum int
MaxNum int
}