代码推送
This commit is contained in:
@@ -59,7 +59,10 @@ func seedFoodData(db *gorm.DB) error {
|
||||
}
|
||||
|
||||
// 为每个餐厅创建菜品分类和菜品
|
||||
type catSeed struct{ name string; items []model.MenuItem }
|
||||
type catSeed struct {
|
||||
name string
|
||||
items []model.MenuItem
|
||||
}
|
||||
restaurantMenus := map[uint][]catSeed{
|
||||
// 蜀香苑 川菜
|
||||
1: {
|
||||
|
||||
Reference in New Issue
Block a user