models

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Site

type Site struct {
	gorm.Model
	SiteId    uint                         `gorm:"not null"`
	ReleaseId uint                         `gorm:"not null"` // 用于和主控校验状态
	Hosts     orm.GenericJsonArray[string] `gorm:"type:json;default:'[]'"`
}

func (*Site) FileServerBase

func (s *Site) FileServerBase() string

func (*Site) GenerateConfig

func (s *Site) GenerateConfig() map[string]any

func (*Site) GroupName

func (s *Site) GroupName() string

func (*Site) SiteIdString

func (s *Site) SiteIdString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL