command

package
v0.0.0-...-fd9b9a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContactCreateCmd

type ContactCreateCmd struct {
	Subject string `json:"subject" validate:"required,min=2,max=50"`
	Email   string `json:"email" validate:"required,email"`
	Message string `json:"message" validate:"required,min=10,max=500"`
}

type ContactCreateHandler

type ContactCreateHandler cqrs.HandlerFunc[ContactCreateCmd, *ContactCreateRes]

func NewContactCreateHandler

func NewContactCreateHandler(factory contact.Factory, repo contact.Repository) ContactCreateHandler

type ContactCreateRes

type ContactCreateRes struct{}

type ContactReadCmd

type ContactReadCmd struct {
	UUID string `params:"uuid" validate:"required,object_id"`
}

type ContactReadHandler

type ContactReadHandler cqrs.HandlerFunc[ContactReadCmd, *ContactReadRes]

func NewContactReadHandler

func NewContactReadHandler(factory contact.Factory, repo contact.Repository) ContactReadHandler

type ContactReadRes

type ContactReadRes struct{}

type FeedbackCreateCmd

type FeedbackCreateCmd struct {
	OS      string         `json:"os" validate:"required,min=2,max=50"`
	Version string         `json:"version" validate:"required,min=2,max=50"`
	User    *feedback.User `json:"-"`
	Message string         `json:"message" validate:"required,min=10,max=500"`
}

type FeedbackCreateRes

type FeedbackCreateRes struct{}

type FeedbackReadCmd

type FeedbackReadCmd struct {
	UUID string `params:"uuid" validate:"required,object_id"`
}

type FeedbackReadHandler

type FeedbackReadHandler cqrs.HandlerFunc[FeedbackReadCmd, *FeedbackReadRes]

func NewFeedbackReadHandler

func NewFeedbackReadHandler(factory feedback.Factory, repo feedback.Repository) FeedbackReadHandler

type FeedbackReadRes

type FeedbackReadRes struct{}

type SupportAddMsgCmd

type SupportAddMsgCmd struct {
	UUID     string `json:"-"`
	UserUUID string `json:"-"`
	UserName string `json:"-"`
	Message  string `json:"message" validate:"required,min=10,max=500"`
}

type SupportAddMsgHandler

type SupportAddMsgHandler cqrs.HandlerFunc[SupportAddMsgCmd, *SupportAddMsgRes]

func NewSupportAddMsgHandler

func NewSupportAddMsgHandler(repo support.Repo) SupportAddMsgHandler

type SupportAddMsgRes

type SupportAddMsgRes struct{}

type SupportAdminAddMsgCmd

type SupportAdminAddMsgCmd struct {
	UUID     string `json:"-"`
	UserUUID string `json:"-"`
	Message  string `json:"message" validate:"required,min=10,max=500"`
}

type SupportAdminAddMsgRes

type SupportAdminAddMsgRes struct{}

type SupportAdminCloseCmd

type SupportAdminCloseCmd struct {
	UUID string `params:"uuid" validate:"required,object_id"`
}

type SupportAdminCloseRes

type SupportAdminCloseRes struct{}

type SupportAdminDeleteCmd

type SupportAdminDeleteCmd struct {
	UUID string `params:"uuid" validate:"required,object_id"`
}

type SupportAdminDeleteRes

type SupportAdminDeleteRes struct{}

type SupportAdminRemoveMsgCmd

type SupportAdminRemoveMsgCmd struct {
	UUID      string `params:"uuid" validate:"required,object_id"`
	MessageId string `params:"message_id" validate:"required,uuid"`
}

type SupportAdminRemoveMsgRes

type SupportAdminRemoveMsgRes struct{}

type SupportAdminUpdateCmd

type SupportAdminUpdateCmd struct {
	UUID    string `json:"-"`
	Subject string `json:"subject" validate:"required,min=10,max=100"`
}

type SupportAdminUpdateRes

type SupportAdminUpdateRes struct{}

type SupportCloseCmd

type SupportCloseCmd struct {
	UUID     string `params:"uuid" validate:"required,object_id"`
	UserUUID string `json:"-"`
	UserName string `json:"-"`
}

type SupportCloseHandler

type SupportCloseHandler cqrs.HandlerFunc[SupportCloseCmd, *SupportCloseRes]

func NewSupportCloseHandler

func NewSupportCloseHandler(repo support.Repo) SupportCloseHandler

type SupportCloseRes

type SupportCloseRes struct{}

type SupportCreateCmd

type SupportCreateCmd struct {
	UserUUID string `json:"-"`
	UserName string `json:"-"`
	Subject  string `json:"subject" validate:"required,min=3,max=100"`
	Message  string `json:"message" validate:"required,min=3,max=1000"`
}

type SupportCreateHandler

type SupportCreateHandler cqrs.HandlerFunc[SupportCreateCmd, *SupportCreateRes]

func NewSupportCreateHandler

func NewSupportCreateHandler(factory support.Factory, repo support.Repo) SupportCreateHandler

type SupportCreateRes

type SupportCreateRes struct {
	UUID string `json:"uuid"`
}

type SupportDeleteCmd

type SupportDeleteCmd struct {
	UUID     string `params:"uuid" validate:"required,object_id"`
	UserUUID string `json:"-"`
	UserName string `json:"-"`
}

type SupportDeleteHandler

type SupportDeleteHandler cqrs.HandlerFunc[SupportDeleteCmd, *SupportDeleteRes]

func NewSupportDeleteHandler

func NewSupportDeleteHandler(repo support.Repo) SupportDeleteHandler

type SupportDeleteRes

type SupportDeleteRes struct{}

type SupportDetailCmd

type SupportDetailCmd struct {
	UUID string `params:"uuid" validate:"required,object_id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL