__

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserService_RegisterUser_FullMethodName      = "/user.UserService/RegisterUser"
	UserService_UserLogin_FullMethodName         = "/user.UserService/UserLogin"
	UserService_UpdateNickName_FullMethodName    = "/user.UserService/UpdateNickName"
	UserService_UploadAvatar_FullMethodName      = "/user.UserService/UploadAvatar"
	UserService_SendEmail_FullMethodName         = "/user.UserService/SendEmail"
	UserService_SendCode_FullMethodName          = "/user.UserService/SendCode"
	UserService_ValidEmail_FullMethodName        = "/user.UserService/ValidEmail"
	UserService_VerifyCode_FullMethodName        = "/user.UserService/VerifyCode"
	UserService_ShowMoney_FullMethodName         = "/user.UserService/ShowMoney"
	UserService_UserCreateAddress_FullMethodName = "/user.UserService/UserCreateAddress"
	UserService_ListAddress_FullMethodName       = "/user.UserService/ListAddress"
	UserService_UpdateAddress_FullMethodName     = "/user.UserService/UpdateAddress"
	UserService_DeleteAddress_FullMethodName     = "/user.UserService/DeleteAddress"
	UserService_CreateCart_FullMethodName        = "/user.UserService/CreateCart"
	UserService_ShowCarts_FullMethodName         = "/user.UserService/ShowCarts"
	UserService_UpdateCart_FullMethodName        = "/user.UserService/UpdateCart"
	UserService_DeleteCart_FullMethodName        = "/user.UserService/DeleteCart"
	UserService_CreateOrder_FullMethodName       = "/user.UserService/CreateOrder"
	UserService_ListOrders_FullMethodName        = "/user.UserService/ListOrders"
	UserService_ShowOrder_FullMethodName         = "/user.UserService/ShowOrder"
	UserService_DeleteOrder_FullMethodName       = "/user.UserService/DeleteOrder"
)

Variables

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterUser",
			Handler:    _UserService_RegisterUser_Handler,
		},
		{
			MethodName: "UserLogin",
			Handler:    _UserService_UserLogin_Handler,
		},
		{
			MethodName: "UpdateNickName",
			Handler:    _UserService_UpdateNickName_Handler,
		},
		{
			MethodName: "UploadAvatar",
			Handler:    _UserService_UploadAvatar_Handler,
		},
		{
			MethodName: "SendEmail",
			Handler:    _UserService_SendEmail_Handler,
		},
		{
			MethodName: "SendCode",
			Handler:    _UserService_SendCode_Handler,
		},
		{
			MethodName: "ValidEmail",
			Handler:    _UserService_ValidEmail_Handler,
		},
		{
			MethodName: "VerifyCode",
			Handler:    _UserService_VerifyCode_Handler,
		},
		{
			MethodName: "ShowMoney",
			Handler:    _UserService_ShowMoney_Handler,
		},
		{
			MethodName: "UserCreateAddress",
			Handler:    _UserService_UserCreateAddress_Handler,
		},
		{
			MethodName: "ListAddress",
			Handler:    _UserService_ListAddress_Handler,
		},
		{
			MethodName: "UpdateAddress",
			Handler:    _UserService_UpdateAddress_Handler,
		},
		{
			MethodName: "DeleteAddress",
			Handler:    _UserService_DeleteAddress_Handler,
		},
		{
			MethodName: "CreateCart",
			Handler:    _UserService_CreateCart_Handler,
		},
		{
			MethodName: "ShowCarts",
			Handler:    _UserService_ShowCarts_Handler,
		},
		{
			MethodName: "UpdateCart",
			Handler:    _UserService_UpdateCart_Handler,
		},
		{
			MethodName: "DeleteCart",
			Handler:    _UserService_DeleteCart_Handler,
		},
		{
			MethodName: "CreateOrder",
			Handler:    _UserService_CreateOrder_Handler,
		},
		{
			MethodName: "ListOrders",
			Handler:    _UserService_ListOrders_Handler,
		},
		{
			MethodName: "ShowOrder",
			Handler:    _UserService_ShowOrder_Handler,
		},
		{
			MethodName: "DeleteOrder",
			Handler:    _UserService_DeleteOrder_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user.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)

Functions

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type CommonResponse

