model

package
v0.0.0-...-2422260 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeegoUser

type BeegoUser struct {
	Id    int //默认主健为id
	Name  string
	Phone string
}

type ExecTime

type ExecTime struct {
	StartTime int64 `bson:"startTime"` //开始时间
	EndTime   int64 `bson:"endTime"`   //结束时间
}

type ExecTimeFilter

type ExecTimeFilter struct {
	StartTime interface{} `bson:"tp.startTime,omitempty"` //开始时间
	EndTime   interface{} `bson:"tp.endTime,omitempty"`   //结束时间
}

type FindByJobName

type FindByJobName struct {
	JobName string `bson:"jobName"` //任务名
}

查询实体

type Group

type Group struct {
	Group interface{} `bson:"$group"`
}

分组

type LogRecord

type LogRecord struct {
	JobName string   `bson:"jobName"` //任务名
	Command string   `bson:"command"` //shell命令
	Err     string   `bson:"err"`     //脚本错误
	Content string   `bson:"content"` //脚本输出
	Tp      ExecTime //执行时间
}

type LogRecordFilter

type LogRecordFilter struct {
	ID      interface{} `bson:"_id,omitempty"`
	JobName interface{} `bson:"jobName,omitempty" json:"jobName"` //任务名
	Command interface{} `bson:"command,omitempty" `               //shell命令
	Err     interface{} `bson:"err,omitempty"`                    //脚本错误
	Content interface{} `bson:"content,omitempty"`                //脚本输出
	Tp      interface{} `bson:"tp,omitempty"`                     //执行时间
}

type Lt

type Lt struct {
	Lt int64 `bson:"$lt"`
}

小于

type Sum

type Sum struct {
	Sum interface{} `bson:"$sum"`
}

求和

type UpdateByJobName

type UpdateByJobName struct {
	Command string `bson:"command"` //shell命令
	Content string `bson:"content"` //脚本输出
}

更新实体

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL