repository

package
v0.0.0-...-d94427d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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)

func (*CommunityMemberRepository) Insert

func (r *CommunityMemberRepository) Insert(Member entity.Member) error

func (*CommunityMemberRepository) Update

func (r *CommunityMemberRepository) Update(Member 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)

func (*CommunityRepository) Insert

func (r *CommunityRepository) Insert(Community entity.Community) error

func (*CommunityRepository) Update

func (r *CommunityRepository) Update(Community entity.Community) error

type InvoiceRepository

type InvoiceRepository struct {
	// contains filtered or unexported fields
}

func NewInvoice

func NewInvoice(DB *gorm.DB) InvoiceRepository

func (*InvoiceRepository) Delete

func (r *InvoiceRepository) Delete(Invoice entity.Invoice) error

func (*InvoiceRepository) Insert

func (r *InvoiceRepository) Insert(Invoice entity.Invoice) error

func (*InvoiceRepository) Update

func (r *InvoiceRepository) Update(Invoice entity.Invoice) error

type PostRepository

type PostRepository struct {
	// contains filtered or unexported fields
}

func NewPost

func NewPost(DB *gorm.DB) PostRepository

func (*PostRepository) Delete

func (r *PostRepository) Delete(Post entity.Post) error

func (*PostRepository) FindAllImageByCommunity

func (r *PostRepository) FindAllImageByCommunity(id string) ([]entity.Post, error)

func (*PostRepository) FindByCategory

func (r *PostRepository) FindByCategory(id int) ([]entity.Post, error)

func (*PostRepository) Insert

func (r *PostRepository) Insert(Post entity.Post) error

func (*PostRepository) Update

func (r *PostRepository) Update(Post 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

func (*TerminalRepository) Insert

func (r *TerminalRepository) Insert(terminal entity.Terminal) error

func (*TerminalRepository) Update

func (r *TerminalRepository) Update(terminal entity.Terminal) error

type UserRepository

type UserRepository struct {
	// contains filtered or unexported fields
}

func NewUser

func NewUser(DB *gorm.DB) UserRepository

func (*UserRepository) Delete

func (r *UserRepository) Delete(user entity.User) error

func (*UserRepository) FindByEmail

func (r *UserRepository) FindByEmail(email string) (entity.User, error)

func (*UserRepository) FindById

func (r *UserRepository) FindById(id string) (entity.User, error)

func (*UserRepository) FindManyById

func (r *UserRepository) FindManyById(ids []string) ([]entity.User, error)

func (*UserRepository) Insert

func (r *UserRepository) Insert(user entity.User) error

func (*UserRepository) Update

func (r *UserRepository) Update(user entity.User) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址