models

package
v0.0.0-...-5808d2a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicModel

type BasicModel struct {
	ID        string         `gorm:"primarykey" json:"id"`
	CreatedAt time.Time      `gorm:"index" json:"created_at"`
	UpdatedAt time.Time      `gorm:"index" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"`
}

type Tasks

type Tasks struct {
	BasicModel
	Domain      string           `json:"domain"`
	EnableProxy bool             `json:"enable_proxy"`
	EnableSSL   bool             `json:"enable_ssl"`
	EnableWaf   bool             `json:"enable_waf"`
	ProxyType   common.ProxyType `json:"proxy_type"`
	Payload     string           `gorm:"type:text" json:"payload"`
	Certificate string           `gorm:"type:text" json:"certificate"`
}

type UserCenter

type UserCenter struct {
	BasicModel
	Account  string `gorm:"type:varchar(300);index" json:"account"`
	Password string `gorm:"type:varchar(600)" json:"password"`
	Sale     string `gorm:"type:varchar(600)" json:"sale"`
}

Jump to

Keyboard shortcuts

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