Documentation ¶
Index ¶
- Constants
- Variables
- func AutoMigrateTable(dbIns *gorm.DB)
- func NewApiGroupRepo(data *Data, logger log.Logger) biz.ApiGroupRepo
- func NewApiRepo(data *Data, logger log.Logger) biz.ApiRepo
- func NewArticleContentRepo(data *Data, logger log.Logger) biz.ArticleContentRepo
- func NewArticleRepo(data *Data, logger log.Logger) biz.ArticleRepo
- func NewArticleResourceRepo(data *Data, logger log.Logger) biz.ArticleResourceRepo
- func NewArticleTagsRepo(data *Data, logger log.Logger) biz.ArticleTagsRepo
- func NewArticleVisitorRepo(data *Data, logger log.Logger) biz.ArticleVisitorRepo
- func NewCasbinRuleRepo(cdata *CasbinData, logger log.Logger) biz.CasbinRuleRepo
- func NewCategoryRepo(data *Data, logger log.Logger) biz.CategoryRepo
- func NewCommentAgentRepo(data *Data, logger log.Logger) biz.CommentAgentRepo
- func NewCommentContentRepo(data *Data, logger log.Logger) biz.CommentContentRepo
- func NewCommentIndexRepo(data *Data, logger log.Logger) biz.CommentIndexRepo
- func NewFileLibConfigRepo(data *Data, logger log.Logger) biz.FileLibConfigRepo
- func NewFileLibRepo(data *Data, logger log.Logger) biz.FileLibRepo
- func NewFileLibTypeRepo(data *Data, logger log.Logger) biz.FileLibTypeRepo
- func NewLinkRepo(data *Data, logger log.Logger) biz.LinkRepo
- func NewMenusAdminRepo(data *Data, logger log.Logger) biz.MenusAdminRepo
- func NewMenusAgentRepo(data *Data, logger log.Logger) biz.MenusAgentRepo
- func NewMenusRepo(data *Data, logger log.Logger) biz.MenusRepo
- func NewRoleApiRepo(data *Data, logger log.Logger) biz.RoleApiRepo
- func NewRoleMenusRepo(data *Data, logger log.Logger) biz.RoleMenusRepo
- func NewRoleRepo(data *Data, logger log.Logger) biz.RoleRepo
- func NewShortLinkRepo(data *Data, logger log.Logger) biz.ShortLinkRepo
- func NewSiteConfigRepo(data *Data, logger log.Logger) biz.SiteConfigRepo
- func NewTagsRepo(data *Data, logger log.Logger) biz.TagsRepo
- func NewUserRepo(data *Data, logger log.Logger) biz.UserRepo
- func NewUserRoleRepo(data *Data, logger log.Logger) biz.UserRoleRepo
- type CasbinData
- type CommentAgentRepo
- func (r *CommentAgentRepo) FindByID(cxt context.Context, id uint64) (*biz.CommentAgentDO, error)
- func (r *CommentAgentRepo) Save(ctx context.Context, g *biz.CommentAgentDO) (*biz.CommentAgentDO, error)
- func (r *CommentAgentRepo) Update(ctx context.Context, g *biz.CommentAgentDO) (*biz.CommentAgentDO, error)
- func (r *CommentAgentRepo) UpdateAddCountById(ctx context.Context, id uint64, isRoot bool) error
- func (r *CommentAgentRepo) UpdateMinusCountById(ctx context.Context, id uint64, isRoot bool) error
- type CommentContentRepo
- func (r *CommentContentRepo) CountByState(ctx context.Context, state int) (int64, error)
- func (r *CommentContentRepo) DeleteList(ctx context.Context, ids []uint64) error
- func (r *CommentContentRepo) FindAllByParentID(cxt context.Context, id uint64, size int) ([]*biz.CommentContentDO, error)
- func (r *CommentContentRepo) FindByID(cxt context.Context, id uint64) (*biz.CommentContentDO, error)
- func (r *CommentContentRepo) FindParentByID(cxt context.Context, id uint64) (*biz.CommentContentDO, error)
- func (r *CommentContentRepo) ListAll(ctx context.Context, opts biz.CommentContentDOListOption) (*biz.CommentContentDOList, error)
- func (r *CommentContentRepo) Save(ctx context.Context, g *biz.CommentContentDO) (*biz.CommentContentDO, error)
- func (r *CommentContentRepo) UpdaeCommentById(cxt context.Context, id uint64, comment string) error
- func (r *CommentContentRepo) UpdaeEmailStateById(cxt context.Context, id uint64, satae int32) error
- func (r *CommentContentRepo) UpdaeStateByIDs(cxt context.Context, ids []uint64, state int) error
- func (r *CommentContentRepo) Update(ctx context.Context, g *biz.CommentContentDO) (*biz.CommentContentDO, error)
- type CommentIndexRepo
- func (r *CommentIndexRepo) DeleteList(ctx context.Context, ids []uint64) error
- func (r *CommentIndexRepo) FindAllByParentID(cxt context.Context, id uint64) ([]*biz.CommentIndexDO, error)
- func (r *CommentIndexRepo) FindByID(cxt context.Context, id uint64) (*biz.CommentIndexDO, error)
- func (r *CommentIndexRepo) Save(ctx context.Context, g *biz.CommentIndexDO) (*biz.CommentIndexDO, error)
- func (r *CommentIndexRepo) UpdaeStateByIDs(cxt context.Context, ids []uint64, state int) error
- func (r *CommentIndexRepo) Update(ctx context.Context, g *biz.CommentIndexDO) (*biz.CommentIndexDO, error)
- func (r *CommentIndexRepo) UpdateAddCountById(ctx context.Context, id uint64, isRoot bool) error
- func (r *CommentIndexRepo) UpdateMinusCountById(ctx context.Context, id uint64, isRoot bool) error
- func (r *CommentIndexRepo) UpdateObjIdByAgentIds(ctx context.Context) error
- type Data
Constants ¶
View Source
const POST_VIEW_COUNT = "post_viewCount_"
Variables ¶
View Source
var ( // ErrApiNotFound is api not found. ErrResourceNotFound = errors.NotFound("101404A", "测试异常效果") )
View Source
var ProviderSet = wire.NewSet(NewData, NewCasbinData, NewCasbinRuleRepo, NewUserRoleRepo, NewRoleMenusRepo, NewRoleApiRepo, NewUserRepo, NewRoleRepo, NewSiteConfigRepo, NewMenusAdminRepo, NewApiRepo, NewApiGroupRepo, NewFileLibTypeRepo, NewFileLibConfigRepo, NewFileLibRepo, NewArticleRepo, NewArticleContentRepo, NewCommentAgentRepo, NewCommentIndexRepo, NewCommentContentRepo, NewLinkRepo, NewShortLinkRepo, NewMenusRepo, NewMenusAgentRepo, NewTagsRepo, NewCategoryRepo, NewArticleTagsRepo, NewArticleVisitorRepo, NewArticleResourceRepo, )
ProviderSet is cdata providers.
Functions ¶
func NewApiGroupRepo ¶
func NewApiGroupRepo(data *Data, logger log.Logger) biz.ApiGroupRepo
NewApiGroupRepo .
func NewArticleContentRepo ¶
func NewArticleContentRepo(data *Data, logger log.Logger) biz.ArticleContentRepo
NewArticleContentRepo .
func NewArticleRepo ¶
func NewArticleRepo(data *Data, logger log.Logger) biz.ArticleRepo
NewArticleRepo .
func NewArticleResourceRepo ¶
func NewArticleResourceRepo(data *Data, logger log.Logger) biz.ArticleResourceRepo
func NewArticleTagsRepo ¶
func NewArticleTagsRepo(data *Data, logger log.Logger) biz.ArticleTagsRepo
func NewArticleVisitorRepo ¶
func NewArticleVisitorRepo(data *Data, logger log.Logger) biz.ArticleVisitorRepo
func NewCasbinRuleRepo ¶
func NewCasbinRuleRepo(cdata *CasbinData, logger log.Logger) biz.CasbinRuleRepo
func NewCategoryRepo ¶
func NewCategoryRepo(data *Data, logger log.Logger) biz.CategoryRepo
NewCategoryRepo .
func NewCommentAgentRepo ¶
func NewCommentAgentRepo(data *Data, logger log.Logger) biz.CommentAgentRepo
NewCommentAgentRepo .
func NewCommentContentRepo ¶
func NewCommentContentRepo(data *Data, logger log.Logger) biz.CommentContentRepo
NewCommentIndexRepo .
func NewCommentIndexRepo ¶
func NewCommentIndexRepo(data *Data, logger log.Logger) biz.CommentIndexRepo
NewCommentIndexRepo .
func NewFileLibConfigRepo ¶
func NewFileLibConfigRepo(data *Data, logger log.Logger) biz.FileLibConfigRepo
NewFileLibConfigRepo .
func NewFileLibRepo ¶
func NewFileLibRepo(data *Data, logger log.Logger) biz.FileLibRepo
NewFileLibRepo .
func NewFileLibTypeRepo ¶
func NewFileLibTypeRepo(data *Data, logger log.Logger) biz.FileLibTypeRepo
NewFileLibTypeRepo .
func NewMenusAdminRepo ¶
func NewMenusAdminRepo(data *Data, logger log.Logger) biz.MenusAdminRepo
NewMenusAdminRepo .
func NewMenusAgentRepo ¶
func NewMenusAgentRepo(data *Data, logger log.Logger) biz.MenusAgentRepo
func NewRoleApiRepo ¶
func NewRoleApiRepo(data *Data, logger log.Logger) biz.RoleApiRepo
func NewRoleMenusRepo ¶
func NewRoleMenusRepo(data *Data, logger log.Logger) biz.RoleMenusRepo
func NewShortLinkRepo ¶
func NewShortLinkRepo(data *Data, logger log.Logger) biz.ShortLinkRepo
func NewSiteConfigRepo ¶
func NewSiteConfigRepo(data *Data, logger log.Logger) biz.SiteConfigRepo
NewSiteConfigRepo .
func NewUserRoleRepo ¶
func NewUserRoleRepo(data *Data, logger log.Logger) biz.UserRoleRepo
Types ¶
type CasbinData ¶
type CasbinData struct { Enf *casbin.SyncedEnforcer // contains filtered or unexported fields }
func NewCasbinData ¶
NewCasbinData .
type CommentAgentRepo ¶
type CommentAgentRepo struct {
// contains filtered or unexported fields
}
func (*CommentAgentRepo) FindByID ¶
func (r *CommentAgentRepo) FindByID(cxt context.Context, id uint64) (*biz.CommentAgentDO, error)
func (*CommentAgentRepo) Save ¶
func (r *CommentAgentRepo) Save(ctx context.Context, g *biz.CommentAgentDO) (*biz.CommentAgentDO, error)
func (*CommentAgentRepo) Update ¶
func (r *CommentAgentRepo) Update(ctx context.Context, g *biz.CommentAgentDO) (*biz.CommentAgentDO, error)
func (*CommentAgentRepo) UpdateAddCountById ¶
func (*CommentAgentRepo) UpdateMinusCountById ¶
type CommentContentRepo ¶
type CommentContentRepo struct {
// contains filtered or unexported fields
}
func (*CommentContentRepo) CountByState ¶
func (*CommentContentRepo) DeleteList ¶
func (r *CommentContentRepo) DeleteList(ctx context.Context, ids []uint64) error
func (*CommentContentRepo) FindAllByParentID ¶
func (r *CommentContentRepo) FindAllByParentID(cxt context.Context, id uint64, size int) ([]*biz.CommentContentDO, error)
func (*CommentContentRepo) FindByID ¶
func (r *CommentContentRepo) FindByID(cxt context.Context, id uint64) (*biz.CommentContentDO, error)
func (*CommentContentRepo) FindParentByID ¶
func (r *CommentContentRepo) FindParentByID(cxt context.Context, id uint64) (*biz.CommentContentDO, error)
func (*CommentContentRepo) ListAll ¶
func (r *CommentContentRepo) ListAll(ctx context.Context, opts biz.CommentContentDOListOption) (*biz.CommentContentDOList, error)
func (*CommentContentRepo) Save ¶
func (r *CommentContentRepo) Save(ctx context.Context, g *biz.CommentContentDO) (*biz.CommentContentDO, error)
func (*CommentContentRepo) UpdaeCommentById ¶
func (*CommentContentRepo) UpdaeEmailStateById ¶
func (*CommentContentRepo) UpdaeStateByIDs ¶
func (*CommentContentRepo) Update ¶
func (r *CommentContentRepo) Update(ctx context.Context, g *biz.CommentContentDO) (*biz.CommentContentDO, error)
type CommentIndexRepo ¶
type CommentIndexRepo struct {
// contains filtered or unexported fields
}
func (*CommentIndexRepo) DeleteList ¶
func (r *CommentIndexRepo) DeleteList(ctx context.Context, ids []uint64) error
func (*CommentIndexRepo) FindAllByParentID ¶
func (r *CommentIndexRepo) FindAllByParentID(cxt context.Context, id uint64) ([]*biz.CommentIndexDO, error)
func (*CommentIndexRepo) FindByID ¶
func (r *CommentIndexRepo) FindByID(cxt context.Context, id uint64) (*biz.CommentIndexDO, error)
func (*CommentIndexRepo) Save ¶
func (r *CommentIndexRepo) Save(ctx context.Context, g *biz.CommentIndexDO) (*biz.CommentIndexDO, error)
func (*CommentIndexRepo) UpdaeStateByIDs ¶
func (*CommentIndexRepo) Update ¶
func (r *CommentIndexRepo) Update(ctx context.Context, g *biz.CommentIndexDO) (*biz.CommentIndexDO, error)
func (*CommentIndexRepo) UpdateAddCountById ¶
func (*CommentIndexRepo) UpdateMinusCountById ¶
func (*CommentIndexRepo) UpdateObjIdByAgentIds ¶
func (r *CommentIndexRepo) UpdateObjIdByAgentIds(ctx context.Context) error
Source Files ¶
- api.go
- apis_group.go
- article.go
- article_content.go
- article_resource.go
- article_tags.go
- article_visitor.go
- casbin_data.go
- casbin_rule.go
- category.go
- comment_agent.go
- comment_content.go
- comment_index.go
- data.go
- file_lib.go
- file_lib_config.go
- file_lib_type.go
- link.go
- menus.go
- menus_admin.go
- menus_agent.go
- role.go
- role_api.go
- role_menus_admin.go
- short_link.go
- site_config.go
- tags.go
- user.go
- user_role.go
Click to show internal directories.
Click to hide internal directories.