12345678910111213141516171819202122232425262728293031323334353637 |
- package v1
- type WebForwardingDataRequest struct {
- Id int `form:"id" json:"id"`
- CdnWebId int `form:"cdnWebId" json:"cdnWebId"`
- Port string `form:"port" json:"port" validate:"required,numeric,min=1,max=65535"`
- Domain string `form:"domain" json:"domain" validate:"omitempty,idn_fqdn|ip"`
- BackendList []BackendList `form:"backendList" json:"backendList" validate:"required,dive"`
- IsHttps int `form:"isHttps" json:"isHttps" default:"0"`
- Comment string `form:"comment" json:"comment" validate:"max=50"`
- HttpsCert string `form:"httpsCert" json:"httpsCert"`
- HttpsKey string `form:"httpsKey" json:"httpsKey"`
- SslCertId int64 `form:"sslCertId" json:"sslCertId"`
- Proxy bool `form:"proxy" json:"proxy" default:"false"`
- }
- type DeleteWebForwardingRequest struct {
- Ids []int `form:"ids" json:"ids" validate:"required,min=1,dive,required"`
- Uid int `form:"uid" json:"uid" validate:"required"`
- HostId int `form:"hostId" json:"hostId" validate:"required"`
- }
- type WebForwardingRequest struct {
- HostId int `form:"hostId" json:"hostId" validate:"required"`
- Uid int `form:"uid" json:"uid" validate:"required"`
- WebForwardingData WebForwardingDataRequest `form:"data" json:"data" validate:"required"`
- }
- type BackendList struct {
- Addr string `json:"addr,omitempty" form:"addr" validate:"required,hostport"`
- CustomHost string `json:"customHost,omitempty" form:"customHost" validate:"omitempty,idn_fqdn"`
- IsHttps int `json:"isHttps,omitempty" form:"isHttps" default:"0"`
- }
|