Reapply "feat(controller): 完善基础控制器及默认页面渲染"

This reverts commit 1a3bd1a6b3.
This commit is contained in:
2026-02-21 12:50:53 +08:00
parent b84e6449dc
commit 32dae8712c
4 changed files with 34 additions and 32 deletions

View File

@@ -0,0 +1,13 @@
package admin
import "github.com/gin-gonic/gin"
type BaseController struct {
}
func (con BaseController) Success(c *gin.Context) {
c.String(200, "成功")
}
func (con BaseController) Error(c *gin.Context) {
c.String(200, "失败")
}