门店返回参数
This commit is contained in:
@@ -60,7 +60,7 @@ func (a *API) UpdateStore(updateStore *UpdateStoreParam) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
func (a *API) GetStore(storeID string) (getStoreResult *GetStoreResult, err error) {
|
||||
func (a *API) GetStore(storeID string) (getStoreResult *GetOneStoreRespData, err error) {
|
||||
params := GetOneStoreParam{
|
||||
BaseInfo: BaseInfo{
|
||||
AccessToken: a.accessToken,
|
||||
@@ -84,12 +84,12 @@ func (a *API) GetStore(storeID string) (getStoreResult *GetStoreResult, err erro
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
fmt.Println("chainstoreQuery 获取单个门店result==================:=", result)
|
||||
if result["code"] != "200" {
|
||||
return nil, fmt.Errorf("%s", result["msg"])
|
||||
}
|
||||
|
||||
fnResult := &GetStoreResult{}
|
||||
fnResult := &GetOneStoreRespData{}
|
||||
if storeData, ok := result["business_data"]; ok {
|
||||
if err := json.Unmarshal([]byte(utils.Interface2String(storeData)), fnResult); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user