search_test.go 943 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package service
  2. import (
  3. "context"
  4. "github.com/smartystreets/goconvey/convey"
  5. "testing"
  6. "go-common/app/admin/main/videoup-task/model"
  7. )
  8. func Test_searchQAVideo(t *testing.T) {
  9. Init()
  10. convey.Convey("search qavideo", t, func() {
  11. pm := &model.ListParams{
  12. State: 1,
  13. Ps: 50,
  14. Pn: 1,
  15. Sort: "desc",
  16. Order: "id",
  17. CTimeFrom: "2018-05-08 00:00:00",
  18. CTimeTo: "2018-07-20 00:00:00",
  19. //FTimeFrom: "2018-07-10 00:00:00",
  20. //FTimeTo: "2018-07-20 00:00:00",
  21. FansFrom: 1,
  22. FansTo: 100,
  23. UID: []int64{421, 481},
  24. UPGroup: []int64{1, 2},
  25. AuditStatus: []int{-4, -2, 10000},
  26. ArcTypeID: []int64{76},
  27. TagID: []int64{14, 6, 23, 15},
  28. Keyword: []string{"普通"},
  29. TaskID: []int64{8326, 8327},
  30. //Limit: 2,
  31. }
  32. resp, err := s.searchQAVideo(context.TODO(), pm)
  33. convey.So(err, convey.ShouldBeNil)
  34. t.Logf("resp(%+v)", resp)
  35. })
  36. }