model

package
v0.0.0-...-4431c33 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 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 Allele

type Allele struct {
	Id         int64  `json:"id,omitempty" gorm:"primary_key;not null;type:integer PRIMARY KEY AUTOINCREMENT"`
	StrainId   int64  `json:"-"`                //对应的品系名ID
	Name       string `json:"name,omitempty"`   //基因名
	Genome     string `json:"genome,omitempty"` //基因修饰情况
	Serial     string `json:"serial,omitempty"` //第几条染色体
	CreatorId  int64  `json:"creator_id,omitempty"`
	CreateTime int64  `json:"create_time,omitempty"`
	UpdateTime int64  `json:"update_time,omitempty"`
}

func (*Allele) TableName

func (a *Allele) TableName() string

type AlleleAll

type AlleleAll struct {
	AlleleId int64  `json:"allele_id,omitempty"`
	StrainId string `json:"strain_id,omitempty"`
	Name     string `json:"name,omitempty"`
	Genome   string `json:"genome,omitempty"`
	Serial   string `json:"serial,omitempty"`
	ExtraKey string `json:"extra_key,omitempty"`
	ExtraVal string `json:"extra_val,omitempty"`
	Annotate string `json:"annotate,omitempty"`
}

基因全字段

type AlleleAnnotate

type AlleleAnnotate struct {
	Id         int64  `json:"id,omitempty" gorm:"primary_key;not null;type:integer PRIMARY KEY AUTOINCREMENT"`
	AlleleId   int64  `json:"-"`                  //对应的ID
	Annotate   string `json:"annotate,omitempty"` //注解
	CreatorId  int64  `json:"creator_id,omitempty"`
	CreateTime int64  `json:"create_time,omitempty"`
	UpdateTime int64  `json:"update_time,omitempty"`
}

基因注释

func (*AlleleAnnotate) TableName

func (a *AlleleAnnotate) TableName() string

type AlleleExtra

type AlleleExtra struct {
	Id         int64  `json:"id,omitempty" gorm:"primary_key;not null;type:integer PRIMARY KEY AUTOINCREMENT"`
	AlleleId   int64  `json:"-"`                     //基因对应的ID
	ExtraKey   string `json:"extra_key,omitempty"`   //基因额外信息key
	ExtraValue string `json:"extra_value,omitempty"` //基因额外信息value
	CreatorId  int64  `json:"creator_id,omitempty"`
	CreateTime int64  `json:"create_time,omitempty"`
	UpdateTime int64  `json:"update_time,omitempty"`
}

基因额外信息

func (*AlleleExtra) TableName

func (a *AlleleExtra) TableName() string
type Menu struct {
	Id    uint64  `json:"id" gorm:"primaryKey;autoIncrement;not null"` //自增ID
	Pid   uint64  `json:"pid,omitempty"`                               //父级ID
	Name  string  `json:"name,omitempty"`                              //菜单名字
	Path  string  `json:"path,omitempty"`                              //菜单路径
	Child []*Menu `json:"child" gorm:"-"`
}
func (m *Menu) TableName() string

type ShortName

type ShortName struct {
	Id         int64  `json:"id,omitempty" gorm:"primary_key;not null;type:integer PRIMARY KEY AUTOINCREMENT"`
	StrainId   int64  `json:"strain_id,omitempty"`  //品系名id
	ShortName  string `json:"short_name,omitempty"` //简称
	CreatorId  int64  `json:"creator_id,omitempty"`
	CreateTime int64  `json:"create_time,omitempty"`
	UpdateTime int64  `json:"update_time,omitempty"`
}

简称 一个品系可能对应多个简称

func (*ShortName) TableName

func (c *ShortName) TableName() string

type Strain

type Strain struct {
	Id         int64  `json:"id,omitempty" gorm:"primary_key;not null;type:integer PRIMARY KEY AUTOINCREMENT"`
	Number     string `json:"number,omitempty"`      //序列号,一般#开头
	StrainName string `json:"strain_name,omitempty"` //品系名(有人做出来之后没来得及命名 或者没有提交国际注册的话,可能是空)
	CreatorId  int64  `json:"creator_id,omitempty"`
	CreateTime int64  `json:"create_time,omitempty"`
	UpdateTime int64  `json:"update_time,omitempty"`
}

品系名

func (*Strain) TableName

func (s *Strain) TableName() string

type StrainAllele

type StrainAllele struct {
	Id               int64  `json:"id,omitempty"`
	Number           string `json:"number,omitempty"`
	StrainName       string `json:"strain_name,omitempty"`
	AlleleId         string `json:"allele_id"`
	AlleleName       string `json:"allele_name,omitempty"`
	Genome           string `json:"genome,omitempty"`
	Serial           string `json:"serial,omitempty"`
	AlleleExtraKey   string `json:"allele_extra_key,omitempty"`
	AlleleExtraValue string `json:"allele_extra_value,omitempty"`
	AAnnotate        string `json:"a_annotate,omitempty"` //基因注解信息
	StrainAnnotate   string `json:"strain_annotate,omitempty"`
	StrainExtraKey   string `json:"strain_extra_key,omitempty"`
	StrainExtraValue string `json:"strain_extra_value,omitempty"`
	ShortName        string `json:"short_name,omitempty"`
}

type StrainAnnotate

type StrainAnnotate struct {
	Id         int64  `json:"id,omitempty" gorm:"primary_key;not null;type:integer PRIMARY KEY AUTOINCREMENT"`
	StrainId   int64  `json:"strain_id,omitempty"` //品系名id
	Annotate   string `json:"annotate,omitempty"`  //品系注解
	CreatorId  int64  `json:"creator_id,omitempty"`
	CreateTime int64  `json:"create_time,omitempty"`
	UpdateTime int64  `json:"update_time,omitempty"`
}

品系名注解 一个品系可能对应多个注解

func (*StrainAnnotate) TableName

func (c *StrainAnnotate) TableName() string

type StrainExtra

type StrainExtra struct {
	Id         int64  `json:"id,omitempty" gorm:"primary_key;not null;type:integer PRIMARY KEY AUTOINCREMENT"`
	StrainId   int64  `json:"strain_id,omitempty"`   //品系名id
	ExtraKey   string `json:"extra_key,omitempty"`   //品系额外信息key
	ExtraValue string `json:"extra_value,omitempty"` //品系额外信息value
	CreatorId  int64  `json:"creator_id,omitempty"`
	CreateTime int64  `json:"create_time,omitempty"`
	UpdateTime int64  `json:"update_time,omitempty"`
}

品系名额外信息,一个品系可能对应多个额外信息

func (*StrainExtra) TableName

func (c *StrainExtra) TableName() string

type User

type User struct {
	Id         int64  `json:"id,omitempty" gorm:"primary_key;not null;type:integer PRIMARY KEY AUTOINCREMENT"`
	UserName   string `json:"user_name,omitempty"`
	Password   string `json:"password,omitempty"`
	CreateTime int64  `json:"create_time,omitempty"`
	UpdateTime int64  `json:"update_time,omitempty"`
}

Jump to

Keyboard shortcuts

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