Skip to content

Commit ad18f2e

Browse files
author
Andrey Golikov
committed
add ClientServiceInterface
1 parent abaa471 commit ad18f2e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pkg/codegen/templates/client-with-responses.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ type ClientWithResponses struct {
33
ClientInterface
44
}
55

6+
// The common interface
7+
type ClientServiceInterface interface {
8+
ClientInterface
9+
ClientWithResponsesInterface
10+
}
11+
12+
613
// NewClientWithResponses creates a new ClientWithResponses, which wraps
714
// Client with return type handling
815
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {

0 commit comments

Comments
 (0)