This commit is contained in:
jiazhizhong
2022-03-10 17:09:03 +08:00
commit 1279635d7f
97 changed files with 10632 additions and 0 deletions

66
pkg/proto/args.go Normal file
View File

@@ -0,0 +1,66 @@
package proto
import (
"jiacrontab/models"
)
type SearchLog struct {
JobID uint
GroupID uint
UserID uint
Root bool
IsTail bool
Offset int64
Pagesize int
Date string
Pattern string
}
type CleanNodeLog struct {
Unit string
Offset int
}
type CleanNodeLogRet struct {
Total int64 `json:"total"`
Size string `json:"size"`
}
type SearchLogResult struct {
Content []byte
Offset int64
FileSize int64
}
type SendMail struct {
MailTo []string
Subject string
Content string
}
type ApiPost struct {
Urls []string
Data string
}
type ExecCrontabJobReply struct {
Job models.CrontabJob
Content []byte
}
type ActionJobsArgs struct {
UserID uint
Root bool
GroupID uint
JobIDs []uint
}
type GetJobArgs struct {
UserID uint
GroupID uint
Root bool
JobID uint
}
type EmptyArgs struct{}
type EmptyReply struct{}