12345678910111213141516171819202122232425262728293031323334 |
- package service
- import (
- "context"
- "sikey/w303a/http/internal/biz"
- pb "sikey/w303a/http/api/user/v2"
- )
- type ChildService struct {
- pb.UnimplementedChildServer
- childUsecase *biz.ChildUsecase
- }
- func NewChildService(childUsecase *biz.ChildUsecase) *ChildService {
- return &ChildService{childUsecase: childUsecase}
- }
- func (s *ChildService) GetChild(ctx context.Context, req *pb.GetChildRequest) (*pb.GetChildResponse, error) {
- return s.childUsecase.GetChild(ctx, req)
- }
- func (s *ChildService) CreateChild(ctx context.Context, req *pb.CreateChildRequest) (*pb.CreateChildResponse, error) {
- return s.childUsecase.CreateChild(ctx, req)
- }
- func (s *ChildService) UpdateChild(ctx context.Context, req *pb.UpdateChildRequest) (*pb.UpdateChildResponse, error) {
- return s.childUsecase.UpdateChild(ctx, req)
- }
- func (s *ChildService) DeleteChild(ctx context.Context, req *pb.DeleteChildRequest) (*pb.DeleteChildResponse, error) {
- return s.childUsecase.DeleteChild(ctx, req)
- }
|