1 Star 1 Fork 0

abelli8306 / geekbang-go8

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
helloworld.go 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
xiaoboli 提交于 2022-04-10 14:09 . Add fourth week homework
package service
import (
"context"
pb "gitee.com/abelli8306/geekbang-go8/week4/api/helloworld"
)
type HelloworldService struct {
pb.UnimplementedHelloworldServer
}
func NewHelloworldService() *HelloworldService {
return &HelloworldService{}
}
func (s *HelloworldService) CreateHelloworld(ctx context.Context, req *pb.CreateHelloworldRequest) (*pb.CreateHelloworldReply, error) {
return &pb.CreateHelloworldReply{}, nil
}
func (s *HelloworldService) UpdateHelloworld(ctx context.Context, req *pb.UpdateHelloworldRequest) (*pb.UpdateHelloworldReply, error) {
return &pb.UpdateHelloworldReply{}, nil
}
func (s *HelloworldService) DeleteHelloworld(ctx context.Context, req *pb.DeleteHelloworldRequest) (*pb.DeleteHelloworldReply, error) {
return &pb.DeleteHelloworldReply{}, nil
}
func (s *HelloworldService) GetHelloworld(ctx context.Context, req *pb.GetHelloworldRequest) (*pb.GetHelloworldReply, error) {
return &pb.GetHelloworldReply{}, nil
}
func (s *HelloworldService) ListHelloworld(ctx context.Context, req *pb.ListHelloworldRequest) (*pb.ListHelloworldReply, error) {
return &pb.ListHelloworldReply{}, nil
}
Go
1
https://gitee.com/abelli8306/geekbang-go8.git
git@gitee.com:abelli8306/geekbang-go8.git
abelli8306
geekbang-go8
geekbang-go8
8ba61765c9e0

搜索帮助