vproxyintegrat

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyManage

type ProxyManage struct {
	Id         int    `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"`           // 主键
	Title      string `gorm:"column:title;NOT NULL" json:"title"`                       // 名称
	SubPath    string `gorm:"column:sub_path;NOT NULL" json:"sub_path"`                 // 代理路径
	IsRewrite  int    `gorm:"column:is_rewrite;default:0;NOT NULL" json:"is_rewrite"`   // 是否重写路径
	ProxyAddr  string `gorm:"column:proxy_addr;NOT NULL" json:"proxy_addr"`             // 代理地址
	CreateTime int64  `gorm:"column:create_time;default:0;NOT NULL" json:"create_time"` // 创建时间
	UpdateTime int64  `gorm:"column:update_time;default:0;NOT NULL" json:"update_time"` // 更新时间
	DeleteTime int64  `gorm:"column:delete_time;default:0;NOT NULL" json:"delete_time"` // 删除时间
	Uid        int    `gorm:"column:uid;default:0;NOT NULL" json:"uid"`                 // 操作人uid
}

func (ProxyManage) TableName

func (ProxyManage) TableName() string

TableName ..

type ProxyManageCreateOrUpdateParams

type ProxyManageCreateOrUpdateParams struct {
	ID        int    `json:"id"`
	SubPath   string `json:"sub_path"`
	IsRewrite int    `json:"is_rewrite"`
	ProxyAddr string `json:"proxy_addr"`
	Title     string `json:"title"`
	UID       uint32 `json:"uid"`
}

func (*ProxyManageCreateOrUpdateParams) Valid

func (req *ProxyManageCreateOrUpdateParams) Valid() (isValid bool, msg string)

Valid 是否合法

type ProxyManageDeleteParams

type ProxyManageDeleteParams struct {
	ID  int    `json:"id"`
	UID uint32 `json:"uid"`
}

func (*ProxyManageDeleteParams) Valid

func (req *ProxyManageDeleteParams) Valid() (isValid bool, msg string)

Valid 是否合法

type ProxyManageListParams

type ProxyManageListParams struct {
	Current  int    `query:"current" json:"current"`
	PageSize int    `query:"pageSize" json:"pageSize"`
	Query    string `query:"query" json:"query"`
}

func (*ProxyManageListParams) Valid

func (req *ProxyManageListParams) Valid() (isValid bool, msg string)

Valid 是否合法

type ProxyMenu

type ProxyMenu struct {
	Id         int    `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"`           // 主键
	PanelType  string `gorm:"column:panel_type;NOT NULL" json:"panel_type"`             // 功能页面类型
	ProxyUrl   string `gorm:"column:proxy_url;NOT NULL" json:"proxy_url"`               // 代理地址
	Key        string `gorm:"column:key;NOT NULL" json:"key"`                           // 唯一key
	CreateTime int64  `gorm:"column:create_time;default:0;NOT NULL" json:"create_time"` // 创建时间
	UpdateTime int64  `gorm:"column:update_time;default:0;NOT NULL" json:"update_time"` // 更新时间
	DeleteTime int64  `gorm:"column:delete_time;default:0;NOT NULL" json:"delete_time"` // 删除时间
	Uid        int    `gorm:"column:uid;default:0;NOT NULL" json:"uid"`                 // 操作人uid
	Title      string `gorm:"column:title;NOT NULL" json:"title"`                       // 功能页面
}

func (ProxyMenu) TableName

func (ProxyMenu) TableName() string

TableName ..

type ProxyMenuCreateOrUpdateParams

type ProxyMenuCreateOrUpdateParams struct {
	ID        int    `json:"id"`
	Title     string `json:"title"`
	ProxyURL  string `json:"proxy_url"`
	Key       string `json:"key"`
	PanelType string `json:"panel_type"`
	UID       uint32 `json:"uid"`
}

func (*ProxyMenuCreateOrUpdateParams) Valid

func (req *ProxyMenuCreateOrUpdateParams) Valid() (isValid bool, msg string)

Valid 是否合法

type ProxyMenuDeleteParams

type ProxyMenuDeleteParams struct {
	ID  int    `json:"id"`
	UID uint32 `json:"uid"`
}

func (*ProxyMenuDeleteParams) Valid

func (req *ProxyMenuDeleteParams) Valid() (isValid bool, msg string)

Valid 是否合法

type ProxyMenuFunc

type ProxyMenuFunc struct {
	Title     string              `json:"title"`
	PanelType string              `json:"panelType"`
	Key       string              `json:"key"`
	Config    ProxyMenuFuncConfig `json:"config"`
}

type ProxyMenuFuncConfig

type ProxyMenuFuncConfig struct {
	ProxyURL string `json:"proxyURL"`
}

type ProxyMenuListParams

type ProxyMenuListParams struct {
	Current  int    `query:"current" json:"current"`
	PageSize int    `query:"pageSize" json:"pageSize"`
	Query    string `query:"query" json:"query"`
}

func (*ProxyMenuListParams) Valid

func (req *ProxyMenuListParams) Valid() (isValid bool, msg string)

Valid 是否合法

type ProxyUIParams

type ProxyUIParams struct {
	Current  int `json:"current"`
	PageSize int `json:"pageSize"`
}

func (*ProxyUIParams) Valid

func (req *ProxyUIParams) Valid() (isValid bool, msg string)

Valid 是否合法

Jump to

Keyboard shortcuts

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