Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoverySession ¶
type DiscoverySession struct { ID vo.DiscoverySessionID `bson:"_id" json:"id"` Name vo.DiscoverySessionName `bson:"name" json:"name"` Email vo.DiscoverySessionEmail `bson:"email" json:"email"` Date vo.DiscoverySessionDate `bson:"date" json:"date"` ProjectDetails vo.DiscoverySessionProjectDetails `bson:"projectDetails" json:"projectDetails"` Budget vo.DiscoverySessionBudget `bson:"budget" json:"budget"` Files []*File `json:"files"` Created time.Time `bson:"created" json:"created"` Updated time.Time `bson:"updated" json:"updated"` }
func NewDiscoverySession ¶
func NewDiscoverySession(req DiscoverySessionCreateRequest) (*DiscoverySession, error)
type DiscoverySessionCreateRequest ¶
type DiscoverySessionCreateRequest struct { ID string `json:"-"` Now time.Time `json:"-"` Name vo.DiscoverySessionName `json:"name"` Email vo.DiscoverySessionEmail `json:"email"` Date vo.DiscoverySessionDate `json:"date"` ProjectDetails vo.DiscoverySessionProjectDetails `json:"projectDetails"` Budget vo.DiscoverySessionBudget `json:"budget"` Files []*File `json:"files"` }
func (DiscoverySessionCreateRequest) Validate ¶
func (r DiscoverySessionCreateRequest) 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.