- 重构ebaiapi.StorePage相关API,不拼接URL

This commit is contained in:
gazebo
2019-07-09 20:21:08 +08:00
parent ab2fcd5c9b
commit ac7ea4272d
3 changed files with 84 additions and 88 deletions

View File

@@ -42,7 +42,7 @@ func TestGetStoreOrderInfoList(t *testing.T) {
}
func TestGetEleCommentList(t *testing.T) {
commentList, err := api.GetEleCommentList(utils.Str2Time("2019-02-25 00:00:00"), utils.Str2Time("2019-02-25 23:30:00"), "", "", ReplyStatusAll, CommentLevelAll, CommentContentAll)
commentList, err := api.GetEleCommentList(utils.Str2Time("2019-06-25 00:00:00"), utils.Str2Time("2019-06-25 23:30:00"), "", "", ReplyStatusAll, CommentLevelAll, CommentContentAll)
if err != nil {
t.Fatal(err)
}
@@ -115,7 +115,7 @@ func TestGetStoreList(t *testing.T) {
}
func TestGetStoreList2(t *testing.T) {
result, err := api.GetStoreList2(104.057218, 30.6949)
result, err := api.GetStoreList2(120.074911, 29.306863)
if err != nil {
t.Fatal(err)
}
@@ -131,7 +131,7 @@ func TestGetStoreInfo(t *testing.T) {
}
func TestGetStoreInfo2(t *testing.T) {
result, err := api.GetStoreInfo2("170879219")
result, err := api.GetStoreInfo2("2233065925")
if err != nil {
t.Fatal(err)
}