You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
496 B
22 lines
496 B
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)) |
|
})) |
|
}
|
|
|