health

package
v0.0.0-...-56b5e3d Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CircleService

type CircleService struct {
}

func (*CircleService) CircleLike

func (circleService *CircleService) CircleLike(userID uint, cid uint) (circleResponse healthRes.CircleResponse, err error)

CircleLike 点赞

func (*CircleService) CreateCircle

func (circleService *CircleService) CreateCircle(circle *health.Circle) (err error)

CreateCircle 创建健康圈 Author: [g-qs](https://github.com/g-qs)

func (*CircleService) CreateCircleComment

func (circleService *CircleService) CreateCircleComment(comment *health.CircleComment) (err error)

CreateCircleComment 创建健康圈评论 Author: [g-qs](https://github.com/g-qs)

func (*CircleService) CreateCircleReportRecord

func (circleService *CircleService) CreateCircleReportRecord(report *health.CircleReportRecord) (err error)

CreateCircleReportRecord 创建健康圈举报记录 Author: [g-qs](https://github.com/g-qs)

func (*CircleService) DeleteCircle

func (circleService *CircleService) DeleteCircle(circle health.Circle) (err error)

DeleteCircle 删除健康圈 Author [g-qs](https://gitee.com/g-qs)

func (*CircleService) DeleteComment

func (circleService *CircleService) DeleteComment(comment health.CircleComment) (err error)

DeleteComment 删除评论 Author [g-qs](https://gitee.com/g-qs)

func (*CircleService) FindCircleInfo

func (circleService *CircleService) FindCircleInfo(cid uint, userID uint) (circleResponse healthRes.NewCircleResponse, err error)

FindCircleInfo 查询单条健康圈详情

func (*CircleService) GetCircleCommentsInfoList

func (circleService *CircleService) GetCircleCommentsInfoList(reqComments healthReq.ReqComments) (list []healthRes.CircleCommentsResponse, err error)

GetCircleCommentsInfoList 获取健康圈评论列表 Author: [g-qs](https://github.com/g-qs)

func (*CircleService) GetCircleCommentsList

func (circleService *CircleService) GetCircleCommentsList(info healthReq.CommentsSearch) (list []healthRes.CircleCommentsResponse, total int64, err error)

GetCircleCommentsList 获取评论列表【管理端】 Author: [g-qs](https://github.com/g-qs)

func (*CircleService) GetCircleInfoList

func (circleService *CircleService) GetCircleInfoList(info healthReq.ReqCircle) (list []healthRes.NewCircleResponse, err error)

GetCircleInfoList 分页获取健康圈列表

func (*CircleService) GetCircleInfoListByUid

func (circleService *CircleService) GetCircleInfoListByUid(id uint) (list []healthRes.CircleResponse, err error)

GetCircleInfoListByUid 通过用户ID获取健康圈列表

func (*CircleService) GetHealthCircleList

func (circleService *CircleService) GetHealthCircleList(info healthReq.HealthCircleSearch) (list []healthRes.NewCircleResponse, total int64, err error)

GetHealthCircleList 分页获取健康圈列表【管理端】

func (*CircleService) GetOneDataByWhere

func (circleService *CircleService) GetOneDataByWhere(where map[string]interface{}, fields string) (info interface{}, err error)

GetOneDataByWhere 根据where条件获取一条数据

type DiseaseService

type DiseaseService struct {
}

func (*DiseaseService) CreateDisease

func (diseaseService *DiseaseService) CreateDisease(disease *health.Disease) (err error)

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

func (*DiseaseService) DeleteDisease

func (diseaseService *DiseaseService) DeleteDisease(disease health.Disease, isDisease string) (err error)

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

func (*DiseaseService) DeleteDiseaseByIds

func (diseaseService *DiseaseService) DeleteDiseaseByIds(ids request.IdsReq) (err error)

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

func (*DiseaseService) GetDisease

func (diseaseService *DiseaseService) GetDisease(id uint, isDisease string) (d any, err error)

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

func (*DiseaseService) GetDiseaseGraphic

func (diseaseService *DiseaseService) GetDiseaseGraphic(disease_id string) (DiseaseGraphic []healthReq.DiseaseArticle, err error)

func (*DiseaseService) GetDiseaseInfoList

func (diseaseService *DiseaseService) GetDiseaseInfoList(info healthReq.DiseaseSearch) (list []health.DiseaseList, total int64, err error)

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

func (*DiseaseService) SetDiseaseGraphic

func (diseaseService *DiseaseService) SetDiseaseGraphic(req healthReq.DiseaseGraphicReq) (err error)

func (*DiseaseService) UpdateDisease

func (diseaseService *DiseaseService) UpdateDisease(disease health.Disease) (err error)

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

type FdEfficacyService

type FdEfficacyService struct {
}

func (*FdEfficacyService) CreateFdEfficacy

func (fdEfficacyService *FdEfficacyService) CreateFdEfficacy(fdEfficacy *health.FdEfficacy) (err error)

CreateFdEfficacy 创建功效记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdEfficacyService) DeleteFdEfficacy

func (fdEfficacyService *FdEfficacyService) DeleteFdEfficacy(fdEfficacy health.FdEfficacy) (err error)

DeleteFdEfficacy 删除功效记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdEfficacyService) DeleteFdEfficacyByIds

func (fdEfficacyService *FdEfficacyService) DeleteFdEfficacyByIds(ids request.IdsReq) (err error)

DeleteFdEfficacyByIds 批量删除功效记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdEfficacyService) GetFdEfficacy

func (fdEfficacyService *FdEfficacyService) GetFdEfficacy(id uint) (fdEfficacy health.FdEfficacy, err error)

GetFdEfficacy 根据id获取功效记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdEfficacyService) GetFdEfficacyGraphic

func (fdEfficacyService *FdEfficacyService) GetFdEfficacyGraphic(fd_efficacy_id string) (DiseaseGraphic []healthReq.FdEfficacyArticle, err error)

func (*FdEfficacyService) GetFdEfficacyInfoList

func (fdEfficacyService *FdEfficacyService) GetFdEfficacyInfoList(info healthReq.FdEfficacySearch) (list []health.FdEfficacy, total int64, err error)

GetFdEfficacyInfoList 分页获取功效记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdEfficacyService) SetFdEfficacyGraphic

func (fdEfficacyService *FdEfficacyService) SetFdEfficacyGraphic(req healthReq.FdEfficacyArticleReq) (err error)

func (*FdEfficacyService) UpdateFdEfficacy

func (fdEfficacyService *FdEfficacyService) UpdateFdEfficacy(fdEfficacy health.FdEfficacy) (err error)

UpdateFdEfficacy 更新功效记录 Author [piexlmax](https://github.com/piexlmax)

type FdJqService

type FdJqService struct {
}

func (*FdJqService) CreateFdJq

func (fdJqService *FdJqService) CreateFdJq(fdJq *health.FdJq) (err error)

CreateFdJq 创建节气记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdJqService) DeleteFdJq

func (fdJqService *FdJqService) DeleteFdJq(fdJq health.FdJq) (err error)

DeleteFdJq 删除节气记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdJqService) DeleteFdJqByIds

func (fdJqService *FdJqService) DeleteFdJqByIds(ids request.IdsReq) (err error)

DeleteFdJqByIds 批量删除节气记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdJqService) GetFdJq

