model

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Demo

type Demo struct {
	Id          int64
	Name        string `xorm:"varchar(64) not null" valid:"required"`
	Status      bool
	Version     string `xorm:"varchar(25) not null" valid:"required"`
	Description string `xorm:"varchar(1024)"`
	DescImage   string `xorm:"varchar(128)" valid:"required"`
}

Demo .

type DemoData

type DemoData struct {
	Id   int64
	Name string `xorm:"varchar(64) not null"`

	Visibility string `xorm:"not null default 'basic'"`
	OwnerId    int64  `xorm:"not null"`
	DemoId     string `xorm:"not null"`
	Type       string `xorm:"varchar(16) not null"`
	Kind       string `xorm:"varchar(16) not null"`

	Bytes string `xorm:"varchar(2097152) not null" valid:""`
	Link  string `xorm:"varchar(256) not null" valid:""`
}

DemoData .

type GlobalData

type GlobalData struct {
	Id   int64
	Name int64
}

GlobalData .

type PathologyAnalysisLevel

type PathologyAnalysisLevel struct {
	Id                 int64  `json:"id"`
	Name               string `xorm:"varchar(128) not null unique" json:"Name" valid:"required"`
	RedCells           string `xorm:"varchar(32) not null" json:"Red-Cells" valid:"required"`
	Hemoglobin         string `xorm:"varchar(32) not null" json:"Hemoglobin" valid:"required"`
	Hematocrit         string `xorm:"varchar(32) not null" json:"Hematocrit" valid:"required"`
	MCV                string `xorm:"varchar(32) not null" json:"VGM" valid:"required"`
	MCHC               string `xorm:"varchar(32) not null" json:"CCMH" valid:"required"`
	MCH                string `xorm:"varchar(32) not null" json:"TCMH" valid:"required"`
	WhiteCells         string `xorm:"varchar(32) not null" json:"White-Cells" valid:"required"`
	PNNeutrophils      string `xorm:"varchar(32) not null" json:"PN-Neutrophils" valid:"required"`
	PNBasophils        string `xorm:"varchar(32) not null" json:"PN-Basophils" valid:"required"`
	PNEosinophils      string `xorm:"varchar(32) not null" json:"PN-Eosinophils" valid:"required"`
	Lymphocytes        string `xorm:"varchar(32) not null" json:"Lymphocytes" valid:"required"`
	Monocytes          string `xorm:"varchar(32) not null" json:"Monocytes" valid:"required"`
	Platelet           string `xorm:"varchar(32) not null" json:"Platelets" valid:"required"`
	SedimentationSpeed string `xorm:"varchar(32) not null" json:"Sedimentation-Speed-1h" valid:"required"`
	Creatinine         string `xorm:"varchar(32) not null" json:"Creatinine" valid:"required"`
	GlucoseLevelAtFast string `xorm:"varchar(32) not null" json:"Glucose-Fast" valid:"required"`
	Triglycerides      string `xorm:"varchar(32) not null" json:"Triglycerides" valid:"required"`
	CholesterolLevel   string `xorm:"varchar(32) not null" json:"Cholesterol-Level" valid:"required"`
	HDLCholesterol     string `xorm:"varchar(32) not null" json:"HDL-Cholesterol" valid:"required"`
	SGOTAST            string `xorm:"varchar(32) not null" json:"SGOT-ASAT" valid:"required"`
	SGPTALT            string `xorm:"varchar(32) not null" json:"SGPT-ALAT" valid:"required"`
	GammaGT            string `xorm:"varchar(32) not null" json:"Gamma-GT" valid:"required"`
	ProteinUrin        string `xorm:"varchar(32) not null" json:"Proteins-Urin" valid:"required"`
	GlucoseUrin        string `xorm:"varchar(32) not null" json:"Glucose-Urin" valid:"required"`
	LeukocyteUrin      string `xorm:"varchar(32) not null" json:"Hematuria" valid:"required"`
	Hematuria          string `xorm:"varchar(32) not null" json:"Leukocyte-Urin" valid:"required"`
}

PathologyAnalysisLevel .

type SpecAnalysisPool

type SpecAnalysisPool struct {
	Id   int64  `json:"id"`
	Name string `xorm:"varchar(128) not null unique" json:"name" valid:"required"`
	Unit string `xorm:"varchar(32) not null" json:"unit" valid:"required"`
	Min  string `xorm:"varchar(32) not null" json:"min"`
	Max  string `xorm:"varchar(32) not null" json:"max"`
}

SpecAnalysisPool .

type User

type User struct {
	Id            int64  `yaml:",omitempty"` //`xorm:"pk autoincr"`
	Username      string `xorm:"varchar(16) not null unique" valid:"alphanum,required" yaml:"username"`
	Email         string `xorm:"varchar(64) not null unique" valid:"email,required" yaml:"email"`
	Password      string `xorm:"varchar(128) not null" valid:"required" yaml:"password"`
	AccountType   string `xorm:"varchar(16) not null" valid:"alpha,required" yaml:"account_type"`
	AccountStatus bool   `xorm:"varchar(128) not null" valid:"required" yaml:"account_status"`
	AccountLevel  int8   `xorm:"default 5" yaml:"account_level"`
}

User .

Jump to

Keyboard shortcuts

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