go-common/app/interface/main/web/service/search_test.go

23 lines
496 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"context"
"encoding/json"
"testing"
"go-common/app/interface/main/web/model"
. "github.com/smartystreets/goconvey/convey"
)
func TestService_UpRec(t *testing.T) {
Convey("test up rec", t, WithService(func(s *Service) {
mid := int64(908085)
arg := &model.SearchUpRecArg{ServiceArea: "reg_ok", Platform: "h5"}
data, err := s.UpRec(context.Background(), mid, arg, "")
So(err, ShouldBeNil)
str, _ := json.Marshal(data)
Printf("%+v", string(str))
}))
}