|
@@ -14,7 +14,7 @@ func Test_ChangeReadStatus(t *testing.T) {
|
|
ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)
|
|
ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)
|
|
std := messageclient.NewMessage(zrpc.MustNewClient(zrpc.RpcClientConf{Etcd: discov.EtcdConf{Hosts: []string{"127.0.0.1:2379"}, Key: "message.rpc"}}))
|
|
std := messageclient.NewMessage(zrpc.MustNewClient(zrpc.RpcClientConf{Etcd: discov.EtcdConf{Hosts: []string{"127.0.0.1:2379"}, Key: "message.rpc"}}))
|
|
//std := stdlibclient.NewStdlib(zrpc.MustNewClient(zrpc.RpcClientConf{Etcd: discov.EtcdConf{Hosts: []string{"127.0.0.1:2379"}, Key: "jydocs.stdlib.rpc"}}))
|
|
//std := stdlibclient.NewStdlib(zrpc.MustNewClient(zrpc.RpcClientConf{Etcd: discov.EtcdConf{Hosts: []string{"127.0.0.1:2379"}, Key: "jydocs.stdlib.rpc"}}))
|
|
- req := &messageclient.ChangeReadStatusRequest{Id: 1}
|
|
|
|
|
|
+ req := &messageclient.ChangeReadStatusRequest{Id: 1,ReadStatus: 1}
|
|
res, err := std.ChangeReadStatus(ctx, req)
|
|
res, err := std.ChangeReadStatus(ctx, req)
|
|
log.Println("err ", err,res)
|
|
log.Println("err ", err,res)
|
|
//if res.State == true {
|
|
//if res.State == true {
|