Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProfileRepository ¶
type ProfileRepository interface { Exist(model *account_entities.ProfileORM) bool List(limit, page uint32, sort string, model *account_entities.ProfileORM) (total uint32, profiles []*account_entities.ProfileORM, err error) Get(id string) (*account_entities.ProfileORM, error) GetByUserID(userId string) (*account_entities.ProfileORM, error) Create(model *account_entities.ProfileORM) error }
ProfileRepository interface
func NewProfileRepository ¶
func NewProfileRepository(db *gorm.DB) ProfileRepository
NewProfileRepository returns an instance of `ProfileRepository`.
type UserRepository ¶
type UserRepository interface { Exist(model *account_entities.UserORM) bool List(limit, page uint32, sort string, model *account_entities.UserORM) (total uint32, users []*account_entities.UserORM, err error) Get(id string) (*account_entities.UserORM, error) Create(model *account_entities.UserORM) error Update(id string, model *account_entities.UserORM) error Delete(model *account_entities.UserORM) error }
UserRepository interface
func NewUserRepository ¶
func NewUserRepository(db *gorm.DB) UserRepository
NewUserRepository returns an instance of `UserRepository`.
Click to show internal directories.
Click to hide internal directories.