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 (
|
2019-01-19 20:01:03 +01:00
|
|
|
"context"
|
|
|
|
|
2018-09-12 20:29:07 +02:00
|
|
|
"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)
|
2018-08-09 10:23:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------- 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) {
|
2018-08-09 10:23:10 +02:00
|
|
|
|
2019-01-19 20:01:03 +01:00
|
|
|
out := &pb.GetArticleResponse{}
|
2018-08-09 10:23:10 +02:00
|
|
|
_ = out
|
|
|
|
|
2019-01-19 20:01:03 +01:00
|
|
|
return out.Article, out.Storages, nil
|
2018-08-09 10:23:10 +02:00
|
|
|
|
|
|
|
}
|