menu

package
v0.0.0-...-b63aa1a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (*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 (*GetUserForbiddenMenuResponseWrapper) GetCodeExplain

func (m *GetUserForbiddenMenuResponseWrapper) GetCodeExplain() string

func (*GetUserForbiddenMenuResponseWrapper) GetData

func (*GetUserForbiddenMenuResponseWrapper) GetError

func (*GetUserForbiddenMenuResponseWrapper) ProtoMessage

func (*GetUserForbiddenMenuResponseWrapper) ProtoMessage()

func (*GetUserForbiddenMenuResponseWrapper) Reset

func (*GetUserForbiddenMenuResponseWrapper) 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 (*GetUserForbiddenMenuResponseWrapper) XXX_Size

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL