disease

package
v0.0.0-...-a5c0f30 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disease

type Disease struct {
	ID     uint   `json:"id" gorm:"column:id;comment:id;"`
	Name   string `json:"name" gorm:"column:bz_name;comment:名称;"`
	BzlxID uint   `json:"bzlx_id" gorm:"column:bzlx_id;comment:病症类型id;"`
}

func (Disease) TableName

func (Disease) TableName() string

type DiseaseReportPlan

type DiseaseReportPlan struct {
	global.GVA_MODEL
	DrrID       uint   `json:"drr_id" gorm:"column:drr_id;comment:病症报告记录ID"`
	Types       int    `json:"types" gorm:"column:types;comment:1脑波方案2运动方案3体质茶 4您的配餐 5千预方案"`
	IDs         string `json:"ids" gorm:"column:ids;comment:文章方案"`
	ArticleType int    `json:"article_types" gorm:"column:article_types;comment:文章类型 1图文2音频 3视频"`
	Content     string `json:"content" gorm:"column:content;comment:干预方案;type:text"`
	Money       uint   `json:"money" gorm:"column:money;comment:金额"`
}

DiseaseReportPlan 病症报告方案struct

func (DiseaseReportPlan) TableName

func (DiseaseReportPlan) TableName() string

type DiseaseReportRecord

type DiseaseReportRecord struct {
	global.GVA_MODEL
	Uid          uint             `json:"uid" gorm:"column:uid;comment:用户ID"`
	ReportNumber string           `json:"report_number" gorm:"column:report_number;comment:报告编号"`
	TzID         uint             `json:"tz_id" gorm:"column:tz_id;comment:体质ID"`
	JqID         uint             `json:"jq_id" gorm:"column:jq_id;comment:节气ID"`
	BzlxIDs      string           `json:"bzlx_ids" gorm:"column:bzlx_ids;comment:病症类型"`
	BzIDs        string           `json:"bz_ids" gorm:"column:bz_ids;comment:病症"`
	User         *user.User       `json:"-" form:"-" gorm:"->;foreignKey:Uid;references:ID;"`   // 关联用户
	Physique     *health.Physique `json:"-" form:"-" gorm:"->;foreignKey:TzID;references:ID;"`  // 关联体质
	SolarTerms   *health.FdJq     `json:"-" form:"-" gorm:"->;foreignKey:JqID;references:ID;"`  // 关联节气
	Disease      *health.Disease  `json:"-" form:"-" gorm:"->;foreignKey:BzIDs;references:ID;"` // 关联病症
}

DiseaseReportRecord 病症报告记录struct

func (DiseaseReportRecord) TableName

func (DiseaseReportRecord) TableName() string

type DiseaseType

type DiseaseType struct {
	ID   uint   `json:"id" gorm:"primarykey;column:id;"`
	Name string `json:"name" gorm:"column:bzlx_name;comment:名称"`
}

func (DiseaseType) TableName

func (DiseaseType) TableName() string

type OpenLog

type OpenLog struct {
	HMID uint   `json:"hm_id" gorm:"column:hm_id;comment:中心ID"`
	UID  string `json:"uid" gorm:"column:uid;comment:用户ID"`
}

type User

type User struct {
	global.GVA_MODEL
	Points       uint      `json:"points" gorm:"column:points;default:0;comment:积分"`
	InviteUserID uint      `json:"invite_user_id" gorm:"column:invite_user_id;comment:邀请人id"`
	Phone        string    `json:"phone" gorm:"column:phone;comment:用户手机号"`
	Name         string    `json:"name" form:"name" gorm:"column:name;comment:名称"`
	Avatar       string    `` /* 142-byte string literal not displayed */
	Types        uint      `json:"types" gorm:"column:types;default:1;comment:用户类型 1用户 2会员 3过期会员"`
	Sex          uint      `json:"sex" gorm:"column:sex;default:1;comment:性别 1男 2女"`
	Birthday     time.Time `json:"birthday" gorm:"column:birthday;comment:生日"`
	Physique     uint      `json:"physique" gorm:"->;column:physique;comment:体质"`
	Grade        bool      `json:"grade" gorm:"column:grade;default:false;comment:是否是会员"`
}

func (User) TableName

func (User) TableName() string

type UserDiseaseHistory

type UserDiseaseHistory struct {
	ID           uint           `json:"id" gorm:"primarykey;column:id"`
	CreatedAt    time.Time      `json:"created_at" gorm:"column:created_at"`
	UpdatedAt    time.Time      `json:"updated_at" gorm:"column:updated_at"`
	Current      string         `json:"current" gorm:"column:current"`
	CImg         datatypes.JSON `json:"c_img" gorm:"column:c_img;type:json;comment:图片(现病史);"`
	CMeasure     string         `json:"c_measure" gorm:"column:c_measure"`
	CMeasureImg  datatypes.JSON `json:"c_measure_img" gorm:"column:c_measure_img;type:json;comment:正在采取的措施图片(现病史);"`
	CDrugInfo    string         `json:"c_drug_info" gorm:"column:c_drug_info"`
	CDrugInfoImg datatypes.JSON `json:"c_drug_info_img" gorm:"column:c_drug_info_img"`
	Past         string         `json:"past" gorm:"column:past"`
	PImg         datatypes.JSON `json:"p_img" gorm:"column:p_img;type:json;comment:图片(过往病史);"`
	PMeasure     string         `json:"p_measure" gorm:"column:p_measure"`
	PMeasureImg  datatypes.JSON `json:"p_measure_img" gorm:"column:p_measure_img;type:json;comment:正在采取的措施图片(过往病史);"`
	PDrugInfo    string         `json:"p_drug_info" gorm:"column:p_drug_info"`
	PDrugInfoImg datatypes.JSON `json:"p_drug_info_img" gorm:"column:p_drug_info_img"`
}

func (UserDiseaseHistory) TableName

func (UserDiseaseHistory) TableName() string

TableName UserDiseaseHistory 用户病史表

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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