|
|
@ -15,7 +15,7 @@ import ( |
|
|
|
// is compatible with the kratos package it is being compiled against.
|
|
|
|
// is compatible with the kratos package it is being compiled against.
|
|
|
|
var _ = new(context.Context) |
|
|
|
var _ = new(context.Context) |
|
|
|
var _ = new(transport.Transporter) |
|
|
|
var _ = new(transport.Transporter) |
|
|
|
var _ = binding.EncodeVars |
|
|
|
var _ = binding.EncodeURL |
|
|
|
|
|
|
|
|
|
|
|
const _ = http.SupportPackageIsVersion1 |
|
|
|
const _ = http.SupportPackageIsVersion1 |
|
|
|
|
|
|
|
|
|
|
@ -158,7 +158,7 @@ func NewBlogServiceHTTPClient(client *http.Client) BlogServiceHTTPClient { |
|
|
|
|
|
|
|
|
|
|
|
func (c *BlogServiceHTTPClientImpl) CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...http.CallOption) (*CreateArticleReply, error) { |
|
|
|
func (c *BlogServiceHTTPClientImpl) CreateArticle(ctx context.Context, in *CreateArticleRequest, opts ...http.CallOption) (*CreateArticleReply, error) { |
|
|
|
var out CreateArticleReply |
|
|
|
var out CreateArticleReply |
|
|
|
path := binding.EncodeVars("/v1/article/", in, false) |
|
|
|
path := binding.EncodeURL("/v1/article/", in, false) |
|
|
|
opts = append(opts, http.Operation("/blog.api.v1.BlogService/CreateArticle")) |
|
|
|
opts = append(opts, http.Operation("/blog.api.v1.BlogService/CreateArticle")) |
|
|
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...) |
|
|
|
err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
@ -169,7 +169,7 @@ func (c *BlogServiceHTTPClientImpl) CreateArticle(ctx context.Context, in *Creat |
|
|
|
|
|
|
|
|
|
|
|
func (c *BlogServiceHTTPClientImpl) DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...http.CallOption) (*DeleteArticleReply, error) { |
|
|
|
func (c *BlogServiceHTTPClientImpl) DeleteArticle(ctx context.Context, in *DeleteArticleRequest, opts ...http.CallOption) (*DeleteArticleReply, error) { |
|
|
|
var out DeleteArticleReply |
|
|
|
var out DeleteArticleReply |
|
|
|
path := binding.EncodeVars("/v1/article/{id}", in, false) |
|
|
|
path := binding.EncodeURL("/v1/article/{id}", in, false) |
|
|
|
opts = append(opts, http.Operation("/blog.api.v1.BlogService/DeleteArticle")) |
|
|
|
opts = append(opts, http.Operation("/blog.api.v1.BlogService/DeleteArticle")) |
|
|
|
err := c.cc.Invoke(ctx, "DELETE", path, nil, &out, opts...) |
|
|
|
err := c.cc.Invoke(ctx, "DELETE", path, nil, &out, opts...) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
@ -180,7 +180,7 @@ func (c *BlogServiceHTTPClientImpl) DeleteArticle(ctx context.Context, in *Delet |
|
|
|
|
|
|
|
|
|
|
|
func (c *BlogServiceHTTPClientImpl) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...http.CallOption) (*GetArticleReply, error) { |
|
|
|
func (c *BlogServiceHTTPClientImpl) GetArticle(ctx context.Context, in *GetArticleRequest, opts ...http.CallOption) (*GetArticleReply, error) { |
|
|
|
var out GetArticleReply |
|
|
|
var out GetArticleReply |
|
|
|
path := binding.EncodeVars("/v1/article/{id}", in, true) |
|
|
|
path := binding.EncodeURL("/v1/article/{id}", in, true) |
|
|
|
opts = append(opts, http.Operation("/blog.api.v1.BlogService/GetArticle")) |
|
|
|
opts = append(opts, http.Operation("/blog.api.v1.BlogService/GetArticle")) |
|
|
|
err := c.cc.Invoke(ctx, "GET", path, nil, &out, opts...) |
|
|
|
err := c.cc.Invoke(ctx, "GET", path, nil, &out, opts...) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
@ -191,7 +191,7 @@ func (c *BlogServiceHTTPClientImpl) GetArticle(ctx context.Context, in *GetArtic |
|
|
|
|
|
|
|
|
|
|
|
func (c *BlogServiceHTTPClientImpl) ListArticle(ctx context.Context, in *ListArticleRequest, opts ...http.CallOption) (*ListArticleReply, error) { |
|
|
|
func (c *BlogServiceHTTPClientImpl) ListArticle(ctx context.Context, in *ListArticleRequest, opts ...http.CallOption) (*ListArticleReply, error) { |
|
|
|
var out ListArticleReply |
|
|
|
var out ListArticleReply |
|
|
|
path := binding.EncodeVars("/v1/article/", in, true) |
|
|
|
path := binding.EncodeURL("/v1/article/", in, true) |
|
|
|
opts = append(opts, http.Operation("/blog.api.v1.BlogService/ListArticle")) |
|
|
|
opts = append(opts, http.Operation("/blog.api.v1.BlogService/ListArticle")) |
|
|
|
err := c.cc.Invoke(ctx, "GET", path, nil, &out, opts...) |
|
|
|
err := c.cc.Invoke(ctx, "GET", path, nil, &out, opts...) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
@ -202,7 +202,7 @@ func (c *BlogServiceHTTPClientImpl) ListArticle(ctx context.Context, in *ListArt |
|
|
|
|
|
|
|
|
|
|
|
func (c *BlogServiceHTTPClientImpl) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...http.CallOption) (*UpdateArticleReply, error) { |
|
|
|
func (c *BlogServiceHTTPClientImpl) UpdateArticle(ctx context.Context, in *UpdateArticleRequest, opts ...http.CallOption) (*UpdateArticleReply, error) { |
|
|
|
var out UpdateArticleReply |
|
|
|
var out UpdateArticleReply |
|
|
|
path := binding.EncodeVars("/v1/article/{id}", in, false) |
|
|
|
path := binding.EncodeURL("/v1/article/{id}", in, false) |
|
|
|
opts = append(opts, http.Operation("/blog.api.v1.BlogService/UpdateArticle")) |
|
|
|
opts = append(opts, http.Operation("/blog.api.v1.BlogService/UpdateArticle")) |
|
|
|
err := c.cc.Invoke(ctx, "PUT", path, in, &out, opts...) |
|
|
|
err := c.cc.Invoke(ctx, "PUT", path, in, &out, opts...) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|