...
|
...
|
@@ -13,7 +13,7 @@ import ( |
|
|
)
|
|
|
|
|
|
const (
|
|
|
ResponseOk int = 0
|
|
|
ResponseOk string = "0"
|
|
|
)
|
|
|
|
|
|
const (
|
...
|
...
|
@@ -75,12 +75,13 @@ func (client BusinessAdminClient) Call(param IBusinessAdminParam) ([]byte, error |
|
|
}
|
|
|
|
|
|
type CommResponse struct {
|
|
|
Code int `json:"code"`
|
|
|
Msg string `json:"msg"`
|
|
|
Code interface{} `json:"code"` //这个值可能是数字,也可能是字符串
|
|
|
Msg string `json:"msg"`
|
|
|
}
|
|
|
|
|
|
func (resp CommResponse) IsOK() bool {
|
|
|
if resp.Code != ResponseOk {
|
|
|
code := fmt.Sprint(resp.Code)
|
|
|
if code != ResponseOk {
|
|
|
return false
|
|
|
}
|
|
|
return true
|
...
|
...
|
|