package v1

type GlobalRequire struct {
	HostId  int    `form:"hostId" json:"hostId" binding:"required"`
	Uid     int    `form:"uid" json:"uid" binding:"required"`
	Comment string `form:"comment" json:"comment" binding:"required"`
	Domain  string `form:"domain" json:"domain"`
}

type GetForwardingRequest struct {
	HostId int `form:"hostId" json:"hostId" binding:"required"`
	Uid    int `form:"uid" json:"uid" binding:"required"`
	Id     int `form:"id" json:"id" binding:"required"`
}

type WebJson struct {
	BackendList string `json:"backendList"`
	Host        string `json:"host"`
	ApiType     string `json:"apiType"`
	Comment     string `json:"comment"`
}

type SSL struct {
	CertId      int    `form:"certId" json:"certId" `
	CdnUserId   int    `form:"UserId" json:"UserId" `
	Domain      string `form:"Domain" json:"Domain" `
	Name        string `form:"Name" json:"Name" `
	Description string `form:"Description" json:"Description" `
	CertData    string `form:"CertData" json:"CertData" `
	KeyData     string `form:"KeyData" json:"KeyData" `
}
