hierarchy

package
v0.0.0-...-29fb5a7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSortArr

func NewSortArr(articles []hierarchy.ResArticle)

根据数组中的created字段[time.Time]倒叙排序

func SortArr

func SortArr(articles []hierarchy.FdArticle)

根据数组中的created字段[time.Time]倒叙排序

func SortHotSearch

func SortHotSearch(articles []hierarchy.HotSearch)

根据数组中的SearchNumber字段[int]倒叙排序

Types

type CommentService

type CommentService struct {
}

func (*CommentService) CreateComment

func (commentService *CommentService) CreateComment(comment *hierarchy.Comment) (err error)

CreateComment 创建Comment记录 Author [piexlmax](https://github.com/piexlmax)

func (*CommentService) DeleteComment

func (commentService *CommentService) DeleteComment(comment hierarchy.Comment) (err error)

DeleteComment 删除Comment记录 Author [piexlmax](https://github.com/piexlmax)

func (*CommentService) DeleteCommentByIds

func (commentService *CommentService) DeleteCommentByIds(ids request.IdsReq) (err error)

DeleteCommentByIds 批量删除Comment记录 Author [piexlmax](https://github.com/piexlmax)

func (*CommentService) GetComment

func (commentService *CommentService) GetComment(id uint) (comment hierarchy.Comment, err error)

GetComment 根据id获取Comment记录 Author [piexlmax](https://github.com/piexlmax)

func (*CommentService) GetCommentInfoList

func (commentService *CommentService) GetCommentInfoList(info hierarchyReq.CommentSearch) (list any, err error)

GetCommentInfoList 分页获取Comment记录 Author [piexlmax](https://github.com/piexlmax)

func (*CommentService) UpdateComment

func (commentService *CommentService) UpdateComment(comment hierarchy.Comment) (err error)

UpdateComment 更新Comment记录 Author [piexlmax](https://github.com/piexlmax)

type FdArticleAudioService

type FdArticleAudioService struct {
}

func (*FdArticleAudioService) CreateFdArticleAudio

func (fdArticleAudioService *FdArticleAudioService) CreateFdArticleAudio(fdArticleAudio *hierarchy.FdArticleAudio) (err error)

CreateFdArticleAudio 创建FdArticleAudio记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleAudioService) DeleteFdArticleAudio

func (fdArticleAudioService *FdArticleAudioService) DeleteFdArticleAudio(fdArticleAudio hierarchy.FdArticleAudio) (err error)

DeleteFdArticleAudio 删除FdArticleAudio记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleAudioService) DeleteFdArticleAudioByIds

func (fdArticleAudioService *FdArticleAudioService) DeleteFdArticleAudioByIds(ids request.IdsReq) (err error)

DeleteFdArticleAudioByIds 批量删除FdArticleAudio记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleAudioService) FdArticleCollect

func (fdArticleAudioService *FdArticleAudioService) FdArticleCollect(userID uint, id uint) (info hierarchy.FdArticleAudio, err error)

func (*FdArticleAudioService) FdArticleLike

func (fdArticleAudioService *FdArticleAudioService) FdArticleLike(userID uint, id uint) (info hierarchy.FdArticleAudio, err error)

func (*FdArticleAudioService) GetFdArticleAudio

func (fdArticleAudioService *FdArticleAudioService) GetFdArticleAudio(id uint, userID uint) (fdArticleAudio hierarchy.FdArticleAudio, err error)

GetFdArticleAudio 根据id获取FdArticleAudio记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleAudioService) GetFdArticleAudioInfoList

func (fdArticleAudioService *FdArticleAudioService) GetFdArticleAudioInfoList(info hierarchyReq.FdArticleAudioSearch) (list []hierarchy.FdArticleAudio, total int64, err error)

GetFdArticleAudioInfoList 分页获取FdArticleAudio记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleAudioService) GetPraiseAndPv

func (fdArticleAudioService *FdArticleAudioService) GetPraiseAndPv(num int) (praise, pv string)

func (*FdArticleAudioService) UpdateFdArticleAudio

func (fdArticleAudioService *FdArticleAudioService) UpdateFdArticleAudio(fdArticleAudio hierarchy.FdArticleAudio) (err error)

UpdateFdArticleAudio 更新FdArticleAudio记录 Author [piexlmax](https://github.com/piexlmax)

type FdArticleGraphicService

type FdArticleGraphicService struct {
}

func (*FdArticleGraphicService) CreateFdArticleGraphic

func (fdArticleGraphicService *FdArticleGraphicService) CreateFdArticleGraphic(fdArticleGraphic *hierarchy.FdArticleGraphic) (err error)

CreateFdArticleGraphic 创建FdArticleGraphic记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleGraphicService) DeleteFdArticleGraphic

func (fdArticleGraphicService *FdArticleGraphicService) DeleteFdArticleGraphic(fdArticleGraphic hierarchy.FdArticleGraphic) (err error)

DeleteFdArticleGraphic 删除FdArticleGraphic记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleGraphicService) DeleteFdArticleGraphicByIds

