cancer

package
v0.0.0-...-533102b Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cancer

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"`
}

func (Cancer) TableName

func (Cancer) TableName() string

type Options

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:是否注射过(新冠)疫苗"`
}

func (Options) TableName

func (Options) TableName() string

type Questions

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;"`
}

func (Questions) TableName

func (Questions) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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