feat: 机器列表新增运行状态 & refactor: 登录账号信息存储与context

This commit is contained in:
meilin.huang
2023-11-07 21:05:21 +08:00
parent d9adf0fd25
commit eddda41291
74 changed files with 915 additions and 652 deletions

View File

@@ -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