33 lines
671 B
Go
33 lines
671 B
Go
package router
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
type HealthHandler interface {
|
|
HealthCheck(c *gin.Context)
|
|
}
|
|
|
|
type UserHandler interface {
|
|
ListUsers(c *gin.Context)
|
|
GetProfile(c *gin.Context)
|
|
UpdateProfile(c *gin.Context)
|
|
ChangePassword(c *gin.Context)
|
|
ListTitles(c *gin.Context)
|
|
}
|
|
|
|
type FileHandler interface {
|
|
UploadProfileAvatar(c *gin.Context)
|
|
UploadDocument(c *gin.Context)
|
|
}
|
|
|
|
type RBACHandler interface {
|
|
CreatePermission(c *gin.Context)
|
|
UpdatePermission(c *gin.Context)
|
|
DeletePermission(c *gin.Context)
|
|
ListPermissions(c *gin.Context)
|
|
|
|
CreateRole(c *gin.Context)
|
|
UpdateRole(c *gin.Context)
|
|
DeleteRole(c *gin.Context)
|
|
ListRoles(c *gin.Context)
|
|
}
|