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