Documentation
¶
Index ¶
- func RegisterUpdateUserHandler(s server.Server, hdlr UpdateUserHandler, opts ...server.HandlerOption) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type NameData
- func (*NameData) Descriptor() ([]byte, []int)
- func (m *NameData) GetName() string
- func (*NameData) ProtoMessage()
- func (m *NameData) Reset()
- func (m *NameData) String() string
- func (m *NameData) XXX_DiscardUnknown()
- func (m *NameData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NameData) XXX_Merge(src proto.Message)
- func (m *NameData) XXX_Size() int
- func (m *NameData) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetName() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetData() *UserInfo
- func (m *Response) GetErrmsg() string
- func (m *Response) GetErrno() string
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type UpdateReq
- func (*UpdateReq) Descriptor() ([]byte, []int)
- func (m *UpdateReq) GetNewName() string
- func (m *UpdateReq) GetOldName() string
- func (*UpdateReq) ProtoMessage()
- func (m *UpdateReq) Reset()
- func (m *UpdateReq) String() string
- func (m *UpdateReq) XXX_DiscardUnknown()
- func (m *UpdateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateReq) XXX_Merge(src proto.Message)
- func (m *UpdateReq) XXX_Size() int
- func (m *UpdateReq) XXX_Unmarshal(b []byte) error
- type UpdateResp
- func (*UpdateResp) Descriptor() ([]byte, []int)
- func (m *UpdateResp) GetData() *NameData
- func (m *UpdateResp) GetErrmsg() string
- func (m *UpdateResp) GetErrno() string
- func (*UpdateResp) ProtoMessage()
- func (m *UpdateResp) Reset()
- func (m *UpdateResp) String() string
- func (m *UpdateResp) XXX_DiscardUnknown()
- func (m *UpdateResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateResp) XXX_Merge(src proto.Message)
- func (m *UpdateResp) XXX_Size() int
- func (m *UpdateResp) XXX_Unmarshal(b []byte) error
- type UpdateUserHandler
- type UpdateUserService
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)
- func (m *UserInfo) GetAvatarUrl() string
- func (m *UserInfo) GetIdCard() string
- func (m *UserInfo) GetMobile() string
- func (m *UserInfo) GetName() string
- func (m *UserInfo) GetUserId() int32
- func (*UserInfo) ProtoMessage()
- func (m *UserInfo) Reset()
- func (m *UserInfo) String() string
- func (m *UserInfo) XXX_DiscardUnknown()
- func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInfo) XXX_Merge(src proto.Message)
- func (m *UserInfo) XXX_Size() int
- func (m *UserInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUpdateUserHandler ¶
func RegisterUpdateUserHandler(s server.Server, hdlr UpdateUserHandler, opts ...server.HandlerOption) error
Types ¶
type Message ¶
type Message struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type NameData ¶
type NameData struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NameData) Descriptor ¶
func (*NameData) ProtoMessage ¶
func (*NameData) ProtoMessage()
func (*NameData) XXX_DiscardUnknown ¶
func (m *NameData) XXX_DiscardUnknown()
func (*NameData) XXX_Marshal ¶
func (*NameData) XXX_Unmarshal ¶
type Request ¶
type Request struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Errno string `protobuf:"bytes,1,opt,name=errno,proto3" json:"errno,omitempty"` Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"` Data *UserInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type UpdateReq ¶
type UpdateReq struct { NewName string `protobuf:"bytes,1,opt,name=newName,proto3" json:"newName,omitempty"` OldName string `protobuf:"bytes,2,opt,name=oldName,proto3" json:"oldName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateReq) Descriptor ¶
func (*UpdateReq) GetNewName ¶
func (*UpdateReq) GetOldName ¶
func (*UpdateReq) ProtoMessage ¶
func (*UpdateReq) ProtoMessage()
func (*UpdateReq) XXX_DiscardUnknown ¶
func (m *UpdateReq) XXX_DiscardUnknown()
func (*UpdateReq) XXX_Marshal ¶
func (*UpdateReq) XXX_Unmarshal ¶
type UpdateResp ¶
type UpdateResp struct { Errno string `protobuf:"bytes,1,opt,name=errno,proto3" json:"errno,omitempty"` Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"` Data *NameData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateResp) Descriptor ¶
func (*UpdateResp) Descriptor() ([]byte, []int)
func (*UpdateResp) GetData ¶
func (m *UpdateResp) GetData() *NameData
func (*UpdateResp) GetErrmsg ¶
func (m *UpdateResp) GetErrmsg() string
func (*UpdateResp) GetErrno ¶
func (m *UpdateResp) GetErrno() string
func (*UpdateResp) ProtoMessage ¶
func (*UpdateResp) ProtoMessage()
func (*UpdateResp) Reset ¶
func (m *UpdateResp) Reset()
func (*UpdateResp) String ¶
func (m *UpdateResp) String() string
func (*UpdateResp) XXX_DiscardUnknown ¶
func (m *UpdateResp) XXX_DiscardUnknown()
func (*UpdateResp) XXX_Marshal ¶
func (m *UpdateResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateResp) XXX_Merge ¶
func (m *UpdateResp) XXX_Merge(src proto.Message)
func (*UpdateResp) XXX_Size ¶
func (m *UpdateResp) XXX_Size() int
func (*UpdateResp) XXX_Unmarshal ¶
func (m *UpdateResp) XXX_Unmarshal(b []byte) error
type UpdateUserHandler ¶
type UpdateUserService ¶
type UpdateUserService interface { MicroGetUserInfo(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) MicroUpdateUser(ctx context.Context, in *UpdateReq, opts ...client.CallOption) (*UpdateResp, error) }
func NewUpdateUserService ¶
func NewUpdateUserService(name string, c client.Client) UpdateUserService
type UserInfo ¶
type UserInfo struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` IdCard string `protobuf:"bytes,5,opt,name=id_card,json=idCard,proto3" json:"id_card,omitempty"` AvatarUrl string `protobuf:"bytes,6,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserInfo) Descriptor ¶
func (*UserInfo) GetAvatarUrl ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) XXX_DiscardUnknown ¶
func (m *UserInfo) XXX_DiscardUnknown()
func (*UserInfo) XXX_Marshal ¶
func (*UserInfo) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.