Documentation ¶
Index ¶
- Variables
- func GRPCConnect()
- func RegisterMsgServiceServer(s grpc.ServiceRegistrar, srv MsgServiceServer)
- func RegisterUserCardServer(s grpc.ServiceRegistrar, srv UserCardServer)
- func RegisterUserHistoryServer(s grpc.ServiceRegistrar, srv UserHistoryServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- func RegisterWechatServiceServer(s grpc.ServiceRegistrar, srv WechatServiceServer)
- type AppID
- type BoolF
- type Code
- type Info
- type Login
- func (*Login) Descriptor() ([]byte, []int)deprecated
- func (x *Login) GetCode() string
- func (x *Login) GetDevice() string
- func (x *Login) GetLoginType() uint32
- func (x *Login) GetMobile() string
- func (*Login) ProtoMessage()
- func (x *Login) ProtoReflect() protoreflect.Message
- func (x *Login) Reset()
- func (x *Login) String() string
- type MiniLoginBack
- func (*MiniLoginBack) Descriptor() ([]byte, []int)deprecated
- func (x *MiniLoginBack) GetSessionKey() string
- func (x *MiniLoginBack) GetToken() string
- func (*MiniLoginBack) ProtoMessage()
- func (x *MiniLoginBack) ProtoReflect() protoreflect.Message
- func (x *MiniLoginBack) Reset()
- func (x *MiniLoginBack) String() string
- type Mobile
- type Msg
- type MsgCode
- type MsgCodeBack
- type MsgServiceClient
- type MsgServiceServer
- type OpenID
- type QueryBody
- func (*QueryBody) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBody) GetBody() []byte
- func (x *QueryBody) GetCreatedAt() uint32
- func (x *QueryBody) GetSysCode() string
- func (x *QueryBody) GetUserID() uint32
- func (*QueryBody) ProtoMessage()
- func (x *QueryBody) ProtoReflect() protoreflect.Message
- func (x *QueryBody) Reset()
- func (x *QueryBody) String() string
- type Token
- type UnimplementedMsgServiceServer
- type UnimplementedUserCardServer
- func (UnimplementedUserCardServer) GetAddressList(context.Context, *UserCardReq) (*UserCardRes, error)
- func (UnimplementedUserCardServer) GetUserCard(context.Context, *UserCardReq) (*UserCardRes, error)
- func (UnimplementedUserCardServer) InstallAddress(context.Context, *UpdateUserCardReq) (*emptypb.Empty, error)
- func (UnimplementedUserCardServer) UpAddress(context.Context, *UpdateUserCardReq) (*emptypb.Empty, error)
- func (UnimplementedUserCardServer) UpdateUserCard(context.Context, *UpdateUserCardReq) (*emptypb.Empty, error)
- type UnimplementedUserHistoryServer
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) ExpireToken(context.Context, *Token) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) ExpireTokenByID(context.Context, *Token) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) GetByID(context.Context, *UserID) (*User, error)
- func (UnimplementedUserServiceServer) GetIDByMobile(context.Context, *Mobile) (*UserID, error)
- func (UnimplementedUserServiceServer) GetInfoByToken(context.Context, *Token) (*Info, error)
- func (UnimplementedUserServiceServer) ListByIDs(UserService_ListByIDsServer) error
- func (UnimplementedUserServiceServer) Login(context.Context, *Login) (*Token, error)
- func (UnimplementedUserServiceServer) UpdateMobile(context.Context, *User) (*emptypb.Empty, error)
- type UnimplementedWechatServiceServer
- func (UnimplementedWechatServiceServer) BindUser(context.Context, *WechatMobile) (*UserID, error)
- func (UnimplementedWechatServiceServer) GetAccessToken(context.Context, *AppID) (*Token, error)
- func (UnimplementedWechatServiceServer) GetAccessTokenFromUser(context.Context, *AppID) (*Token, error)
- func (UnimplementedWechatServiceServer) Login(context.Context, *WechatLogin) (*MiniLoginBack, error)
- type UnsafeMsgServiceServer
- type UnsafeUserCardServer
- type UnsafeUserHistoryServer
- type UnsafeUserServiceServer
- type UnsafeWechatServiceServer
- type UpdateUserCardReq
- func (*UpdateUserCardReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserCardReq) GetBody() []byte
- func (x *UpdateUserCardReq) GetUserID() uint32
- func (*UpdateUserCardReq) ProtoMessage()
- func (x *UpdateUserCardReq) ProtoReflect() protoreflect.Message
- func (x *UpdateUserCardReq) Reset()
- func (x *UpdateUserCardReq) String() string
- type User
- type UserCardClient
- type UserCardReq
- type UserCardRes
- func (*UserCardRes) Descriptor() ([]byte, []int)deprecated
- func (x *UserCardRes) GetAddress() []byte
- func (x *UserCardRes) GetAreaCode() string
- func (x *UserCardRes) GetCardAddress() string
- func (x *UserCardRes) GetCardCode() string
- func (x *UserCardRes) GetCardID() string
- func (x *UserCardRes) GetCardType() string
- func (x *UserCardRes) GetEmail() string
- func (x *UserCardRes) GetEndAt() uint32
- func (x *UserCardRes) GetGender() int32
- func (x *UserCardRes) GetRealName() string
- func (x *UserCardRes) GetStartAt() uint32
- func (x *UserCardRes) GetUserID() uint32
- func (x *UserCardRes) GetUserImage() string
- func (*UserCardRes) ProtoMessage()
- func (x *UserCardRes) ProtoReflect() protoreflect.Message
- func (x *UserCardRes) Reset()
- func (x *UserCardRes) String() string
- type UserCardServer
- type UserHistoryAddReq
- func (*UserHistoryAddReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserHistoryAddReq) GetBody() []byte
- func (x *UserHistoryAddReq) GetSysCode() string
- func (x *UserHistoryAddReq) GetUserID() uint32
- func (*UserHistoryAddReq) ProtoMessage()
- func (x *UserHistoryAddReq) ProtoReflect() protoreflect.Message
- func (x *UserHistoryAddReq) Reset()
- func (x *UserHistoryAddReq) String() string
- type UserHistoryClient
- type UserHistoryQueryReq
- func (*UserHistoryQueryReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserHistoryQueryReq) GetEndAt() uint32
- func (x *UserHistoryQueryReq) GetStartAt() uint32
- func (x *UserHistoryQueryReq) GetSysCode() []string
- func (x *UserHistoryQueryReq) GetUserID() uint32
- func (*UserHistoryQueryReq) ProtoMessage()
- func (x *UserHistoryQueryReq) ProtoReflect() protoreflect.Message
- func (x *UserHistoryQueryReq) Reset()
- func (x *UserHistoryQueryReq) String() string
- type UserHistoryQueryRes
- func (*UserHistoryQueryRes) Descriptor() ([]byte, []int)deprecated
- func (x *UserHistoryQueryRes) GetList() []*QueryBody
- func (*UserHistoryQueryRes) ProtoMessage()
- func (x *UserHistoryQueryRes) ProtoReflect() protoreflect.Message
- func (x *UserHistoryQueryRes) Reset()
- func (x *UserHistoryQueryRes) String() string
- type UserHistoryServer
- type UserID
- type UserList
- type UserServiceClient
- type UserServiceServer
- type UserService_ListByIDsClient
- type UserService_ListByIDsServer
- type WechatLogin
- func (*WechatLogin) Descriptor() ([]byte, []int)deprecated
- func (x *WechatLogin) GetAppID() string
- func (x *WechatLogin) GetCode() string
- func (x *WechatLogin) GetLoginType() uint32
- func (x *WechatLogin) GetSysCode() uint32
- func (*WechatLogin) ProtoMessage()
- func (x *WechatLogin) ProtoReflect() protoreflect.Message
- func (x *WechatLogin) Reset()
- func (x *WechatLogin) String() string
- type WechatMobile
- func (*WechatMobile) Descriptor() ([]byte, []int)deprecated
- func (x *WechatMobile) GetMobile() string
- func (x *WechatMobile) GetOpenID() string
- func (x *WechatMobile) GetSysCode() uint32
- func (*WechatMobile) ProtoMessage()
- func (x *WechatMobile) ProtoReflect() protoreflect.Message
- func (x *WechatMobile) Reset()
- func (x *WechatMobile) String() string
- type WechatServiceClient
- type WechatServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_service_grpcService_proto_base_proto protoreflect.FileDescriptor
var GRPCConn *grpc.ClientConn
var MsgService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.MsgService", HandlerType: (*MsgServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendMsgCode", Handler: _MsgService_SendMsgCode_Handler, }, { MethodName: "CheckMsgCode", Handler: _MsgService_CheckMsgCode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service/grpcService/proto/base.proto", }
MsgService_ServiceDesc is the grpc.ServiceDesc for MsgService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserCard_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.UserCard", HandlerType: (*UserCardServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserCard", Handler: _UserCard_GetUserCard_Handler, }, { MethodName: "UpdateUserCard", Handler: _UserCard_UpdateUserCard_Handler, }, { MethodName: "GetAddressList", Handler: _UserCard_GetAddressList_Handler, }, { MethodName: "UpAddress", Handler: _UserCard_UpAddress_Handler, }, { MethodName: "InstallAddress", Handler: _UserCard_InstallAddress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service/grpcService/proto/base.proto", }
UserCard_ServiceDesc is the grpc.ServiceDesc for UserCard service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserHistory_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.UserHistory", HandlerType: (*UserHistoryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Add", Handler: _UserHistory_Add_Handler, }, { MethodName: "Query", Handler: _UserHistory_Query_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service/grpcService/proto/base.proto", }
UserHistory_ServiceDesc is the grpc.ServiceDesc for UserHistory service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetByID", Handler: _UserService_GetByID_Handler, }, { MethodName: "GetIDByMobile", Handler: _UserService_GetIDByMobile_Handler, }, { MethodName: "GetInfoByToken", Handler: _UserService_GetInfoByToken_Handler, }, { MethodName: "Login", Handler: _UserService_Login_Handler, }, { MethodName: "ExpireToken", Handler: _UserService_ExpireToken_Handler, }, { MethodName: "ExpireTokenByID", Handler: _UserService_ExpireTokenByID_Handler, }, { MethodName: "UpdateMobile", Handler: _UserService_UpdateMobile_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListByIDs", Handler: _UserService_ListByIDs_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "service/grpcService/proto/base.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var WechatService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.WechatService", HandlerType: (*WechatServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _WechatService_Login_Handler, }, { MethodName: "GetAccessToken", Handler: _WechatService_GetAccessToken_Handler, }, { MethodName: "GetAccessTokenFromUser", Handler: _WechatService_GetAccessTokenFromUser_Handler, }, { MethodName: "BindUser", Handler: _WechatService_BindUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service/grpcService/proto/base.proto", }
WechatService_ServiceDesc is the grpc.ServiceDesc for WechatService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func GRPCConnect ¶
func GRPCConnect()
func RegisterMsgServiceServer ¶
func RegisterMsgServiceServer(s grpc.ServiceRegistrar, srv MsgServiceServer)
func RegisterUserCardServer ¶ added in v0.6.0
func RegisterUserCardServer(s grpc.ServiceRegistrar, srv UserCardServer)
func RegisterUserHistoryServer ¶ added in v0.6.0
func RegisterUserHistoryServer(s grpc.ServiceRegistrar, srv UserHistoryServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
func RegisterWechatServiceServer ¶
func RegisterWechatServiceServer(s grpc.ServiceRegistrar, srv WechatServiceServer)
Types ¶
type AppID ¶
type AppID struct { AppID string `protobuf:"bytes,1,opt,name=appID,proto3" json:"appID,omitempty"` // contains filtered or unexported fields }
func (*AppID) Descriptor
deprecated
func (*AppID) ProtoMessage ¶
func (*AppID) ProtoMessage()
func (*AppID) ProtoReflect ¶
func (x *AppID) ProtoReflect() protoreflect.Message
type BoolF ¶
type BoolF struct { F bool `protobuf:"varint,1,opt,name=f,proto3" json:"f,omitempty"` // contains filtered or unexported fields }
func (*BoolF) Descriptor
deprecated
func (*BoolF) ProtoMessage ¶
func (*BoolF) ProtoMessage()
func (*BoolF) ProtoReflect ¶
func (x *BoolF) ProtoReflect() protoreflect.Message
type Code ¶
type Code struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` AppID string `protobuf:"bytes,2,opt,name=appID,proto3" json:"appID,omitempty"` // contains filtered or unexported fields }
func (*Code) Descriptor
deprecated
func (*Code) ProtoMessage ¶
func (*Code) ProtoMessage()
func (*Code) ProtoReflect ¶
func (x *Code) ProtoReflect() protoreflect.Message
type Info ¶
type Info struct { UserID uint32 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` OpenID string `protobuf:"bytes,2,opt,name=openID,proto3" json:"openID,omitempty"` // contains filtered or unexported fields }
func (*Info) Descriptor
deprecated
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶
func (x *Info) ProtoReflect() protoreflect.Message
type Login ¶
type Login struct { LoginType uint32 `protobuf:"varint,1,opt,name=LoginType,proto3" json:"LoginType,omitempty"` Device string `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*Login) Descriptor
deprecated
func (*Login) GetLoginType ¶
func (*Login) ProtoMessage ¶
func (*Login) ProtoMessage()
func (*Login) ProtoReflect ¶
func (x *Login) ProtoReflect() protoreflect.Message
type MiniLoginBack ¶ added in v0.6.0
type MiniLoginBack struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` SessionKey string `protobuf:"bytes,2,opt,name=sessionKey,proto3" json:"sessionKey,omitempty"` // contains filtered or unexported fields }
func (*MiniLoginBack) Descriptor
deprecated
added in
v0.6.0
func (*MiniLoginBack) Descriptor() ([]byte, []int)
Deprecated: Use MiniLoginBack.ProtoReflect.Descriptor instead.
func (*MiniLoginBack) GetSessionKey ¶ added in v0.6.0
func (x *MiniLoginBack) GetSessionKey() string
func (*MiniLoginBack) GetToken ¶ added in v0.6.0
func (x *MiniLoginBack) GetToken() string
func (*MiniLoginBack) ProtoMessage ¶ added in v0.6.0
func (*MiniLoginBack) ProtoMessage()
func (*MiniLoginBack) ProtoReflect ¶ added in v0.6.0
func (x *MiniLoginBack) ProtoReflect() protoreflect.Message
func (*MiniLoginBack) Reset ¶ added in v0.6.0
func (x *MiniLoginBack) Reset()
func (*MiniLoginBack) String ¶ added in v0.6.0
func (x *MiniLoginBack) String() string
type Mobile ¶
type Mobile struct { Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` // contains filtered or unexported fields }
func (*Mobile) Descriptor
deprecated
func (*Mobile) ProtoMessage ¶
func (*Mobile) ProtoMessage()
func (*Mobile) ProtoReflect ¶
func (x *Mobile) ProtoReflect() protoreflect.Message
type Msg ¶
type Msg struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Msg) Descriptor
deprecated
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) ProtoReflect ¶
func (x *Msg) ProtoReflect() protoreflect.Message
type MsgCode ¶
type MsgCode struct { Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*MsgCode) Descriptor
deprecated
func (*MsgCode) ProtoMessage ¶
func (*MsgCode) ProtoMessage()
func (*MsgCode) ProtoReflect ¶
func (x *MsgCode) ProtoReflect() protoreflect.Message
type MsgCodeBack ¶
type MsgCodeBack struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*MsgCodeBack) Descriptor
deprecated
func (*MsgCodeBack) Descriptor() ([]byte, []int)
Deprecated: Use MsgCodeBack.ProtoReflect.Descriptor instead.
func (*MsgCodeBack) GetCode ¶
func (x *MsgCodeBack) GetCode() string
func (*MsgCodeBack) GetMsg ¶
func (x *MsgCodeBack) GetMsg() string
func (*MsgCodeBack) ProtoMessage ¶
func (*MsgCodeBack) ProtoMessage()
func (*MsgCodeBack) ProtoReflect ¶
func (x *MsgCodeBack) ProtoReflect() protoreflect.Message
func (*MsgCodeBack) Reset ¶
func (x *MsgCodeBack) Reset()
func (*MsgCodeBack) String ¶
func (x *MsgCodeBack) String() string
type MsgServiceClient ¶
type MsgServiceClient interface { // 发送验证码 SendMsgCode(ctx context.Context, in *Mobile, opts ...grpc.CallOption) (*MsgCodeBack, error) // 校验验证码 CheckMsgCode(ctx context.Context, in *MsgCode, opts ...grpc.CallOption) (*BoolF, error) }
MsgServiceClient is the client API for MsgService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgServiceClient ¶
func NewMsgServiceClient(cc grpc.ClientConnInterface) MsgServiceClient
type MsgServiceServer ¶
type MsgServiceServer interface { // 发送验证码 SendMsgCode(context.Context, *Mobile) (*MsgCodeBack, error) // 校验验证码 CheckMsgCode(context.Context, *MsgCode) (*BoolF, error) // contains filtered or unexported methods }
MsgServiceServer is the server API for MsgService service. All implementations must embed UnimplementedMsgServiceServer for forward compatibility
type OpenID ¶
type OpenID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*OpenID) Descriptor
deprecated
func (*OpenID) ProtoMessage ¶
func (*OpenID) ProtoMessage()
func (*OpenID) ProtoReflect ¶
func (x *OpenID) ProtoReflect() protoreflect.Message
type QueryBody ¶ added in v0.6.0
type QueryBody struct { UserID uint32 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"` SysCode string `protobuf:"bytes,2,opt,name=SysCode,proto3" json:"SysCode,omitempty"` Body []byte `protobuf:"bytes,3,opt,name=Body,proto3" json:"Body,omitempty"` CreatedAt uint32 `protobuf:"varint,4,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` // contains filtered or unexported fields }
func (*QueryBody) Descriptor
deprecated
added in
v0.6.0
func (*QueryBody) GetCreatedAt ¶ added in v0.6.0
func (*QueryBody) GetSysCode ¶ added in v0.6.0
func (*QueryBody) ProtoMessage ¶ added in v0.6.0
func (*QueryBody) ProtoMessage()
func (*QueryBody) ProtoReflect ¶ added in v0.6.0
func (x *QueryBody) ProtoReflect() protoreflect.Message
type Token ¶
type Token struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` UserID uint32 `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type UnimplementedMsgServiceServer ¶
type UnimplementedMsgServiceServer struct { }
UnimplementedMsgServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServiceServer) CheckMsgCode ¶
func (UnimplementedMsgServiceServer) SendMsgCode ¶
func (UnimplementedMsgServiceServer) SendMsgCode(context.Context, *Mobile) (*MsgCodeBack, error)
type UnimplementedUserCardServer ¶ added in v0.6.0
type UnimplementedUserCardServer struct { }
UnimplementedUserCardServer must be embedded to have forward compatible implementations.
func (UnimplementedUserCardServer) GetAddressList ¶ added in v0.7.0
func (UnimplementedUserCardServer) GetAddressList(context.Context, *UserCardReq) (*UserCardRes, error)
func (UnimplementedUserCardServer) GetUserCard ¶ added in v0.6.0
func (UnimplementedUserCardServer) GetUserCard(context.Context, *UserCardReq) (*UserCardRes, error)
func (UnimplementedUserCardServer) InstallAddress ¶ added in v0.7.0
func (UnimplementedUserCardServer) InstallAddress(context.Context, *UpdateUserCardReq) (*emptypb.Empty, error)
func (UnimplementedUserCardServer) UpAddress ¶ added in v0.7.0
func (UnimplementedUserCardServer) UpAddress(context.Context, *UpdateUserCardReq) (*emptypb.Empty, error)
func (UnimplementedUserCardServer) UpdateUserCard ¶ added in v0.6.0
func (UnimplementedUserCardServer) UpdateUserCard(context.Context, *UpdateUserCardReq) (*emptypb.Empty, error)
type UnimplementedUserHistoryServer ¶ added in v0.6.0
type UnimplementedUserHistoryServer struct { }
UnimplementedUserHistoryServer must be embedded to have forward compatible implementations.
func (UnimplementedUserHistoryServer) Add ¶ added in v0.6.0
func (UnimplementedUserHistoryServer) Add(context.Context, *UserHistoryAddReq) (*emptypb.Empty, error)
func (UnimplementedUserHistoryServer) Query ¶ added in v0.6.0
func (UnimplementedUserHistoryServer) Query(context.Context, *UserHistoryQueryReq) (*UserHistoryQueryRes, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) ExpireToken ¶
func (UnimplementedUserServiceServer) ExpireTokenByID ¶ added in v0.6.0
func (UnimplementedUserServiceServer) GetIDByMobile ¶
func (UnimplementedUserServiceServer) GetInfoByToken ¶
func (UnimplementedUserServiceServer) ListByIDs ¶
func (UnimplementedUserServiceServer) ListByIDs(UserService_ListByIDsServer) error
func (UnimplementedUserServiceServer) UpdateMobile ¶
type UnimplementedWechatServiceServer ¶
type UnimplementedWechatServiceServer struct { }
UnimplementedWechatServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWechatServiceServer) BindUser ¶
func (UnimplementedWechatServiceServer) BindUser(context.Context, *WechatMobile) (*UserID, error)
func (UnimplementedWechatServiceServer) GetAccessToken ¶
func (UnimplementedWechatServiceServer) GetAccessTokenFromUser ¶ added in v0.3.0
func (UnimplementedWechatServiceServer) Login ¶
func (UnimplementedWechatServiceServer) Login(context.Context, *WechatLogin) (*MiniLoginBack, error)
type UnsafeMsgServiceServer ¶
type UnsafeMsgServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServiceServer will result in compilation errors.
type UnsafeUserCardServer ¶ added in v0.6.0
type UnsafeUserCardServer interface {
// contains filtered or unexported methods
}
UnsafeUserCardServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserCardServer will result in compilation errors.
type UnsafeUserHistoryServer ¶ added in v0.6.0
type UnsafeUserHistoryServer interface {
// contains filtered or unexported methods
}
UnsafeUserHistoryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserHistoryServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UnsafeWechatServiceServer ¶
type UnsafeWechatServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWechatServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WechatServiceServer will result in compilation errors.
type UpdateUserCardReq ¶ added in v0.6.0
type UpdateUserCardReq struct { UserID uint32 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserCardReq) Descriptor
deprecated
added in
v0.6.0
func (*UpdateUserCardReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserCardReq.ProtoReflect.Descriptor instead.
func (*UpdateUserCardReq) GetBody ¶ added in v0.6.0
func (x *UpdateUserCardReq) GetBody() []byte
func (*UpdateUserCardReq) GetUserID ¶ added in v0.6.0
func (x *UpdateUserCardReq) GetUserID() uint32
func (*UpdateUserCardReq) ProtoMessage ¶ added in v0.6.0
func (*UpdateUserCardReq) ProtoMessage()
func (*UpdateUserCardReq) ProtoReflect ¶ added in v0.6.0
func (x *UpdateUserCardReq) ProtoReflect() protoreflect.Message
func (*UpdateUserCardReq) Reset ¶ added in v0.6.0
func (x *UpdateUserCardReq) Reset()
func (*UpdateUserCardReq) String ¶ added in v0.6.0
func (x *UpdateUserCardReq) String() string
type User ¶
type User struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserCardClient ¶ added in v0.6.0
type UserCardClient interface { // 获取信息 GetUserCard(ctx context.Context, in *UserCardReq, opts ...grpc.CallOption) (*UserCardRes, error) // 修改身份信息 UpdateUserCard(ctx context.Context, in *UpdateUserCardReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 获取地址 GetAddressList(ctx context.Context, in *UserCardReq, opts ...grpc.CallOption) (*UserCardRes, error) // 更新地址 UpAddress(ctx context.Context, in *UpdateUserCardReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 插入地址 InstallAddress(ctx context.Context, in *UpdateUserCardReq, opts ...grpc.CallOption) (*emptypb.Empty, error) }
UserCardClient is the client API for UserCard service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserCardClient ¶ added in v0.6.0
func NewUserCardClient(cc grpc.ClientConnInterface) UserCardClient
type UserCardReq ¶ added in v0.6.0
type UserCardReq struct { UserID uint32 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*UserCardReq) Descriptor
deprecated
added in
v0.6.0
func (*UserCardReq) Descriptor() ([]byte, []int)
Deprecated: Use UserCardReq.ProtoReflect.Descriptor instead.
func (*UserCardReq) GetUserID ¶ added in v0.6.0
func (x *UserCardReq) GetUserID() uint32
func (*UserCardReq) ProtoMessage ¶ added in v0.6.0
func (*UserCardReq) ProtoMessage()
func (*UserCardReq) ProtoReflect ¶ added in v0.6.0
func (x *UserCardReq) ProtoReflect() protoreflect.Message
func (*UserCardReq) Reset ¶ added in v0.6.0
func (x *UserCardReq) Reset()
func (*UserCardReq) String ¶ added in v0.6.0
func (x *UserCardReq) String() string
type UserCardRes ¶ added in v0.6.0
type UserCardRes struct { UserID uint32 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` Gender int32 `protobuf:"varint,2,opt,name=Gender,proto3" json:"Gender,omitempty"` RealName string `protobuf:"bytes,3,opt,name=RealName,proto3" json:"RealName,omitempty"` UserImage string `protobuf:"bytes,4,opt,name=UserImage,proto3" json:"UserImage,omitempty"` CardID string `protobuf:"bytes,5,opt,name=CardID,proto3" json:"CardID,omitempty"` CardType string `protobuf:"bytes,6,opt,name=CardType,proto3" json:"CardType,omitempty"` CardCode string `protobuf:"bytes,7,opt,name=CardCode,proto3" json:"CardCode,omitempty"` CardAddress string `protobuf:"bytes,8,opt,name=CardAddress,proto3" json:"CardAddress,omitempty"` StartAt uint32 `protobuf:"varint,9,opt,name=StartAt,proto3" json:"StartAt,omitempty"` EndAt uint32 `protobuf:"varint,10,opt,name=EndAt,proto3" json:"EndAt,omitempty"` AreaCode string `protobuf:"bytes,11,opt,name=AreaCode,proto3" json:"AreaCode,omitempty"` Email string `protobuf:"bytes,12,opt,name=Email,proto3" json:"Email,omitempty"` Address []byte `protobuf:"bytes,13,opt,name=Address,proto3" json:"Address,omitempty"` // contains filtered or unexported fields }
func (*UserCardRes) Descriptor
deprecated
added in
v0.6.0
func (*UserCardRes) Descriptor() ([]byte, []int)
Deprecated: Use UserCardRes.ProtoReflect.Descriptor instead.
func (*UserCardRes) GetAddress ¶ added in v0.6.0
func (x *UserCardRes) GetAddress() []byte
func (*UserCardRes) GetAreaCode ¶ added in v0.6.0
func (x *UserCardRes) GetAreaCode() string
func (*UserCardRes) GetCardAddress ¶ added in v0.7.0
func (x *UserCardRes) GetCardAddress() string
func (*UserCardRes) GetCardCode ¶ added in v0.6.0
func (x *UserCardRes) GetCardCode() string
func (*UserCardRes) GetCardID ¶ added in v0.6.0
func (x *UserCardRes) GetCardID() string
func (*UserCardRes) GetCardType ¶ added in v0.6.0
func (x *UserCardRes) GetCardType() string
func (*UserCardRes) GetEmail ¶ added in v0.6.0
func (x *UserCardRes) GetEmail() string
func (*UserCardRes) GetEndAt ¶ added in v0.6.0
func (x *UserCardRes) GetEndAt() uint32
func (*UserCardRes) GetGender ¶ added in v0.6.0
func (x *UserCardRes) GetGender() int32
func (*UserCardRes) GetRealName ¶ added in v0.6.0
func (x *UserCardRes) GetRealName() string
func (*UserCardRes) GetStartAt ¶ added in v0.6.0
func (x *UserCardRes) GetStartAt() uint32
func (*UserCardRes) GetUserID ¶ added in v0.6.0
func (x *UserCardRes) GetUserID() uint32
func (*UserCardRes) GetUserImage ¶ added in v0.6.0
func (x *UserCardRes) GetUserImage() string
func (*UserCardRes) ProtoMessage ¶ added in v0.6.0
func (*UserCardRes) ProtoMessage()
func (*UserCardRes) ProtoReflect ¶ added in v0.6.0
func (x *UserCardRes) ProtoReflect() protoreflect.Message
func (*UserCardRes) Reset ¶ added in v0.6.0
func (x *UserCardRes) Reset()
func (*UserCardRes) String ¶ added in v0.6.0
func (x *UserCardRes) String() string
type UserCardServer ¶ added in v0.6.0
type UserCardServer interface { // 获取信息 GetUserCard(context.Context, *UserCardReq) (*UserCardRes, error) // 修改身份信息 UpdateUserCard(context.Context, *UpdateUserCardReq) (*emptypb.Empty, error) // 获取地址 GetAddressList(context.Context, *UserCardReq) (*UserCardRes, error) // 更新地址 UpAddress(context.Context, *UpdateUserCardReq) (*emptypb.Empty, error) // 插入地址 InstallAddress(context.Context, *UpdateUserCardReq) (*emptypb.Empty, error) // contains filtered or unexported methods }
UserCardServer is the server API for UserCard service. All implementations must embed UnimplementedUserCardServer for forward compatibility
type UserHistoryAddReq ¶ added in v0.6.0
type UserHistoryAddReq struct { UserID uint32 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"` SysCode string `protobuf:"bytes,2,opt,name=SysCode,proto3" json:"SysCode,omitempty"` Body []byte `protobuf:"bytes,3,opt,name=Body,proto3" json:"Body,omitempty"` // contains filtered or unexported fields }
func (*UserHistoryAddReq) Descriptor
deprecated
added in
v0.6.0
func (*UserHistoryAddReq) Descriptor() ([]byte, []int)
Deprecated: Use UserHistoryAddReq.ProtoReflect.Descriptor instead.
func (*UserHistoryAddReq) GetBody ¶ added in v0.6.0
func (x *UserHistoryAddReq) GetBody() []byte
func (*UserHistoryAddReq) GetSysCode ¶ added in v0.6.0
func (x *UserHistoryAddReq) GetSysCode() string
func (*UserHistoryAddReq) GetUserID ¶ added in v0.6.0
func (x *UserHistoryAddReq) GetUserID() uint32
func (*UserHistoryAddReq) ProtoMessage ¶ added in v0.6.0
func (*UserHistoryAddReq) ProtoMessage()
func (*UserHistoryAddReq) ProtoReflect ¶ added in v0.6.0
func (x *UserHistoryAddReq) ProtoReflect() protoreflect.Message
func (*UserHistoryAddReq) Reset ¶ added in v0.6.0
func (x *UserHistoryAddReq) Reset()
func (*UserHistoryAddReq) String ¶ added in v0.6.0
func (x *UserHistoryAddReq) String() string
type UserHistoryClient ¶ added in v0.6.0
type UserHistoryClient interface { Add(ctx context.Context, in *UserHistoryAddReq, opts ...grpc.CallOption) (*emptypb.Empty, error) Query(ctx context.Context, in *UserHistoryQueryReq, opts ...grpc.CallOption) (*UserHistoryQueryRes, error) }
UserHistoryClient is the client API for UserHistory service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserHistoryClient ¶ added in v0.6.0
func NewUserHistoryClient(cc grpc.ClientConnInterface) UserHistoryClient
type UserHistoryQueryReq ¶ added in v0.6.0
type UserHistoryQueryReq struct { UserID uint32 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"` StartAt uint32 `protobuf:"varint,2,opt,name=StartAt,proto3" json:"StartAt,omitempty"` EndAt uint32 `protobuf:"varint,3,opt,name=EndAt,proto3" json:"EndAt,omitempty"` SysCode []string `protobuf:"bytes,4,rep,name=SysCode,proto3" json:"SysCode,omitempty"` // contains filtered or unexported fields }
func (*UserHistoryQueryReq) Descriptor
deprecated
added in
v0.6.0
func (*UserHistoryQueryReq) Descriptor() ([]byte, []int)
Deprecated: Use UserHistoryQueryReq.ProtoReflect.Descriptor instead.
func (*UserHistoryQueryReq) GetEndAt ¶ added in v0.6.0
func (x *UserHistoryQueryReq) GetEndAt() uint32
func (*UserHistoryQueryReq) GetStartAt ¶ added in v0.6.0
func (x *UserHistoryQueryReq) GetStartAt() uint32
func (*UserHistoryQueryReq) GetSysCode ¶ added in v0.6.0
func (x *UserHistoryQueryReq) GetSysCode() []string
func (*UserHistoryQueryReq) GetUserID ¶ added in v0.6.0
func (x *UserHistoryQueryReq) GetUserID() uint32
func (*UserHistoryQueryReq) ProtoMessage ¶ added in v0.6.0
func (*UserHistoryQueryReq) ProtoMessage()
func (*UserHistoryQueryReq) ProtoReflect ¶ added in v0.6.0
func (x *UserHistoryQueryReq) ProtoReflect() protoreflect.Message
func (*UserHistoryQueryReq) Reset ¶ added in v0.6.0
func (x *UserHistoryQueryReq) Reset()
func (*UserHistoryQueryReq) String ¶ added in v0.6.0
func (x *UserHistoryQueryReq) String() string
type UserHistoryQueryRes ¶ added in v0.6.0
type UserHistoryQueryRes struct { List []*QueryBody `protobuf:"bytes,1,rep,name=List,proto3" json:"List,omitempty"` // contains filtered or unexported fields }
func (*UserHistoryQueryRes) Descriptor
deprecated
added in
v0.6.0
func (*UserHistoryQueryRes) Descriptor() ([]byte, []int)
Deprecated: Use UserHistoryQueryRes.ProtoReflect.Descriptor instead.
func (*UserHistoryQueryRes) GetList ¶ added in v0.6.0
func (x *UserHistoryQueryRes) GetList() []*QueryBody
func (*UserHistoryQueryRes) ProtoMessage ¶ added in v0.6.0
func (*UserHistoryQueryRes) ProtoMessage()
func (*UserHistoryQueryRes) ProtoReflect ¶ added in v0.6.0
func (x *UserHistoryQueryRes) ProtoReflect() protoreflect.Message
func (*UserHistoryQueryRes) Reset ¶ added in v0.6.0
func (x *UserHistoryQueryRes) Reset()
func (*UserHistoryQueryRes) String ¶ added in v0.6.0
func (x *UserHistoryQueryRes) String() string
type UserHistoryServer ¶ added in v0.6.0
type UserHistoryServer interface { Add(context.Context, *UserHistoryAddReq) (*emptypb.Empty, error) Query(context.Context, *UserHistoryQueryReq) (*UserHistoryQueryRes, error) // contains filtered or unexported methods }
UserHistoryServer is the server API for UserHistory service. All implementations must embed UnimplementedUserHistoryServer for forward compatibility
type UserID ¶
type UserID struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*UserID) Descriptor
deprecated
func (*UserID) ProtoMessage ¶
func (*UserID) ProtoMessage()
func (*UserID) ProtoReflect ¶
func (x *UserID) ProtoReflect() protoreflect.Message
type UserList ¶
type UserList struct { U *User `protobuf:"bytes,1,opt,name=u,proto3" json:"u,omitempty"` // contains filtered or unexported fields }
func (*UserList) Descriptor
deprecated
func (*UserList) ProtoMessage ¶
func (*UserList) ProtoMessage()
func (*UserList) ProtoReflect ¶
func (x *UserList) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { GetByID(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*User, error) GetIDByMobile(ctx context.Context, in *Mobile, opts ...grpc.CallOption) (*UserID, error) GetInfoByToken(ctx context.Context, in *Token, opts ...grpc.CallOption) (*Info, error) ListByIDs(ctx context.Context, opts ...grpc.CallOption) (UserService_ListByIDsClient, error) // 登录 Login(ctx context.Context, in *Login, opts ...grpc.CallOption) (*Token, error) // 刷新token ExpireToken(ctx context.Context, in *Token, opts ...grpc.CallOption) (*emptypb.Empty, error) // 刷新token ExpireTokenByID(ctx context.Context, in *Token, opts ...grpc.CallOption) (*emptypb.Empty, error) // 修改手机号 UpdateMobile(ctx context.Context, in *User, opts ...grpc.CallOption) (*emptypb.Empty, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { GetByID(context.Context, *UserID) (*User, error) GetIDByMobile(context.Context, *Mobile) (*UserID, error) GetInfoByToken(context.Context, *Token) (*Info, error) ListByIDs(UserService_ListByIDsServer) error // 登录 Login(context.Context, *Login) (*Token, error) // 刷新token ExpireToken(context.Context, *Token) (*emptypb.Empty, error) // 刷新token ExpireTokenByID(context.Context, *Token) (*emptypb.Empty, error) // 修改手机号 UpdateMobile(context.Context, *User) (*emptypb.Empty, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type WechatLogin ¶
type WechatLogin struct { AppID string `protobuf:"bytes,1,opt,name=appID,proto3" json:"appID,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // 系统标识 SysCode uint32 `protobuf:"varint,3,opt,name=sysCode,proto3" json:"sysCode,omitempty"` LoginType uint32 `protobuf:"varint,4,opt,name=loginType,proto3" json:"loginType,omitempty"` // contains filtered or unexported fields }
func (*WechatLogin) Descriptor
deprecated
func (*WechatLogin) Descriptor() ([]byte, []int)
Deprecated: Use WechatLogin.ProtoReflect.Descriptor instead.
func (*WechatLogin) GetAppID ¶
func (x *WechatLogin) GetAppID() string
func (*WechatLogin) GetCode ¶
func (x *WechatLogin) GetCode() string
func (*WechatLogin) GetLoginType ¶
func (x *WechatLogin) GetLoginType() uint32
func (*WechatLogin) GetSysCode ¶
func (x *WechatLogin) GetSysCode() uint32
func (*WechatLogin) ProtoMessage ¶
func (*WechatLogin) ProtoMessage()
func (*WechatLogin) ProtoReflect ¶
func (x *WechatLogin) ProtoReflect() protoreflect.Message
func (*WechatLogin) Reset ¶
func (x *WechatLogin) Reset()
func (*WechatLogin) String ¶
func (x *WechatLogin) String() string
type WechatMobile ¶
type WechatMobile struct { Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"` OpenID string `protobuf:"bytes,2,opt,name=openID,proto3" json:"openID,omitempty"` SysCode uint32 `protobuf:"varint,3,opt,name=sysCode,proto3" json:"sysCode,omitempty"` // contains filtered or unexported fields }
func (*WechatMobile) Descriptor
deprecated
func (*WechatMobile) Descriptor() ([]byte, []int)
Deprecated: Use WechatMobile.ProtoReflect.Descriptor instead.
func (*WechatMobile) GetMobile ¶
func (x *WechatMobile) GetMobile() string
func (*WechatMobile) GetOpenID ¶
func (x *WechatMobile) GetOpenID() string
func (*WechatMobile) GetSysCode ¶
func (x *WechatMobile) GetSysCode() uint32
func (*WechatMobile) ProtoMessage ¶
func (*WechatMobile) ProtoMessage()
func (*WechatMobile) ProtoReflect ¶
func (x *WechatMobile) ProtoReflect() protoreflect.Message
func (*WechatMobile) Reset ¶
func (x *WechatMobile) Reset()
func (*WechatMobile) String ¶
func (x *WechatMobile) String() string
type WechatServiceClient ¶
type WechatServiceClient interface { // 登录 Login(ctx context.Context, in *WechatLogin, opts ...grpc.CallOption) (*MiniLoginBack, error) // 获取access_token GetAccessToken(ctx context.Context, in *AppID, opts ...grpc.CallOption) (*Token, error) // 从用户系统获取 GetAccessTokenFromUser(ctx context.Context, in *AppID, opts ...grpc.CallOption) (*Token, error) // 微信绑定用户信息 BindUser(ctx context.Context, in *WechatMobile, opts ...grpc.CallOption) (*UserID, error) }
WechatServiceClient is the client API for WechatService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWechatServiceClient ¶
func NewWechatServiceClient(cc grpc.ClientConnInterface) WechatServiceClient
type WechatServiceServer ¶
type WechatServiceServer interface { // 登录 Login(context.Context, *WechatLogin) (*MiniLoginBack, error) // 获取access_token GetAccessToken(context.Context, *AppID) (*Token, error) // 从用户系统获取 GetAccessTokenFromUser(context.Context, *AppID) (*Token, error) // 微信绑定用户信息 BindUser(context.Context, *WechatMobile) (*UserID, error) // contains filtered or unexported methods }
WechatServiceServer is the server API for WechatService service. All implementations must embed UnimplementedWechatServiceServer for forward compatibility