Documentation ¶
Index ¶
- func DeactivateUserPath() string
- func DecodeDeactivateRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeGetAuthsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeGetUserRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeResendVerifyEmailRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeUpdateUserRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func DecodeValidateEmailRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
- func EncodeDeactivateResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeGetAuthsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeGetUserResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeResendVerifyEmailResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeUpdateUserResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func EncodeValidateEmailResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
- func GetAuthsUserPath() string
- func GetUserUserPath() string
- func Mount(mux goahttp.Muxer, h *Server)
- func MountCORSHandler(mux goahttp.Muxer, h http.Handler)
- func MountDeactivateHandler(mux goahttp.Muxer, h http.Handler)
- func MountGetAuthsHandler(mux goahttp.Muxer, h http.Handler)
- func MountGetUserHandler(mux goahttp.Muxer, h http.Handler)
- func MountResendVerifyEmailHandler(mux goahttp.Muxer, h http.Handler)
- func MountUpdateUserHandler(mux goahttp.Muxer, h http.Handler)
- func MountValidateEmailHandler(mux goahttp.Muxer, h http.Handler)
- func NewCORSHandler() http.Handler
- func NewDeactivateHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewDeactivatePayload(id *string, admin *string, authorization *string, xSession *string, ...) *user.DeactivatePayload
- func NewGetAuthsHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetAuthsPayload(userID *string, authorization *string, xSession *string, aPIKey *string) *user.GetAuthsPayload
- func NewGetUserHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewGetUserPayload(authorization *string, xSession *string, aPIKey *string) *user.GetUserPayload
- func NewResendVerifyEmailHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewResendVerifyEmailPayload(authorization *string, xSession *string, aPIKey *string) *user.ResendVerifyEmailPayload
- func NewUpdateUserHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewUpdateUserUserUpdateParams(body *UpdateUserRequestBody, authorization *string, xSession *string, ...) *user.UserUpdateParams
- func NewValidateEmailHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler
- func NewValidateEmailPayload(validateID string, aPIKey *string) *user.ValidateEmailPayload
- func ResendVerifyEmailUserPath() string
- func UpdateUserUserPath() string
- func ValidateEmailUserPath() string
- func ValidateUpdateUserRequestBody(body *UpdateUserRequestBody) (err error)
- type AggCampaignMediaResponseBody
- type AggInstagramMediaResponseBody
- type AggSocialMediaResponseBody
- type ErrorNamer
- type GetAuthsResponseBody
- type GetUserResponseBody
- type MountPoint
- type SelectedPlanMediaResponseBody
- type Server
- type UpdateUserRequestBody
- type UpdateUserResponseBody
- type UserLocationMediaResponseBody
- type UserOnboardedMediaResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeactivateUserPath ¶
func DeactivateUserPath() string
DeactivateUserPath returns the URL path to the user service deactivate HTTP endpoint.
func DecodeDeactivateRequest ¶
func DecodeDeactivateRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeDeactivateRequest returns a decoder for requests sent to the user deactivate endpoint.
func DecodeGetAuthsRequest ¶
func DecodeGetAuthsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeGetAuthsRequest returns a decoder for requests sent to the user getAuths endpoint.
func DecodeGetUserRequest ¶
func DecodeGetUserRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeGetUserRequest returns a decoder for requests sent to the user getUser endpoint.
func DecodeResendVerifyEmailRequest ¶
func DecodeResendVerifyEmailRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeResendVerifyEmailRequest returns a decoder for requests sent to the user resend-verify-email endpoint.
func DecodeUpdateUserRequest ¶
func DecodeUpdateUserRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeUpdateUserRequest returns a decoder for requests sent to the user update-user endpoint.
func DecodeValidateEmailRequest ¶
func DecodeValidateEmailRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (interface{}, error)
DecodeValidateEmailRequest returns a decoder for requests sent to the user validate-email endpoint.
func EncodeDeactivateResponse ¶
func EncodeDeactivateResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeDeactivateResponse returns an encoder for responses returned by the user deactivate endpoint.
func EncodeGetAuthsResponse ¶
func EncodeGetAuthsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetAuthsResponse returns an encoder for responses returned by the user getAuths endpoint.
func EncodeGetUserResponse ¶
func EncodeGetUserResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeGetUserResponse returns an encoder for responses returned by the user getUser endpoint.
func EncodeResendVerifyEmailResponse ¶
func EncodeResendVerifyEmailResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeResendVerifyEmailResponse returns an encoder for responses returned by the user resend-verify-email endpoint.
func EncodeUpdateUserResponse ¶
func EncodeUpdateUserResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeUpdateUserResponse returns an encoder for responses returned by the user update-user endpoint.
func EncodeValidateEmailResponse ¶
func EncodeValidateEmailResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, interface{}) error
EncodeValidateEmailResponse returns an encoder for responses returned by the user validate-email endpoint.
func GetAuthsUserPath ¶
func GetAuthsUserPath() string
GetAuthsUserPath returns the URL path to the user service getAuths HTTP endpoint.
func GetUserUserPath ¶
func GetUserUserPath() string
GetUserUserPath returns the URL path to the user service getUser HTTP endpoint.
func MountCORSHandler ¶
MountCORSHandler configures the mux to serve the CORS endpoints for the service user.
func MountDeactivateHandler ¶
MountDeactivateHandler configures the mux to serve the "user" service "deactivate" endpoint.
func MountGetAuthsHandler ¶
MountGetAuthsHandler configures the mux to serve the "user" service "getAuths" endpoint.
func MountGetUserHandler ¶
MountGetUserHandler configures the mux to serve the "user" service "getUser" endpoint.
func MountResendVerifyEmailHandler ¶
MountResendVerifyEmailHandler configures the mux to serve the "user" service "resend-verify-email" endpoint.
func MountUpdateUserHandler ¶
MountUpdateUserHandler configures the mux to serve the "user" service "update-user" endpoint.
func MountValidateEmailHandler ¶
MountValidateEmailHandler configures the mux to serve the "user" service "validate-email" endpoint.
func NewCORSHandler ¶
NewCORSHandler creates a HTTP handler which returns a simple 200 response.
func NewDeactivateHandler ¶
func NewDeactivateHandler( endpoint goa.Endpoint, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) http.Handler
NewDeactivateHandler creates a HTTP handler which loads the HTTP request and calls the "user" service "deactivate" endpoint.
func NewDeactivatePayload ¶
func NewDeactivatePayload(id *string, admin *string, authorization *string, xSession *string, aPIKey *string) *user.DeactivatePayload
NewDeactivatePayload builds a user service deactivate endpoint payload.
func NewGetAuthsHandler ¶
func NewGetAuthsHandler( endpoint goa.Endpoint, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) http.Handler
NewGetAuthsHandler creates a HTTP handler which loads the HTTP request and calls the "user" service "getAuths" endpoint.
func NewGetAuthsPayload ¶
func NewGetAuthsPayload(userID *string, authorization *string, xSession *string, aPIKey *string) *user.GetAuthsPayload
NewGetAuthsPayload builds a user service getAuths endpoint payload.
func NewGetUserHandler ¶
func NewGetUserHandler( endpoint goa.Endpoint, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) http.Handler
NewGetUserHandler creates a HTTP handler which loads the HTTP request and calls the "user" service "getUser" endpoint.
func NewGetUserPayload ¶
func NewGetUserPayload(authorization *string, xSession *string, aPIKey *string) *user.GetUserPayload
NewGetUserPayload builds a user service getUser endpoint payload.
func NewResendVerifyEmailHandler ¶
func NewResendVerifyEmailHandler( endpoint goa.Endpoint, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) http.Handler
NewResendVerifyEmailHandler creates a HTTP handler which loads the HTTP request and calls the "user" service "resend-verify-email" endpoint.
func NewResendVerifyEmailPayload ¶
func NewResendVerifyEmailPayload(authorization *string, xSession *string, aPIKey *string) *user.ResendVerifyEmailPayload
NewResendVerifyEmailPayload builds a user service resend-verify-email endpoint payload.
func NewUpdateUserHandler ¶
func NewUpdateUserHandler( endpoint goa.Endpoint, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) http.Handler
NewUpdateUserHandler creates a HTTP handler which loads the HTTP request and calls the "user" service "update-user" endpoint.
func NewUpdateUserUserUpdateParams ¶
func NewUpdateUserUserUpdateParams(body *UpdateUserRequestBody, authorization *string, xSession *string, aPIKey *string) *user.UserUpdateParams
NewUpdateUserUserUpdateParams builds a user service update-user endpoint payload.
func NewValidateEmailHandler ¶
func NewValidateEmailHandler( endpoint goa.Endpoint, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) http.Handler
NewValidateEmailHandler creates a HTTP handler which loads the HTTP request and calls the "user" service "validate-email" endpoint.
func NewValidateEmailPayload ¶
func NewValidateEmailPayload(validateID string, aPIKey *string) *user.ValidateEmailPayload
NewValidateEmailPayload builds a user service validate-email endpoint payload.
func ResendVerifyEmailUserPath ¶
func ResendVerifyEmailUserPath() string
ResendVerifyEmailUserPath returns the URL path to the user service resend-verify-email HTTP endpoint.
func UpdateUserUserPath ¶
func UpdateUserUserPath() string
UpdateUserUserPath returns the URL path to the user service update-user HTTP endpoint.
func ValidateEmailUserPath ¶
func ValidateEmailUserPath() string
ValidateEmailUserPath returns the URL path to the user service validate-email HTTP endpoint.
func ValidateUpdateUserRequestBody ¶
func ValidateUpdateUserRequestBody(body *UpdateUserRequestBody) (err error)
ValidateUpdateUserRequestBody runs the validations defined on Update-UserRequestBody
Types ¶
type AggCampaignMediaResponseBody ¶
type AggCampaignMediaResponseBody struct { Rejected []interface{} `form:"rejected,omitempty" json:"rejected,omitempty" xml:"rejected,omitempty"` Invited []interface{} `form:"invited,omitempty" json:"invited,omitempty" xml:"invited,omitempty"` Applied []interface{} `form:"applied,omitempty" json:"applied,omitempty" xml:"applied,omitempty"` Shortlisted []interface{} `form:"shortlisted,omitempty" json:"shortlisted,omitempty" xml:"shortlisted,omitempty"` Selected []interface{} `form:"selected,omitempty" json:"selected,omitempty" xml:"selected,omitempty"` Previous []interface{} `form:"previous,omitempty" json:"previous,omitempty" xml:"previous,omitempty"` }
AggCampaignMediaResponseBody is used to define fields on response body types.
type AggInstagramMediaResponseBody ¶
type AggInstagramMediaResponseBody struct { Website *string `form:"website,omitempty" json:"website,omitempty" xml:"website,omitempty"` SelectedPlan *SelectedPlanMediaResponseBody `form:"selectedPlan,omitempty" json:"selectedPlan,omitempty" xml:"selectedPlan,omitempty"` Username *string `form:"username,omitempty" json:"username,omitempty" xml:"username,omitempty"` ProfilePicture *string `form:"profilePicture,omitempty" json:"profilePicture,omitempty" xml:"profilePicture,omitempty"` Bio *string `form:"bio,omitempty" json:"bio,omitempty" xml:"bio,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` IsBusiness *bool `form:"isBusiness,omitempty" json:"isBusiness,omitempty" xml:"isBusiness,omitempty"` FullName *string `form:"fullName,omitempty" json:"fullName,omitempty" xml:"fullName,omitempty"` }
AggInstagramMediaResponseBody is used to define fields on response body types.
type AggSocialMediaResponseBody ¶
type AggSocialMediaResponseBody struct {
Instagram *AggInstagramMediaResponseBody `form:"instagram,omitempty" json:"instagram,omitempty" xml:"instagram,omitempty"`
}
AggSocialMediaResponseBody is used to define fields on response body types.
type ErrorNamer ¶
type ErrorNamer interface {
ErrorName() string
}
ErrorNamer is an interface implemented by generated error structs that exposes the name of the error as defined in the design.
type GetAuthsResponseBody ¶
type GetAuthsResponseBody struct { // True if user has google Oauth signin Google bool `form:"google" json:"google" xml:"google"` // True if user has facebook Oauth signin Facebook bool `form:"facebook" json:"facebook" xml:"facebook"` // True if user has twitter Oauth signin Twitter bool `form:"twitter" json:"twitter" xml:"twitter"` // True if user has linkedin Oauth signin Linkedin bool `form:"linkedin" json:"linkedin" xml:"linkedin"` // True if user has microsoft Oauth signin Microsoft bool `form:"microsoft" json:"microsoft" xml:"microsoft"` // True if user has password signin Standard bool `form:"standard" json:"standard" xml:"standard"` }
GetAuthsResponseBody is the type of the "user" service "getAuths" endpoint HTTP response body.
func NewGetAuthsResponseBody ¶
func NewGetAuthsResponseBody(res *userviews.AuthStatusMediaView) *GetAuthsResponseBody
NewGetAuthsResponseBody builds the HTTP response body from the result of the "getAuths" endpoint of the "user" service.
type GetUserResponseBody ¶
type GetUserResponseBody struct { // Unique unchanging user ID ID string `form:"id" json:"id" xml:"id"` // Phone Number Of the user Phone string `form:"phone" json:"phone" xml:"phone"` // Family name for the user LastName string `form:"lastName" json:"lastName" xml:"lastName"` UID *string `form:"uid,omitempty" json:"uid,omitempty" xml:"uid,omitempty"` UpdatedAt *string `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"` // Email attached to the account of the user Email string `form:"email" json:"email" xml:"email"` // Category of the user generated by our algorithms Category *string `form:"category,omitempty" json:"category,omitempty" xml:"category,omitempty"` IsActive *bool `form:"isActive,omitempty" json:"isActive,omitempty" xml:"isActive,omitempty"` AggCampaigns *AggCampaignMediaResponseBody `form:"aggCampaigns,omitempty" json:"aggCampaigns,omitempty" xml:"aggCampaigns,omitempty"` Genres []string `form:"genres,omitempty" json:"genres,omitempty" xml:"genres,omitempty"` // Phone Number Of the user Username string `form:"username" json:"username" xml:"username"` Gender *string `form:"gender,omitempty" json:"gender,omitempty" xml:"gender,omitempty"` Onboarded *UserOnboardedMediaResponseBody `form:"onboarded,omitempty" json:"onboarded,omitempty" xml:"onboarded,omitempty"` Location *UserLocationMediaResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` Dob *string `form:"dob,omitempty" json:"dob,omitempty" xml:"dob,omitempty"` CreatedAt *string `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"` AggSocial *AggSocialMediaResponseBody `form:"aggSocial,omitempty" json:"aggSocial,omitempty" xml:"aggSocial,omitempty"` // Given name for the user FirstName string `form:"firstName" json:"firstName" xml:"firstName"` SocialMediaRawData interface{} `form:"socialMediaRawData,omitempty" json:"socialMediaRawData,omitempty" xml:"socialMediaRawData,omitempty"` // When the user attempts to change their email, this is what they will change // it to after they verify that it belongs to them ChangingEmail *string `form:"changingEmail,omitempty" json:"changingEmail,omitempty" xml:"changingEmail,omitempty"` // Whether the user is an administrator on the site IsAdmin bool `form:"isAdmin" json:"isAdmin" xml:"isAdmin"` // Whether the user is a brand manager on the site IsBrandManager bool `form:"isBrandManager" json:"isBrandManager" xml:"isBrandManager"` // Whether the user has verified their email VerifiedEmail bool `form:"verifiedEmail" json:"verifiedEmail" xml:"verifiedEmail"` Authorization string `form:"Authorization" json:"Authorization" xml:"Authorization"` XSession string `form:"X-Session" json:"X-Session" xml:"X-Session"` }
GetUserResponseBody is the type of the "user" service "getUser" endpoint HTTP response body.
func NewGetUserResponseBody ¶
func NewGetUserResponseBody(res *userviews.UserMediaView) *GetUserResponseBody
NewGetUserResponseBody builds the HTTP response body from the result of the "getUser" endpoint of the "user" service.
type MountPoint ¶
type MountPoint struct { // Method is the name of the service method served by the mounted HTTP handler. Method string // Verb is the HTTP method used to match requests to the mounted handler. Verb string // Pattern is the HTTP request path pattern used to match requests to the // mounted handler. Pattern string }
MountPoint holds information about the mounted endpoints.
type SelectedPlanMediaResponseBody ¶
type SelectedPlanMediaResponseBody struct { ID *string `json:"id"` Title *string `json:"title"` Description *string `json:"description"` CPC *int `json:"CPC"` Commission *int `json:"commission"` OneP *int `json:"1P"` TwoP *int `json:"2P"` OneV *int `json:"1V"` TwoV *int `json:"2V"` OnePOneV *int `json:"1P + 1V"` }
SelectedPlanMediaResponseBody is used to define fields on response body types.
type Server ¶
type Server struct { Mounts []*MountPoint GetAuths http.Handler Deactivate http.Handler GetUser http.Handler ValidateEmail http.Handler UpdateUser http.Handler ResendVerifyEmail http.Handler CORS http.Handler }
Server lists the user service endpoint HTTP handlers.
func New ¶
func New( e *user.Endpoints, mux goahttp.Muxer, dec func(*http.Request) goahttp.Decoder, enc func(context.Context, http.ResponseWriter) goahttp.Encoder, eh func(context.Context, http.ResponseWriter, error), ) *Server
New instantiates HTTP handlers for all the user service endpoints.
type UpdateUserRequestBody ¶
type UpdateUserRequestBody struct { // Given name for the user FirstName *string `form:"firstName,omitempty" json:"firstName,omitempty" xml:"firstName,omitempty"` // Family name for the user LastName *string `form:"lastName,omitempty" json:"lastName,omitempty" xml:"lastName,omitempty"` // Email attached to the account of the user Email *string `form:"email,omitempty" json:"email,omitempty" xml:"email,omitempty"` // Phone Number Of the user Phone *string `form:"phone,omitempty" json:"phone,omitempty" xml:"phone,omitempty"` // Phone Number Of the user Username *string `form:"username,omitempty" json:"username,omitempty" xml:"username,omitempty"` // When the user attempts to change their email, this is what they will change // it to after they verify that it belongs to them ChangingEmail *string `form:"changingEmail,omitempty" json:"changingEmail,omitempty" xml:"changingEmail,omitempty"` Genres []string `form:"genres,omitempty" json:"genres,omitempty" xml:"genres,omitempty"` // Whether the user has verified their email VerifiedEmail *bool `form:"verifiedEmail,omitempty" json:"verifiedEmail,omitempty" xml:"verifiedEmail,omitempty"` // Whether the user is an administrator on the site IsAdmin *bool `form:"isAdmin,omitempty" json:"isAdmin,omitempty" xml:"isAdmin,omitempty"` // Whether the user is a brand manager on the site IsBrandManager *bool `form:"isBrandManager,omitempty" json:"isBrandManager,omitempty" xml:"isBrandManager,omitempty"` UID *string `form:"uid,omitempty" json:"uid,omitempty" xml:"uid,omitempty"` UpdatedAt *string `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"` IsActive *bool `form:"isActive,omitempty" json:"isActive,omitempty" xml:"isActive,omitempty"` Gender *string `form:"gender,omitempty" json:"gender,omitempty" xml:"gender,omitempty"` Dob *string `form:"dob,omitempty" json:"dob,omitempty" xml:"dob,omitempty"` CreatedAt *string `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"` }
UpdateUserRequestBody is the type of the "user" service "update-user" endpoint HTTP request body.
type UpdateUserResponseBody ¶
type UpdateUserResponseBody struct { // Unique unchanging user ID ID string `form:"id" json:"id" xml:"id"` // Phone Number Of the user Phone string `form:"phone" json:"phone" xml:"phone"` // Family name for the user LastName string `form:"lastName" json:"lastName" xml:"lastName"` UID *string `form:"uid,omitempty" json:"uid,omitempty" xml:"uid,omitempty"` UpdatedAt *string `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"` // Email attached to the account of the user Email string `form:"email" json:"email" xml:"email"` // Category of the user generated by our algorithms Category *string `form:"category,omitempty" json:"category,omitempty" xml:"category,omitempty"` IsActive *bool `form:"isActive,omitempty" json:"isActive,omitempty" xml:"isActive,omitempty"` AggCampaigns *AggCampaignMediaResponseBody `form:"aggCampaigns,omitempty" json:"aggCampaigns,omitempty" xml:"aggCampaigns,omitempty"` Genres []string `form:"genres,omitempty" json:"genres,omitempty" xml:"genres,omitempty"` // Phone Number Of the user Username string `form:"username" json:"username" xml:"username"` Gender *string `form:"gender,omitempty" json:"gender,omitempty" xml:"gender,omitempty"` Onboarded *UserOnboardedMediaResponseBody `form:"onboarded,omitempty" json:"onboarded,omitempty" xml:"onboarded,omitempty"` Location *UserLocationMediaResponseBody `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` Dob *string `form:"dob,omitempty" json:"dob,omitempty" xml:"dob,omitempty"` CreatedAt *string `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"` AggSocial *AggSocialMediaResponseBody `form:"aggSocial,omitempty" json:"aggSocial,omitempty" xml:"aggSocial,omitempty"` // Given name for the user FirstName string `form:"firstName" json:"firstName" xml:"firstName"` SocialMediaRawData interface{} `form:"socialMediaRawData,omitempty" json:"socialMediaRawData,omitempty" xml:"socialMediaRawData,omitempty"` // When the user attempts to change their email, this is what they will change // it to after they verify that it belongs to them ChangingEmail *string `form:"changingEmail,omitempty" json:"changingEmail,omitempty" xml:"changingEmail,omitempty"` // Whether the user is an administrator on the site IsAdmin bool `form:"isAdmin" json:"isAdmin" xml:"isAdmin"` // Whether the user is a brand manager on the site IsBrandManager bool `form:"isBrandManager" json:"isBrandManager" xml:"isBrandManager"` // Whether the user has verified their email VerifiedEmail bool `form:"verifiedEmail" json:"verifiedEmail" xml:"verifiedEmail"` Authorization string `form:"Authorization" json:"Authorization" xml:"Authorization"` XSession string `form:"X-Session" json:"X-Session" xml:"X-Session"` }
UpdateUserResponseBody is the type of the "user" service "update-user" endpoint HTTP response body.
func NewUpdateUserResponseBody ¶
func NewUpdateUserResponseBody(res *userviews.UserMediaView) *UpdateUserResponseBody
NewUpdateUserResponseBody builds the HTTP response body from the result of the "update-user" endpoint of the "user" service.
type UserLocationMediaResponseBody ¶
type UserLocationMediaResponseBody struct { Street *string `form:"street,omitempty" json:"street,omitempty" xml:"street,omitempty"` Line2 *string `form:"line2,omitempty" json:"line2,omitempty" xml:"line2,omitempty"` Locality *string `form:"locality,omitempty" json:"locality,omitempty" xml:"locality,omitempty"` City *string `form:"city,omitempty" json:"city,omitempty" xml:"city,omitempty"` State *string `form:"state,omitempty" json:"state,omitempty" xml:"state,omitempty"` Country *string `form:"country,omitempty" json:"country,omitempty" xml:"country,omitempty"` Postcode *string `form:"postcode,omitempty" json:"postcode,omitempty" xml:"postcode,omitempty"` Text *string `form:"text,omitempty" json:"text,omitempty" xml:"text,omitempty"` }
UserLocationMediaResponseBody is used to define fields on response body types.
type UserOnboardedMediaResponseBody ¶
type UserOnboardedMediaResponseBody struct { Profile *bool `form:"profile,omitempty" json:"profile,omitempty" xml:"profile,omitempty"` Signup *bool `form:"signup,omitempty" json:"signup,omitempty" xml:"signup,omitempty"` Store *bool `form:"store,omitempty" json:"store,omitempty" xml:"store,omitempty"` CampaignDetails *bool `form:"campaignDetails,omitempty" json:"campaignDetails,omitempty" xml:"campaignDetails,omitempty"` }
UserOnboardedMediaResponseBody is used to define fields on response body types.