- mtwm user page api
This commit is contained in:
43
platformapi/mtwmapi/user_page_test.go
Normal file
43
platformapi/mtwmapi/user_page_test.go
Normal file
@@ -0,0 +1,43 @@
|
||||
package mtwmapi
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
func TestAccessUserPage(t *testing.T) {
|
||||
result, err := api.AccessUserPage("openh5/channel/kingkongshoplist", map[string]interface{}{
|
||||
"startIndex": 0,
|
||||
"sortId": 1,
|
||||
"navigateType": 101578,
|
||||
"firstCategoryId": 101578,
|
||||
"secondCategoryId": 101578,
|
||||
"initialLng": 104.076656,
|
||||
"initialLat": 30.665696,
|
||||
"geoType": 2,
|
||||
"wm_longitude": 104076656,
|
||||
"wm_latitude": 30665696,
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestGetStoreList(t *testing.T) {
|
||||
result, err := api.GetStoreList(104.076656, 30.665696)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
t.Log(len(result))
|
||||
}
|
||||
|
||||
func TestGetStoreInfo(t *testing.T) {
|
||||
result, err := api.GetStoreInfo("935062809368623")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
Reference in New Issue
Block a user