config.go 906 B

123456789101112131415161718192021
  1. package config
  2. import (
  3. "github.com/0xJacky/Nginx-UI/model"
  4. "github.com/sashabaranov/go-openai"
  5. "time"
  6. )
  7. type Config struct {
  8. Name string `json:"name"`
  9. Content string `json:"content"`
  10. ChatGPTMessages []openai.ChatCompletionMessage `json:"chatgpt_messages,omitempty"`
  11. FilePath string `json:"filepath,omitempty"`
  12. ModifiedAt time.Time `json:"modified_at"`
  13. Size int64 `json:"size,omitempty"`
  14. IsDir bool `json:"is_dir"`
  15. SiteCategoryID uint64 `json:"site_category_id"`
  16. SiteCategory *model.SiteCategory `json:"site_category,omitempty"`
  17. Enabled bool `json:"enabled"`
  18. Dir string `json:"dir"`
  19. }