order_detail_test.go 904 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package dao
  2. import (
  3. "fmt"
  4. "testing"
  5. "time"
  6. "go-common/app/service/openplatform/ticket-sales/api/grpc/type"
  7. "go-common/app/service/openplatform/ticket-sales/model"
  8. "net"
  9. . "github.com/smartystreets/goconvey/convey"
  10. )
  11. func TestUpdate(t *testing.T) {
  12. Convey("Get Order", t, func() {
  13. data := &model.OrderDetail{
  14. OrderID: 10000012001970,
  15. Buyer: "TEST",
  16. Tel: "13800138000",
  17. PersonalID: "342921",
  18. ExpressCO: "shunfeng",
  19. ExpressNO: "000",
  20. Remark: "TEST",
  21. DeviceType: 1,
  22. IP: net.ParseIP("::1"),
  23. DeliverDetail: &_type.OrderDeliver{
  24. AddrID: 1,
  25. Name: "张三",
  26. Tel: "13810559189",
  27. Addr: "北京市",
  28. },
  29. Detail: &_type.OrderExtra{
  30. AutoRecvTime: time.Now().Unix(),
  31. DelayRecvTimes: 1,
  32. },
  33. }
  34. // effID, err := d.UpdateDetail(context.TODO(), data)
  35. fmt.Println(data)
  36. // So(err, ShouldBeNil)
  37. })
  38. }