protoc-gen-go-micro/examples/import/output/output.go

27 lines
762 B
Go
Raw Normal View History

2017-05-02 00:55:55 +03:00
// Code generated by protoc-gen-gotemplate
package company
2017-05-02 00:55:55 +03:00
import (
2019-01-19 22:01:03 +03:00
"context"
"moul.io/protoc-gen-gotemplate/examples/import/output/models/article"
2019-01-19 22:01:03 +03:00
"moul.io/protoc-gen-gotemplate/examples/import/output/models/common"
2017-05-02 00:55:55 +03:00
)
type Repository interface {
2019-01-19 22:01:03 +03:00
GetArticle(getarticle *common.GetArticle) (*company.Article, []*company.Storage, error)
}
// ------------------------- Public SDK -----------------------------
// GetArticle : proto: missing extension proto: missing extension
2019-01-19 22:01:03 +03:00
func (sdk *Sdk) GetArticle(ctx context.Context,
getarticle *article.GetArticle, token, requestID string) (article *article.Article, storages []*article.GetArticleResponse_Storage, err error) {
2019-01-19 22:01:03 +03:00
out := &pb.GetArticleResponse{}
_ = out
2019-01-19 22:01:03 +03:00
return out.Article, out.Storages, nil
}