Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactForm ¶
type ContactForm struct { ID vo.ContactFormID `bson:"_id" json:"id"` Name vo.ContactFormName `json:"name"` Email vo.ContactFormEmail `json:"email"` Message vo.ContactFormMessage `json:"message"` Files []*File `json:"files"` CreatedAt time.Time `bson:"createdAt" json:"createdAt"` }
func NewContactForm ¶
func NewContactForm(req ContactFormCreateRequest) (*ContactForm, error)
type ContactFormCreateRequest ¶
type ContactFormCreateRequest struct { ID string `json:"-"` Now time.Time `json:"-"` Name vo.ContactFormName `json:"name"` Email vo.ContactFormEmail `json:"email"` Message vo.ContactFormMessage `json:"message"` Files []*File `json:"files"` }
func (ContactFormCreateRequest) Validate ¶
func (r ContactFormCreateRequest) Validate() error
type File ¶
type File struct { ID vo.FileID `bson:"_id" json:"id"` Name vo.FileName `bson:"name" json:"name"` Path vo.FilePath `bson:"path" json:"path"` Created time.Time `bson:"created" json:"created"` }
func NewFile ¶
func NewFile(req FileCreateRequest) (*File, error)
type FileCreateRequest ¶
type FileCreateRequest struct { ID string `json:"-"` Name vo.FileName `json:"name"` Path vo.FilePath `json:"path"` Now time.Time `json:"-"` }
func (FileCreateRequest) Validate ¶
func (r FileCreateRequest) Validate() error
type Role ¶
type Role struct { ID vo.RoleID `bson:"_id" json:"id"` Code vo.RoleCode `bson:"code" json:"code"` Name vo.RoleName `bson:"name" json:"name"` }
func NewRole ¶
func NewRole(req RoleCreateRequest) (*Role, error)
type RoleCreateRequest ¶
type RoleCreateRequest struct { ID string `json:"-"` Code vo.RoleCode `json:"code"` Name vo.RoleName `json:"name"` }
func (RoleCreateRequest) Validate ¶
func (r RoleCreateRequest) Validate() error
type TelegramChatID ¶
type TelegramChatID struct { ID vo.TelegramChatIDID `bson:"_id" json:"id"` ChatID string `bson:"chat_id" json:"chat_id"` RoleID string `bson:"role_id" json:"role_id"` }
func NewChatID ¶
func NewChatID(req TelegramChatIDCreateRequest) (*TelegramChatID, error)
type TelegramChatIDCreateRequest ¶
type TelegramChatIDCreateRequest struct { ID string `json:"-"` ChatID string `json:"chat_id"` RoleID string `json:"role_id"` }
func (TelegramChatIDCreateRequest) Validate ¶
func (r TelegramChatIDCreateRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.