Files
GoCode/controller/admin/userController.go
nannanwu 8155bd710b gin路由分组 路由文件抽离
gin自定义控制器 实现控制器的继承
2025-12-03 22:19:24 +08:00

15 lines
266 B
Go

package admin
import "github.com/gin-gonic/gin"
type UserController struct {
}
func (con UserController) Index(c *gin.Context) {
c.String(200, "管理员用户列表")
}
func (con UserController) Show(c *gin.Context) {
c.String(200, "管理员用户详情")
}