Documentation ¶
Index ¶
- Variables
- func AutoMigrate(db *gorm.DB) error
- type LogRepository
- type LogRepositoryImp
- func (s *LogRepositoryImp) Create(data *models.Log) (err error)
- func (s *LogRepositoryImp) Delete(ids []int64) (err error)
- func (s *LogRepositoryImp) Get(id int64) (data *models.Log, err error)
- func (s *LogRepositoryImp) List(q string, offset int64, limit int64, ordering string, data interface{}) (n int64, err error)
- func (s *LogRepositoryImp) Update(id int64, info map[string]interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RepositorySet = wire.NewSet(NewLoggingRepository)
Functions ¶
func AutoMigrate ¶
Types ¶
type LogRepository ¶
type LogRepository interface { Get(id int64) (*models.Log, error) List(q string, offset int64, limit int64, ordering string, data interface{}) (int64, error) Create(*models.Log) error Update(id int64, info map[string]interface{}) (err error) Delete(ids []int64) (err error) }
func NewLoggingRepository ¶
func NewLoggingRepository(db *gorm.DB) LogRepository
Click to show internal directories.
Click to hide internal directories.