Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorCodeAdapterHTTPUser = domainerrors.ErrorCodeAdapter + domainerrors.ErrorCodeAdapterHTTP + domainerrors.ErrorCodeAdapterUser + iota ErrorCodeExecuteUsecase ErrorCodeBindJSON ErrorCodeCopyToInput ErrorCodeBindQuery ErrorCodeValidateInput ErrorCodeBindURI )
Variables ¶
This section is empty.
Functions ¶
func NewUserRoutes ¶
func NewUserRoutes(handler *gin.RouterGroup, u application_user.IService, l pwlogger.Interface)
Types ¶
type CreatedRequest ¶
type DeleteRequest ¶
type DeleteRequest struct {
ID string `json:"id" uri:"id" binding:"required"`
}
type DetailRequest ¶
type DetailRequest struct {
ID string `json:"id" uri:"id" binding:"required"`
}
type ErrorEvent ¶
type ErrorEvent struct {
// contains filtered or unexported fields
}
func (ErrorEvent) MarshalZerologObject ¶
func (a ErrorEvent) MarshalZerologObject(e *zerolog.Event)
type ListGotRequest ¶
type Response ¶
type Response struct { ID string `json:"id"` Username string `json:"username"` EMail string `json:"email"` Avatar string `json:"avatar"` FirstName string `json:"first_name"` LastName string `json:"last_name"` }
func NewResponse ¶
func NewResponse(model *application_user.Output) Response
type ResponseList ¶
type ResponseList struct { Offset int64 `json:"offset"` Limit int64 `json:"limit"` Total int64 `json:"total"` Items []Response `json:"items"` }
func NewResponseList ¶
func NewResponseList(modelList *application_user.OutputList) ResponseList
type UpdateRequest ¶
Click to show internal directories.
Click to hide internal directories.