Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package ugc
import (
"encoding/json"
"fmt"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestService_InitUpper(t *testing.T) {
Convey("TestService_InitUpper", t, WithService(func(s *Service) {
err := s.InitUpper(10920044)
So(err, ShouldBeNil)
}))
}
func TestService_UpArchives(t *testing.T) {
Convey("TestService_UpArchives", t, WithService(func(s *Service) {
pMatch, pAids, err := s.UpArchives(10920044, 1, 100)
So(err, ShouldBeNil)
data, _ := json.Marshal(pMatch)
data2, _ := json.Marshal(pAids)
fmt.Println(string(data))
fmt.Println(string(data2))
}))
}