mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-04 21:55:48 +08:00
feat: 机器列表新增运行状态 & refactor: 登录账号信息存储与context
This commit is contained in:
@@ -30,6 +30,13 @@ type MachineCronJobRelate struct {
|
||||
CreateTime *time.Time
|
||||
}
|
||||
|
||||
func (m *MachineCronJobRelate) SetBaseInfo(la *model.LoginAccount) {
|
||||
now := time.Now()
|
||||
m.CreateTime = &now
|
||||
m.Creator = la.Username
|
||||
m.CreatorId = la.Id
|
||||
}
|
||||
|
||||
// 机器任务执行记录
|
||||
type MachineCronJobExec struct {
|
||||
model.DeletedModel
|
||||
|
||||
@@ -3,6 +3,7 @@ package entity
|
||||
type MachineQuery struct {
|
||||
Ids string `json:"ids" form:"ids"`
|
||||
Name string `json:"name" form:"name"`
|
||||
Status int8 `json:"status" form:"status"`
|
||||
Ip string `json:"ip" form:"ip"` // IP地址
|
||||
TagPath string `json:"tagPath" form:"tagPath"`
|
||||
TagIds []uint64
|
||||
|
||||
Reference in New Issue
Block a user