Documentation
¶
Index ¶
- type BaseRepoImpl
- type FavorRepoImpl
- func (r *FavorRepoImpl) Create(ctx context.Context, favor model.Favor) error
- func (r *FavorRepoImpl) Del(ctx context.Context, f model.Favor) error
- func (r *FavorRepoImpl) Get(ctx context.Context, q *dto.Query) ([]model.Favor, error)
- func (r *FavorRepoImpl) Sites(ctx context.Context, q *dto.Query) []string
- type NodeRepoImpl
- func (r *NodeRepoImpl) Create(ctx context.Context, node model.Node) error
- func (r *NodeRepoImpl) Del(ctx context.Context, node model.Node) error
- func (r *NodeRepoImpl) Get(ctx context.Context, q *dto.Query) ([]model.Node, error)
- func (r *NodeRepoImpl) Update(ctx context.Context, node model.Node, data map[string]interface{}) error
- type SiteRepoImpl
- func (s *SiteRepoImpl) Create(ctx context.Context, site model.Site) error
- func (s *SiteRepoImpl) Del(ctx context.Context, site model.Site) error
- func (r *SiteRepoImpl) Get(ctx context.Context, q *dto.Query) ([]model.Site, error)
- func (s *SiteRepoImpl) GetNews(ctx context.Context, k string, kk string) (model.News, error)
- func (s *SiteRepoImpl) SaveNews(ctx context.Context, site string, tag string, data string) error
- func (s *SiteRepoImpl) Update(ctx context.Context, site model.Site, data map[string]interface{}) error
- type UserRepoImpl
- func (r *UserRepoImpl) CreateUser(ctx context.Context, user model.User) error
- func (r *UserRepoImpl) GetAll(ctx context.Context) ([]model.User, error)
- func (r *UserRepoImpl) GetUser(ctx context.Context, query *dto.Query) (model.User, error)
- func (r *UserRepoImpl) GetUsers(ctx context.Context, query *dto.Query) ([]model.User, error)
- func (r *UserRepoImpl) Update(ctx context.Context, user model.User, data map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRepoImpl ¶
type BaseRepoImpl struct {
// contains filtered or unexported fields
}
func NewBaseImpl ¶
func NewBaseImpl() (BaseRepoImpl, error)
type FavorRepoImpl ¶
type FavorRepoImpl struct {
BaseRepoImpl
}
func NewFavorRepo ¶
func NewFavorRepo() *FavorRepoImpl
type NodeRepoImpl ¶
type NodeRepoImpl struct {
BaseRepoImpl
}
func NewNodeRepo ¶
func NewNodeRepo() *NodeRepoImpl
type SiteRepoImpl ¶
type SiteRepoImpl struct { BaseRepoImpl // contains filtered or unexported fields }
func NewSiteRepo ¶
func NewSiteRepo() *SiteRepoImpl
type UserRepoImpl ¶
type UserRepoImpl struct {
BaseRepoImpl
}
func NewUserRepo ¶
func NewUserRepo() *UserRepoImpl
func (*UserRepoImpl) CreateUser ¶
Click to show internal directories.
Click to hide internal directories.