Documentation ¶
Index ¶
- type DiseaseService
- func (ds *DiseaseService) Check(id uint) (err error)
- func (ds *DiseaseService) CreatePlanCompleteRecord(uid uint) (err error)
- func (ds *DiseaseService) ExcelScUserList(info adminReq.UserList, ScID uint) (file *bytes.Buffer, name string, err error)
- func (ds *DiseaseService) ExcelUserList(info adminReq.UserList) (file *bytes.Buffer, name string, err error)
- func (ds *DiseaseService) ExportDiseaseRankExcel(info diseaseReq.DiseaseRank) (file *bytes.Buffer, name string, err error)
- func (ds *DiseaseService) ExportScDiseaseRankExcel(info diseaseReq.DiseaseRank) (file *bytes.Buffer, name string, err error)
- func (ds *DiseaseService) GetAllUserList(info diseaseReq.UserList) (list []disease.User, total int64, err error)
- func (ds *DiseaseService) GetArticle() (res map[string][]map[string]any, err error)
- func (ds *DiseaseService) GetBrain(id uint, rootID string) (article hierarchy.FdArticleAudio, isCheck bool, err error)
- func (ds *DiseaseService) GetDiseaseList(db []string) (disease []health.Disease, err error)
- func (ds *DiseaseService) GetDiseaseRank(info diseaseReq.DiseaseRank) (list []diseaseRes.DiseaseRank, total int64, err error)
- func (ds *DiseaseService) GetDiseaseTypeList() (list []disease.DiseaseType, err error)
- func (ds *DiseaseService) GetDiseaseUserList(info diseaseReq.DiseaseUser) (list []diseaseRes.DiseaseUser, total int64, err error)
- func (ds *DiseaseService) GetHealthData(id string) (datas map[string]any, err error)
- func (ds *DiseaseService) GetHisPlan(id, types, selectTypes string) (rePlan *diseaseRes.HisPlan, err error)
- func (ds *DiseaseService) GetScDiseaseRank(info diseaseReq.DiseaseRank) (list []diseaseRes.DiseaseRank, total int64, err error)
- func (ds *DiseaseService) GetSchedule(id uint) (schedule uint, tips string, err error)
- func (ds *DiseaseService) GetSolarTerms() (data health.SolarTerms, err error)
- func (ds *DiseaseService) GetSport(id uint, rootID string) (article hierarchy.FdArticleVideo, isCheck bool, err error)
- func (ds *DiseaseService) GetUserBasicInfo(uid uint) (list healthRes.BasicInfo, err error)
- func (ds *DiseaseService) GetUserDiseaseHistory(id uint) (du disease.UserDiseaseHistory, err error)
- func (ds *DiseaseService) GetUserList(info adminReq.UserList) (list []adminRes.User, total int64, err error)
- func (ds *DiseaseService) GetUserRecord(userID string, flag string) (req *disease.DiseaseReportPlan, err error)
- func (ds *DiseaseService) OpenVip(hm_id uint, uid string, authority uint, vipType string) error
- func (ds *DiseaseService) SaveDiseaseHistory(du *disease.UserDiseaseHistory) (err error)
- func (ds *DiseaseService) SaveReports(record disease.DiseaseReportRecord) (err error)
- func (ds *DiseaseService) SetBrain(id uint, rootID string) (err error)
- func (ds *DiseaseService) SetHisPlan(plan disease.DiseaseReportPlan) (err error)
- func (ds *DiseaseService) SetPlanTips(food *catering.Food) (err error)
- func (ds *DiseaseService) SetSport(id uint, rootID string) (err error)
- func (ds *DiseaseService) SetUserPoints(id string, points string) (err error)
- func (ds *DiseaseService) SetUserRecord(plan disease.DiseaseReportPlan, flag string) (err error)
- func (ds *DiseaseService) UserHealth(id string) (list any, err error)
- type ServiceGroup
- type Term
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 (*DiseaseService) ExcelUserList ¶
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 (*DiseaseService) GetUserRecord ¶
func (ds *DiseaseService) GetUserRecord(userID string, flag string) (req *disease.DiseaseReportPlan, err 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
}
Click to show internal directories.
Click to hide internal directories.