Documentation
¶
Index ¶
- type DefaultSubscribeApplicationModel
- func (m *DefaultSubscribeApplicationModel) Delete(ctx context.Context, id int64) error
- func (m *DefaultSubscribeApplicationModel) FindOne(ctx context.Context, id int64) (*SubscribeApplication, error)
- func (m *DefaultSubscribeApplicationModel) Insert(ctx context.Context, data *SubscribeApplication) error
- func (m *DefaultSubscribeApplicationModel) List(ctx context.Context) ([]*SubscribeApplication, error)
- func (m *DefaultSubscribeApplicationModel) Transaction(ctx context.Context, fn func(db *gorm.DB) error) error
- func (m *DefaultSubscribeApplicationModel) Update(ctx context.Context, data *SubscribeApplication) error
- type DownloadLink
- type Model
- type SubscribeApplication
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultSubscribeApplicationModel ¶
func (*DefaultSubscribeApplicationModel) Delete ¶
func (m *DefaultSubscribeApplicationModel) Delete(ctx context.Context, id int64) error
func (*DefaultSubscribeApplicationModel) FindOne ¶
func (m *DefaultSubscribeApplicationModel) FindOne(ctx context.Context, id int64) (*SubscribeApplication, error)
func (*DefaultSubscribeApplicationModel) Insert ¶
func (m *DefaultSubscribeApplicationModel) Insert(ctx context.Context, data *SubscribeApplication) error
func (*DefaultSubscribeApplicationModel) List ¶
func (m *DefaultSubscribeApplicationModel) List(ctx context.Context) ([]*SubscribeApplication, error)
func (*DefaultSubscribeApplicationModel) Transaction ¶
func (*DefaultSubscribeApplicationModel) Update ¶
func (m *DefaultSubscribeApplicationModel) Update(ctx context.Context, data *SubscribeApplication) error
type DownloadLink ¶
type DownloadLink struct {
IOS string `json:"ios,omitempty"`
Android string `json:"android,omitempty"`
Windows string `json:"windows,omitempty"`
Mac string `json:"mac,omitempty"`
Linux string `json:"linux,omitempty"`
Harmony string `json:"harmony,omitempty"`
}
func (*DownloadLink) GetDownloadLink ¶
func (d *DownloadLink) GetDownloadLink(platform string) string
GetDownloadLink returns the download link for the specified platform.
func (*DownloadLink) Marshal ¶
func (d *DownloadLink) Marshal() ([]byte, error)
Marshal serializes the DownloadLink to JSON format.
func (*DownloadLink) Unmarshal ¶
func (d *DownloadLink) Unmarshal(data []byte) error
Unmarshal parses the JSON-encoded data and stores the result in the DownloadLink.
type Model ¶
type Model interface {
// contains filtered or unexported methods
}
type SubscribeApplication ¶
type SubscribeApplication struct {
Id int64 `gorm:"primaryKey"`
Name string `gorm:"type:varchar(255);default:'';not null;comment:Application Name"`
Icon string `gorm:"type:MEDIUMTEXT;default:null;comment:Application Icon"`
Description string `gorm:"type:varchar(255);default:null;comment:Application Description"`
Scheme string `gorm:"type:varchar(255);default:'';not null;comment:Scheme"`
UserAgent string `gorm:"type:varchar(255);default:'';not null;comment:User Agent"`
IsDefault bool `gorm:"type:tinyint(1);not null;default:0;comment:Is Default Application"`
SubscribeTemplate string `gorm:"type:MEDIUMTEXT;default:null;comment:Subscribe Template"`
OutputFormat string `gorm:"type:varchar(50);default:'yaml';not null;comment:Output Format"`
DownloadLink string `gorm:"type:text;not null;comment:Download Link"`
CreatedAt time.Time `gorm:"<-:create;comment:Create Time"`
UpdatedAt time.Time `gorm:"comment:Update Time"`
}
func (SubscribeApplication) TableName ¶
func (SubscribeApplication) TableName() string
Click to show internal directories.
Click to hide internal directories.