model

package
v0.0.0-...-5bb5805 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteCond

type DeleteCond struct {
	BeforeCond TimeBeforeCond `bson:"tp.startTime"`
}

type DeleteTestLogCond

type DeleteTestLogCond struct {
	Day int64 `bson:"$lt"` //开始时间

}

type FindByJobName

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

查询实体

type LogRecord

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

type TestLog

type TestLog struct {
	CreatedAt int64 `bson:"created_at"` //开始时间
	Uid       int64 `bson:"uid"`
	Coin      int64 `bson:"coin"`
	Day       int64 `bson:"day"`
}

type TimeBeforeCond

type TimeBeforeCond struct {
	BeforeTime int64 `bson:"$lt"`
}

startTime小于某时间,使用这种方式可以对想要进行的操作($set、$group等)提前定义

type TimeBeforeCond2

type TimeBeforeCond2 struct {
	BeforeTime DeleteTestLogCond `bson:"day"`
	Uid        int64             `bson:"uid"`
}

type TimePrint

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

创建实体

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