Files
baseapi/platformapi/mtwmapi/comment_test.go
2023-07-18 13:44:50 +08:00

28 lines
635 B
Go

package mtwmapi
import (
"fmt"
"testing"
"git.rosy.net.cn/baseapi/utils"
)
func TestCommentQuery(t *testing.T) {
result, err := api.CommentQuery("18026738", "20230711", "20230717", 0, 0, CommentReplyStatusNotReplied)
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)
}
}
func TestTime(t *testing.T) {
fmt.Println(utils.TryStr2Time("2023-07-16"))
}