123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- package entity
- import "gopkg.in/guregu/null.v3"
- type CustomInfoLabelsDto struct {
- CustomFileId int `json:"custom_file_id"`
- List []CustomInfoLabel `json:"custom_file_info"`
- }
- type CustomInfoLabel struct {
- Key string `json:"key"`
- Value string `json:"value"`
- Other string `json:"other"`
- }
- type CustomFileInfoDB struct {
- Id int `db:"id" json:"id"`
- Name null.String `db:"name" json:"name"`
- Mobile null.String `db:"mobile" json:"mobile"`
- Birthday null.String `db:"birthday" json:"birthday"`
- CustomId int `db:"custom_id" json:"custom_id"`
- RelId int `db:"rel_id" json:"rel_id"`
- RelStr string `json:"rel_str"`
- IdType null.Int `db:"id_type" json:"id_type"`
- Gender int `db:"gender" json:"gender"`
- IdNum null.String `db:"id_num" json:"id_num"`
- Height null.Int `db:"height" json:"height"`
- Weight null.Int `db:"weight" json:"weight"`
- BloodType null.String `db:"blood_type" json:"blood_type"`
- SmokeLevel null.Int `db:"smoke_level" json:"smoke_level"`
- SmokeLevelStr string `json:"smoke_level_str"`
- AlcoholLevel null.Int `db:"alcohol_level" json:"alcohol_level"`
- AlcoholLevelStr string `json:"alcohol_level_str"`
- ExerciseLevel null.Int `db:"exercise_level" json:"exercise_level"`
- ExerciseLevelStr string `json:"exercise_level_str"`
- SleepLevel null.Int `db:"sleep_level" json:"sleep_level"`
- SleepLevelStr string `json:"sleep_level_str"`
- SelfMedicalHistory null.String `db:"self_medical_history" json:"self_medical_history"`
- SelfMedicalHistoryStr string `json:"self_medical_history_str"`
- FamilyMedicalHistory null.String `db:"family_medical_history" json:"family_medical_history"`
- FamilyMedicalHistoryStr string `json:"family_medical_history_str"`
- DrugAllergy null.String `db:"drug_allergy" json:"drug_allergy"`
- DrugAllergyStr string `json:"drug_allergy_str"`
- DietaryHabit null.String `db:"dietary_habit" json:"dietary_habit"`
- DietaryHabitStr string `json:"dietary_habit_str"`
- HealthNeeds null.String `db:"health_needs" json:"health_needs"`
- HealthNeedsStr string `json:"health_needs_str"`
- SmokeLevelOther null.String `db:"smoke_level_other" json:"smoke_level_other"`
- AlcoholLevelOther null.String `db:"alcohol_level_other" json:"alcohol_level_other"`
- ExerciseLevelOther null.String `db:"exercise_level_other" json:"exercise_level_other"`
- SleepLevelOther null.String `db:"sleep_level_other" json:"sleep_level_other"`
- SelfMedicalHistoryOther null.String `db:"self_medical_history_other" json:"self_medical_history_other"`
- FamilyMedicalHistoryOther null.String `db:"family_medical_history_other" json:"family_medical_history_other"`
- DrugAllergyOther null.String `db:"drug_allergy_other" json:"drug_allergy_other"`
- DietaryHabitOther null.String `db:"dietary_habit_other" json:"dietary_habit_other"`
- HealthNeedsOther null.String `db:"health_needs_other" json:"health_needs_other"`
- }
- type CustomFile struct {
- Id int `db:"id" json:"id"`
- Name string `db:"name" json:"name"`
- Mobile string `db:"mobile" json:"mobile"`
- Birthday string `db:"birthday" json:"birthday"`
- CustomId int `db:"custom_id" json:"custom_id"`
- RelId int `db:"rel_id" json:"rel_id"`
- IdNum string `db:"id_num" json:"id_num"`
- IdType int `db:"id_type" json:"id_type"`
- Gender int `db:"gender" json:"gender"`
- Height int `db:"height" json:"height"`
- Weight int `db:"weight" json:"weight"`
- BloodType string `db:"blood_type" json:"blood_type"`
- SmokeLevel int `db:"smoke_level" json:"smoke_level"`
- AlcoholLevel int `db:"alcohol_level" json:"alcohol_level"`
- ExerciseLevel int `db:"exercise_level" json:"exercise_level"`
- SleepLevel int `db:"sleep_level" json:"sleep_level"`
- SelfMedicalHistory string `db:"self_medical_history" json:"self_medical_history"`
- FamilyMedicalHistory string `db:"family_medical_history" json:"family_medical_history"`
- DrugAllergy string `db:"drug_allergy" json:"drug_allergy"`
- DietaryHabit string `db:"dietary_habit" json:"dietary_habit"`
- HealthNeeds string `db:"health_needs" json:"health_needs"`
- SmokeLevelOther string `db:"smoke_level_other" json:"smoke_level_other"`
- AlcoholLevelOther string `db:"alcohol_level_other" json:"alcohol_level_other"`
- ExerciseLevelOther string `db:"exercise_level_other" json:"exercise_level_other"`
- SleepLevelOther string `db:"sleep_level_other" json:"sleep_level_other"`
- SelfMedicalHistoryOther string `db:"self_medical_history_other" json:"self_medical_history_other"`
- FamilyMedicalHistoryOther string `db:"family_medical_history_other" json:"family_medical_history_other"`
- DrugAllergyOther string `db:"drug_allergy_other" json:"drug_allergy_other"`
- DietaryHabitOther string `db:"dietary_habit_other" json:"dietary_habit_other"`
- HealthNeedsOther string `db:"health_needs_other" json:"health_needs_other"`
- VCode string `json:"vcode"`
- }
- type CustomAttachment struct {
- Id int `json:"id"`
- CustomId int `json:"custom_id" db:"custom_id"`
- CustomFileId int `json:"custom_file_id" db:"custom_file_id"`
- Path string `json:"path" db:"path"`
- UpLoadType string `json:"upload_type" db:"upload_type"`
- CustomRemark string `json:"custom_remark" db:"custom_remark"`
- DoctorRemark string `json:"doctor_remark" db:"doctor_remark"`
- UploadAt string `json:"upload_at" db:"upload_at"`
- CheckDate string `json:"check_date" db:"check_date"`
- Title string `json:"title" db:"title"`
- }
- type CustomAttachmentDB struct {
- Id int `db:"id" json:"id"`
- CustomId int `db:"custom_id" json:"custom_id"`
- CustomFileId int `db:"custom_file_id" json:"custom_file_id"`
- Path string `db:"path" json:"path"`
- UpLoadType string `db:"upload_type" json:"upload_type"`
- CustomRemark null.String `db:"custom_remark" json:"custom_remark"`
- DoctorRemark null.String `db:"doctor_remark" json:"doctor_remark"`
- UploadAt null.String `db:"upload_at" json:"upload_at"`
- CheckDate null.String `db:"check_date" json:"check_date"`
- Title null.String `db:"title" json:"title"`
- }
- type CustomFileParam struct {
- CustomFileId int `json:"custom_file_id"`
- Mobile string `json:"mobile"`
- CustomMobile string `json:"custom_mobile"`
- }
- func (c *CustomFileParam) IsCustomSelf() bool {
- flag := c.CustomMobile == c.Mobile
- return flag
- }
|