archive_test.go 440 B

123456789101112131415161718192021
  1. package service
  2. import (
  3. "context"
  4. "fmt"
  5. "testing"
  6. lmdl "go-common/app/admin/main/activity/model"
  7. . "github.com/smartystreets/goconvey/convey"
  8. )
  9. func TestService_Archives(t *testing.T) {
  10. Convey("service test", t, WithService(func(s *Service) {
  11. res, err := s.Archives(context.Background(), &lmdl.ArchiveParam{Aids: []int64{10110582, 10110581}})
  12. So(err, ShouldBeNil)
  13. for _, v := range res {
  14. fmt.Printf("%+v", v)
  15. }
  16. }))
  17. }