[feat] 新增 ResJob 支持

This commit is contained in:
what 2023-06-08 15:18:17 +08:00
parent e17e0e2892
commit a72e15f305

14
base/res_job.go Normal file
View File

@ -0,0 +1,14 @@
package base
type ResJob struct {
Uuid string `db:"uuid"`
Code string `db:"code"`
Name string `db:"name"`
ResourceUuid string `db:"resource_uuid"`
Replay int64 `db:"replay"`
IsRecord bool `db:"isRecord"`
UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"`
}
type GetResJob func(code string) (ResJob, bool)