Documentation ¶
Index ¶
- type ArticleService
- type CategoryService
- func (s *CategoryService) Create(category *models.Category) error
- func (s *CategoryService) DeletedById(id uint) error
- func (s *CategoryService) ExistByIdAndUserId(id, userId uint) (bool, error)
- func (s *CategoryService) FindByUserIdAndIsDeleted(userId uint, isDeleted int32) ([]*models.Category, error)
- func (s *CategoryService) GetById(id uint) (*models.Category, error)
- func (s *CategoryService) GetByUserAndTitle(userId uint, title string) (*models.Category, error)
- func (s *CategoryService) UnDeletedById(id uint) error
- func (s *CategoryService) Update(category *models.Category) error
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleService ¶
type ArticleService struct {
// contains filtered or unexported fields
}
func NewArticleService ¶
func NewArticleService(articleRepo *data.ArticleRepo) *ArticleService
type CategoryService ¶
type CategoryService struct {
// contains filtered or unexported fields
}
func NewCategoryService ¶
func NewCategoryService(categoryRepo *data.CategoryRepo) *CategoryService
func (*CategoryService) DeletedById ¶
func (s *CategoryService) DeletedById(id uint) error
func (*CategoryService) ExistByIdAndUserId ¶
func (s *CategoryService) ExistByIdAndUserId(id, userId uint) (bool, error)
func (*CategoryService) FindByUserIdAndIsDeleted ¶
func (*CategoryService) GetById ¶
func (s *CategoryService) GetById(id uint) (*models.Category, error)
func (*CategoryService) GetByUserAndTitle ¶
func (*CategoryService) UnDeletedById ¶
func (s *CategoryService) UnDeletedById(id uint) error
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(userRepo *data.UserRepo) *UserService
func (*UserService) ExistByEmail ¶
func (s *UserService) ExistByEmail(email string) (has bool, err error)
func (*UserService) GetByEmail ¶
func (s *UserService) GetByEmail(email string) (*models.User, error)
Click to show internal directories.
Click to hide internal directories.