2017-05-02 00:55:55 +03:00
|
|
|
// Code generated by protoc-gen-gotemplate
|
2018-08-09 11:23:10 +03:00
|
|
|
package company
|
2017-05-02 00:55:55 +03:00
|
|
|
|
|
|
|
import (
|
2019-01-19 22:01:03 +03:00
|
|
|
"context"
|
|
|
|
|
2018-09-12 21:29:07 +03:00
|
|
|
"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)
|
2018-08-09 11:23:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------- 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) {
|
2018-08-09 11:23:10 +03:00
|
|
|
|
2019-01-19 22:01:03 +03:00
|
|
|
out := &pb.GetArticleResponse{}
|
2018-08-09 11:23:10 +03:00
|
|
|
_ = out
|
|
|
|
|
2019-01-19 22:01:03 +03:00
|
|
|
return out.Article, out.Storages, nil
|
2018-08-09 11:23:10 +03:00
|
|
|
|
|
|
|
}
|