Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type BaseResponse struct { Status struct { Code string `json:"code"` Message string `json:"message"` } `json:"status"` }
func (*BaseResponse) IsOk ¶
func (this *BaseResponse) IsOk() bool
func (*BaseResponse) LastError ¶
func (this *BaseResponse) LastError() (code string, message string)
type DomainInfoResponse ¶
type DomainInfoResponse struct { BaseResponse Domain struct { Id any `json:"id"` Name string `json:"name"` Grade string `json:"grade"` } `json:"domain"` }
type DomainListResponse ¶
type DomainListResponse struct { BaseResponse Info struct { DomainTotal int `json:"domain_total"` AllTotal int `json:"all_total"` MineTotal int `json:"mine_total"` } `json:"info"` Domains []struct { Name string `json:"name"` } `json:"domains"` }
type RecordCreateResponse ¶
type RecordCreateResponse struct { BaseResponse Record struct { Id any `json:"id"` Name string `json:"name"` Status string `json:"status"` } `json:"record"` }
type RecordLineResponse ¶
type RecordLineResponse struct { BaseResponse Lines []string `json:"lines"` }
type RecordListResponse ¶
type RecordListResponse struct { BaseResponse Info struct { SubDomains string `json:"sub_domains"` RecordTotal string `json:"record_total"` RecordsNum string `json:"records_num"` } `json:"info"` Records []struct { Id any `json:"id"` Name string `json:"name"` Type string `json:"type"` Value string `json:"value"` Line string `json:"line"` LineId string `json:"line_id"` TTL string `json:"ttl"` } `json:"records"` }
type RecordModifyResponse ¶
type RecordModifyResponse struct { BaseResponse Record struct { Id any `json:"id"` Name string `json:"name"` Value string `json:"value"` Status string `json:"status"` } `json:"record"` }
type RecordRemoveResponse ¶
type RecordRemoveResponse struct {
BaseResponse
}
type ResponseInterface ¶
Click to show internal directories.
Click to hide internal directories.