Skip to content

Commit 4952151

Browse files
committed
feat: upgrade frontend
1 parent a9768aa commit 4952151

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

model/common.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ type Common struct {
1818
ID uint64 `gorm:"primaryKey" json:"id,omitempty"`
1919
CreatedAt time.Time `gorm:"index;<-:create" json:"created_at,omitempty"`
2020
UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at,omitempty"`
21-
// Do not use soft deletion
22-
// DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at,omitempty"`
2321

24-
UserID uint64 `json:"-"`
22+
UserID uint64 `gorm:"index;default:0" json:"-"`
2523
}
2624

2725
func (c *Common) GetID() uint64 {

service/singleton/frontend-templates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: "OfficialAdmin"
33
repository: "https://github.com/nezhahq/admin-frontend"
44
author: "nezhahq"
5-
version: "v1.3.0"
5+
version: "v1.4.0"
66
isadmin: true
77
isofficial: true
88
- path: "user-dist"

0 commit comments

Comments
 (0)