mirror of
https://github.com/duanhf2012/origin.git
synced 2026-03-06 22:27:36 +08:00
优化测试程序
This commit is contained in:
BIN
Test/debug
BIN
Test/debug
Binary file not shown.
@@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"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 {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ type HttpRequest struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type HttpRespone struct {
|
type HttpRespone struct {
|
||||||
Respone string
|
Respone []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type ControllerMapsType map[string]reflect.Value
|
type ControllerMapsType map[string]reflect.Value
|
||||||
|
|||||||
Reference in New Issue
Block a user