search_test.go 496 B

12345678910111213141516171819202122
  1. package service
  2. import (
  3. "context"
  4. "encoding/json"
  5. "testing"
  6. "go-common/app/interface/main/web/model"
  7. . "github.com/smartystreets/goconvey/convey"
  8. )
  9. func TestService_UpRec(t *testing.T) {
  10. Convey("test up rec", t, WithService(func(s *Service) {
  11. mid := int64(908085)
  12. arg := &model.SearchUpRecArg{ServiceArea: "reg_ok", Platform: "h5"}
  13. data, err := s.UpRec(context.Background(), mid, arg, "")
  14. So(err, ShouldBeNil)
  15. str, _ := json.Marshal(data)
  16. Printf("%+v", string(str))
  17. }))
  18. }