Versions in this module Expand all Collapse all v0 v0.1.8 Oct 24, 2019 Changes in this version + var AccountBase_Level_name = map[int32]string + var AccountBase_Level_value = map[string]int32 + var AccountBase_Status_name = map[int32]string + var AccountBase_Status_value = map[string]int32 + func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterAccountServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountServiceClient) error + func RegisterAccountServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterAccountServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountServiceServer) error + func RegisterAccountServiceServer(s *grpc.Server, srv AccountServiceServer) + type AccountAll struct + All []*AccountBase + Page *Page + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AccountAll) Descriptor() ([]byte, []int) + func (*AccountAll) ProtoMessage() + func (m *AccountAll) GetAll() []*AccountBase + func (m *AccountAll) GetPage() *Page + func (m *AccountAll) Reset() + func (m *AccountAll) String() string + func (m *AccountAll) XXX_DiscardUnknown() + func (m *AccountAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AccountAll) XXX_Merge(src proto.Message) + func (m *AccountAll) XXX_Size() int + func (m *AccountAll) XXX_Unmarshal(b []byte) error + type AccountBase struct + AccountLevel AccountBase_Level + AccountStatus AccountBase_Status + Balance float32 + Id int64 + UserId int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AccountBase) Descriptor() ([]byte, []int) + func (*AccountBase) ProtoMessage() + func (m *AccountBase) GetAccountLevel() AccountBase_Level + func (m *AccountBase) GetAccountStatus() AccountBase_Status + func (m *AccountBase) GetBalance() float32 + func (m *AccountBase) GetId() int64 + func (m *AccountBase) GetUserId() int64 + func (m *AccountBase) Reset() + func (m *AccountBase) String() string + func (m *AccountBase) XXX_DiscardUnknown() + func (m *AccountBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AccountBase) XXX_Merge(src proto.Message) + func (m *AccountBase) XXX_Size() int + func (m *AccountBase) XXX_Unmarshal(b []byte) error + type AccountBase_Level int32 + const AccountBase_LevelDefault + const AccountBase_LevelOne + const AccountBase_LevelThree + const AccountBase_LevelTwo + func (AccountBase_Level) EnumDescriptor() ([]byte, []int) + func (x AccountBase_Level) String() string + type AccountBase_Status int32 + const AccountBase_StatusDefault + const AccountBase_StatusFrozen + const AccountBase_StatusNormal + func (AccountBase_Status) EnumDescriptor() ([]byte, []int) + func (x AccountBase_Status) String() string + type AccountID struct + Id int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AccountID) Descriptor() ([]byte, []int) + func (*AccountID) ProtoMessage() + func (m *AccountID) GetId() int64 + func (m *AccountID) Reset() + func (m *AccountID) String() string + func (m *AccountID) XXX_DiscardUnknown() + func (m *AccountID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AccountID) XXX_Merge(src proto.Message) + func (m *AccountID) XXX_Size() int + func (m *AccountID) XXX_Unmarshal(b []byte) error + type AccountServiceClient interface + AccountAdd func(ctx context.Context, in *AccountBase, opts ...grpc.CallOption) (*AccountBase, error) + AccountQueryOne func(ctx context.Context, in *AccountID, opts ...grpc.CallOption) (*AccountBase, error) + AccountUpdate func(ctx context.Context, in *AccountUpdateReq, opts ...grpc.CallOption) (*empty.Empty, error) + func NewAccountServiceClient(cc *grpc.ClientConn) AccountServiceClient + type AccountServiceServer interface + AccountAdd func(context.Context, *AccountBase) (*AccountBase, error) + AccountQueryOne func(context.Context, *AccountID) (*AccountBase, error) + AccountUpdate func(context.Context, *AccountUpdateReq) (*empty.Empty, error) + type AccountUpdateReq struct + Balance float32 + Id int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AccountUpdateReq) Descriptor() ([]byte, []int) + func (*AccountUpdateReq) ProtoMessage() + func (m *AccountUpdateReq) GetBalance() float32 + func (m *AccountUpdateReq) GetId() int64 + func (m *AccountUpdateReq) Reset() + func (m *AccountUpdateReq) String() string + func (m *AccountUpdateReq) XXX_DiscardUnknown() + func (m *AccountUpdateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AccountUpdateReq) XXX_Merge(src proto.Message) + func (m *AccountUpdateReq) XXX_Size() int + func (m *AccountUpdateReq) XXX_Unmarshal(b []byte) error + type Null struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Null) Descriptor() ([]byte, []int) + func (*Null) ProtoMessage() + func (m *Null) Reset() + func (m *Null) String() string + func (m *Null) XXX_DiscardUnknown() + func (m *Null) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Null) XXX_Merge(src proto.Message) + func (m *Null) XXX_Size() int + func (m *Null) XXX_Unmarshal(b []byte) error + type Page struct + Count int64 + PageIndex int64 + PageSize int64 + PageTotal int64 + Total int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Page) Descriptor() ([]byte, []int) + func (*Page) ProtoMessage() + func (m *Page) GetCount() int64 + func (m *Page) GetPageIndex() int64 + func (m *Page) GetPageSize() int64 + func (m *Page) GetPageTotal() int64 + func (m *Page) GetTotal() int64 + func (m *Page) Reset() + func (m *Page) String() string + func (m *Page) XXX_DiscardUnknown() + func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Page) XXX_Merge(src proto.Message) + func (m *Page) XXX_Size() int + func (m *Page) XXX_Unmarshal(b []byte) error + type UnimplementedAccountServiceServer struct + func (*UnimplementedAccountServiceServer) AccountAdd(ctx context.Context, req *AccountBase) (*AccountBase, error) + func (*UnimplementedAccountServiceServer) AccountQueryOne(ctx context.Context, req *AccountID) (*AccountBase, error) + func (*UnimplementedAccountServiceServer) AccountUpdate(ctx context.Context, req *AccountUpdateReq) (*empty.Empty, error)