resume

package
v0.0.0-...-9a83fbb Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 10 Imported by: 0

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 Project

type Project struct {
	ddd.AuditEntityBase `bson:",inline"`
	Name                string `bson:"name"`
	NormalizedName      string `bson:"normalizedName"`
	Icon                string `bson:"icon"`
	Description         string `bson:"description"`
	Url                 string `bson:"url"`
}

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

func NewRoleDto(p *Role) *RoleDto

type RoleRepository

type RoleRepository interface {
	ddd.Repository[Role]
}

Jump to

Keyboard shortcuts

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