Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(db *gorm.DB) repository_intf.ProjectRepository
Types ¶
type ProjectModel ¶
type ProjectModel struct { Id int `gorm:"column:id"` Name string `gorm:"column:name"` Description string `gorm:"column:description"` CreatedAt *time.Time `gorm:"column:created_at"` UpdatedAt *time.Time `gorm:"column:updated_at"` }
func (ProjectModel) FromProjectEntity ¶
func (ProjectModel) FromProjectEntity(p entity.Project) *ProjectModel
func (*ProjectModel) ToProjectEntity ¶
func (pm *ProjectModel) ToProjectEntity() *entity.Project
Click to show internal directories.
Click to hide internal directories.