feat(site-category): support for custom sorting #902

This commit is contained in:
Jacky 2025-03-15 10:55:01 +08:00
parent efc9b1c365
commit f3d4cdbeb4
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
5 changed files with 12 additions and 3 deletions

View file

@ -4,4 +4,5 @@ type SiteCategory struct {
Model
Name string `json:"name"`
SyncNodeIds []uint64 `json:"sync_node_ids" gorm:"serializer:json"`
OrderID int `json:"-" gorm:"default:0"`
}