From a72e15f305a49d67e1372945531150889905f3fc Mon Sep 17 00:00:00 2001 From: what Date: Thu, 8 Jun 2023 15:18:17 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E6=96=B0=E5=A2=9E=20ResJob=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/res_job.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 base/res_job.go 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)