type CommonResponse struct {
	StatusCode       int64            `protobuf:"varint,1,opt,name=StatusCode,proto3" json:"StatusCode,omitempty"`
	Message          string           `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	ResponseData     string           `protobuf:"bytes,3,opt,name=ResponseData,proto3" json:"ResponseData,omitempty"`
	ResponseDataJson *structpb.Struct `protobuf:"bytes,4,opt,name=ResponseDataJson,proto3" json:"ResponseDataJson,omitempty"`
	// contains filtered or unexported fields
}

func (*CommonResponse) Descriptor deprecated

func (*CommonResponse) Descriptor() ([]byte, []int)

Deprecated: Use CommonResponse.ProtoReflect.Descriptor instead.

func (*CommonResponse) GetMessage

func (x *CommonResponse) GetMessage() string

func (*CommonResponse) GetResponseData

func (x *CommonResponse) GetResponseData() string

func (*CommonResponse) GetResponseDataJson added in v0.1.6

func (x *CommonResponse) GetResponseDataJson() *structpb.Struct

func (*CommonResponse) GetStatusCode

func (x *CommonResponse) GetStatusCode() int64

func (*CommonResponse) ProtoMessage

func (*CommonResponse) ProtoMessage()

func (*CommonResponse) ProtoReflect

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

func (*CommonResponse) Reset

func (x *CommonResponse) Reset()

func (*CommonResponse) String

func (x *CommonResponse) String() string

type CreateCartRequest added in v0.1.7

type CreateCartRequest struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	BossId    string `protobuf:"bytes,3,opt,name=boss_id,json=bossId,proto3" json:"boss_id,omitempty"`
	Num       string `protobuf:"bytes,4,opt,name=num,proto3" json:"num,omitempty"`
	// contains filtered or unexported fields
}

创建购物车

func (*CreateCartRequest) Descriptor deprecated added in v0.1.7

func (*CreateCartRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateCartRequest.ProtoReflect.Descriptor instead.

func (*CreateCartRequest) GetBossId added in v0.1.7

func (x *CreateCartRequest) GetBossId() string

func (*CreateCartRequest) GetNum added in v0.1.7

func (x *CreateCartRequest) GetNum() string

func (*CreateCartRequest) GetProductId added in v0.1.7

func (x *CreateCartRequest) GetProductId() string

func (*CreateCartRequest) GetUserId added in v0.1.7

func (x *CreateCartRequest) GetUserId() string

func (*CreateCartRequest) ProtoMessage added in v0.1.7

func (*CreateCartRequest) ProtoMessage()

func (*CreateCartRequest) ProtoReflect added in v0.1.7

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

func (*CreateCartRequest) Reset added in v0.1.7

func (x *CreateCartRequest) Reset()

func (*CreateCartRequest) String added in v0.1.7

func (x *CreateCartRequest) String() string

type CreateOrderRequest added in v0.1.7

type CreateOrderRequest struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	BossId    string `protobuf:"bytes,3,opt,name=boss_id,json=bossId,proto3" json:"boss_id,omitempty"`
	Num       string `protobuf:"bytes,4,opt,name=num,proto3" json:"num,omitempty"`
	Money     string `protobuf:"bytes,5,opt,name=money,proto3" json:"money,omitempty"`
	Type      string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

用户创建订单

func (*CreateOrderRequest) Descriptor deprecated added in v0.1.7

func (*CreateOrderRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.

func (*CreateOrderRequest) GetBossId added in v0.1.7

func (x *CreateOrderRequest) GetBossId() string

func (*CreateOrderRequest) GetMoney added in v0.1.7

func (x *CreateOrderRequest) GetMoney() string

func (*CreateOrderRequest) GetNum added in v0.1.7

func (x *CreateOrderRequest) GetNum() string

func (*CreateOrderRequest) GetProductId added in v0.1.7

func (x *CreateOrderRequest) GetProductId() string

func (*CreateOrderRequest) GetType added in v0.1.7

func (x *CreateOrderRequest) GetType() string

func (*CreateOrderRequest) GetUserId added in v0.1.7

func (x *CreateOrderRequest) GetUserId() string

func (*CreateOrderRequest) ProtoMessage added in v0.1.7

func (*CreateOrderRequest) ProtoMessage()

func (*CreateOrderRequest) ProtoReflect added in v0.1.7

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

func (*CreateOrderRequest) Reset added in v0.1.7

func (x *CreateOrderRequest) Reset()

func (*CreateOrderRequest) String added in v0.1.7

func (x *CreateOrderRequest) String() string

type DeleteAddressRequest added in v0.1.7

type DeleteAddressRequest struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	AddressId string `protobuf:"bytes,2,opt,name=address_id,json=addressId,proto3" json:"address_id,omitempty"`
	// contains filtered or unexported fields
}

删除用户某个地址

func (*DeleteAddressRequest) Descriptor deprecated added in v0.1.7

func (*DeleteAddressRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAddressRequest.ProtoReflect.Descriptor instead.

func (*DeleteAddressRequest) GetAddressId added in v0.1.7

func (x *DeleteAddressRequest) GetAddressId() string

func (*DeleteAddressRequest) GetUserId added in v0.1.7

func (x *DeleteAddressRequest) GetUserId() string

func (*DeleteAddressRequest) ProtoMessage added in v0.1.7

func (*DeleteAddressRequest) ProtoMessage()

func (*DeleteAddressRequest) ProtoReflect added in v0.1.7

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

func (*DeleteAddressRequest) Reset added in v0.1.7

func (x *DeleteAddressRequest) Reset()

func (*DeleteAddressRequest) String added in v0.1.7

func (x *DeleteAddressRequest) String() string

type DeleteCartRequest added in v0.1.7

type DeleteCartRequest struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	// contains filtered or unexported fields
}

删除购物车

func (*DeleteCartRequest) Descriptor deprecated added in v0.1.7

func (*DeleteCartRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteCartRequest.ProtoReflect.Descriptor instead.

func (*DeleteCartRequest) GetProductId added in v0.1.7

func (x *DeleteCartRequest) GetProductId() string

func (*DeleteCartRequest) GetUserId added in v0.1.7

func (x *DeleteCartRequest) GetUserId() string

func (*DeleteCartRequest) ProtoMessage added in v0.1.7

func (*DeleteCartRequest) ProtoMessage()

func (*DeleteCartRequest) ProtoReflect added in v0.1.7

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

func (*DeleteCartRequest) Reset added in v0.1.7

func (x *DeleteCartRequest) Reset()

func (*DeleteCartRequest) String added in v0.1.7

func (x *DeleteCartRequest) String() string

type DeleteOrderRequest added in v0.1.7

type DeleteOrderRequest struct {
	UserId  string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// contains filtered or unexported fields
}

删除订单

func (*DeleteOrderRequest) Descriptor deprecated added in v0.1.7

func (*DeleteOrderRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteOrderRequest.ProtoReflect.Descriptor instead.

func (*DeleteOrderRequest) GetOrderId added in v0.1.7

func (x *DeleteOrderRequest) GetOrderId() string

func (*DeleteOrderRequest) GetUserId added in v0.1.7

func (x *DeleteOrderRequest) GetUserId() string

func (*DeleteOrderRequest) ProtoMessage added in v0.1.7

func (*DeleteOrderRequest) ProtoMessage()

func (*DeleteOrderRequest) ProtoReflect added in v0.1.7

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

func (*DeleteOrderRequest) Reset added in v0.1.7

func (x *DeleteOrderRequest) Reset()

func (*DeleteOrderRequest) String added in v0.1.7

func (x *DeleteOrderRequest) String() string

type ListAddressRequest added in v0.1.7

type ListAddressRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

展示全部地址

func (*ListAddressRequest) Descriptor deprecated added in v0.1.7

func (*ListAddressRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListAddressRequest.ProtoReflect.Descriptor instead.

func (*ListAddressRequest) GetUserId added in v0.1.7

func (x *ListAddressRequest) GetUserId() string

func (*ListAddressRequest) ProtoMessage added in v0.1.7

func (*ListAddressRequest) ProtoMessage()

func (*ListAddressRequest) ProtoReflect added in v0.1.7

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

func (*ListAddressRequest) Reset added in v0.1.7

func (x *ListAddressRequest) Reset()

func (*ListAddressRequest) String added in v0.1.7

func (x *ListAddressRequest) String() string

type ListOrdersRequest added in v0.1.7

type ListOrdersRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Type   string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

展示用户订单列表,type中1表示没有支付,2表示已经支付

func (*ListOrdersRequest) Descriptor deprecated added in v0.1.7

func (*ListOrdersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListOrdersRequest.ProtoReflect.Descriptor instead.

func (*ListOrdersRequest) GetType added in v0.1.7

func (x *ListOrdersRequest) GetType() string

func (*ListOrdersRequest) GetUserId added in v0.1.7

func (x *ListOrdersRequest) GetUserId() string

func (*ListOrdersRequest) ProtoMessage added in v0.1.7

func (*ListOrdersRequest) ProtoMessage()

func (*ListOrdersRequest) ProtoReflect added in v0.1.7

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

func (*ListOrdersRequest) Reset added in v0.1.7

func (x *ListOrdersRequest) Reset()

func (*ListOrdersRequest) String added in v0.1.7

func (x *ListOrdersRequest) String() string

type SendCodeRequest added in v0.1.10

type SendCodeRequest struct {
	UserId        string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	OperationType string `protobuf:"bytes,2,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
	Email         string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Password      string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

发送验证码

func (*SendCodeRequest) Descriptor deprecated added in v0.1.10

func (*SendCodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendCodeRequest.ProtoReflect.Descriptor instead.

func (*SendCodeRequest) GetEmail added in v0.1.10

func (x *SendCodeRequest) GetEmail() string

func (*SendCodeRequest) GetOperationType added in v0.1.10

func (x *SendCodeRequest) GetOperationType() string

func (*SendCodeRequest) GetPassword added in v0.1.10

func (x *SendCodeRequest) GetPassword() string

func (*SendCodeRequest) GetUserId added in v0.1.10

func (x *SendCodeRequest) GetUserId() string

func (*SendCodeRequest) ProtoMessage added in v0.1.10

func (*SendCodeRequest) ProtoMessage()

func (*SendCodeRequest) ProtoReflect added in v0.1.10

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

func (*SendCodeRequest) Reset added in v0.1.10

func (x *SendCodeRequest) Reset()

func (*SendCodeRequest) String added in v0.1.10

func (x *SendCodeRequest) String() string

type SendEmailRequest added in v0.1.7

type SendEmailRequest struct {
	UserId        string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	OperationType string `protobuf:"bytes,2,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
	Email         string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Password      string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

发送邮件

func (*SendEmailRequest) Descriptor deprecated added in v0.1.7

func (*SendEmailRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendEmailRequest.ProtoReflect.Descriptor instead.

func (*SendEmailRequest) GetEmail added in v0.1.7

func (x *SendEmailRequest) GetEmail() string

func (*SendEmailRequest) GetOperationType added in v0.1.7

func (x *SendEmailRequest) GetOperationType() string

func (*SendEmailRequest) GetPassword added in v0.1.7

func (x *SendEmailRequest) GetPassword() string

func (*SendEmailRequest) GetUserId added in v0.1.7

func (x *SendEmailRequest) GetUserId() string

func (*SendEmailRequest) ProtoMessage added in v0.1.7

func (*SendEmailRequest) ProtoMessage()

func (*SendEmailRequest) ProtoReflect added in v0.1.7

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

func (*SendEmailRequest) Reset added in v0.1.7

func (x *SendEmailRequest) Reset()

func (*SendEmailRequest) String added in v0.1.7

func (x *SendEmailRequest) String() string

type ShowCartsRequest added in v0.1.7

type ShowCartsRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

展示购物车详细信息

func (*ShowCartsRequest) Descriptor deprecated added in v0.1.7

func (*ShowCartsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ShowCartsRequest.ProtoReflect.Descriptor instead.

func (*ShowCartsRequest) GetUserId added in v0.1.7

func (x *ShowCartsRequest) GetUserId() string

func (*ShowCartsRequest) ProtoMessage added in v0.1.7

func (*ShowCartsRequest) ProtoMessage()

func (*ShowCartsRequest) ProtoReflect added in v0.1.7

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

func (*ShowCartsRequest) Reset added in v0.1.7

func (x *ShowCartsRequest) Reset()

func (*ShowCartsRequest) String added in v0.1.7

func (x *ShowCartsRequest) String() string

type ShowMoneyRequest added in v0.1.7

type ShowMoneyRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Key    string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

显示用户金额

func (*ShowMoneyRequest) Descriptor deprecated added in v0.1.7

func (*ShowMoneyRequest) Descriptor() ([]byte, []int)

Deprecated: Use ShowMoneyRequest.ProtoReflect.Descriptor instead.

func (*ShowMoneyRequest) GetKey added in v0.1.7

func (x *ShowMoneyRequest) GetKey() string

func (*ShowMoneyRequest) GetUserId added in v0.1.7

func (x *ShowMoneyRequest) GetUserId() string

func (*ShowMoneyRequest) ProtoMessage added in v0.1.7

func (*ShowMoneyRequest) ProtoMessage()

func (*ShowMoneyRequest) ProtoReflect added in v0.1.7

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

func (*ShowMoneyRequest) Reset added in v0.1.7

func (x *ShowMoneyRequest) Reset()

func (*ShowMoneyRequest) String added in v0.1.7

func (x *ShowMoneyRequest) String() string

type ShowOrderRequest added in v0.1.7

type ShowOrderRequest struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	OrderId   string `protobuf:"bytes,3,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	AddressId string `protobuf:"bytes,4,opt,name=address_id,json=addressId,proto3" json:"address_id,omitempty"`
	// contains filtered or unexported fields
}

展示订单详情

func (*ShowOrderRequest) Descriptor deprecated added in v0.1.7

func (*ShowOrderRequest) Descriptor() ([]byte, []int)

Deprecated: Use ShowOrderRequest.ProtoReflect.Descriptor instead.

func (*ShowOrderRequest) GetAddressId added in v0.1.7

func (x *ShowOrderRequest) GetAddressId() string

func (*ShowOrderRequest) GetOrderId added in v0.1.7

func (x *ShowOrderRequest) GetOrderId() string

func (*ShowOrderRequest) GetProductId added in v0.1.7

func (x *ShowOrderRequest) GetProductId() string

func (*ShowOrderRequest) GetUserId added in v0.1.7

func (x *ShowOrderRequest) GetUserId() string

func (*ShowOrderRequest) ProtoMessage added in v0.1.7

func (*ShowOrderRequest) ProtoMessage()

func (*ShowOrderRequest) ProtoReflect added in v0.1.7

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

func (*ShowOrderRequest) Reset added in v0.1.7

func (x *ShowOrderRequest) Reset()

func (*ShowOrderRequest) String added in v0.1.7

func (x *ShowOrderRequest) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateCart added in v0.1.8

func (UnimplementedUserServiceServer) CreateOrder added in v0.1.8

func (UnimplementedUserServiceServer) DeleteAddress added in v0.1.8

func (UnimplementedUserServiceServer) DeleteCart added in v0.1.8

func (UnimplementedUserServiceServer) DeleteOrder added in v0.1.8

func (UnimplementedUserServiceServer) ListAddress added in v0.1.8

func (UnimplementedUserServiceServer) ListOrders added in v0.1.8

func (UnimplementedUserServiceServer) RegisterUser

func (UnimplementedUserServiceServer) SendCode added in v0.1.10

func (UnimplementedUserServiceServer) SendEmail added in v0.1.8

func (UnimplementedUserServiceServer) ShowCarts added in v0.1.8

func (UnimplementedUserServiceServer) ShowMoney added in v0.1.8

func (UnimplementedUserServiceServer) ShowOrder added in v0.1.8

func (UnimplementedUserServiceServer) UpdateAddress added in v0.1.8

func (UnimplementedUserServiceServer) UpdateCart added in v0.1.8

func (UnimplementedUserServiceServer) UpdateNickName added in v0.1.7

func (UnimplementedUserServiceServer) UploadAvatar added in v0.1.8

func (UnimplementedUserServiceServer) UserCreateAddress added in v0.1.8

func (UnimplementedUserServiceServer) UserLogin

func (UnimplementedUserServiceServer) ValidEmail added in v0.1.8

func (UnimplementedUserServiceServer) VerifyCode added in v0.1.10

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 UpdateAddressRequest added in v0.1.7

type UpdateAddressRequest struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Phone     string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Address   string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	AddressId string `protobuf:"bytes,5,opt,name=address_id,json=addressId,proto3" json:"address_id,omitempty"`
	// contains filtered or unexported fields
}

修改用户地址

func (*UpdateAddressRequest) Descriptor deprecated added in v0.1.7

func (*UpdateAddressRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAddressRequest.ProtoReflect.Descriptor instead.

func (*UpdateAddressRequest) GetAddress added in v0.1.7

func (x *UpdateAddressRequest) GetAddress() string

func (*UpdateAddressRequest) GetAddressId added in v0.1.7

func (x *UpdateAddressRequest) GetAddressId() string

func (*UpdateAddressRequest) GetName added in v0.1.7

func (x *UpdateAddressRequest) GetName() string

func (*UpdateAddressRequest) GetPhone added in v0.1.7

func (x *UpdateAddressRequest) GetPhone() string

func (*UpdateAddressRequest) GetUserId added in v0.1.7

func (x *UpdateAddressRequest) GetUserId() string

func (*UpdateAddressRequest) ProtoMessage added in v0.1.7

func (*UpdateAddressRequest) ProtoMessage()

func (*UpdateAddressRequest) ProtoReflect added in v0.1.7

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

func (*UpdateAddressRequest) Reset added in v0.1.7

func (x *UpdateAddressRequest) Reset()

func (*UpdateAddressRequest) String added in v0.1.7

func (x *UpdateAddressRequest) String() string

type UpdateCartRequest added in v0.1.7

type UpdateCartRequest struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	Num       string `protobuf:"bytes,3,opt,name=num,proto3" json:"num,omitempty"`
	// contains filtered or unexported fields
}

修改购物车内容,主要是修改购物车中商品的数量

func (*UpdateCartRequest) Descriptor deprecated added in v0.1.7

func (*UpdateCartRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateCartRequest.ProtoReflect.Descriptor instead.

func (*UpdateCartRequest) GetNum added in v0.1.7

func (x *UpdateCartRequest) GetNum() string

func (*UpdateCartRequest) GetProductId added in v0.1.7

func (x *UpdateCartRequest) GetProductId() string

func (*UpdateCartRequest) GetUserId added in v0.1.7

func (x *UpdateCartRequest) GetUserId() string

func (*UpdateCartRequest) ProtoMessage added in v0.1.7

func (*UpdateCartRequest) ProtoMessage()

func (*UpdateCartRequest) ProtoReflect added in v0.1.7

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

func (*UpdateCartRequest) Reset added in v0.1.7

func (x *UpdateCartRequest) Reset()

func (*UpdateCartRequest) String added in v0.1.7

func (x *UpdateCartRequest) String() string

type UpdateNickNameRequest added in v0.1.7

type UpdateNickNameRequest struct {
	NickName string `protobuf:"bytes,1,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	UserId   string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

修改昵称

func (*UpdateNickNameRequest) Descriptor deprecated added in v0.1.7

func (*UpdateNickNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateNickNameRequest.ProtoReflect.Descriptor instead.

func (*UpdateNickNameRequest) GetNickName added in v0.1.7

func (x *UpdateNickNameRequest) GetNickName() string

func (*UpdateNickNameRequest) GetUserId added in v0.1.7

func (x *UpdateNickNameRequest) GetUserId() string

func (*UpdateNickNameRequest) ProtoMessage added in v0.1.7

func (*UpdateNickNameRequest) ProtoMessage()

func (*UpdateNickNameRequest) ProtoReflect added in v0.1.7

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

func (*UpdateNickNameRequest) Reset added in v0.1.7

func (x *UpdateNickNameRequest) Reset()

func (*UpdateNickNameRequest) String added in v0.1.7

func (x *UpdateNickNameRequest) String() string

type UploadAvatarRequest added in v0.1.7

type UploadAvatarRequest struct {
	UserId   string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	FileData []byte `protobuf:"bytes,2,opt,name=file_data,json=fileData,proto3" json:"file_data,omitempty"`
	// contains filtered or unexported fields
}

上传头像

func (*UploadAvatarRequest) Descriptor deprecated added in v0.1.7

func (*UploadAvatarRequest) Descriptor() ([]byte, []int)

Deprecated: Use UploadAvatarRequest.ProtoReflect.Descriptor instead.

func (*UploadAvatarRequest) GetFileData added in v0.1.7

func (x *UploadAvatarRequest) GetFileData() []byte

func (*UploadAvatarRequest) GetUserId added in v0.1.7

func (x *UploadAvatarRequest) GetUserId() string

func (*UploadAvatarRequest) ProtoMessage added in v0.1.7

func (*UploadAvatarRequest) ProtoMessage()

func (*UploadAvatarRequest) ProtoReflect added in v0.1.7

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

func (*UploadAvatarRequest) Reset added in v0.1.7

func (x *UploadAvatarRequest) Reset()

func (*UploadAvatarRequest) String added in v0.1.7

func (x *UploadAvatarRequest) String() string

type UserCreateAddressRequest added in v0.1.7

type UserCreateAddressRequest struct {
	UserId  string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Phone   string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

用户新建地址

func (*UserCreateAddressRequest) Descriptor deprecated added in v0.1.7

func (*UserCreateAddressRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserCreateAddressRequest.ProtoReflect.Descriptor instead.

func (*UserCreateAddressRequest) GetAddress added in v0.1.7

func (x *UserCreateAddressRequest) GetAddress() string

func (*UserCreateAddressRequest) GetName added in v0.1.7

func (x *UserCreateAddressRequest) GetName() string

func (*UserCreateAddressRequest) GetPhone added in v0.1.7

func (x *UserCreateAddressRequest) GetPhone() string

func (*UserCreateAddressRequest) GetUserId added in v0.1.7

func (x *UserCreateAddressRequest) GetUserId() string

func (*UserCreateAddressRequest) ProtoMessage added in v0.1.7

func (*UserCreateAddressRequest) ProtoMessage()

func (*UserCreateAddressRequest) ProtoReflect added in v0.1.7

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

func (*UserCreateAddressRequest) Reset added in v0.1.7

func (x *UserCreateAddressRequest) Reset()

func (*UserCreateAddressRequest) String added in v0.1.7

func (x *UserCreateAddressRequest) String() string

type UserLoginRequest

type UserLoginRequest struct {
	UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

用户登陆

func (*UserLoginRequest) Descriptor deprecated

func (*UserLoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserLoginRequest.ProtoReflect.Descriptor instead.

func (*UserLoginRequest) GetPassword

func (x *UserLoginRequest) GetPassword() string

func (*UserLoginRequest) GetUserName

func (x *UserLoginRequest) GetUserName() string

func (*UserLoginRequest) ProtoMessage

func (*UserLoginRequest) ProtoMessage()

func (*UserLoginRequest) ProtoReflect

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

func (*UserLoginRequest) Reset

func (x *UserLoginRequest) Reset()

func (*UserLoginRequest) String

func (x *UserLoginRequest) String() string

type UserRegisterRequest

type UserRegisterRequest struct {
	NickName string `protobuf:"bytes,1,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"`
	UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Key      string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

用户注册

func (*UserRegisterRequest) Descriptor deprecated

func (*UserRegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use UserRegisterRequest.ProtoReflect.Descriptor instead.

func (*UserRegisterRequest) GetKey

func (x *UserRegisterRequest) GetKey() string

func (*UserRegisterRequest) GetNickName

func (x *UserRegisterRequest) GetNickName() string

func (*UserRegisterRequest) GetPassword

func (x *UserRegisterRequest) GetPassword() string

func (*UserRegisterRequest) GetUserName

func (x *UserRegisterRequest) GetUserName() string

func (*UserRegisterRequest) ProtoMessage

func (*UserRegisterRequest) ProtoMessage()

func (*UserRegisterRequest) ProtoReflect

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

func (*UserRegisterRequest) Reset

func (x *UserRegisterRequest) Reset()

func (*UserRegisterRequest) String

func (x *UserRegisterRequest) String() string

type UserServiceClient

type UserServiceClient interface {
	// 用户基础行为
	RegisterUser(ctx context.Context, in *UserRegisterRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	UserLogin(ctx context.Context, in *UserRegisterRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	UpdateNickName(ctx context.Context, in *UpdateNickNameRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	UploadAvatar(ctx context.Context, in *UploadAvatarRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	SendEmail(ctx context.Context, in *SendEmailRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	SendCode(ctx context.Context, in *SendCodeRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	ValidEmail(ctx context.Context, in *ValidEmailRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	VerifyCode(ctx context.Context, in *VerifyCodeRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	ShowMoney(ctx context.Context, in *ShowMoneyRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	// 用户地址模块
	UserCreateAddress(ctx context.Context, in *UserCreateAddressRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	ListAddress(ctx context.Context, in *ListAddressRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	UpdateAddress(ctx context.Context, in *UpdateAddressRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	DeleteAddress(ctx context.Context, in *DeleteAddressRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	// 用户购物车模块
	CreateCart(ctx context.Context, in *CreateCartRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	ShowCarts(ctx context.Context, in *ShowCartsRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	UpdateCart(ctx context.Context, in *UpdateCartRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	DeleteCart(ctx context.Context, in *DeleteCartRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	// 用户订单模块
	CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	ListOrders(ctx context.Context, in *ListOrdersRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	ShowOrder(ctx context.Context, in *ShowOrderRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	DeleteOrder(ctx context.Context, in *DeleteOrderRequest, opts ...grpc.CallOption) (*CommonResponse, 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 {
	// 用户基础行为
	RegisterUser(context.Context, *UserRegisterRequest) (*CommonResponse, error)
	UserLogin(context.Context, *UserRegisterRequest) (*CommonResponse, error)
	UpdateNickName(context.Context, *UpdateNickNameRequest) (*CommonResponse, error)
	UploadAvatar(context.Context, *UploadAvatarRequest) (*CommonResponse, error)
	SendEmail(context.Context, *SendEmailRequest) (*CommonResponse, error)
	SendCode(context.Context, *SendCodeRequest) (*CommonResponse, error)
	ValidEmail(context.Context, *ValidEmailRequest) (*CommonResponse, error)
	VerifyCode(context.Context, *VerifyCodeRequest) (*CommonResponse, error)
	ShowMoney(context.Context, *ShowMoneyRequest) (*CommonResponse, error)
	// 用户地址模块
	UserCreateAddress(context.Context, *UserCreateAddressRequest) (*CommonResponse, error)
	ListAddress(context.Context, *ListAddressRequest) (*CommonResponse, error)
	UpdateAddress(context.Context, *UpdateAddressRequest) (*CommonResponse, error)
	DeleteAddress(context.Context, *DeleteAddressRequest) (*CommonResponse, error)
	// 用户购物车模块
	CreateCart(context.Context, *CreateCartRequest) (*CommonResponse, error)
	ShowCarts(context.Context, *ShowCartsRequest) (*CommonResponse, error)
	UpdateCart(context.Context, *UpdateCartRequest) (*CommonResponse, error)
	DeleteCart(context.Context, *DeleteCartRequest) (*CommonResponse, error)
	// 用户订单模块
	CreateOrder(context.Context, *CreateOrderRequest) (*CommonResponse, error)
	ListOrders(context.Context, *ListOrdersRequest) (*CommonResponse, error)
	ShowOrder(context.Context, *ShowOrderRequest) (*CommonResponse, error)
	DeleteOrder(context.Context, *DeleteOrderRequest) (*CommonResponse, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type ValidEmailRequest added in v0.1.7

type ValidEmailRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

验证邮件

func (*ValidEmailRequest) Descriptor deprecated added in v0.1.7

func (*ValidEmailRequest) Descriptor() ([]byte, []int)

Deprecated: Use ValidEmailRequest.ProtoReflect.Descriptor instead.

func (*ValidEmailRequest) GetToken added in v0.1.9

func (x *ValidEmailRequest) GetToken() string

func (*ValidEmailRequest) ProtoMessage added in v0.1.7

func (*ValidEmailRequest) ProtoMessage()

func (*ValidEmailRequest) ProtoReflect added in v0.1.7

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

func (*ValidEmailRequest) Reset added in v0.1.7

func (x *ValidEmailRequest) Reset()

func (*ValidEmailRequest) String added in v0.1.7

func (x *ValidEmailRequest) String() string

type VerifyCodeRequest added in v0.1.10

type VerifyCodeRequest struct {
	Code          string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Token         string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Email         string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Password      string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	OperationType string `protobuf:"bytes,5,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
	// contains filtered or unexported fields
}

验证验证码

func (*VerifyCodeRequest) Descriptor deprecated added in v0.1.10

func (*VerifyCodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyCodeRequest.ProtoReflect.Descriptor instead.

func (*VerifyCodeRequest) GetCode added in v0.1.10

func (x *VerifyCodeRequest) GetCode() string

func (*VerifyCodeRequest) GetEmail added in v0.1.11

func (x *VerifyCodeRequest) GetEmail() string

func (*VerifyCodeRequest) GetOperationType added in v0.1.11

func (x *VerifyCodeRequest) GetOperationType() string

func (*VerifyCodeRequest) GetPassword added in v0.1.11

func (x *VerifyCodeRequest) GetPassword() string

func (*VerifyCodeRequest) GetToken added in v0.1.10

func (x *VerifyCodeRequest) GetToken() string

func (*VerifyCodeRequest) ProtoMessage added in v0.1.10

func (*VerifyCodeRequest) ProtoMessage()

func (*VerifyCodeRequest) ProtoReflect added in v0.1.10

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

func (*VerifyCodeRequest) Reset added in v0.1.10

func (x *VerifyCodeRequest) Reset()

func (*VerifyCodeRequest) String added in v0.1.10

func (x *VerifyCodeRequest) String() string

Jump to

Keyboard shortcuts

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