Documentation
¶
Index ¶
- type Allele
- type AlleleAddReq
- type AlleleAll
- type AlleleAllListResp
- type AlleleDelReq
- type AlleleListReq
- type AlleleSearchReq
- type AlleleSearchResp
- type AlleleUpdateReq
- type ExtraInfo
- type PageReq
- type PageResp
- type Result
- type Strain
- type StrainAddReq
- type StrainAlleleUpdateReq
- type StrainDelReq
- type StrainListReq
- type StrainListResp
- type StrainNumberReq
- type StrainNumberResp
- type StrainUpdateReq
- type UserChangePasswordReq
- type UserLoginReq
- type UserLoginResp
- type UserRegisterReq
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 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 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 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 NewOKResult ¶
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 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 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 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
Source Files
¶
- allele.go
- allele_add_req.go
- allele_all.go
- allele_all_list_req.go
- allele_all_list_resp.go
- allele_del_req.go
- allele_search_req.go
- allele_search_resp.go
- allele_update_req.go
- extra_info.go
- page_req.go
- page_resp.go
- result.go
- strain.go
- strain_add_req.go
- strain_allele_update_req.go
- strain_del_req.go
- strain_list_req.go
- strain_list_resp.go
- strain_number_req.go
- strain_number_resp.go
- strain_update_req.go
- user_change_password_req.go
- user_login_req.go
- user_login_resp.go
- user_register_req.go
Click to show internal directories.
Click to hide internal directories.