go-common/app/interface/main/space/service/notice_test.go
2019-04-22 18:49:16 +08:00

27 lines
549 B
Go

package service
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestService_Notice(t *testing.T) {
Convey("test notice", t, WithService(func(s *Service) {
mid := int64(883968)
data, err := s.Notice(context.Background(), mid)
So(err, ShouldBeNil)
Printf("%v", data)
}))
}
func TestService_SetNotice(t *testing.T) {
Convey("test set notice", t, WithService(func(s *Service) {
mid := int64(883968)
notice := ""
err := s.SetNotice(context.Background(), mid, notice)
So(err, ShouldBeNil)
}))
}