package service import ( "context" "git.loafle.net/commons/server-go" "git.loafle.net/overflow/gateway/external/grpc" "github.com/valyala/fasthttp" ) type MemberService struct { } func (ms *MemberService) Signin(servletCtx server.ServletCtx, ctx *fasthttp.RequestCtx, id string, pw string) (string, error) { gRPCCtx := context.Background() r, err := grpc.Exec(gRPCCtx, "MemberService.signin", id, pw) if nil != err { return "", err } return r, nil } func (ms *MemberService) Register(servletCtx server.ServletCtx, ctx *fasthttp.RequestCtx, id string, pw string) (string, error) { return "dkfksddfk", nil }