SignUp delegates to the transport-agnostic service layer. Resolvers in this package are thin transport adapters: pull gin.Context out of the GraphQL context, build RequestMetadata, call the service, apply any cookie side-effects back onto gin. Permission: none
(ctx context.Context, params *model.SignUpRequest)
| 15 | // |
| 16 | // Permission: none |
| 17 | func (g *graphqlProvider) SignUp(ctx context.Context, params *model.SignUpRequest) (*model.AuthResponse, error) { |
| 18 | log := g.Log.With().Str("func", "SignUp").Logger() |
| 19 | gc, err := utils.GinContextFromContext(ctx) |
| 20 | if err != nil { |
| 21 | log.Debug().Err(err).Msg("Failed to get GinContext") |
| 22 | return nil, err |
| 23 | } |
| 24 | res, side, err := g.ServiceProvider.SignUp(ctx, service.MetaFromGin(gc), params) |
| 25 | if err != nil { |
| 26 | return nil, err |
| 27 | } |
| 28 | service.ApplyToGin(gc, side) |
| 29 | return res, nil |
| 30 | } |
nothing calls this directly
no test coverage detected