From 284c541306d4d454e442c4e810a6a43469781386 Mon Sep 17 00:00:00 2001 From: timerzz Date: Tue, 21 May 2024 20:09:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/model/watcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/model/watcher.go b/pkg/model/watcher.go index e3f7686..17f9371 100644 --- a/pkg/model/watcher.go +++ b/pkg/model/watcher.go @@ -14,8 +14,8 @@ type WatchInfo struct { DeletedAt gorm.DeletedAt `gorm:"index"` UpdateErr bool `json:"updateErr"` //更新出错了 - Uid string `json:"uid" gorm:"index:,unique,not null"` - Pid string `json:"pid" gorm:"index:,not null"` //产品编号 + Uid string `json:"uid" gorm:"index;unique;not null"` + Pid string `json:"pid" gorm:"index;not null"` //产品编号 Name string `json:"name"` Brand string `json:"brand"` Website WebsiteType `json:"website"` //是什么网站