()
| 103 | ) |
| 104 | |
| 105 | func (c ResponseCode) Message() string { |
| 106 | if msg, ok := CodeMessage[c]; ok { |
| 107 | return msg |
| 108 | } |
| 109 | return "system error" |
| 110 | } |
| 111 | |
| 112 | func (c ResponseCode) ToResponse(data interface{}) CommonResponse { |
| 113 | if err, ok := data.(error); ok { |
no outgoing calls
no test coverage detected