27 lines
762 B
Go
Raw Normal View History

2017-05-01 23:55:55 +02:00
// Code generated by protoc-gen-gotemplate
package company
2017-05-01 23:55:55 +02:00
import (
2019-01-19 20:01:03 +01:00
"context"
"moul.io/protoc-gen-gotemplate/examples/import/output/models/article"
2019-01-19 20:01:03 +01:00
"moul.io/protoc-gen-gotemplate/examples/import/output/models/common"
2017-05-01 23:55:55 +02:00
)
type Repository interface {
2019-01-19 20:01:03 +01:00
GetArticle(getarticle *common.GetArticle) (*company.Article, []*company.Storage, error)
}
// ------------------------- Public SDK -----------------------------
// GetArticle : proto: missing extension proto: missing extension
2019-01-19 20:01:03 +01: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 20:01:03 +01:00
out := &pb.GetArticleResponse{}
_ = out
2019-01-19 20:01:03 +01:00
return out.Article, out.Storages, nil
}