From 9a72550ca8cdb7bdb73b954235905462fe1df014 Mon Sep 17 00:00:00 2001 From: pnguyen215 Date: Fri, 17 Nov 2023 12:12:44 +0700 Subject: [PATCH] :recycle: refactor: updated codebase #2 --- internal/models/common_model.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/models/common_model.go b/internal/models/common_model.go index 1c55e0d..a9ce68a 100644 --- a/internal/models/common_model.go +++ b/internal/models/common_model.go @@ -1,6 +1,9 @@ package models +// Define table by Gin tag type Common struct { + Id int `json:"_id" db:"id"` + Submit bool `json:"submit" db:"submit"` } type CommonRequest struct {