Files
atom/modules/auth/controller/role.go
2023-02-04 18:53:17 +08:00

29 lines
546 B
Go
Executable File

package controller
import (
"atom/modules/auth/dto"
"atom/providers/config"
"github.com/gin-gonic/gin"
)
type RoleController interface {
GetName(*gin.Context) (string, error)
}
type roleControllerImpl struct {
conf *config.Config
}
func NewRoleController(conf *config.Config) RoleController {
return &roleControllerImpl{conf: conf}
}
func (c *roleControllerImpl) GetName(ctx *gin.Context) (string, error) {
return "Role", nil
}
func (c *roleControllerImpl) Create(ctx *gin.Context, req *dto.RoleCreateRequest) error {
return nil
}