Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationRepository ¶
type NotificationRepository struct {
// contains filtered or unexported fields
}
func CreateNotificationRepository ¶
func CreateNotificationRepository(conn *gorm.DB) *NotificationRepository
func (*NotificationRepository) Create ¶
func (n *NotificationRepository) Create(notification *entity.Notification) *gorm.DB
func (*NotificationRepository) FindByUser ¶
func (n *NotificationRepository) FindByUser(user *entity.User, limit int) []*entity.Notification
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func CreateUserRepository ¶
func CreateUserRepository(conn *gorm.DB) *UserRepository
func (*UserRepository) Create ¶
func (u *UserRepository) Create(user *entity.User)
func (*UserRepository) FindOneByUuid ¶
func (*UserRepository) Save ¶
func (u *UserRepository) Save(user *entity.User)
Click to show internal directories.
Click to hide internal directories.