type Student struct { Age int Name string}
func (it *ServiceContext) AutoMigrate() { it.DB.AutoMigrate( &Student{}, )}// 数据库中照样会创建这张 student 表,并且该表 有 age name 这两个字段