proto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_grpcService_proto_base_proto protoreflect.FileDescriptor
View Source
var GRPCConn *grpc.ClientConn
View Source
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)

View Source
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)

View Source
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)

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use AppID.ProtoReflect.Descriptor instead.

func (*AppID) GetAppID

func (x *AppID) GetAppID() string

func (*AppID) ProtoMessage

func (*AppID) ProtoMessage()

func (*AppID) ProtoReflect

func (x *AppID) ProtoReflect() protoreflect.Message

func (*AppID) Reset

func (x *AppID) Reset()

func (*AppID) String

func (x *AppID) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use BoolF.ProtoReflect.Descriptor instead.

func (*BoolF) GetF

func (x *BoolF) GetF() bool

func (*BoolF) ProtoMessage

func (*BoolF) ProtoMessage()

func (*BoolF) ProtoReflect

func (x *BoolF) ProtoReflect() protoreflect.Message

func (*BoolF) Reset

func (x *BoolF) Reset()

func (*BoolF) String

func (x *BoolF) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Code.ProtoReflect.Descriptor instead.

func (*Code) GetAppID

func (x *Code) GetAppID() string

func (*Code) GetCode

func (x *Code) GetCode() string

func (*Code) ProtoMessage

func (*Code) ProtoMessage()

func (*Code) ProtoReflect

func (x *Code) ProtoReflect() protoreflect.Message

func (*Code) Reset

func (x *Code) Reset()

func (*Code) String

func (x *Code) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Info.ProtoReflect.Descriptor instead.

func (*Info) GetOpenID

func (x *Info) GetOpenID() string

func (*Info) GetUserID

func (x *Info) GetUserID() uint32

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) ProtoReflect

func (x *Info) ProtoReflect() protoreflect.Message

func (*Info) Reset

func (x *Info) Reset()

func (*Info) String

func (x *Info) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Login.ProtoReflect.Descriptor instead.

func (*Login) GetCode

func (x *Login) GetCode() string

func (*Login) GetDevice

func (x *Login) GetDevice() string

func (*Login) GetLoginType

func (x *Login) GetLoginType() uint32

func (*Login) GetMobile

func (x *Login) GetMobile() string

func (*Login) ProtoMessage

func (*Login) ProtoMessage()

func (*Login) ProtoReflect

func (x *Login) ProtoReflect() protoreflect.Message

func (*Login) Reset

func (x *Login) Reset()

func (*Login) String

func (x *Login) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Mobile.ProtoReflect.Descriptor instead.

func (*Mobile) GetMobile

func (x *Mobile) GetMobile() string

func (*Mobile) ProtoMessage

func (*Mobile) ProtoMessage()

func (*Mobile) ProtoReflect

func (x *Mobile) ProtoReflect() protoreflect.Message

func (*Mobile) Reset

func (x *Mobile) Reset()

func (*Mobile) String

func (x *Mobile) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Msg.ProtoReflect.Descriptor instead.

func (*Msg) GetMsg

func (x *Msg) GetMsg() string

func (*Msg) ProtoMessage

func (*Msg) ProtoMessage()

func (*Msg) ProtoReflect

func (x *Msg) ProtoReflect() protoreflect.Message

func (*Msg) Reset

func (x *Msg) Reset()

func (*Msg) String

func (x *Msg) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use MsgCode.ProtoReflect.Descriptor instead.

func (*MsgCode) GetCode

func (x *MsgCode) GetCode() string

func (*MsgCode) GetMobile

func (x *MsgCode) GetMobile() string

func (*MsgCode) ProtoMessage

func (*MsgCode) ProtoMessage()

func (*MsgCode) ProtoReflect

func (x *MsgCode) ProtoReflect() protoreflect.Message

func (*MsgCode) Reset

func (x *MsgCode) Reset()

func (*MsgCode) String

func (x *MsgCode) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use OpenID.ProtoReflect.Descriptor instead.

