package rbac

type roleRequest struct {
	Name          string `json:"name" binding:"required"`
	Code          string `json:"code" binding:"required"`
	Description   string `json:"description"`
	PermissionIDs []uint `json:"permissionIds"`
}

type rolePermissionRequest struct {
	PermissionIDs []uint `json:"permissionIds"`
}

type dataScopeRequest struct {
	Scopes []dataScopeItem `json:"scopes"`
}

type dataScopeItem struct {
	ScopeType  string `json:"scopeType" binding:"required"`
	ScopeValue string `json:"scopeValue" binding:"required"`
}

type permissionRequest struct {
	Name        string `json:"name" binding:"required"`
	Code        string `json:"code" binding:"required"`
	Kind        string `json:"kind" binding:"required"`
	Description string `json:"description"`
}
