From ac2696f233b0717a94062ec19e74989cb23151f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 17 Jan 2020 10:54:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=9B=A2=E9=85=8D=E9=80=81=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0api=EF=BC=8C=E6=9F=A5=E8=AF=A2=E5=95=86=E5=AE=B6?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/mtpsapi/shop_page.go | 6 ++++++ platformapi/mtpsapi/shop_page_test.go | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/platformapi/mtpsapi/shop_page.go b/platformapi/mtpsapi/shop_page.go index 32691037..9ee49d58 100644 --- a/platformapi/mtpsapi/shop_page.go +++ b/platformapi/mtpsapi/shop_page.go @@ -15,3 +15,9 @@ func (a *API) PagePoiUpdate(outerPoiID, contactName, contactPhone, contactEmail _, err = a.AccessAPI2("https://peisong.meituan.com/api", "haikuiopen/haikui/open/partner/poi/update", params) return err } + +func (a *API) GetAccountDetail() (err error) { + params := map[string]interface{}{} + _, err = a.AccessAPI2("https://peisong.meituan.com/api", "haikuiopen/haikui/open/partner/base/detail", params) + return err +} diff --git a/platformapi/mtpsapi/shop_page_test.go b/platformapi/mtpsapi/shop_page_test.go index 42d608d8..eaf611cb 100644 --- a/platformapi/mtpsapi/shop_page_test.go +++ b/platformapi/mtpsapi/shop_page_test.go @@ -10,3 +10,10 @@ func TestPagePoiUpdate(t *testing.T) { t.Fatal(err) } } + +func TestGetAccountDetail(t *testing.T) { + err := api.GetAccountDetail() + if err != nil { + t.Fatal(err) + } +}