From 7be6c3cbe1a027459dc497dfef5c138ddecfbcbd Mon Sep 17 00:00:00 2001 From: Moritz Zimmer Date: Thu, 2 Dec 2021 14:11:00 +0100 Subject: [PATCH] feat: removed legacy cms service (#331) --- stroeer/coremedia/v1/curated_stage.proto | 28 --------------- stroeer/coremedia/v1/curation_service.proto | 40 --------------------- 2 files changed, 68 deletions(-) delete mode 100644 stroeer/coremedia/v1/curated_stage.proto delete mode 100644 stroeer/coremedia/v1/curation_service.proto diff --git a/stroeer/coremedia/v1/curated_stage.proto b/stroeer/coremedia/v1/curated_stage.proto deleted file mode 100644 index 4e3dd05d..00000000 --- a/stroeer/coremedia/v1/curated_stage.proto +++ /dev/null @@ -1,28 +0,0 @@ -syntax = "proto3"; - -package stroeer.coremedia.v1; - -option go_package = "github.com/stroeer/go-tapir/coremedia/v1;coremedia"; -option java_multiple_files = true; -option java_package = "de.stroeer.coremedia.v1"; - -// A collection of articles for one block of teasers on overview pages -message CuratedStage { - // List of articles curated by a CvD - repeated CuratedArticle articles = 1; - // Optional label from a CvD for the block, like "CORONAVIRUS" - string stage_label = 2; - // Conventional id for this stage, like 'aufmacher', 'panorama' or 'schlagzeilen' - // If the request provided a numeric id, the stage_id will be the string value of it. - string stage_id = 3; - // Numeric id in the CMS, that maps to the descriptive stage_id. - int64 list_id = 4; -} - -// A message to package an article id with a differing headline for overview pages. -message CuratedArticle { - // Numeric id of the curated article, for resolving to an actual Article. - int64 id = 1; - // Optional, and usually shorter headline, set by a CvD used for teasing articles on overview pages. - string curated_headline = 3; -} diff --git a/stroeer/coremedia/v1/curation_service.proto b/stroeer/coremedia/v1/curation_service.proto deleted file mode 100644 index c1fa9d36..00000000 --- a/stroeer/coremedia/v1/curation_service.proto +++ /dev/null @@ -1,40 +0,0 @@ -syntax = "proto3"; - -/** - * @FileArticle â„ CurationService - */ - -package stroeer.coremedia.v1; - -import "stroeer/coremedia/v1/curated_stage.proto"; - -option go_package = "github.com/stroeer/go-tapir/coremedia/v1;coremedia"; -option java_multiple_files = true; -option java_package = "de.stroeer.coremedia.v1"; - -/** - * Get curation information from editors / CvD for overview pages, namely the homepage - * - * ```protobuf - * service CurationService { - * # Responds with curation data for the provided request parameters. - * rpc GetCuratedStages (GetCuratedStagesRequest) returns (GetCuratedStagesResponse) {} - * } - * ``` - */ -service CurationService { - // Responds with curation data for the provided request parameters. - rpc GetCuratedStages (GetCuratedStagesRequest) returns (GetCuratedStagesResponse) {} -} - -// Message that defines parameters for invoking GetCuratedStages method. -message GetCuratedStagesRequest { - // List of descriptive stage_ids, like 'aufmacher', 'sport', 'schlagzeilen'. - // When providing a numeric id, like '69725912, it will be used to fetch a CMS list with that id. - repeated string stage_ids = 1; -} - -// Response object with the list of CuratedStages, one for each provided stage_id, that could be resolved to curation data. -message GetCuratedStagesResponse { - repeated stroeer.coremedia.v1.CuratedStage stages = 1; -}