feat: add filter of category for sites list

This commit is contained in:
Jacky 2024-10-25 11:24:09 +08:00
parent 207f80f858
commit aa556767f2
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
10 changed files with 278 additions and 80 deletions

View file

@ -1,6 +1,7 @@
package config
import (
"github.com/0xJacky/Nginx-UI/model"
"github.com/sashabaranov/go-openai"
"time"
)
@ -13,5 +14,7 @@ type Config struct {
ModifiedAt time.Time `json:"modified_at"`
Size int64 `json:"size,omitempty"`
IsDir bool `json:"is_dir"`
SiteCategoryID uint64 `json:"site_category_id"`
SiteCategory *model.SiteCategory `json:"site_category,omitempty"`
Enabled bool `json:"enabled"`
}