diff --git a/base/res_job.go b/base/res_job.go new file mode 100644 index 0000000..a04f39d --- /dev/null +++ b/base/res_job.go @@ -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)