disease

package
v0.0.0-...-5e8989d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiseaseService

type DiseaseService struct {
}

func (*DiseaseService) Check

func (ds *DiseaseService) Check(id uint) (err error)

Check 检查用户受否提交过病史

func (*DiseaseService) CreatePlanCompleteRecord

func (ds *DiseaseService) CreatePlanCompleteRecord(uid uint) (err error)

CreatePlanCompleteRecord 创建完成方案记录

func (*DiseaseService) ExcelScUserList

func (ds *DiseaseService) ExcelScUserList(info adminReq.UserList, ScID uint) (file *bytes.Buffer, name string, err error)

func (*DiseaseService) ExcelUserList

func (ds *DiseaseService) ExcelUserList(info adminReq.UserList) (file *bytes.Buffer, name string, err error)

func (*DiseaseService) ExportDiseaseRankExcel

func (ds *DiseaseService) ExportDiseaseRankExcel(info diseaseReq.DiseaseRank) (file *bytes.Buffer, name string, err error)

ExportDiseaseRankExcel 根据条件导出病症排行Excel

func (*DiseaseService) ExportScDiseaseRankExcel

func (ds *DiseaseService) ExportScDiseaseRankExcel(info diseaseReq.DiseaseRank) (file *bytes.Buffer, name string, err error)

ExportScDiseaseRankExcel 导出病症排行Excel【服务中心】

func (*DiseaseService) GetAllUserList

func (ds *DiseaseService) GetAllUserList(info diseaseReq.UserList) (list []disease.User, total int64, err error)

func (*DiseaseService) GetArticle

func (ds *DiseaseService) GetArticle() (res map[string][]map[string]any, err error)

func (*DiseaseService) GetBrain

func (ds *DiseaseService) GetBrain(id uint, rootID string) (article hierarchy.FdArticleAudio, isCheck bool, err error)

GetBrain 获取脑波方案

func (*DiseaseService) GetDiseaseList

func (ds *DiseaseService) GetDiseaseList(db []string) (disease []health.Disease, err error)

GetDiseaseList 根据病症类型ID获取病症列表

func (*DiseaseService) GetDiseaseRank

func (ds *DiseaseService) GetDiseaseRank(info diseaseReq.DiseaseRank) (list []diseaseRes.DiseaseRank, total int64, err error)

GetDiseaseRank 根据条件获取病症排行

func (*DiseaseService) GetDiseaseTypeList

func (ds *DiseaseService) GetDiseaseTypeList() (list []disease.DiseaseType, err error)

GetDiseaseTypeList 获取病症类型列表

func (*DiseaseService) GetDiseaseUserList

func (ds *DiseaseService) GetDiseaseUserList(info diseaseReq.DiseaseUser) (list []diseaseRes.DiseaseUser, total int64, err error)

GetDiseaseUserList 获取病症用户列表

func (*DiseaseService) GetHealthData

func (ds *DiseaseService) GetHealthData(id string) (datas map[string]any, err error)

func (*DiseaseService) GetHisPlan

func (ds *DiseaseService) GetHisPlan(id, types, selectTypes string) (rePlan *diseaseRes.HisPlan, err error)

func (*DiseaseService) GetScDiseaseRank

func (ds *DiseaseService) GetScDiseaseRank(info diseaseReq.DiseaseRank) (list []diseaseRes.DiseaseRank, total int64, err error)

GetScDiseaseRank 获取病症排行【服务中心】

func (*DiseaseService) GetSchedule

func (ds *DiseaseService) GetSchedule(id uint) (schedule uint, tips string, err error)

func (*DiseaseService) GetSolarTerms

func (ds *DiseaseService) GetSolarTerms() (data health.SolarTerms, err error)

GetSolarTerms 获取当前节气

func (*DiseaseService) GetSport

func (ds *DiseaseService) GetSport(id uint, rootID string) (article hierarchy.FdArticleVideo, isCheck bool, err error)

func (*DiseaseService) GetUserBasicInfo

func (ds *DiseaseService) GetUserBasicInfo(uid uint) (list healthRes.BasicInfo, err error)

GetUserBasicInfo 获取用户基本信息

func (*DiseaseService) GetUserDiseaseHistory

func (ds *DiseaseService) GetUserDiseaseHistory(id uint) (du disease.UserDiseaseHistory, err error)

GetUserDiseaseHistory 获取用户病史

func (*DiseaseService) GetUserList

func (ds *DiseaseService) GetUserList(info adminReq.UserList) (list []adminRes.User, total int64, err error)

func (*DiseaseService) GetUserRecord

func (ds *DiseaseService) GetUserRecord(userID string, flag string) (req *disease.DiseaseReportPlan, err error)

func (*DiseaseService) OpenVip

func (ds *DiseaseService) OpenVip(hm_id uint, uid string, authority uint, vipType string) error

func (*DiseaseService) SaveDiseaseHistory

func (ds *DiseaseService) SaveDiseaseHistory(du *disease.UserDiseaseHistory) (err error)

SaveDiseaseHistory 保存用户病史

func (*DiseaseService) SaveReports

func (ds *DiseaseService) SaveReports(record disease.DiseaseReportRecord) (err error)

SaveReports 保存报告

func (*DiseaseService) SetBrain

func (ds *DiseaseService) SetBrain(id uint, rootID string) (err error)

func (*DiseaseService) SetHisPlan

func (ds *DiseaseService) SetHisPlan(plan disease.DiseaseReportPlan) (err error)

func (*DiseaseService) SetPlanTips

func (ds *DiseaseService) SetPlanTips(food *catering.Food) (err error)

SetPlanTips 保存方案提示 Author [g-qs](https://github.com/g-qs)

func (*DiseaseService) SetSport

func (ds *DiseaseService) SetSport(id uint, rootID string) (err error)

func (*DiseaseService) SetUserPoints

func (ds *DiseaseService) SetUserPoints(id string, points string) (err error)

func (*DiseaseService) SetUserRecord

func (ds *DiseaseService) SetUserRecord(plan disease.DiseaseReportPlan, flag string) (err error)

func (*DiseaseService) UserHealth

func (ds *DiseaseService) UserHealth(id string) (list any, err error)

type ServiceGroup

type ServiceGroup struct {
	DiseaseService
}

type Term

type Term struct {
	ID   int
	Name string
}

Jump to

Keyboard shortcuts

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