Discover Packages
gitee.com/g-qs/gin-vue-admin/server
model
cancer
package
Version:
v0.0.0-...-533102b
Opens a new window with list of versions in this module.
Published: Nov 6, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Cancer struct {
ID uint `json:"id" gorm:"column:id;comment:id;"`
Name string `json:"name" gorm:"column:name;comment:名称;"`
Questions []Questions `json:"questions" gorm:"foreignKey:Cid;references:ID"`
}
type Options struct {
global .GVA_MODEL
UID uint `json:"uid" gorm:"column:uid;comment:用户ID"`
Options datatypes .JSON `json:"options" gorm:"column:options;comment:选项集"`
IsInfect *bool `json:"is_infect" gorm:"column:is_infect;comment:是否感染过(新冠)肺炎"`
IsInject *bool `json:"is_inject" gorm:"column:is_inject;comment:是否注射过(新冠)疫苗"`
}
type Questions struct {
ID uint `json:"id" gorm:"primarykey;column:id"`
Cid uint `json:"cid" gorm:"column:cid;comment:癌症ID"`
Question string `json:"question" gorm:"column:question;comment:问题"`
Cancer Cancer `json:"-" form:"-" gorm:"->;foreignKey:Cid;references:ID;"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.