Documentation ¶
Index ¶
- Constants
- type AliYunSmsApiRequestStatus
- func (s AliYunSmsApiRequestStatus) GetRequestStatusCode() string
- func (s AliYunSmsApiRequestStatus) GetRequestStatusMessage() string
- func (s AliYunSmsApiRequestStatus) GetRequestStatusRequestId() string
- func (s AliYunSmsApiRequestStatus) IsRequestSuccess() bool
- func (s AliYunSmsApiRequestStatus) QueryRequestStatusErrorInfo() *string
- type AliYunSmsApiRequestStatusInterface
Constants ¶
View Source
const (
AliYunSmsApiRequestStatusSuccess = "OK"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliYunSmsApiRequestStatus ¶
type AliYunSmsApiRequestStatus struct { Code string // 请求状态码, 返回OK代表请求成功. Message string // 状态码的描述 RequestId string // 请求ID }
AliYunSmsApiRequestStatus 阿里云短信业务API请求返回的状态信息 详细内容参照 https://help.aliyun.com/document_detail/101346.htm?spm=a2c4g.11186623.0.0.450f15dbEpHIIi
func CreateAliYunSmsApiRequestStatus ¶
func CreateAliYunSmsApiRequestStatus(Code *string, Message *string, RequestId *string) *AliYunSmsApiRequestStatus
CreateAliYunSmsApiRequestStatus create
func (AliYunSmsApiRequestStatus) GetRequestStatusCode ¶
func (s AliYunSmsApiRequestStatus) GetRequestStatusCode() string
func (AliYunSmsApiRequestStatus) GetRequestStatusMessage ¶
func (s AliYunSmsApiRequestStatus) GetRequestStatusMessage() string
func (AliYunSmsApiRequestStatus) GetRequestStatusRequestId ¶
func (s AliYunSmsApiRequestStatus) GetRequestStatusRequestId() string
func (AliYunSmsApiRequestStatus) IsRequestSuccess ¶
func (s AliYunSmsApiRequestStatus) IsRequestSuccess() bool
func (AliYunSmsApiRequestStatus) QueryRequestStatusErrorInfo ¶
func (s AliYunSmsApiRequestStatus) QueryRequestStatusErrorInfo() *string
type AliYunSmsApiRequestStatusInterface ¶
type AliYunSmsApiRequestStatusInterface interface { IsRequestSuccess() bool // 请求调用阿里云API是否成功 QueryRequestStatusErrorInfo() *string // 查询调用阿里云API的请求错误信息, 若无错误则返回nil GetRequestStatusCode() string // 查询调用阿里云API的请求状态码 GetRequestStatusMessage() string // 查询调用阿里云API的请求状态码描述 GetRequestStatusRequestId() string // 查询调用阿里云API的请求Id }
AliYunSmsApiRequestStatusInterface AliYunSmsApiRequestStatus interface
Click to show internal directories.
Click to hide internal directories.