Documentation
¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type ListProductLinesRequest
- func (*ListProductLinesRequest) Descriptor() ([]byte, []int)
- func (m *ListProductLinesRequest) GetPage() int32
- func (m *ListProductLinesRequest) GetPageSize() int32
- func (*ListProductLinesRequest) ProtoMessage()
- func (m *ListProductLinesRequest) Reset()
- func (m *ListProductLinesRequest) String() string
- func (this *ListProductLinesRequest) Validate() error
- func (m *ListProductLinesRequest) XXX_DiscardUnknown()
- func (m *ListProductLinesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListProductLinesRequest) XXX_Merge(src proto.Message)
- func (m *ListProductLinesRequest) XXX_Size() int
- func (m *ListProductLinesRequest) XXX_Unmarshal(b []byte) error
- type ListProductLinesResponse
- func (*ListProductLinesResponse) Descriptor() ([]byte, []int)
- func (m *ListProductLinesResponse) GetList() []*app_store.ProductLine
- func (m *ListProductLinesResponse) GetPage() int32
- func (m *ListProductLinesResponse) GetPageSize() int32
- func (m *ListProductLinesResponse) GetTotal() int32
- func (*ListProductLinesResponse) ProtoMessage()
- func (m *ListProductLinesResponse) Reset()
- func (m *ListProductLinesResponse) String() string
- func (this *ListProductLinesResponse) Validate() error
- func (m *ListProductLinesResponse) XXX_DiscardUnknown()
- func (m *ListProductLinesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListProductLinesResponse) XXX_Merge(src proto.Message)
- func (m *ListProductLinesResponse) XXX_Size() int
- func (m *ListProductLinesResponse) XXX_Unmarshal(b []byte) error
- type ListProductLinesResponseWrapper
- func (*ListProductLinesResponseWrapper) Descriptor() ([]byte, []int)
- func (m *ListProductLinesResponseWrapper) GetCode() int32
- func (m *ListProductLinesResponseWrapper) GetCodeExplain() string
- func (m *ListProductLinesResponseWrapper) GetData() *ListProductLinesResponse
- func (m *ListProductLinesResponseWrapper) GetError() string
- func (*ListProductLinesResponseWrapper) ProtoMessage()
- func (m *ListProductLinesResponseWrapper) Reset()
- func (m *ListProductLinesResponseWrapper) String() string
- func (this *ListProductLinesResponseWrapper) Validate() error
- func (m *ListProductLinesResponseWrapper) XXX_DiscardUnknown()
- func (m *ListProductLinesResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListProductLinesResponseWrapper) XXX_Merge(src proto.Message)
- func (m *ListProductLinesResponseWrapper) XXX_Size() int
- func (m *ListProductLinesResponseWrapper) XXX_Unmarshal(b []byte) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s giraffe_micro.Server, srv Service)
Types ¶
type Client ¶
type Client interface {
ListProductLines(ctx context.Context, in *ListProductLinesRequest) (*ListProductLinesResponse, error)
}
Client is the client API for product_line service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(c giraffe_micro.Client) Client
type ListProductLinesRequest ¶
type ListProductLinesRequest struct { // //页码 Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page"` // //每页大小 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListProductLines请求
func (*ListProductLinesRequest) Descriptor ¶
func (*ListProductLinesRequest) Descriptor() ([]byte, []int)
func (*ListProductLinesRequest) GetPage ¶
func (m *ListProductLinesRequest) GetPage() int32
func (*ListProductLinesRequest) GetPageSize ¶
func (m *ListProductLinesRequest) GetPageSize() int32
func (*ListProductLinesRequest) ProtoMessage ¶
func (*ListProductLinesRequest) ProtoMessage()
func (*ListProductLinesRequest) Reset ¶
func (m *ListProductLinesRequest) Reset()
func (*ListProductLinesRequest) String ¶
func (m *ListProductLinesRequest) String() string
func (*ListProductLinesRequest) Validate ¶
func (this *ListProductLinesRequest) Validate() error
func (*ListProductLinesRequest) XXX_DiscardUnknown ¶
func (m *ListProductLinesRequest) XXX_DiscardUnknown()
func (*ListProductLinesRequest) XXX_Marshal ¶
func (m *ListProductLinesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListProductLinesRequest) XXX_Merge ¶
func (m *ListProductLinesRequest) XXX_Merge(src proto.Message)
func (*ListProductLinesRequest) XXX_Size ¶
func (m *ListProductLinesRequest) XXX_Size() int
func (*ListProductLinesRequest) XXX_Unmarshal ¶
func (m *ListProductLinesRequest) XXX_Unmarshal(b []byte) error
type ListProductLinesResponse ¶
type ListProductLinesResponse struct { // //返回总数 Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total" form:"total"` // //页数 Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page" form:"page"` // //该页大小 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"` // //产品线列表 List []*app_store.ProductLine `protobuf:"bytes,4,rep,name=list,proto3" json:"list" form:"list"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListProductLines返回
func (*ListProductLinesResponse) Descriptor ¶
func (*ListProductLinesResponse) Descriptor() ([]byte, []int)
func (*ListProductLinesResponse) GetList ¶
func (m *ListProductLinesResponse) GetList() []*app_store.ProductLine
func (*ListProductLinesResponse) GetPage ¶
func (m *ListProductLinesResponse) GetPage() int32
func (*ListProductLinesResponse) GetPageSize ¶
func (m *ListProductLinesResponse) GetPageSize() int32
func (*ListProductLinesResponse) GetTotal ¶
func (m *ListProductLinesResponse) GetTotal() int32
func (*ListProductLinesResponse) ProtoMessage ¶
func (*ListProductLinesResponse) ProtoMessage()
func (*ListProductLinesResponse) Reset ¶
func (m *ListProductLinesResponse) Reset()
func (*ListProductLinesResponse) String ¶
func (m *ListProductLinesResponse) String() string
func (*ListProductLinesResponse) Validate ¶
func (this *ListProductLinesResponse) Validate() error
func (*ListProductLinesResponse) XXX_DiscardUnknown ¶
func (m *ListProductLinesResponse) XXX_DiscardUnknown()
func (*ListProductLinesResponse) XXX_Marshal ¶
func (m *ListProductLinesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListProductLinesResponse) XXX_Merge ¶
func (m *ListProductLinesResponse) XXX_Merge(src proto.Message)
func (*ListProductLinesResponse) XXX_Size ¶
func (m *ListProductLinesResponse) XXX_Size() int
func (*ListProductLinesResponse) XXX_Unmarshal ¶
func (m *ListProductLinesResponse) XXX_Unmarshal(b []byte) error
type ListProductLinesResponseWrapper ¶
type ListProductLinesResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *ListProductLinesResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListProductLinesApi返回
func (*ListProductLinesResponseWrapper) Descriptor ¶
func (*ListProductLinesResponseWrapper) Descriptor() ([]byte, []int)
func (*ListProductLinesResponseWrapper) GetCode ¶
func (m *ListProductLinesResponseWrapper) GetCode() int32
func (*ListProductLinesResponseWrapper) GetCodeExplain ¶
func (m *ListProductLinesResponseWrapper) GetCodeExplain() string
func (*ListProductLinesResponseWrapper) GetData ¶
func (m *ListProductLinesResponseWrapper) GetData() *ListProductLinesResponse
func (*ListProductLinesResponseWrapper) GetError ¶
func (m *ListProductLinesResponseWrapper) GetError() string
func (*ListProductLinesResponseWrapper) ProtoMessage ¶
func (*ListProductLinesResponseWrapper) ProtoMessage()
func (*ListProductLinesResponseWrapper) Reset ¶
func (m *ListProductLinesResponseWrapper) Reset()
func (*ListProductLinesResponseWrapper) String ¶
func (m *ListProductLinesResponseWrapper) String() string
func (*ListProductLinesResponseWrapper) Validate ¶
func (this *ListProductLinesResponseWrapper) Validate() error
func (*ListProductLinesResponseWrapper) XXX_DiscardUnknown ¶
func (m *ListProductLinesResponseWrapper) XXX_DiscardUnknown()
func (*ListProductLinesResponseWrapper) XXX_Marshal ¶
func (m *ListProductLinesResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListProductLinesResponseWrapper) XXX_Merge ¶
func (m *ListProductLinesResponseWrapper) XXX_Merge(src proto.Message)
func (*ListProductLinesResponseWrapper) XXX_Size ¶
func (m *ListProductLinesResponseWrapper) XXX_Size() int
func (*ListProductLinesResponseWrapper) XXX_Unmarshal ¶
func (m *ListProductLinesResponseWrapper) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface {
ListProductLines(context.Context, *ListProductLinesRequest) (*ListProductLinesResponse, error)
}
Service is the server API for product_line service.
Click to show internal directories.
Click to hide internal directories.