package validate_service

type AdminRole struct {
	Uid    int32 `json:"uid" validate:"required"`
	RoleId int32 `json:"role_id" validate:"required"`
}

type SetRole struct {
	Value     string `json:"value" validate:"required"`
	AllowRole string `json:"allow_role" validate:"required"`
}

type SetPermission struct {
	Value            string            `json:"value" validate:"required"`
	AllowPermissions []AllowPermission `json:"allow_permissions" validate:"required"`
}

type AllowPermission struct {
	Path   string `json:"path" validate:"required"`
	Method string `json:"method" validate:"required"`
}
