notice_test.go 549 B

1234567891011121314151617181920212223242526
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestService_Notice(t *testing.T) {
  8. Convey("test notice", t, WithService(func(s *Service) {
  9. mid := int64(883968)
  10. data, err := s.Notice(context.Background(), mid)
  11. So(err, ShouldBeNil)
  12. Printf("%v", data)
  13. }))
  14. }
  15. func TestService_SetNotice(t *testing.T) {
  16. Convey("test set notice", t, WithService(func(s *Service) {
  17. mid := int64(883968)
  18. notice := ""
  19. err := s.SetNotice(context.Background(), mid, notice)
  20. So(err, ShouldBeNil)
  21. }))
  22. }