dto

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: 11 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"`
	Name     string      `json:"name,omitempty"`     //基因名
	Genome   string      `json:"genome,omitempty"`   //基因修饰情况
	Serial   string      `json:"serial,omitempty"`   //对应第几条染色体
	Annotate []string    `json:"annotate,omitempty"` //基因修饰情况注解
	Extra    []ExtraInfo `json:"extra,omitempty"`    //基因修饰情况额外信息
}

type AlleleAddReq

type AlleleAddReq struct {
	Name     string      `json:"name,omitempty"`
	Annotate []string    `json:"annotate,omitempty"`
	Genome   string      `json:"genome,omitempty"`
	Serial   string      `json:"serial,omitempty"`
	Extra    []ExtraInfo `json:"extra,omitempty"`
}

type AlleleAll

type AlleleAll struct {
	Id       int64       `json:"id,omitempty"`
	StrainId int64       `json:"strain_id,omitempty"`
	Name     string      `json:"name,omitempty"`     //基因名
	Genome   string      `json:"genome,omitempty"`   //基因修饰情况
	Serial   string      `json:"serial,omitempty"`   //对应第几条染色体
	Extra    []ExtraInfo `json:"extra,omitempty"`    //基因修饰情况额外信息
	Annotate []string    `json:"annotate,omitempty"` //基因修饰情况注解
}

type AlleleAllListResp

type AlleleAllListResp struct {
	PageResp
	Allele []AlleleAll `json:"allele,omitempty"`
}

type AlleleDelReq

type AlleleDelReq struct {
	Id int64 `json:"id,omitempty"`
}

type AlleleListReq

type AlleleListReq struct {
	PageReq        //分页
	Key     string `json:"key,omitempty"`   //搜索的关键词
	Field   string `json:"field,omitempty"` //字段
	Order   string `json:"order,omitempty"` //排序方式
}

func (*AlleleListReq) Verify

func (s *AlleleListReq) Verify() error

type AlleleSearchReq

type AlleleSearchReq struct {
	Name string `json:"name,omitempty"`
}

func (*AlleleSearchReq) Verify

func (a *AlleleSearchReq) Verify() error

type AlleleSearchResp

type AlleleSearchResp struct {
	Allele []Allele `json:"allele,omitempty"` //基因信息
}

type AlleleUpdateReq

type AlleleUpdateReq struct {
	Id       int64       `json:"id,omitempty"`
	Name     string      `json:"name,omitempty"`
	Annotate []string    `json:"annotate,omitempty"`
	Genome   string      `json:"genome,omitempty"`
	Serial   string      `json:"serial,omitempty"`
	Extra    []ExtraInfo `json:"extra,omitempty"`
}

type ExtraInfo

type ExtraInfo struct {
	Id       int64  `json:"id,omitempty"`
	ExtraKey string `json:"extra_key,omitempty"`
	ExtraVal string `json:"extra_value,omitempty"`
}

type PageReq

type PageReq struct {
	PageNo   int `json:"page_no,omitempty"`
	PageSize int `json:"page_size,omitempty"`
}

type PageResp

type PageResp struct {
	PageNo   int   `json:"page_no,omitempty"`
	PageSize int   `json:"page_size,omitempty"`
	Total    int64 `json:"total,omitempty"`
}

type Result

type Result struct {
	Code    int    `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
	Key     string `json:"key,omitempty"`
	Data    any    `json:"data,omitempty"`
}

func LoginErrorResult

func LoginErrorResult() Result

func NewErrResult

func NewErrResult(key, err string) Result

func NewOKResult

func NewOKResult(data any) Result

func NoTokenResult

func NoTokenResult() Result

func TokenErrorResult

func TokenErrorResult() Result

type Strain

type Strain struct {
	Id             int64       `json:"id,omitempty"`
	StrainName     string      `json:"strain_name,omitempty"`
	Number         string      `json:"number,omitempty"`
	ShortName      []string    `json:"short_name,omitempty"`
	StrainAnnotate []string    `json:"strain_annotate,omitempty"`
	StrainExtra    []ExtraInfo `json:"strain_extra,omitempty"`
	Allele         []Allele    `json:"allele,omitempty"`
}

type StrainAddReq

type StrainAddReq struct {
	StrainName     string      `json:"strain_name,omitempty"`
	Number         string      `json:"number,omitempty"`
	ShortName      []string    `json:"short_name,omitempty"`
	StrainAnnotate []string    `json:"strain_annotate,omitempty"`
	StrainExtra    []ExtraInfo `json:"strain_extra,omitempty"`
	Allele         []Allele    `json:"allele,omitempty"`
}

func (*StrainAddReq) Verify

func (s *StrainAddReq) Verify() error

type StrainAlleleUpdateReq

type StrainAlleleUpdateReq struct {
	Id     int64    `json:"id,omitempty"`     //品系ID
	Allele []Allele `json:"allele,omitempty"` //基因信息
}

type StrainDelReq

type StrainDelReq struct {
	StrainId int64 `json:"strain_id,omitempty"`
}

func (*StrainDelReq) Verify

func (s *StrainDelReq) Verify() error

type StrainListReq

type StrainListReq struct {
	PageReq        //分页
	Key     string `json:"key,omitempty"`   //搜索的关键词
	Field   string `json:"field,omitempty"` //字段
	Order   string `json:"order,omitempty"` //排序方式
}

func (*StrainListReq) Verify

func (s *StrainListReq) Verify() error

type StrainListResp

type StrainListResp struct {
	PageResp
	StrainList []Strain `json:"strain_list,omitempty"`
}

type StrainNumberReq

type StrainNumberReq struct {
	Time int64  `json:"time,omitempty"`
	Sign string `json:"sign,omitempty"`
}

func (*StrainNumberReq) Verify

func (s *StrainNumberReq) Verify() error

type StrainNumberResp

type StrainNumberResp struct {
	Mumber string `json:"mumber,omitempty"`
}

type StrainUpdateReq

type StrainUpdateReq struct {
	Id             int64       `json:"id,omitempty"`
	StrainName     string      `json:"strain_name,omitempty"`
	Number         string      `json:"number,omitempty"`
	ShortName      []string    `json:"short_name,omitempty"`
	StrainAnnotate []string    `json:"strain_annotate,omitempty"`
	StrainExtra    []ExtraInfo `json:"strain_extra,omitempty"`
	Allele         []Allele    `json:"allele,omitempty"`
}

func (*StrainUpdateReq) Verify

func (s *StrainUpdateReq) Verify() error

type UserChangePasswordReq

type UserChangePasswordReq struct {
	OldPassword string `json:"old_password,omitempty"`
	NewPassword string `json:"new_password,omitempty"`
	Time        int64  `json:"time,omitempty"`
	Sign        string `json:"sign,omitempty"`
}

func (*UserChangePasswordReq) Verify

func (u *UserChangePasswordReq) Verify() error

type UserLoginReq

type UserLoginReq struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Time     int64  `json:"time,omitempty"`
	Sign     string `json:"sign,omitempty"`
}

func (*UserLoginReq) Verify

func (u *UserLoginReq) Verify() error

type UserLoginResp

type UserLoginResp struct {
	Token    string        `json:"token,omitempty"`
	UserName string        `json:"user_name,omitempty"`
	Menus    []*model.Menu `json:"menus,omitempty"`
}

type UserRegisterReq

type UserRegisterReq struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Time     int64  `json:"time,omitempty"`
	Sign     string `json:"sign,omitempty"`
}

func (*UserRegisterReq) Verify

func (u *UserRegisterReq) Verify() error

Jump to

Keyboard shortcuts

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