mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
优化测试程序
This commit is contained in:
BIN
Test/debug
BIN
Test/debug
Binary file not shown.
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ type HttpRequest struct {
|
||||
}
|
||||
|
||||
type HttpRespone struct {
|
||||
Respone string
|
||||
Respone []byte
|
||||
}
|
||||
|
||||
type ControllerMapsType map[string]reflect.Value
|
||||
|
||||
Reference in New Issue
Block a user