| 12345678910111213141516171819202122232425262728 |
- package base
- import "fmt"
- const (
- //ReturnCodeSuccess success
- ReturnCodeSuccess = "SUCCESS"
- //ReturnCodeFail fail
- ReturnCodeFail = "FAIL"
- )
- const (
- //ResultCodeSuccess success
- ResultCodeSuccess = "SUCCESS"
- //ResultCodeFail fail
- ResultCodeFail = "FAIL"
- )
- //Error error
- type Error struct {
- XMLName struct{} `xml:"xml" json:"-"`
- ReturnCode string `xml:"return_code" json:"return_code"`
- ReturnMsg string `xml:"return_msg,omitempty" json:"return_msg,omitempty"`
- }
- func (e *Error) Error() string {
- return fmt.Sprintf("return_code: %q, return_msg: %q", e.ReturnCode, e.ReturnMsg)
- }
|