Skip to content

Commit

Permalink
migrate "web" to "pages" (#63)
Browse files Browse the repository at this point in the history
* migrate changed SectionService from deprecated package `web` into package `pages`

* migrate go code from `web` to `pages` package
  • Loading branch information
Harry Urban committed Oct 7, 2020
1 parent db32cd1 commit 9289586
Show file tree
Hide file tree
Showing 14 changed files with 403 additions and 1,269 deletions.
10 changes: 6 additions & 4 deletions go/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"testing"

"github.com/stroeer/tapir/go/stroeer/core/v1"
"github.com/stroeer/tapir/go/stroeer/web/article/v1"
"github.com/stroeer/tapir/go/stroeer/pages/article/v1"
"github.com/stroeer/tapir/go/stroeer/pages/section/v1"
"google.golang.org/protobuf/proto"
)

Expand All @@ -18,9 +19,10 @@ func TestGenerator(t *testing.T) {
}{
{name: "v1.Article", input: &core.Article{}, exp: "stroeer.core.v1.Article"},
{name: "v1.GetArticleRequest", input: &core.GetArticleRequest{}, exp: "stroeer.core.v1.GetArticleRequest"},
{name: "v1.WebArticle", input: &article.WebArticle{}, exp: "stroeer.web.article.v1.WebArticle"},
{name: "v1.GetWebArticlePageRequest", input: &article.GetWebArticlePageRequest{}, exp: "stroeer.web.article.v1.GetWebArticlePageRequest"},
{name: "v1.GetWebArticlePageResponse", input: &article.GetWebArticlePageResponse{}, exp: "stroeer.web.article.v1.GetWebArticlePageResponse"},
{name: "v1.GetArticlePageRequest", input: &article.GetArticlePageRequest{}, exp: "stroeer.pages.article.v1.GetArticlePageRequest"},
{name: "v1.GetArticlePageResponse", input: &article.GetArticlePageResponse{}, exp: "stroeer.pages.article.v1.GetArticlePageResponse"},
{name: "v1.GetSectionPageRequest", input: &section.GetSectionPageRequest{}, exp: "stroeer.pages.section.v1.GetSectionPageRequest"},
{name: "v1.GetSectionPageResponse", input: &section.GetSectionPageResponse{}, exp: "stroeer.pages.section.v1.GetSectionPageResponse"},
}

for _, tc := range tests {
Expand Down
336 changes: 336 additions & 0 deletions go/stroeer/pages/section/v1/section_page.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9289586

Please sign in to comment.