新增投诉骑手接口
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dadaapi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
@@ -45,3 +46,18 @@ func TestCancel(t *testing.T) {
|
||||
}
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(cancelResponse, false))
|
||||
}
|
||||
|
||||
func TestGetComplaintReasons(t *testing.T) {
|
||||
complaintReason, err := dadaapi.GetComplaintReasons()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
fmt.Println(complaintReason)
|
||||
}
|
||||
|
||||
func TestComplaintRider(t *testing.T) {
|
||||
err := dadaapi.ComplaintRider("123", 1)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user