member_gateway_rest/service/member-service.go
crusader 7daa9dad65 ing
2018-04-06 21:17:07 +09:00

29 lines
626 B
Go

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
}