From 495215128157ea254c24f53c15216a2930173582 Mon Sep 17 00:00:00 2001 From: naiba Date: Mon, 23 Dec 2024 00:40:38 +0800 Subject: [PATCH] feat: upgrade frontend --- model/common.go | 4 +--- service/singleton/frontend-templates.yaml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/model/common.go b/model/common.go index 694678331d..607c1bc390 100644 --- a/model/common.go +++ b/model/common.go @@ -18,10 +18,8 @@ type Common struct { ID uint64 `gorm:"primaryKey" json:"id,omitempty"` CreatedAt time.Time `gorm:"index;<-:create" json:"created_at,omitempty"` UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at,omitempty"` - // Do not use soft deletion - // DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at,omitempty"` - UserID uint64 `json:"-"` + UserID uint64 `gorm:"index;default:0" json:"-"` } func (c *Common) GetID() uint64 { diff --git a/service/singleton/frontend-templates.yaml b/service/singleton/frontend-templates.yaml index 326ef87e60..1d2bd8f6bd 100644 --- a/service/singleton/frontend-templates.yaml +++ b/service/singleton/frontend-templates.yaml @@ -2,7 +2,7 @@ name: "OfficialAdmin" repository: "https://github.com/nezhahq/admin-frontend" author: "nezhahq" - version: "v1.3.0" + version: "v1.4.0" isadmin: true isofficial: true - path: "user-dist"