Documentation
¶
Index ¶
- type CacheRepository
- type CommunityMemberRepository
- func (r *CommunityMemberRepository) Delete(Member entity.Member) error
- func (r *CommunityMemberRepository) FindByCommunityId(id string) ([]entity.Member, error)
- func (r *CommunityMemberRepository) Insert(Member entity.Member) error
- func (r *CommunityMemberRepository) Update(Member entity.Member) error
- type CommunityRepository
- func (r *CommunityRepository) Delete(Community entity.Community) error
- func (r *CommunityRepository) FindAll() ([]entity.Community, error)
- func (r *CommunityRepository) FindById(id string) (entity.Community, error)
- func (r *CommunityRepository) FindByInvoiceId(id string) (entity.Community, error)
- func (r *CommunityRepository) Insert(Community entity.Community) error
- func (r *CommunityRepository) Update(Community entity.Community) error
- type InvoiceRepository
- type PostRepository
- func (r *PostRepository) Delete(Post entity.Post) error
- func (r *PostRepository) FindAllImageByCommunity(id string) ([]entity.Post, error)
- func (r *PostRepository) FindByCategory(id int) ([]entity.Post, error)
- func (r *PostRepository) Insert(Post entity.Post) error
- func (r *PostRepository) Update(Post entity.Post) error
- type TerminalRepository
- type UserRepository
- func (r *UserRepository) Delete(user entity.User) error
- func (r *UserRepository) FindByEmail(email string) (entity.User, error)
- func (r *UserRepository) FindById(id string) (entity.User, error)
- func (r *UserRepository) FindManyById(ids []string) ([]entity.User, error)
- func (r *UserRepository) Insert(user entity.User) error
- func (r *UserRepository) Update(user entity.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheRepository ¶
type CacheRepository interface {
Get(key string) ([]byte, error)
Set(key string, entry []byte) error
Delete(key string) error
}
func NewCacheRepository ¶
func NewCacheRepository() CacheRepository
type CommunityMemberRepository ¶
type CommunityMemberRepository struct {
// contains filtered or unexported fields
}
func NewCommunityMember ¶
func NewCommunityMember(DB *gorm.DB) CommunityMemberRepository
func (*CommunityMemberRepository) Delete ¶
func (r *CommunityMemberRepository) Delete(Member entity.Member) error
func (*CommunityMemberRepository) FindByCommunityId ¶
func (r *CommunityMemberRepository) FindByCommunityId(id string) ([]entity.Member, error)
type CommunityRepository ¶
type CommunityRepository struct {
// contains filtered or unexported fields
}
func NewCommunity ¶
func NewCommunity(DB *gorm.DB) CommunityRepository
func (*CommunityRepository) Delete ¶
func (r *CommunityRepository) Delete(Community entity.Community) error
func (*CommunityRepository) FindAll ¶
func (r *CommunityRepository) FindAll() ([]entity.Community, error)
func (*CommunityRepository) FindById ¶
func (r *CommunityRepository) FindById(id string) (entity.Community, error)
func (*CommunityRepository) FindByInvoiceId ¶
func (r *CommunityRepository) FindByInvoiceId(id string) (entity.Community, error)
type InvoiceRepository ¶
type InvoiceRepository struct {
// contains filtered or unexported fields
}
func NewInvoice ¶
func NewInvoice(DB *gorm.DB) InvoiceRepository
type PostRepository ¶
type PostRepository struct {
// contains filtered or unexported fields
}
func NewPost ¶
func NewPost(DB *gorm.DB) PostRepository
func (*PostRepository) FindAllImageByCommunity ¶
func (r *PostRepository) FindAllImageByCommunity(id string) ([]entity.Post, error)
func (*PostRepository) FindByCategory ¶
func (r *PostRepository) FindByCategory(id int) ([]entity.Post, error)
type TerminalRepository ¶
type TerminalRepository struct {
// contains filtered or unexported fields
}
func NewTerminal ¶
func NewTerminal(DB *gorm.DB) TerminalRepository
func (*TerminalRepository) Delete ¶
func (r *TerminalRepository) Delete(terminal entity.Terminal) error
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUser ¶
func NewUser(DB *gorm.DB) UserRepository
func (*UserRepository) FindByEmail ¶
func (r *UserRepository) FindByEmail(email string) (entity.User, error)
func (*UserRepository) FindManyById ¶
func (r *UserRepository) FindManyById(ids []string) ([]entity.User, error)
Click to show internal directories.
Click to hide internal directories.