init
This commit is contained in:
9
types/fingerprint_type.go
Normal file
9
types/fingerprint_type.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package types
|
||||
|
||||
type BrowserFingerprintParams struct {
|
||||
Canvas bool // 是否随机指纹
|
||||
TimeZone string // 时区名称,如 "America/New_York"
|
||||
Language string // 语言,如 "en-US"
|
||||
UserAgent string // 用户代理字符串
|
||||
GeoLocation string // 地理位置坐标,如 "40.7128,-74.0060"
|
||||
}
|
||||
37
types/task_type.go
Normal file
37
types/task_type.go
Normal file
@@ -0,0 +1,37 @@
|
||||
package types
|
||||
|
||||
import "context"
|
||||
|
||||
// 任务信息
|
||||
type Task struct {
|
||||
ID string
|
||||
Name string
|
||||
Status string
|
||||
Message chan string
|
||||
Cancel context.CancelFunc
|
||||
Ctx context.Context
|
||||
Type int
|
||||
Data *TaskData
|
||||
}
|
||||
|
||||
// 添加任务传递的参数
|
||||
type TaskParams struct {
|
||||
ID string
|
||||
Name string
|
||||
Status string
|
||||
Type int
|
||||
AccountClassify string
|
||||
DataClassify []int
|
||||
Keyword string
|
||||
TwitterId string
|
||||
Compensate int
|
||||
}
|
||||
|
||||
// 任务携带的数据
|
||||
type TaskData struct {
|
||||
AccountClassify string
|
||||
DataClassify []int
|
||||
Keyword string
|
||||
TwitterId string
|
||||
Compensate int
|
||||
}
|
||||
Reference in New Issue
Block a user