package models type Inspection struct { ID int64 `gorm:"column:id" json:"id" form:"id"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"` ItemId int64 `gorm:"column:item_id" json:"item_id" form:"item_id"` ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"` ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"` InspectType int64 `gorm:"column:inspect_type" json:"inspect_type" form:"inspect_type"` InspectValue string `gorm:"column:inspect_value" json:"inspect_value" form:"inspect_value"` InspectDate int64 `gorm:"column:inspect_date" json:"inspect_date" form:"inspect_date"` Status int64 `gorm:"column:status" json:"status" form:"status"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` } func (Inspection) TableName() string { return "xt_inspection" } type InspectionReference struct { ID int64 `gorm:"column:id" json:"id" form:"id"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` ProjectName string `gorm:"column:project_name" json:"project_name" form:"project_name"` Project string `gorm:"column:project" json:"project" form:"project"` ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"` ItemName string `gorm:"column:item_name" json:"item_name" form:"item_name"` ItemNameAddition string `gorm:"column:item_name_addition" json:"item_name_addition" form:"item_name_addition"` Item string `gorm:"column:item" json:"item" form:"item"` RangeType int64 `gorm:"column:range_type" json:"range_type" form:"range_type"` RangeMin string `gorm:"column:range_min" json:"range_min" form:"range_min"` RangeMax string `gorm:"column:range_max" json:"range_max" form:"range_max"` RangeValue string `gorm:"column:range_value" json:"range_value" form:"range_value"` RangeOptions string `gorm:"column:range_options" json:"range_options" form:"range_options"` Unit string `gorm:"column:unit" json:"unit" form:"unit"` Status int64 `gorm:"column:status" json:"status" form:"status"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` } func (InspectionReference) TableName() string { return "xt_inspection_reference" } type UserInspectionProjectCount struct { PatientId int64 Count int64 ProjectId int64 } type InspectionReferenceMap struct { ProjectName string `gorm:"-" json:"project_name" form:"project_name"` Project string `gorm:"-" json:"project" form:"project"` ProjectId int64 `gorm:"-" json:"project_id" form:"project_id"` Count int64 `gorm:"-" json:"count" form:"count"` InspectionReference []InspectionReference `gorm:"-" json:"inspection_reference" form:"inspection_reference"` } type InepectionForm struct { Method string `json:"method"` ProjectId int64 `json:"project_id"` InspectDate string `json:"inspect_date"` FormItem []struct { ID int64 `json:"id"` ProjectId int64 `json:"project_id"` ProjectName string `json:"project_name"` ItemId int64 `json:"item_id"` Item string `json:"item"` ItemName string `json:"item_name"` RangeType int64 `json:"range_type"` Value string `json:"value"` } `json:"formItem"` } type InspectionDate struct { InspectDate int64 }