swag/server: add valid PoC responses
This commit is contained in:
parent
4dc4ed558c
commit
77a8362811
|
@ -11,11 +11,14 @@ type Server struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewServer(dbPath string, zc *rpcclient.Client) (api.SwagAPIServer, error) {
|
func NewServer(dbPath string, zc *rpcclient.Client) (api.SwagAPIServer, error) {
|
||||||
return nil, nil
|
return &Server{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) Redeem(ctx context.Context, req *api.Request) (*api.Response, error) {
|
func (s *Server) Redeem(ctx context.Context, req *api.Request) (*api.Response, error) {
|
||||||
return nil, nil
|
return &api.Response{
|
||||||
|
Success: true,
|
||||||
|
Msg: "hello",
|
||||||
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) GracefulStop() {}
|
func (s *Server) GracefulStop() {}
|
||||||
|
|
Loading…
Reference in New Issue