Documentation ¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type GetUserForbiddenMenuRequest
- func (*GetUserForbiddenMenuRequest) Descriptor() ([]byte, []int)
- func (m *GetUserForbiddenMenuRequest) GetUsername() string
- func (*GetUserForbiddenMenuRequest) ProtoMessage()
- func (m *GetUserForbiddenMenuRequest) Reset()
- func (m *GetUserForbiddenMenuRequest) String() string
- func (this *GetUserForbiddenMenuRequest) Validate() error
- func (m *GetUserForbiddenMenuRequest) XXX_DiscardUnknown()
- func (m *GetUserForbiddenMenuRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserForbiddenMenuRequest) XXX_Merge(src proto.Message)
- func (m *GetUserForbiddenMenuRequest) XXX_Size() int
- func (m *GetUserForbiddenMenuRequest) XXX_Unmarshal(b []byte) error
- type GetUserForbiddenMenuResponse
- func (*GetUserForbiddenMenuResponse) Descriptor() ([]byte, []int)
- func (m *GetUserForbiddenMenuResponse) GetForbiddenMenu() []string
- func (*GetUserForbiddenMenuResponse) ProtoMessage()
- func (m *GetUserForbiddenMenuResponse) Reset()
- func (m *GetUserForbiddenMenuResponse) String() string
- func (this *GetUserForbiddenMenuResponse) Validate() error
- func (m *GetUserForbiddenMenuResponse) XXX_DiscardUnknown()
- func (m *GetUserForbiddenMenuResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserForbiddenMenuResponse) XXX_Merge(src proto.Message)
- func (m *GetUserForbiddenMenuResponse) XXX_Size() int
- func (m *GetUserForbiddenMenuResponse) XXX_Unmarshal(b []byte) error
- type GetUserForbiddenMenuResponseWrapper
- func (*GetUserForbiddenMenuResponseWrapper) Descriptor() ([]byte, []int)
- func (m *GetUserForbiddenMenuResponseWrapper) GetCode() int32
- func (m *GetUserForbiddenMenuResponseWrapper) GetCodeExplain() string
- func (m *GetUserForbiddenMenuResponseWrapper) GetData() *GetUserForbiddenMenuResponse
- func (m *GetUserForbiddenMenuResponseWrapper) GetError() string
- func (*GetUserForbiddenMenuResponseWrapper) ProtoMessage()
- func (m *GetUserForbiddenMenuResponseWrapper) Reset()
- func (m *GetUserForbiddenMenuResponseWrapper) String() string
- func (this *GetUserForbiddenMenuResponseWrapper) Validate() error
- func (m *GetUserForbiddenMenuResponseWrapper) XXX_DiscardUnknown()
- func (m *GetUserForbiddenMenuResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserForbiddenMenuResponseWrapper) XXX_Merge(src proto.Message)
- func (m *GetUserForbiddenMenuResponseWrapper) XXX_Size() int
- func (m *GetUserForbiddenMenuResponseWrapper) 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 {
GetUserForbiddenMenu(ctx context.Context, in *GetUserForbiddenMenuRequest) (*GetUserForbiddenMenuResponse, error)
}
Client is the client API for menu 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 GetUserForbiddenMenuRequest ¶
type GetUserForbiddenMenuRequest struct { // //用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username" form:"username"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetUserForbiddenMenu请求
func (*GetUserForbiddenMenuRequest) Descriptor ¶
func (*GetUserForbiddenMenuRequest) Descriptor() ([]byte, []int)
func (*GetUserForbiddenMenuRequest) GetUsername ¶
func (m *GetUserForbiddenMenuRequest) GetUsername() string
func (*GetUserForbiddenMenuRequest) ProtoMessage ¶
func (*GetUserForbiddenMenuRequest) ProtoMessage()
func (*GetUserForbiddenMenuRequest) Reset ¶
func (m *GetUserForbiddenMenuRequest) Reset()
func (*GetUserForbiddenMenuRequest) String ¶
func (m *GetUserForbiddenMenuRequest) String() string
func (*GetUserForbiddenMenuRequest) Validate ¶
func (this *GetUserForbiddenMenuRequest) Validate() error
func (*GetUserForbiddenMenuRequest) XXX_DiscardUnknown ¶
func (m *GetUserForbiddenMenuRequest) XXX_DiscardUnknown()
func (*GetUserForbiddenMenuRequest) XXX_Marshal ¶
func (m *GetUserForbiddenMenuRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserForbiddenMenuRequest) XXX_Merge ¶
func (m *GetUserForbiddenMenuRequest) XXX_Merge(src proto.Message)
func (*GetUserForbiddenMenuRequest) XXX_Size ¶
func (m *GetUserForbiddenMenuRequest) XXX_Size() int
func (*GetUserForbiddenMenuRequest) XXX_Unmarshal ¶
func (m *GetUserForbiddenMenuRequest) XXX_Unmarshal(b []byte) error
type GetUserForbiddenMenuResponse ¶
type GetUserForbiddenMenuResponse struct { // //不可见菜单列表 ForbiddenMenu []string `protobuf:"bytes,1,rep,name=forbidden_menu,json=forbiddenMenu,proto3" json:"forbidden_menu" form:"forbidden_menu"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetUserForbiddenMenu返回
func (*GetUserForbiddenMenuResponse) Descriptor ¶
func (*GetUserForbiddenMenuResponse) Descriptor() ([]byte, []int)
func (*GetUserForbiddenMenuResponse) GetForbiddenMenu ¶
func (m *GetUserForbiddenMenuResponse) GetForbiddenMenu() []string
func (*GetUserForbiddenMenuResponse) ProtoMessage ¶
func (*GetUserForbiddenMenuResponse) ProtoMessage()
func (*GetUserForbiddenMenuResponse) Reset ¶
func (m *GetUserForbiddenMenuResponse) Reset()
func (*GetUserForbiddenMenuResponse) String ¶
func (m *GetUserForbiddenMenuResponse) String() string
func (*GetUserForbiddenMenuResponse) Validate ¶
func (this *GetUserForbiddenMenuResponse) Validate() error
func (*GetUserForbiddenMenuResponse) XXX_DiscardUnknown ¶
func (m *GetUserForbiddenMenuResponse) XXX_DiscardUnknown()
func (*GetUserForbiddenMenuResponse) XXX_Marshal ¶
func (m *GetUserForbiddenMenuResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserForbiddenMenuResponse) XXX_Merge ¶
func (m *GetUserForbiddenMenuResponse) XXX_Merge(src proto.Message)
func (*GetUserForbiddenMenuResponse) XXX_Size ¶
func (m *GetUserForbiddenMenuResponse) XXX_Size() int
func (*GetUserForbiddenMenuResponse) XXX_Unmarshal ¶
func (m *GetUserForbiddenMenuResponse) XXX_Unmarshal(b []byte) error
type GetUserForbiddenMenuResponseWrapper ¶
type GetUserForbiddenMenuResponseWrapper 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 *GetUserForbiddenMenuResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetUserForbiddenMenuApi返回
func (*GetUserForbiddenMenuResponseWrapper) Descriptor ¶
func (*GetUserForbiddenMenuResponseWrapper) Descriptor() ([]byte, []int)
func (*GetUserForbiddenMenuResponseWrapper) GetCode ¶
func (m *GetUserForbiddenMenuResponseWrapper) GetCode() int32
func (*GetUserForbiddenMenuResponseWrapper) GetCodeExplain ¶
func (m *GetUserForbiddenMenuResponseWrapper) GetCodeExplain() string
func (*GetUserForbiddenMenuResponseWrapper) GetData ¶
func (m *GetUserForbiddenMenuResponseWrapper) GetData() *GetUserForbiddenMenuResponse
func (*GetUserForbiddenMenuResponseWrapper) GetError ¶
func (m *GetUserForbiddenMenuResponseWrapper) GetError() string
func (*GetUserForbiddenMenuResponseWrapper) ProtoMessage ¶
func (*GetUserForbiddenMenuResponseWrapper) ProtoMessage()
func (*GetUserForbiddenMenuResponseWrapper) Reset ¶
func (m *GetUserForbiddenMenuResponseWrapper) Reset()
func (*GetUserForbiddenMenuResponseWrapper) String ¶
func (m *GetUserForbiddenMenuResponseWrapper) String() string
func (*GetUserForbiddenMenuResponseWrapper) Validate ¶
func (this *GetUserForbiddenMenuResponseWrapper) Validate() error
func (*GetUserForbiddenMenuResponseWrapper) XXX_DiscardUnknown ¶
func (m *GetUserForbiddenMenuResponseWrapper) XXX_DiscardUnknown()
func (*GetUserForbiddenMenuResponseWrapper) XXX_Marshal ¶
func (m *GetUserForbiddenMenuResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserForbiddenMenuResponseWrapper) XXX_Merge ¶
func (m *GetUserForbiddenMenuResponseWrapper) XXX_Merge(src proto.Message)
func (*GetUserForbiddenMenuResponseWrapper) XXX_Size ¶
func (m *GetUserForbiddenMenuResponseWrapper) XXX_Size() int
func (*GetUserForbiddenMenuResponseWrapper) XXX_Unmarshal ¶
func (m *GetUserForbiddenMenuResponseWrapper) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface {
GetUserForbiddenMenu(context.Context, *GetUserForbiddenMenuRequest) (*GetUserForbiddenMenuResponse, error)
}
Service is the server API for menu service.
Click to show internal directories.
Click to hide internal directories.