Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(db *gorm.DB) repository_intf.AffinityRepository
Types ¶
type AffinityModel ¶
type AffinityModel struct { Id int `gorm:"column:id"` Project string `gorm:"column:project"` Env string `gorm:"column:env"` Name string `gorm:"column:name"` Affinity []byte `gorm:"column:affinity"` CreatedBy int `gorm:"column:created_by"` CreatedAt *time.Time `gorm:"column:created_at"` UpdatedAt *time.Time `gorm:"column:updated_at"` }
func (AffinityModel) FromAffinityEntity ¶
func (AffinityModel) FromAffinityEntity(a entity.Affinity) *AffinityModel
func (*AffinityModel) ToAffinityEntity ¶
func (am *AffinityModel) ToAffinityEntity() *entity.Affinity
type AffinityTemplateModel ¶
type AffinityTemplateModel struct { Id int `gorm:"column:id"` TemplateName string `gorm:"column:template_name"` Affinity []byte `gorm:"column:affinity"` CreatedAt *time.Time `gorm:"column:created_at"` UpdatedAt *time.Time `gorm:"column:updated_at"` }
func (AffinityTemplateModel) FromAffinityTemplateEntity ¶
func (AffinityTemplateModel) FromAffinityTemplateEntity(a entity.AffinityTemplate) *AffinityTemplateModel
func (*AffinityTemplateModel) ToAffinityTemplateEntity ¶
func (am *AffinityTemplateModel) ToAffinityTemplateEntity() *entity.AffinityTemplate
Click to show internal directories.
Click to hide internal directories.