Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResult ¶
type ErrorResult struct {
Error ErrorItem `json:"error"` // 错误项
}
ErrorResult 响应错误
type StatusResult ¶
type StatusResult struct {
Status StatusText `json:"status"` // 状态(OK)
}
StatusResult 响应状态
type StatusText ¶
type StatusText string
StatusText 定义状态文本
const ( OKStatus StatusText = "OK" ErrorStatus StatusText = "ERROR" FailStatus StatusText = "FAIL" )
定义HTTP状态文本常量
func (StatusText) String ¶
func (t StatusText) String() string
Click to show internal directories.
Click to hide internal directories.