support user role attachment

This commit is contained in:
yanghao05
2023-02-05 13:30:43 +08:00
parent 285e1f1c51
commit ee631b9714
17 changed files with 518 additions and 50 deletions

23
modules/auth/controller/user.go Executable file
View File

@@ -0,0 +1,23 @@
package controller
import (
"atom/providers/config"
"github.com/gin-gonic/gin"
)
type UserController interface {
GetName(*gin.Context) (string, error)
}
type userControllerImpl struct {
conf *config.Config
}
func NewUserController(conf *config.Config) UserController {
return &userControllerImpl{conf: conf}
}
func (c *userControllerImpl) GetName(ctx *gin.Context) (string, error) {
return "User",nil
}