log delete

This commit is contained in:
richboo111
2022-10-22 15:58:07 +08:00
parent 725561d92d
commit f2bf95f011
13 changed files with 1457 additions and 1456 deletions

View File

@@ -1,31 +1,32 @@
package ebaiapi
import (
"testing"
"git.rosy.net.cn/baseapi"
"git.rosy.net.cn/baseapi/utils"
)
func TestOrderRatesGet(t *testing.T) {
commentList, err := api.OrderRatesGet("102002", 0, utils.Str2Time("2019-09-25"), utils.Str2Time("2019-10-10"), ReplyStatusAll)
if err != nil {
t.Fatal(err)
}
baseapi.SugarLogger.Debug(utils.Format4Output(commentList, false))
}
func TestOrderCommetGet(t *testing.T) {
commentList, err := api.OrderCommetGet("103035", 0, utils.Str2Time("2021-07-01"), utils.Str2Time("2021-07-30"), ReplyStatusAll)
if err != nil {
t.Fatal(err)
}
baseapi.SugarLogger.Debug(utils.Format4Output(commentList, false))
}
func TestOrderRatesReply(t *testing.T) {
err := api.OrderRatesReply("100119", 0, "commentID", "hello")
if err != nil {
t.Fatal(err)
}
}
//
//import (
// "testing"
//
// "git.rosy.net.cn/baseapi"
// "git.rosy.net.cn/baseapi/utils"
//)
//
//func TestOrderRatesGet(t *testing.T) {
// commentList, err := api.OrderRatesGet("102002", 0, utils.Str2Time("2019-09-25"), utils.Str2Time("2019-10-10"), ReplyStatusAll)
// if err != nil {
// t.Fatal(err)
// }
// baseapi.SugarLogger.Debug(utils.Format4Output(commentList, false))
//}
//
//func TestOrderCommetGet(t *testing.T) {
// commentList, err := api.OrderCommetGet("103035", 0, utils.Str2Time("2021-07-01"), utils.Str2Time("2021-07-30"), ReplyStatusAll)
// if err != nil {
// t.Fatal(err)
// }
// baseapi.SugarLogger.Debug(utils.Format4Output(commentList, false))
//}
//
//func TestOrderRatesReply(t *testing.T) {
// err := api.OrderRatesReply("100119", 0, "commentID", "hello")
// if err != nil {
// t.Fatal(err)
// }
//}