From 288feb822c552fb0516a62eb52fc5ad2391be352 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Mon, 3 Jun 2024 17:07:45 +0800 Subject: [PATCH] =?UTF-8?q?video=E4=BD=BF=E7=94=A8=E5=8E=9F=E6=9D=A5?= =?UTF-8?q?=E7=9A=84id=E4=B8=8D=E4=BD=BF=E7=94=A8gorm.model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/video.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dao/video.go b/dao/video.go index 8c4fb72..b5fcbb8 100644 --- a/dao/video.go +++ b/dao/video.go @@ -1,12 +1,11 @@ package dao import ( - "gorm.io/gorm" "time" ) type Video struct { - gorm.Model + ID uint `gorm:"primarykey column:id"` CameraID int `gorm:"column:camera_id"` VideoPath string `gorm:"column:video_path"` VideoName string `gorm:"column:video_name"`