From 1095c312c7cb3c49534f3bdf43daadc42f0f749a Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期四, 07 十一月 2024 17:07:36 +0800
Subject: [PATCH] fix build
---
db/base.go | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/db/base.go b/db/base.go
index 4f8c5e8..83214e2 100644
--- a/db/base.go
+++ b/db/base.go
@@ -1,18 +1,20 @@
package db
+import (
+ "gorm.io/gorm"
+ "time"
+)
+
type BaseEntity struct {
- Id string `gorm:"primary_key;column:id" json:"id" example:""`
- CreateTime string `gorm:"column:createTime" json:"createTime,omitempty" example:""`
- UpdateTime string `gorm:"column:updateTime" json:"updateTime,omitempty" example:""`
- CreateBy string `gorm:"column:createBy" json:"createBy,omitempty" example:""`
- IsDelete int `gorm:"column:isDelete" json:"isDelete" example:"0 鏈垹闄� 1宸插垹闄�"`
- Enable int `gorm:"column:enable" json:"enable" example:" 1鐢熸晥 0鏈敓鏁�"`
+ ID string `gorm:"primary_key;column:id;type:varchar(255);" json:"id"`
+ CreatedAt time.Time
+ UpdatedAt time.Time
+ DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}
type FeatureCacheBase struct {
Id string
AreaId string
TableId string
- FaceFeature string
- Enable int32
+ FaceFeature []float32
}
--
Gitblit v1.8.0