Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package constant
|
||||
|
||||
import "strconv"
|
||||
|
||||
type RetBase struct {
|
||||
RetCode int `json:"retCode"`
|
||||
RetMsg string `json:"retMsg"`
|
||||
}
|
||||
|
||||
func (r *RetBase) Error() string {
|
||||
return strconv.Itoa(r.RetCode) + "-" + r.RetMsg
|
||||
}
|
||||
|
||||
type RetData struct {
|
||||
RetBase
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
Reference in New Issue
Block a user