Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDbInstance ¶
func MigrateWithDelete ¶
Types ¶
type SingletonDbInstance ¶
type SingletonDbInstance struct {
// contains filtered or unexported fields
}
type TimeFields ¶
type User ¶
type User struct { IdField Name string TimeFields }
type UsersRepository ¶
type UsersRepository struct {
*Rdb
}
func NewUsersRepository ¶
func NewUsersRepository(db *gorm.DB) UsersRepository
func (UsersRepository) Delete ¶
func (u UsersRepository) Delete(id string) error
Click to show internal directories.
Click to hide internal directories.