func (fdArticleGraphicService *FdArticleGraphicService) DeleteFdArticleGraphicByIds(ids request.IdsReq) (err error)

DeleteFdArticleGraphicByIds 批量删除FdArticleGraphic记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleGraphicService) FdArticleCollect

func (fdArticleGraphicService *FdArticleGraphicService) FdArticleCollect(userID uint, id uint) (info hierarchy.FdArticleGraphic, err error)

func (*FdArticleGraphicService) FdArticleLike

func (fdArticleGraphicService *FdArticleGraphicService) FdArticleLike(userID uint, id uint) (info hierarchy.FdArticleGraphic, err error)

func (*FdArticleGraphicService) GetArticleListByLevelTwoIDs

func (fdArticleGraphicService *FdArticleGraphicService) GetArticleListByLevelTwoIDs(info hierarchyReq.ArticleSearchByLevelTwoIDs) (list []hierarchy.FdArticleGraphic, total int64, err error)

GetArticleListByLevelTwoIDs 根据二级ID集合获取文章列表 Author [g-qs](https://gitee.com/g-qs)

func (*FdArticleGraphicService) GetFdArticleGraphic

func (fdArticleGraphicService *FdArticleGraphicService) GetFdArticleGraphic(id uint, userID uint) (fdArticleGraphic hierarchy.FdArticleGraphic, err error)

GetFdArticleGraphic 根据id获取FdArticleGraphic记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleGraphicService) GetFdArticleGraphicInfoList

func (fdArticleGraphicService *FdArticleGraphicService) GetFdArticleGraphicInfoList(info hierarchyReq.FdArticleGraphicSearch) (list []hierarchy.FdArticleGraphic, total int64, err error)

GetFdArticleGraphicInfoList 分页获取FdArticleGraphic记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleGraphicService) GetPraiseAndPv

func (fdArticleGraphicService *FdArticleGraphicService) GetPraiseAndPv(num int) (praise, pv string)

func (*FdArticleGraphicService) UpdateFdArticleGraphic

func (fdArticleGraphicService *FdArticleGraphicService) UpdateFdArticleGraphic(fdArticleGraphic hierarchy.FdArticleGraphic) (err error)

