working commit
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
*/
|
||||
package servoper
|
||||
|
||||
type SendHelloParams struct{}
|
||||
type GetHelloParams struct{}
|
||||
|
||||
type SendHelloResult struct {
|
||||
type GetHelloResult struct {
|
||||
Message string `json:"message"`
|
||||
Alive bool `json:"alive"`
|
||||
}
|
||||
|
||||
func (oper *Operator) SendHello(param *SendHelloParams) (*SendHelloResult, error) {
|
||||
func (oper *Operator) GetHello(param *GetHelloParams) (*GetHelloResult, error) {
|
||||
var err error
|
||||
res := &SendHelloResult{
|
||||
res := &GetHelloResult{
|
||||
Alive: true,
|
||||
Message: "hello",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user