代码拉取完成,页面将自动刷新
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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。