video使用原来的id不使用gorm.model

This commit is contained in:
junleea 2024-06-03 17:07:45 +08:00
parent a10830f820
commit 288feb822c
1 changed files with 1 additions and 2 deletions

View File

@ -1,12 +1,11 @@
package dao package dao
import ( import (
"gorm.io/gorm"
"time" "time"
) )
type Video struct { type Video struct {
gorm.Model ID uint `gorm:"primarykey column:id"`
CameraID int `gorm:"column:camera_id"` CameraID int `gorm:"column:camera_id"`
VideoPath string `gorm:"column:video_path"` VideoPath string `gorm:"column:video_path"`
VideoName string `gorm:"column:video_name"` VideoName string `gorm:"column:video_name"`