Documentation
¶
Index ¶
- type Filter
- type SafetyDataRepo
- type SafetyDataRepoImpl
- func (s *SafetyDataRepoImpl) InsertOne(ctx context.Context, safetyData model.SafetyData) (resp model.SafetyData, err error)
- func (s *SafetyDataRepoImpl) List(ctx context.Context, filter Filter) (resp []model.SafetyData, err error)
- func (s *SafetyDataRepoImpl) Update(ctx context.Context, safetyData model.SafetyData, filter Filter) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafetyDataRepo ¶
type SafetyDataRepo interface {
List(ctx context.Context, filter Filter) ([]model.SafetyData, error)
InsertOne(ctx context.Context, safetyData model.SafetyData) (model.SafetyData, error)
Update(ctx context.Context, safetyData model.SafetyData, filter Filter) error
}
type SafetyDataRepoImpl ¶
type SafetyDataRepoImpl struct {
// contains filtered or unexported fields
}
func NewSafetyDataRepoImpl ¶
func NewSafetyDataRepoImpl(session *gorm.DB) *SafetyDataRepoImpl
func (*SafetyDataRepoImpl) InsertOne ¶
func (s *SafetyDataRepoImpl) InsertOne(ctx context.Context, safetyData model.SafetyData) (resp model.SafetyData, err error)
func (*SafetyDataRepoImpl) List ¶
func (s *SafetyDataRepoImpl) List(ctx context.Context, filter Filter) (resp []model.SafetyData, err error)
func (*SafetyDataRepoImpl) Update ¶
func (s *SafetyDataRepoImpl) Update(ctx context.Context, safetyData model.SafetyData, filter Filter) error
Click to show internal directories.
Click to hide internal directories.