This reverts commit 1a3bd1a6b3.
1a3bd1a6b3
This reverts commit 37c78d9a4e.
37c78d9a4e
- 新增BaseController,包含Success和Error通用响应方法 - 修改DefaultController Index方法,改为返回HTML页面 - 更新index.html模板,优化模板语法和结构,增加条件判断和循环示例 - UserController嵌入BaseController,Index方法统一调用Success响应 - 修正部分注释及代码格式提升可读性
gin自定义控制器 实现控制器的继承