func (*OpenID) GetId

func (x *OpenID) GetId() string

func (*OpenID) ProtoMessage

func (*OpenID) ProtoMessage()

func (*OpenID) ProtoReflect

func (x *OpenID) ProtoReflect() protoreflect.Message

func (*OpenID) Reset

func (x *OpenID) Reset()

func (*OpenID) String

func (x *OpenID) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use QueryBody.ProtoReflect.Descriptor instead.

func (*QueryBody) GetBody added in v0.6.0

func (x *QueryBody) GetBody() []byte

func (*QueryBody) GetCreatedAt added in v0.6.0

func (x *QueryBody) GetCreatedAt() uint32

func (*QueryBody) GetSysCode added in v0.6.0

func (x *QueryBody) GetSysCode() string

func (*QueryBody) GetUserID added in v0.6.0

func (x *QueryBody) GetUserID() uint32

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

func (*QueryBody) Reset added in v0.6.0

func (x *QueryBody) Reset()

func (*QueryBody) String added in v0.6.0

func (x *QueryBody) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetToken

func (x *Token) GetToken() string

func (*Token) GetUserID added in v0.6.0

func (x *Token) GetUserID() uint32

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

func (x *Token) ProtoReflect() protoreflect.Message

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedMsgServiceServer

type UnimplementedMsgServiceServer struct {
}

UnimplementedMsgServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServiceServer) CheckMsgCode

func (UnimplementedMsgServiceServer) SendMsgCode

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) GetUserCard added in v0.6.0

func (UnimplementedUserCardServer) InstallAddress added in v0.7.0

func (UnimplementedUserCardServer) UpAddress added in v0.7.0

func (UnimplementedUserCardServer) UpdateUserCard added in v0.6.0

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) Query added in v0.6.0

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) GetByID

func (UnimplementedUserServiceServer) GetIDByMobile

func (UnimplementedUserServiceServer) GetInfoByToken

func (UnimplementedUserServiceServer) ListByIDs

func (UnimplementedUserServiceServer) Login

func (UnimplementedUserServiceServer) UpdateMobile

type UnimplementedWechatServiceServer

type UnimplementedWechatServiceServer struct {
}

UnimplementedWechatServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedWechatServiceServer) BindUser

func (UnimplementedWechatServiceServer) GetAccessToken

func (UnimplementedWechatServiceServer) GetAccessTokenFromUser added in v0.3.0

func (UnimplementedWechatServiceServer) GetAccessTokenFromUser(context.Context, *AppID) (*Token, error)

func (UnimplementedWechatServiceServer) Login

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetId

func (x *User) GetId() uint32

func (*User) GetMobile

func (x *User) GetMobile() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UserID.ProtoReflect.Descriptor instead.

func (*UserID) GetId

func (x *UserID) GetId() uint32

func (*UserID) ProtoMessage

func (*UserID) ProtoMessage()

func (*UserID) ProtoReflect

func (x *UserID) ProtoReflect() protoreflect.Message

func (*UserID) Reset

func (x *UserID) Reset()

func (*UserID) String

func (x *UserID) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UserList.ProtoReflect.Descriptor instead.

func (*UserList) GetU

func (x *UserList) GetU() *User

func (*UserList) ProtoMessage

func (*UserList) ProtoMessage()

func (*UserList) ProtoReflect

func (x *UserList) ProtoReflect() protoreflect.Message

func (*UserList) Reset

func (x *UserList) Reset()

func (*UserList) String

func (x *UserList) String() string

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.

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 UserService_ListByIDsClient

type UserService_ListByIDsClient interface {
	Send(*UserID) error
	Recv() (*UserList, error)
	grpc.ClientStream
}

type UserService_ListByIDsServer

type UserService_ListByIDsServer interface {
	Send(*UserList) error
	Recv() (*UserID, error)
	grpc.ServerStream
}

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.

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

Jump to

Keyboard shortcuts

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