代码推送

This commit is contained in:
2026-09-09 02:39:57 +08:00
parent a112893947
commit 5e47757c73
24 changed files with 1156 additions and 226 deletions

View File

@@ -58,9 +58,9 @@ func (s *FoodService) GetRestaurantMenu(restaurantID uint) (map[string]interface
return nil, err
}
return map[string]interface{}{
"restaurant": restaurant,
"categories": categories,
"menu_items": items,
"restaurant": restaurant,
"categories": categories,
"menu_items": items,
}, nil
}

View File

@@ -76,11 +76,11 @@ func (s *UploadService) Upload(module string, filename string, contentType strin
// FileInfo 文件信息
type FileInfo struct {
Name string `json:"name"`
URL string `json:"url"`
Size int64 `json:"size"`
ModTime string `json:"mod_time"`
IsDir bool `json:"is_dir"`
Name string `json:"name"`
URL string `json:"url"`
Size int64 `json:"size"`
ModTime string `json:"mod_time"`
IsDir bool `json:"is_dir"`
}
// ListFiles 列出指定模块下的所有文件(递归遍历子目录)