github.com/artisanhe/tools@v1.0.1-0.20210607022958-19a8fef2eb04/courier/client/gen/common/interfaces.go (about)

     1  package common
     2  
     3  import (
     4  	"io"
     5  
     6  	"github.com/artisanhe/tools/codegen"
     7  )
     8  
     9  type Op interface {
    10  	ID() string
    11  	Method() string
    12  	Path() string
    13  	HasRequest() bool
    14  	WriteReqType(w io.Writer, importer *codegen.Importer)
    15  	WriteRespBodyType(w io.Writer, importer *codegen.Importer)
    16  }