UpdateFdArticleGraphic 更新FdArticleGraphic记录 Author [piexlmax](https://github.com/piexlmax)

type FdArticleLearnService

type FdArticleLearnService struct {
}

func (*FdArticleLearnService) CreateFdArticleLearn

func (fdArticleLearnService *FdArticleLearnService) CreateFdArticleLearn(fdArticleLearn *hierarchy.FdArticleLearn) (err error)

CreateFdArticleLearn 创建学习文章 Author [g-qs](https://gitee.com/g-qs)

func (*FdArticleLearnService) DeleteFdArticleLearn

func (fdArticleLearnService *FdArticleLearnService) DeleteFdArticleLearn(fdArticleLearn hierarchy.FdArticleLearn) (err error)

DeleteFdArticleLearn 删除学习文章 Author [g-qs](https://gitee.com/g-qs)

func (*FdArticleLearnService) DeleteFdArticleLearnByIds

func (fdArticleLearnService *FdArticleLearnService) DeleteFdArticleLearnByIds(ids request.IdsReq) (err error)

DeleteFdArticleLearnByIds 批量删除学习文章 Author [g-qs](https://gitee.com/g-qs)

func (*FdArticleLearnService) FdArticleCollect

func (fdArticleLearnService *FdArticleLearnService) FdArticleCollect(userID uint, id uint) (fdArticleLearn hierarchy.FdArticleLearn, err error)

func (*FdArticleLearnService) FdArticleLike

func (fdArticleLearnService *FdArticleLearnService) FdArticleLike(userID uint, id uint) (fdArticleLearn hierarchy.FdArticleLearn, err error)

func (*FdArticleLearnService) GetBuyArticle

func (fdArticleLearnService *FdArticleLearnService) GetBuyArticle(hmID string) (articles []hierarchy.BuyArticle, err error)

GetBuyArticle 获取购买学习文章

func (*FdArticleLearnService) GetFdArticleLearn

func (fdArticleLearnService *FdArticleLearnService) GetFdArticleLearn(id uint, userID uint) (fdArticleLearn hierarchy.FdArticleLearn, err error)

GetFdArticleLearn 根据id获取学习文章 Author [g-qs](https://gitee.com/g-qs)

func (*FdArticleLearnService) GetFdArticleLearnInfoList

func (fdArticleLearnService *FdArticleLearnService) GetFdArticleLearnInfoList(info hierarchyReq.FdArticleLearnSearch) (list []hierarchy.FdArticleLearn, total int64, err error)

GetFdArticleLearnInfoList 分页获取学习文章 Author [g-qs](https://gitee.com/g-qs)

func (*FdArticleLearnService) GetLearnArticleByHmId

func (fdArticleLearnService *FdArticleLearnService) GetLearnArticleByHmId(hmID uint, levelThreeID string) (list []hierarchyRes.ThreeLevel, err error)

GetLearnArticleByHmId 根据健管师ID获取学习文章列表

func (*FdArticleLearnService) GetLearnLevel

func (fdArticleLearnService *FdArticleLearnService) GetLearnLevel(levelOneID string) (list []hierarchy.LevelTwo, err error)

GetLearnLevel 获取学习目录

func (*FdArticleLearnService) SetBuyArticle

func (fdArticleLearnService *FdArticleLearnService) SetBuyArticle(req hierarchyReq.BuyArticleReq) (err error)

SetBuyArticle 设置购买学习文章

func (*FdArticleLearnService) UpdateFdArticleLearn

func (fdArticleLearnService *FdArticleLearnService) UpdateFdArticleLearn(fdArticleLearn hierarchy.FdArticleLearn) (err error)

UpdateFdArticleLearn 更新学习文章 Author [g-qs](https://gitee.com/g-qs)

type FdArticleService

type FdArticleService struct {
}

func (*FdArticleService) ForwardArticle

func (fdArticleService *FdArticleService) ForwardArticle(types, id string) (err error)

ForwardArticle 转发文章

func (*FdArticleService) GetArticle

func (fdArticleService *FdArticleService) GetArticle(level string, levelID string, userID uint) (fdArticle []hierarchy.FdArticle, err error)

func (*FdArticleService) GetHotArticle

func (fdArticleService *FdArticleService) GetHotArticle(userID uint, title string) (fdArticle []hierarchy.HotSearch, err error)

GetHotArticle 搜索文章&获取热门搜索文章

func (*FdArticleService) GetMyCollect

func (fdArticleService *FdArticleService) GetMyCollect(userID uint) (fdArticle []hierarchy.FdArticle, err error)

type FdArticleVideoService

type FdArticleVideoService struct {
}

func (*FdArticleVideoService) CreateFdArticleVideo

func (fdArticleVideoService *FdArticleVideoService) CreateFdArticleVideo(fdArticleVideo *hierarchy.FdArticleVideo) (err error)

CreateFdArticleVideo 创建FdArticleVideo记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleVideoService) DeleteFdArticleVideo

func (fdArticleVideoService *FdArticleVideoService) DeleteFdArticleVideo(fdArticleVideo hierarchy.FdArticleVideo) (err error)

DeleteFdArticleVideo 删除FdArticleVideo记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleVideoService) DeleteFdArticleVideoByIds

func (fdArticleVideoService *FdArticleVideoService) DeleteFdArticleVideoByIds(ids request.IdsReq) (err error)

DeleteFdArticleVideoByIds 批量删除FdArticleVideo记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleVideoService) FdArticleCollect

func (fdArticleVideoService *FdArticleVideoService) FdArticleCollect(userID uint, id uint) (info hierarchy.FdArticleVideo, err error)

func (*FdArticleVideoService) FdArticleLike

func (fdArticleVideoService *FdArticleVideoService) FdArticleLike(userID uint, id uint) (info hierarchy.FdArticleVideo, err error)

func (*FdArticleVideoService) GetFdArticleVideo

func (fdArticleVideoService *FdArticleVideoService) GetFdArticleVideo(id uint, userID uint) (fdArticleVideo hierarchy.FdArticleVideo, err error)

GetFdArticleVideo 根据id获取FdArticleVideo记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleVideoService) GetFdArticleVideoInfoList

func (fdArticleVideoService *FdArticleVideoService) GetFdArticleVideoInfoList(info hierarchyReq.FdArticleVideoSearch) (list []hierarchy.FdArticleVideo, total int64, err error)

GetFdArticleVideoInfoList 分页获取FdArticleVideo记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdArticleVideoService) GetPraiseAndPv

func (fdArticleVideoService *FdArticleVideoService) GetPraiseAndPv(num int) (praise, pv string)

func (*FdArticleVideoService) UpdateFdArticleVideo

func (fdArticleVideoService *FdArticleVideoService) UpdateFdArticleVideo(fdArticleVideo hierarchy.FdArticleVideo) (err error)

UpdateFdArticleVideo 更新FdArticleVideo记录 Author [piexlmax](https://github.com/piexlmax)

type LevelOneService

type LevelOneService struct {
}

func (*LevelOneService) CreateLevelOne

func (levelOneService *LevelOneService) CreateLevelOne(levelOne *hierarchy.LevelOne) (err error)

CreateLevelOne 创建LevelOne记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelOneService) DeleteLevelOne

func (levelOneService *LevelOneService) DeleteLevelOne(levelOne hierarchy.LevelOne) (err error)

DeleteLevelOne 删除LevelOne记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelOneService) DeleteLevelOneByIds

func (levelOneService *LevelOneService) DeleteLevelOneByIds(ids request.IdsReq) (err error)

DeleteLevelOneByIds 批量删除LevelOne记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelOneService) GetLearnLevelOneInfoList

