Files
baseapi/platformapi/mtwmapi/comment_test.go
2019-11-30 14:08:58 +08:00

23 lines
541 B
Go

package mtwmapi
import (
"testing"
"git.rosy.net.cn/baseapi/utils"
)
func TestCommentQuery(t *testing.T) {
result, err := api.CommentQuery("6783778", "20190501", "20190515", 0, 0, CommentReplyStatusAll)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestCommentAddReply(t *testing.T) {
err := api.CommentAddReply("24617232", 2947288966, "非常抱歉让您没有得到十分满意的购物体验,我们会及时与您联系进行确认并解决问题!")
if err != nil {
t.Fatal(err)
}
}