设为首页 加入收藏

TOP

Gin-Go学习笔记五:Gin-Web框架 文件的操作(三)
2017-12-23 06:06:46 】 浏览:1786
Tags:Gin-Go 学习 笔记 Gin-Web 框架 文件 操作
, AddHtml) router.POST("/home/saveadd", AddPersonApi) //编辑页面 router.GET("/home/edit", EditHtml) router.POST("/home/saveedit", EditPersonApi) //删除 router.POST("/home/delete", DeletePersonApi) //Bootstrap布局页面 router.GET("/home/bootstrap", Bootstraphtml) //文件的上传和下载 router.GET("/home/fileopt", Fileopthtml) router.POST("/home/fileuplaod", Fileupload) router.GET("/home/filedown", Filedown) //文件的创建删除和读写 router.GET("/home/filerw", Filerwhtml) router.POST("/home/addfile", FilerCreate)//创建文件 router.POST("/home/writefile", FilerWrite)//写入文件 router.POST("/home/readfile", FilerRead)//读取文件 router.POST("/home/deletefile", FilerDelete)//删除文件 return router }

  

6>     使用到的项目结构如下:

 

 

7>     编译运行代码,测试执行的效果如下

  

 

8>     下一章讲Api接口的编写

首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Gin-Go学习笔记六:Gin-Web框架 A.. 下一篇Gin-Go学习笔记七:Gin-Web框架 ..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目