func (fdJqService *FdJqService) GetFdJq(id uint) (fdJq health.FdJq, err error)

GetFdJq 根据id获取节气记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdJqService) GetFdJqGraphic

func (fdJqService *FdJqService) GetFdJqGraphic(fd_jq_id string) (FdJqGraphic []healthReq.FdJqArticle, err error)

func (*FdJqService) GetFdJqInfoList

func (fdJqService *FdJqService) GetFdJqInfoList(info healthReq.FdJqSearch) (list []health.FdJq, total int64, err error)

GetFdJqInfoList 分页获取节气记录 Author [piexlmax](https://github.com/piexlmax)

func (*FdJqService) SetFdJqGraphic

func (fdJqService *FdJqService) SetFdJqGraphic(req healthReq.FdJqArticleReq) (err error)

func (*FdJqService) UpdateFdJq

func (fdJqService *FdJqService) UpdateFdJq(fdJq health.FdJq) (err error)

UpdateFdJq 更新节气记录 Author [piexlmax](https://github.com/piexlmax)

type HealthQAndAService

type HealthQAndAService struct {
}

func (*HealthQAndAService) CreateHealthQAndA

func (QuestionAndAnswerService *HealthQAndAService) CreateHealthQAndA(QuestionAndAnswer *health.HealthQAndA) (err error)

CreateHealthQAndA 创建健康问答表记录 Author [g-qs](https://github.com/g-qs)

func (*HealthQAndAService) DeleteHealthQAndA

func (QuestionAndAnswerService *HealthQAndAService) DeleteHealthQAndA(QuestionAndAnswer health.HealthQAndA) (err error)

DeleteHealthQAndA 删除健康问答表记录 Author [g-qs](https://github.com/g-qs)

func (*HealthQAndAService) DeleteHealthQAndAByIds

func (QuestionAndAnswerService *HealthQAndAService) DeleteHealthQAndAByIds(ids request.IdsReq) (err error)

DeleteHealthQAndAByIds 批量删除健康问答表记录 Author [g-qs](https://github.com/g-qs)

func (*HealthQAndAService) GetHealthAnswerListByQuestion

func (QuestionAndAnswerService *HealthQAndAService) GetHealthAnswerListByQuestion(info healthReq.HealthQuestionSearch, uid uint) (list []healthRes.AnswerResponse, err error)

GetHealthAnswerListByQuestion 根据问题获取回答列表 Author [g-qs](https://github.com/g-qs)

func (*HealthQAndAService) GetHealthQAndA

func (QuestionAndAnswerService *HealthQAndAService) GetHealthQAndA(id uint) (QuestionAndAnswer health.HealthQAndA, err error)

GetHealthQAndA 根据id获取健康问答表记录 Author [g-qs](https://github.com/g-qs)

func (*HealthQAndAService) GetHealthQAndAInfoList

func (QuestionAndAnswerService *HealthQAndAService) GetHealthQAndAInfoList(info healthReq.HealthQAndASearchReq) (list []health.HealthQAndA, total int64, err error)

GetHealthQAndAInfoList 分页获取健康问答表记录 Author [g-qs](https://github.com/g-qs)

func (*HealthQAndAService) UpdateHealthQAndA

func (QuestionAndAnswerService *HealthQAndAService) UpdateHealthQAndA(QuestionAndAnswer health.HealthQAndA) (err error)

UpdateHealthQAndA 更新健康问答表记录 Author [g-qs](https://github.com/g-qs)

type HealthQuestionService

type HealthQuestionService struct {
}

func (*HealthQuestionService) CreateHealthQuestion

func (hqService *HealthQuestionService) CreateHealthQuestion(hq *health.HealthQuestion) (err error)

CreateHealthQuestion 创建健康问答-待回答问题表记录 Author [piexlmax](https://github.com/piexlmax)

func (*HealthQuestionService) DeleteHealthQuestion

func (hqService *HealthQuestionService) DeleteHealthQuestion(hq health.HealthQuestion) (err error)

DeleteHealthQuestion 删除健康问答-待回答问题表记录 Author [piexlmax](https://github.com/piexlmax)

func (*HealthQuestionService) DeleteHealthQuestionByIds

func (hqService *HealthQuestionService) DeleteHealthQuestionByIds(ids request.IdsReq) (err error)

DeleteHealthQuestionByIds 批量删除健康问答-待回答问题表记录 Author [piexlmax](https://github.com/piexlmax)

func (*HealthQuestionService) GetHealthQuestion

func (hqService *HealthQuestionService) GetHealthQuestion(id uint) (hq health.HealthQuestion, err error)

GetHealthQuestion 根据id获取健康问答-待回答问题表记录 Author [piexlmax](https://github.com/piexlmax)

func (*HealthQuestionService) GetHealthQuestionInfoList

func (hqService *HealthQuestionService) GetHealthQuestionInfoList(info healthReq.HealthQuestionSearch) (list []health.HealthQuestion, total int64, err error)

GetHealthQuestionInfoList 分页获取健康问答-待回答问题表记录 Author [piexlmax](https://github.com/piexlmax)

func (*HealthQuestionService) UpdateHealthQuestion

func (hqService *HealthQuestionService) UpdateHealthQuestion(hq health.HealthQuestion) (err error)

UpdateHealthQuestion 更新健康问答-待回答问题表记录 Author [piexlmax](https://github.com/piexlmax)

type PhysiqueService

type PhysiqueService struct {
}

func (*PhysiqueService) CreatePhysique

func (physiqueService *PhysiqueService) CreatePhysique(physique *health.Physique) (err error)

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

func (*PhysiqueService) DeletePhysique

func (physiqueService *PhysiqueService) DeletePhysique(physique health.Physique) (err error)

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

func (*PhysiqueService) DeletePhysiqueByIds

func (physiqueService *PhysiqueService) DeletePhysiqueByIds(ids request.IdsReq) (err error)

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

func (*PhysiqueService) GetPhysique

func (physiqueService *PhysiqueService) GetPhysique(id uint) (physique health.Physique, err error)

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

func (*PhysiqueService) GetPhysiqueGraphic

func (physiqueService *PhysiqueService) GetPhysiqueGraphic(physique_id string) (physiqueGraphic []healthReq.PhysiqueArticle, err error)

func (*PhysiqueService) GetPhysiqueId

func (physiqueService *PhysiqueService) GetPhysiqueId(name string) (physique health.Physique, err error)

GetPhysiqueId 根据体质名称获取体质ID Author [g-qs](https://github.com/g-qs)

func (*PhysiqueService) GetPhysiqueInfoList

func (physiqueService *PhysiqueService) GetPhysiqueInfoList(info healthReq.PhysiqueSearch) (list []health.Physique, total int64, err error)

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

func (*PhysiqueService) SetPhysiqueGraphic

func (physiqueService *PhysiqueService) SetPhysiqueGraphic(req healthReq.PhysiqueGraphicReq) (err error)

func (*PhysiqueService) UpdatePhysique

func (physiqueService *PhysiqueService) UpdatePhysique(physique health.Physique) (err error)

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

type ShipuService

type ShipuService struct {
}

func (*ShipuService) CreateShipu

func (shipuService *ShipuService) CreateShipu(shipu *health.Shipu) (err error)

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

func (*ShipuService) DeleteShipu

func (shipuService *ShipuService) DeleteShipu(shipu health.Shipu) (err error)

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

func (*ShipuService) DeleteShipuByIds

func (shipuService *ShipuService) DeleteShipuByIds(ids request.IdsReq) (err error)

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

func (*ShipuService) GetShipu

func (shipuService *ShipuService) GetShipu(id uint) (shipu health.Shipu, err error)

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

func (*ShipuService) GetShipuInfoList

func (shipuService *ShipuService) GetShipuInfoList(info healthReq.ShipuSearch) (list []health.Shipu, total int64, err error)

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

func (*ShipuService) UpdateShipu

func (shipuService *ShipuService) UpdateShipu(shipu health.Shipu) (err error)

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

Jump to

Keyboard shortcuts

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