child.go 829 B

12345678910111213141516171819202122232425262728
  1. package service
  2. import (
  3. "context"
  4. pb "sikey/w303a/http/api/user/v2"
  5. )
  6. type ChildService struct {
  7. pb.UnimplementedChildServer
  8. }
  9. func NewChildService() *ChildService {
  10. return &ChildService{}
  11. }
  12. func (s *ChildService) GetChild(ctx context.Context, req *pb.GetChildRequest) (*pb.GetChildResponse, error) {
  13. return &pb.GetChildResponse{}, nil
  14. }
  15. func (s *ChildService) CreateChild(ctx context.Context, req *pb.CreateChildRequest) (*pb.CreateChildResponse, error) {
  16. return &pb.CreateChildResponse{}, nil
  17. }
  18. func (s *ChildService) UpdateChild(ctx context.Context, req *pb.UpdateChildRequest) (*pb.UpdateChildResponse, error) {
  19. return &pb.UpdateChildResponse{}, nil
  20. }
  21. func (s *ChildService) DeleteChild(ctx context.Context, req *pb.DeleteChildRequest) (*pb.DeleteChildResponse, error) {
  22. return &pb.DeleteChildResponse{}, nil
  23. }