|
@@ -42,7 +42,7 @@ func Test_DocOff(t *testing.T) {
|
|
|
func Test_DocActivity(t *testing.T) {
|
|
|
ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
|
|
|
std := stdlibclient.NewStdlib(zrpc.MustNewClient(zrpc.RpcClientConf{Etcd: discov.EtcdConf{Hosts: []string{"192.168.3.240:2379"}, Key: "jydocs.stdlib.rpc"}}))
|
|
|
- req := &stdlib.DocActivityReq{PageNum: 0, PageSize: 10}
|
|
|
+ req := &stdlib.DocActivityReq{PageNum: 1, PageSize: 10}
|
|
|
res, err := std.DocActivity(ctx, req)
|
|
|
log.Println("err ", err)
|
|
|
log.Println("req ", res)
|
|
@@ -51,7 +51,7 @@ func Test_DocActivity(t *testing.T) {
|
|
|
func Test_DocStatistics(t *testing.T) {
|
|
|
ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
|
|
|
std := stdlibclient.NewStdlib(zrpc.MustNewClient(zrpc.RpcClientConf{Etcd: discov.EtcdConf{Hosts: []string{"192.168.3.240:2379"}, Key: "jydocs.stdlib.rpc"}}))
|
|
|
- req := &stdlib.DocStatisticsReq{DocId: "111", DocStatisticsType: 1}
|
|
|
+ req := &stdlib.DocStatisticsReq{DocId: "123", DocStatisticsType: 1}
|
|
|
res, err := std.DocStatistics(ctx, req)
|
|
|
log.Println("err ", err)
|
|
|
log.Println("req ", res)
|