Documentation ¶
Index ¶
- type ListingCreateCmd
- type ListingCreateHandler
- type ListingCreateRes
- type ListingDeleteCmd
- type ListingDeleteHandler
- type ListingDeleteRes
- type ListingDetailCmd
- type ListingDisableCmd
- type ListingDisableHandler
- type ListingDisableRes
- type ListingEnableCmd
- type ListingEnableHandler
- type ListingEnableRes
- type ListingMetaRequest
- type ListingReOrderCmd
- type ListingReOrderHandler
- type ListingReOrderRes
- type ListingRestoreCmd
- type ListingRestoreHandler
- type ListingRestoreRes
- type ListingUpdateBusinessNickNameCmd
- type ListingUpdateBusinessNickNameHandler
- type ListingUpdateBusinessNickNameRes
- type ListingUpdateCmd
- type ListingUpdateHandler
- type ListingUpdateRes
- type ListingValidateBookingCmd
- type ListingValidateBookingHandler
- type ListingValidateBookingRes
- type ListingValidatedCmd
- type ListingValidatedHandler
- type ListingValidatedRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListingCreateCmd ¶
type ListingCreateCmd struct { Account account.Entity `json:"-"` Business listing.Business `json:"-"` Images []listing.Image `json:"images" validate:"min=1,max=10,dive,required"` Meta *ListingMetaRequest `json:"meta" validate:"required,dive"` CategoryUUIDs []string `json:"categoryUUIDs" validate:"required,min=1,max=30,dive,required,object_id"` Features []listing.Feature `json:"features" validate:"required,min=0,max=30,dive,required"` Prices []listing.ListingPriceValidationDto `json:"prices" validate:"required,min=1,max=100,dive,required"` ExtraPaymentChannels []payment.Channel `json:"extraPaymentChannels" bson:"extra_payment_channels" validate:"required,min=1,max=30,dive,required,oneof=at_the_door"` Location *listing.Location `json:"location" validate:"required,dive"` Boosts []listing.Boost `json:"boosts" validate:"omitempty,min=0,max=10,dive,required"` Validation *listing.Validation `json:"validation" validate:"required,dive"` Currency string `json:"currency" validate:"required,oneof=TRY USD EUR"` }
type ListingCreateHandler ¶
type ListingCreateHandler cqrs.HandlerFunc[ListingCreateCmd, *ListingCreateRes]
func NewListingCreateHandler ¶
func NewListingCreateHandler(factory listing.Factory, repo listing.Repository, events listing.Events) ListingCreateHandler
type ListingCreateRes ¶
type ListingCreateRes struct {
UUID string `json:"uuid"`
}
type ListingDeleteCmd ¶
type ListingDeleteCmd struct {
ListingUUID string `json:"-"`
}
type ListingDeleteHandler ¶
type ListingDeleteHandler cqrs.HandlerFunc[ListingDeleteCmd, *ListingDeleteRes]
func NewListingDeleteHandler ¶
func NewListingDeleteHandler(repo listing.Repository, events listing.Events) ListingDeleteHandler
type ListingDeleteRes ¶
type ListingDeleteRes struct{}
type ListingDetailCmd ¶
type ListingDetailCmd struct {
ListingUUID string `json:"listingUUID" params:"uuid" validate:"required,object_id"`
}
type ListingDisableCmd ¶
type ListingDisableHandler ¶
type ListingDisableHandler cqrs.HandlerFunc[ListingDisableCmd, *ListingDisableRes]
func NewListingDisableHandler ¶
func NewListingDisableHandler(repo listing.Repository, events listing.Events) ListingDisableHandler
type ListingDisableRes ¶
type ListingDisableRes struct{}
type ListingEnableCmd ¶
type ListingEnableHandler ¶
type ListingEnableHandler cqrs.HandlerFunc[ListingEnableCmd, *ListingEnableRes]
func NewListingEnableHandler ¶
func NewListingEnableHandler(repo listing.Repository, events listing.Events) ListingEnableHandler
type ListingEnableRes ¶
type ListingEnableRes struct{}
type ListingMetaRequest ¶
type ListingReOrderCmd ¶
type ListingReOrderHandler ¶
type ListingReOrderHandler cqrs.HandlerFunc[ListingReOrderCmd, *ListingReOrderRes]
func NewListingReOrderHandler ¶
func NewListingReOrderHandler(repo listing.Repository, events listing.Events) ListingReOrderHandler
type ListingReOrderRes ¶
type ListingReOrderRes struct{}
type ListingRestoreCmd ¶
type ListingRestoreCmd struct {
ListingUUID string `json:"-"`
}
type ListingRestoreHandler ¶
type ListingRestoreHandler cqrs.HandlerFunc[ListingRestoreCmd, *ListingRestoreRes]
func NewListingRestoreHandler ¶
func NewListingRestoreHandler(repo listing.Repository, events listing.Events) ListingRestoreHandler
type ListingRestoreRes ¶
type ListingRestoreRes struct{}
type ListingUpdateBusinessNickNameCmd ¶
type ListingUpdateBusinessNickNameCmd struct{}
type ListingUpdateBusinessNickNameHandler ¶
type ListingUpdateBusinessNickNameHandler cqrs.HandlerFunc[ListingUpdateBusinessNickNameCmd, *ListingUpdateBusinessNickNameRes]
func NewListingUpdateBusinessNickNameHandler ¶
func NewListingUpdateBusinessNickNameHandler() ListingUpdateBusinessNickNameHandler
type ListingUpdateBusinessNickNameRes ¶
type ListingUpdateBusinessNickNameRes struct{}
type ListingUpdateCmd ¶
type ListingUpdateCmd struct { Account account.Entity `json:"-"` Business listing.Business `json:"-"` ListingUUID string `json:"-"` Images []listing.Image `json:"images" validate:"min=1,max=10,dive,required"` Meta *ListingMetaRequest `json:"meta" validate:"required,dive"` CategoryUUIDs []string `json:"categoryUUIDs" validate:"required,min=1,max=30,dive,required,object_id"` ExtraPaymentChannels []payment.Channel `json:"extraPaymentChannels" bson:"extra_payment_channels" validate:"required,min=1,max=30,dive,required,oneof=at_the_door"` Features []listing.Feature `json:"features" validate:"required,min=0,max=30,dive,required"` Prices []listing.ListingPriceValidationDto `json:"prices" validate:"required,min=1,max=100,dive,required"` Location *listing.Location `json:"location" validate:"required,dive"` Boosts []listing.Boost `json:"boosts" validate:"omitempty,min=0,max=10,dive,required"` Validation *listing.Validation `json:"validation" validate:"required,dive"` Currency listing.Currency `json:"currency" validate:"required,oneof=TRY USD EUR"` }
type ListingUpdateHandler ¶
type ListingUpdateHandler cqrs.HandlerFunc[ListingUpdateCmd, *ListingUpdateRes]
func NewListingUpdateHandler ¶
func NewListingUpdateHandler(factory listing.Factory, repo listing.Repository, events listing.Events) ListingUpdateHandler
type ListingUpdateRes ¶
type ListingUpdateRes struct { }
type ListingValidateBookingHandler ¶
type ListingValidateBookingHandler cqrs.HandlerFunc[ListingValidateBookingCmd, *ListingValidateBookingRes]
func NewListingValidateBookingHandler ¶
func NewListingValidateBookingHandler(factory listing.Factory, repo listing.Repository, events listing.Events) ListingValidateBookingHandler
type ListingValidateBookingRes ¶
type ListingValidateBookingRes struct{}
type ListingValidatedCmd ¶
type ListingValidatedHandler ¶
type ListingValidatedHandler cqrs.HandlerFunc[ListingValidatedCmd, *ListingValidatedRes]
func NewListingValidatedHandler ¶
func NewListingValidatedHandler(repo listing.Repository) ListingValidatedHandler
type ListingValidatedRes ¶
type ListingValidatedRes struct{}
Click to show internal directories.
Click to hide internal directories.