优化测试程序

This commit is contained in:
boyce
2019-01-28 14:49:06 +08:00
parent ab404c44e1
commit 34002c31a0
3 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@@ -1,6 +1,7 @@
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
@@ -63,7 +64,8 @@ func (ws *CTest) RPC_LogTicker2(args *CTestData, quo *CTestData) error {
func (ws *CTest) HTTP_LogTicker2(request *sysservice.HttpRequest, resp *sysservice.HttpRespone) error {
resp.Respone = "hello world!"
data := CTestData{111, 333, "34444"}
resp.Respone, _ = json.Marshal(&data)
return nil
}

View File

@@ -22,7 +22,7 @@ type HttpRequest struct {
}
type HttpRespone struct {
Respone string
Respone []byte
}
type ControllerMapsType map[string]reflect.Value