feat: complete API-driven projects with infrastructure and business acceptance

This commit is contained in:
2026-09-23 17:33:50 +08:00
parent 04a1f7999d
commit 2c74dc0859
137 changed files with 11926 additions and 105 deletions

View File

@@ -0,0 +1,14 @@
package user
import (
"context"
"example.com/userService/internal/types"
)
func (s *Service) GetUser(ctx context.Context, req *types.UserIDReq) (*types.UserResp, error) {
u, err := s.deps.Users.Get(ctx, req.ID)
if err != nil {
return nil, s.failure(ctx, err)
}
return response(u), nil
}