func (levelOneService *LevelOneService) GetLearnLevelOneInfoList(info hierarchyReq.LevelOneSearch) (list []hierarchy.LevelOne, total int64, err error)

GetLearnLevelOneInfoList 分页获取学习一级目录 Author [g-qs](https://gitee.com/g-qs)

func (*LevelOneService) GetLevelOne

func (levelOneService *LevelOneService) GetLevelOne(id uint) (levelOne hierarchy.LevelOne, err error)

GetLevelOne 根据id获取LevelOne记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelOneService) GetLevelOneInfoList

func (levelOneService *LevelOneService) GetLevelOneInfoList(info hierarchyReq.LevelOneSearch) (list []hierarchy.LevelOne, total int64, err error)

GetLevelOneInfoList 分页获取LevelOne记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelOneService) UpdateLevelOne

func (levelOneService *LevelOneService) UpdateLevelOne(levelOne hierarchy.LevelOne) (err error)

UpdateLevelOne 更新LevelOne记录 Author [piexlmax](https://github.com/piexlmax)

type LevelThreeService

type LevelThreeService struct {
}

func (*LevelThreeService) CreateLevelThree

func (levelThreeService *LevelThreeService) CreateLevelThree(levelThree *hierarchy.LevelThree) (err error)

CreateLevelThree 创建LevelThree记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelThreeService) DeleteLevelThree

