feat: 添加数据库资产、命令拦截器、授权资产等功能,修复GitHub Actions工作流
This commit is contained in:
+22
-22
@@ -3,28 +3,28 @@ package model
|
||||
import "next-terminal/server/common"
|
||||
|
||||
type Website struct {
|
||||
ID string `gorm:"primary_key,type:varchar(36)" json:"id"`
|
||||
Name string `gorm:"type:varchar(500)" json:"name"`
|
||||
Enabled bool `json:"enabled"`
|
||||
TargetUrl string `gorm:"type:text" json:"targetUrl"`
|
||||
TargetHost string `gorm:"type:varchar(500)" json:"targetHost"`
|
||||
TargetPort int `json:"targetPort"`
|
||||
Domain string `gorm:"type:varchar(500)" json:"domain"`
|
||||
AsciiDomain string `gorm:"type:varchar(500)" json:"asciiDomain"`
|
||||
Entrance string `gorm:"type:varchar(50);default:'default'" json:"entrance"`
|
||||
Description string `gorm:"type:varchar(1000)" json:"description"`
|
||||
Status string `gorm:"type:varchar(50);default:'unknown'" json:"status"`
|
||||
StatusText string `gorm:"type:text" json:"statusText"`
|
||||
GatewayType string `gorm:"type:varchar(20);default:''" json:"gatewayType"`
|
||||
GatewayId string `gorm:"type:varchar(36);default:''" json:"gatewayId"`
|
||||
BasicAuth string `gorm:"type:text" json:"basicAuth"`
|
||||
Headers string `gorm:"type:text" json:"headers"`
|
||||
Cert string `gorm:"type:text" json:"cert"`
|
||||
Public string `gorm:"type:text" json:"public"`
|
||||
TempAllow string `gorm:"type:text" json:"tempAllow"`
|
||||
Created common.JsonTime `json:"createdAt"`
|
||||
GroupId string `gorm:"type:varchar(36);default:''" json:"groupId"`
|
||||
Sort string `gorm:"type:varchar(50);default:''" json:"sort"`
|
||||
ID string `gorm:"primary_key,type:varchar(36)" json:"id"`
|
||||
Name string `gorm:"type:varchar(500)" json:"name"`
|
||||
Enabled bool `json:"enabled"`
|
||||
TargetUrl string `gorm:"type:text" json:"targetUrl"`
|
||||
TargetHost string `gorm:"type:varchar(500)" json:"targetHost"`
|
||||
TargetPort int `json:"targetPort"`
|
||||
Domain string `gorm:"type:varchar(500)" json:"domain"`
|
||||
AsciiDomain string `gorm:"type:varchar(500)" json:"asciiDomain"`
|
||||
Entrance string `gorm:"type:varchar(50);default:'default'" json:"entrance"`
|
||||
Description string `gorm:"type:varchar(1000)" json:"description"`
|
||||
Status string `gorm:"type:varchar(50);default:'unknown'" json:"status"`
|
||||
StatusText string `gorm:"type:text" json:"statusText"`
|
||||
GatewayType string `gorm:"type:varchar(20);default:''" json:"gatewayType"`
|
||||
GatewayId string `gorm:"type:varchar(36);default:''" json:"gatewayId"`
|
||||
BasicAuth string `gorm:"type:text" json:"basicAuth"`
|
||||
Headers string `gorm:"type:text" json:"headers"`
|
||||
Cert string `gorm:"type:text" json:"cert"`
|
||||
Public string `gorm:"type:text" json:"public"`
|
||||
TempAllow string `gorm:"type:text" json:"tempAllow"`
|
||||
Created common.JsonTime `json:"createdAt"`
|
||||
GroupId string `gorm:"type:varchar(36);default:''" json:"groupId"`
|
||||
Sort string `gorm:"type:varchar(50);default:''" json:"sort"`
|
||||
}
|
||||
|
||||
func (r *Website) TableName() string {
|
||||
|
||||
Reference in New Issue
Block a user