Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProjectCollectionName = "resume_projects" RoleCollectionName = "resume_roles" NormalizedNameField = "normalizedName" )
Variables ¶
This section is empty.
Functions ¶
func HttpApiModule ¶
func HttpApiModule(sb *server.ServerBuiler)
func Module ¶
func Module(ab *app.AppBuilder)
Types ¶
type ProjectCreateInput ¶
type ProjectCreateInput struct { Name string `json:"name" binding:"required"` Icon string `json:"icon"` Url string `json:"url"` Description string `json:"description"` }
func (*ProjectCreateInput) ToEntity ¶
func (p *ProjectCreateInput) ToEntity() *Project
type ProjectDto ¶
type ProjectDto struct { Id string `json:"id"` Name string `json:"name"` Icon string `json:"icon"` Url string `json:"url"` Description string `json:"description"` }
func NewProjectDto ¶
func NewProjectDto(p *Project) *ProjectDto
type ProjectRepository ¶
type ProjectRepository interface { ddd.Repository[Project] }
type Role ¶
type Role struct { ddd.AuditEntityBase `bson:",inline"` Name string `bson:"name"` NormalizedName string `bson:"normalizedName"` Description string `bson:"description"` }
type RoleCreateInput ¶
type RoleCreateInput struct { Name string `json:"name" binding:"required"` Description string `json:"description"` }
func (*RoleCreateInput) ToEntity ¶
func (p *RoleCreateInput) ToEntity() *Role
type RoleDto ¶
type RoleDto struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` }
func NewRoleDto ¶
type RoleRepository ¶
type RoleRepository interface { ddd.Repository[Role] }
Click to show internal directories.
Click to hide internal directories.