func (levelThreeService *LevelThreeService) DeleteLevelThree(levelThree hierarchy.LevelThree) (err error)

DeleteLevelThree 删除LevelThree记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelThreeService) DeleteLevelThreeByIds

func (levelThreeService *LevelThreeService) DeleteLevelThreeByIds(ids request.IdsReq) (err error)

DeleteLevelThreeByIds 批量删除LevelThree记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelThreeService) GetLevelThree

func (levelThreeService *LevelThreeService) GetLevelThree(id uint) (levelThree hierarchy.LevelThree, err error)

GetLevelThree 根据id获取LevelThree记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelThreeService) GetLevelThreeInfoList

func (levelThreeService *LevelThreeService) GetLevelThreeInfoList(info hierarchyReq.LevelThreeSearch) (list []hierarchy.LevelThree, total int64, err error)

GetLevelThreeInfoList 分页获取LevelThree记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelThreeService) UpdateLevelThree

func (levelThreeService *LevelThreeService) UpdateLevelThree(levelThree hierarchy.LevelThree) (err error)

UpdateLevelThree 更新LevelThree记录 Author [piexlmax](https://github.com/piexlmax)

type LevelTwoService

type LevelTwoService struct {
}

func (*LevelTwoService) CreateLevelTwo

func (levelTwoService *LevelTwoService) CreateLevelTwo(levelTwo *hierarchy.LevelTwo) (err error)

CreateLevelTwo 创建LevelTwo记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelTwoService) DeleteLevelTwo

func (levelTwoService *LevelTwoService) DeleteLevelTwo(levelTwo hierarchy.LevelTwo) (err error)

DeleteLevelTwo 删除LevelTwo记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelTwoService) DeleteLevelTwoByIds

func (levelTwoService *LevelTwoService) DeleteLevelTwoByIds(ids request.IdsReq) (err error)

DeleteLevelTwoByIds 批量删除LevelTwo记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelTwoService) GetArticle

func (levelTwoService *LevelTwoService) GetArticle(pageInfo hierarchyReq.LevelTwoArticleSearch, userID uint) (list []hierarchy.LevelThreeReq, err error)

func (*LevelTwoService) GetLevelTwo

func (levelTwoService *LevelTwoService) GetLevelTwo(id uint) (levelTwo hierarchy.LevelTwo, err error)

GetLevelTwo 根据id获取LevelTwo记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelTwoService) GetLevelTwoInfoList

func (levelTwoService *LevelTwoService) GetLevelTwoInfoList(info hierarchyReq.LevelTwoSearch) (list []hierarchy.LevelTwo, total int64, err error)

GetLevelTwoInfoList 分页获取LevelTwo记录 Author [piexlmax](https://github.com/piexlmax)

func (*LevelTwoService) GetLevelTwoListByIds

func (levelTwoService *LevelTwoService) GetLevelTwoListByIds(info hierarchyReq.LevelTwoIdsSearch) (list []hierarchy.LevelTwo, total int64, err error)

GetLevelTwoListByIds 根据ID集合获取二级目录列表 Author [g-qs](https://gitee.com/g-qs)

func (*LevelTwoService) GetTwoLevelListByWhere

func (levelTwoService *LevelTwoService) GetTwoLevelListByWhere(info hierarchyReq.LevelTwoSearch) (list []hierarchyRes.TwoLevel, err error)

GetTwoLevelListByWhere 获取LevelTwo记录 Author [g-qs](https://github.com/g-qs)

func (*LevelTwoService) UpdateLevelTwo

func (levelTwoService *LevelTwoService) UpdateLevelTwo(levelTwo hierarchy.LevelTwo) (err error)

UpdateLevelTwo 更新LevelTwo记录 Author [piexlmax](https://github.com/piexlmax)

Jump to

Keyboard shortcuts

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