You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
555 B
Go

11 months ago
package common
import "miniapp/global"
type Hospital struct {
global.GVA_MODEL
Name string `json:"name" form:"name" gorm:"comment:医院名称;"`
Addr string `json:"addr" form:"addr" gorm:"comment:医院地址;"`
Phone string `json:"phone" form:"phone" gorm:"comment:医院电话;"`
Notes []Notes `json:"notes" form:"notes" gorm:"many2many:hospital_notes;comment:注意事项;"`
Todos []Todos `json:"todos" form:"todos" gorm:"many2many:hospital_todos;comment:任务列表;"`
}
func (h Hospital) TableName() string {
return "sys_hospital"
}