v1

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserService_GetUserById_FullMethodName = "/user.UserService/GetUserById"
	UserService_CreateUser_FullMethodName  = "/user.UserService/CreateUser"
	UserService_UpdateUser_FullMethodName  = "/user.UserService/UpdateUser"
	UserService_DeleteUser_FullMethodName  = "/user.UserService/DeleteUser"
)
View Source
const (
	MerchantService_GetMerchantById_FullMethodName = "/user.MerchantService/GetMerchantById"
	MerchantService_CreateMerchant_FullMethodName  = "/user.MerchantService/CreateMerchant"
	MerchantService_UpdateMerchant_FullMethodName  = "/user.MerchantService/UpdateMerchant"
	MerchantService_DeleteMerchant_FullMethodName  = "/user.MerchantService/DeleteMerchant"
)
View Source
const (
	AddressService_GetUserAddresses_FullMethodName  = "/user.AddressService/GetUserAddresses"
	AddressService_CreateUserAddress_FullMethodName = "/user.AddressService/CreateUserAddress"
	AddressService_UpdateUserAddress_FullMethodName = "/user.AddressService/UpdateUserAddress"
	AddressService_DeleteUserAddress_FullMethodName = "/user.AddressService/DeleteUserAddress"
)
View Source
const (
	PointService_GetUserPoints_FullMethodName    = "/user.PointService/GetUserPoints"
	PointService_AddUserPoints_FullMethodName    = "/user.PointService/AddUserPoints"
	PointService_DeductUserPoints_FullMethodName = "/user.PointService/DeductUserPoints"
)
View Source
const (
	TagService_GetUserTags_FullMethodName   = "/user.TagService/GetUserTags"
	TagService_AddUserTag_FullMethodName    = "/user.TagService/AddUserTag"
	TagService_RemoveUserTag_FullMethodName = "/user.TagService/RemoveUserTag"
)

Variables

View Source
var (
	Role_name = map[int32]string{
		0: "unknown",
		1: "customer",
		2: "merchant",
		3: "admin",
		4: "superAdmin",
	}
	Role_value = map[string]int32{
		"unknown":    0,
		"customer":   1,
		"merchant":   2,
		"admin":      3,
		"superAdmin": 4,
	}
)

Enum value maps for Role.

View Source
var (
	UserStatus_name = map[int32]string{
		0: "inactive",
		1: "active",
		2: "banned",
		3: "deleted",
		4: "suspended",
	}
	UserStatus_value = map[string]int32{
		"inactive":  0,
		"active":    1,
		"banned":    2,
		"deleted":   3,
		"suspended": 4,
	}
)

Enum value maps for UserStatus.

View Source
var (
	Gender_name = map[int32]string{
		0: "secrecy",
		1: "male",
		2: "female",
	}
	Gender_value = map[string]int32{
		"secrecy": 0,
		"male":    1,
		"female":  2,
	}
)

Enum value maps for Gender.

View Source
var (
	PointReason_name = map[int32]string{
		0: "purchase",
		1: "sign_in",
		2: "invite",
		3: "refund",
		4: "admin_adjust",
		5: "other",
	}
	PointReason_value = map[string]int32{
		"purchase":     0,
		"sign_in":      1,
		"invite":       2,
		"refund":       3,
		"admin_adjust": 4,
		"other":        5,
	}
)

Enum value maps for PointReason.

View Source
var (
	MerchantStatus_name = map[int32]string{
		0: "pending",
		1: "approved",
		2: "rejected",
	}
	MerchantStatus_value = map[string]int32{
		"pending":  0,
		"approved": 1,
		"rejected": 2,
	}
)

Enum value maps for MerchantStatus.

View Source
var AddressService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.AddressService",
	HandlerType: (*AddressServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserAddresses",
			Handler:    _AddressService_GetUserAddresses_Handler,
		},
		{
			MethodName: "CreateUserAddress",
			Handler:    _AddressService_CreateUserAddress_Handler,
		},
		{
			MethodName: "UpdateUserAddress",
			Handler:    _AddressService_UpdateUserAddress_Handler,
		},
		{
			MethodName: "DeleteUserAddress",
			Handler:    _AddressService_DeleteUserAddress_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/user/v1/user.proto",
}

AddressService_ServiceDesc is the grpc.ServiceDesc for AddressService 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 File_proto_user_v1_user_proto protoreflect.FileDescriptor
View Source
var MerchantService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.MerchantService",
	HandlerType: (*MerchantServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMerchantById",
			Handler:    _MerchantService_GetMerchantById_Handler,
		},
		{
			MethodName: "CreateMerchant",
			Handler:    _MerchantService_CreateMerchant_Handler,
		},
		{
			MethodName: "UpdateMerchant",
			Handler:    _MerchantService_UpdateMerchant_Handler,
		},
		{
			MethodName: "DeleteMerchant",
			Handler:    _MerchantService_DeleteMerchant_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/user/v1/user.proto",
}

MerchantService_ServiceDesc is the grpc.ServiceDesc for MerchantService 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 PointService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.PointService",
	HandlerType: (*PointServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserPoints",
			Handler:    _PointService_GetUserPoints_Handler,
		},
		{
			MethodName: "AddUserPoints",
			Handler:    _PointService_AddUserPoints_Handler,
		},
		{
			MethodName: "DeductUserPoints",
			Handler:    _PointService_DeductUserPoints_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/user/v1/user.proto",
}

PointService_ServiceDesc is the grpc.ServiceDesc for PointService 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 TagService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.TagService",
	HandlerType: (*TagServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserTags",
			Handler:    _TagService_GetUserTags_Handler,
		},
		{
			MethodName: "AddUserTag",
			Handler:    _TagService_AddUserTag_Handler,
		},
		{
			MethodName: "RemoveUserTag",
			Handler:    _TagService_RemoveUserTag_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/user/v1/user.proto",
}

TagService_ServiceDesc is the grpc.ServiceDesc for TagService 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: "user.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserById",
			Handler:    _UserService_GetUserById_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/user/v1/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 RegisterAddressServiceServer

func RegisterAddressServiceServer(s grpc.ServiceRegistrar, srv AddressServiceServer)

func RegisterMerchantServiceServer

func RegisterMerchantServiceServer(s grpc.ServiceRegistrar, srv MerchantServiceServer)

func RegisterPointServiceServer

func RegisterPointServiceServer(s grpc.ServiceRegistrar, srv PointServiceServer)

func RegisterTagServiceServer

func RegisterTagServiceServer(s grpc.ServiceRegistrar, srv TagServiceServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type AddUserPointsRequest

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

func (*AddUserPointsRequest) Descriptor deprecated

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

Deprecated: Use AddUserPointsRequest.ProtoReflect.Descriptor instead.

func (*AddUserPointsRequest) GetPoints

func (x *AddUserPointsRequest) GetPoints() int32

func (*AddUserPointsRequest) GetUserId

func (x *AddUserPointsRequest) GetUserId() string

func (*AddUserPointsRequest) ProtoMessage

func (*AddUserPointsRequest) ProtoMessage()

func (*AddUserPointsRequest) ProtoReflect

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

func (*AddUserPointsRequest) Reset

func (x *AddUserPointsRequest) Reset()

func (*AddUserPointsRequest) String

func (x *AddUserPointsRequest) String() string

type AddUserTagRequest

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

func (*AddUserTagRequest) Descriptor deprecated

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

Deprecated: Use AddUserTagRequest.ProtoReflect.Descriptor instead.

func (*AddUserTagRequest) GetTagId

func (x *AddUserTagRequest) GetTagId() string

func (*AddUserTagRequest) GetUserId

func (x *AddUserTagRequest) GetUserId() string

func (*AddUserTagRequest) ProtoMessage

func (*AddUserTagRequest) ProtoMessage()

func (*AddUserTagRequest) ProtoReflect

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

func (*AddUserTagRequest) Reset

func (x *AddUserTagRequest) Reset()

func (*AddUserTagRequest) String

func (x *AddUserTagRequest) String() string

type AddressServiceClient

type AddressServiceClient interface {
	GetUserAddresses(ctx context.Context, in *GetUserAddressRequest, opts ...grpc.CallOption) (*UserAddressListResponse, error)
	CreateUserAddress(ctx context.Context, in *CreateUserAddressRequest, opts ...grpc.CallOption) (*UserAddressResponse, error)
	UpdateUserAddress(ctx context.Context, in *UpdateUserAddressRequest, opts ...grpc.CallOption) (*UserAddressResponse, error)
	DeleteUserAddress(ctx context.Context, in *DeleteUserAddressRequest, opts ...grpc.CallOption) (*DeleteUserAddressResponse, error)
}

AddressServiceClient is the client API for AddressService 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 AddressServiceServer

type AddressServiceServer interface {
	GetUserAddresses(context.Context, *GetUserAddressRequest) (*UserAddressListResponse, error)
	CreateUserAddress(context.Context, *CreateUserAddressRequest) (*UserAddressResponse, error)
	UpdateUserAddress(context.Context, *UpdateUserAddressRequest) (*UserAddressResponse, error)
	DeleteUserAddress(context.Context, *DeleteUserAddressRequest) (*DeleteUserAddressResponse, error)
	// contains filtered or unexported methods
}

AddressServiceServer is the server API for AddressService service. All implementations must embed UnimplementedAddressServiceServer for forward compatibility.

==================== 用户地址服务 ====================

type CreateMerchantRequest

type CreateMerchantRequest struct {
	UserId          string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	StoreName       string `protobuf:"bytes,2,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"`
	BusinessLicense string `protobuf:"bytes,3,opt,name=business_license,json=businessLicense,proto3" json:"business_license,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMerchantRequest) Descriptor deprecated

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

Deprecated: Use CreateMerchantRequest.ProtoReflect.Descriptor instead.

func (*CreateMerchantRequest) GetBusinessLicense

func (x *CreateMerchantRequest) GetBusinessLicense() string

func (*CreateMerchantRequest) GetStoreName

func (x *CreateMerchantRequest) GetStoreName() string

func (*CreateMerchantRequest) GetUserId

func (x *CreateMerchantRequest) GetUserId() string

func (*CreateMerchantRequest) ProtoMessage

func (*CreateMerchantRequest) ProtoMessage()

func (*CreateMerchantRequest) ProtoReflect

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

func (*CreateMerchantRequest) Reset

func (x *CreateMerchantRequest) Reset()

func (*CreateMerchantRequest) String

func (x *CreateMerchantRequest) String() string

type CreateUserAddressRequest

type CreateUserAddressRequest struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Phone     string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Province  string `protobuf:"bytes,4,opt,name=province,proto3" json:"province,omitempty"`
	City      string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
	District  string `protobuf:"bytes,6,opt,name=district,proto3" json:"district,omitempty"`
	Detail    string `protobuf:"bytes,7,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserAddressRequest) Descriptor deprecated

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

Deprecated: Use CreateUserAddressRequest.ProtoReflect.Descriptor instead.

func (*CreateUserAddressRequest) GetCity

func (x *CreateUserAddressRequest) GetCity() string

func (*CreateUserAddressRequest) GetDetail

func (x *CreateUserAddressRequest) GetDetail() string

func (*CreateUserAddressRequest) GetDistrict

func (x *CreateUserAddressRequest) GetDistrict() string

func (*CreateUserAddressRequest) GetPhone

func (x *CreateUserAddressRequest) GetPhone() string

func (*CreateUserAddressRequest) GetProvince

func (x *CreateUserAddressRequest) GetProvince() string

func (*CreateUserAddressRequest) GetRecipient

func (x *CreateUserAddressRequest) GetRecipient() string

func (*CreateUserAddressRequest) GetUserId

func (x *CreateUserAddressRequest) GetUserId() string

func (*CreateUserAddressRequest) ProtoMessage

func (*CreateUserAddressRequest) ProtoMessage()

func (*CreateUserAddressRequest) ProtoReflect

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

func (*CreateUserAddressRequest) Reset

func (x *CreateUserAddressRequest) Reset()

func (*CreateUserAddressRequest) String

func (x *CreateUserAddressRequest) String() string

type CreateUserRequest

type CreateUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" validate:"required"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty" validate:"omitempty,email"`
	Phone    string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty" validate:"min=6,max=16"`
	Role     int32  `protobuf:"varint,5,opt,name=Role,proto3" json:"Role,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetEmail

func (x *CreateUserRequest) GetEmail() string

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetPhone

func (x *CreateUserRequest) GetPhone() string

func (*CreateUserRequest) GetRole

func (x *CreateUserRequest) GetRole() int32

func (*CreateUserRequest) GetUsername

func (x *CreateUserRequest) GetUsername() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type DeductUserPointsRequest

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

func (*DeductUserPointsRequest) Descriptor deprecated

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

Deprecated: Use DeductUserPointsRequest.ProtoReflect.Descriptor instead.

func (*DeductUserPointsRequest) GetPoints

func (x *DeductUserPointsRequest) GetPoints() int32

func (*DeductUserPointsRequest) GetUserId

func (x *DeductUserPointsRequest) GetUserId() string

func (*DeductUserPointsRequest) ProtoMessage

func (*DeductUserPointsRequest) ProtoMessage()

func (*DeductUserPointsRequest) ProtoReflect

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

func (*DeductUserPointsRequest) Reset

func (x *DeductUserPointsRequest) Reset()

func (*DeductUserPointsRequest) String

func (x *DeductUserPointsRequest) String() string

type DeleteMerchantRequest

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

func (*DeleteMerchantRequest) Descriptor deprecated

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

Deprecated: Use DeleteMerchantRequest.ProtoReflect.Descriptor instead.

func (*DeleteMerchantRequest) GetId

func (x *DeleteMerchantRequest) GetId() string

func (*DeleteMerchantRequest) ProtoMessage

func (*DeleteMerchantRequest) ProtoMessage()

func (*DeleteMerchantRequest) ProtoReflect

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

func (*DeleteMerchantRequest) Reset

func (x *DeleteMerchantRequest) Reset()

func (*DeleteMerchantRequest) String

func (x *DeleteMerchantRequest) String() string

type DeleteMerchantResponse

type DeleteMerchantResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteMerchantResponse) Descriptor deprecated

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

Deprecated: Use DeleteMerchantResponse.ProtoReflect.Descriptor instead.

func (*DeleteMerchantResponse) GetSuccess

func (x *DeleteMerchantResponse) GetSuccess() bool

func (*DeleteMerchantResponse) ProtoMessage

func (*DeleteMerchantResponse) ProtoMessage()

func (*DeleteMerchantResponse) ProtoReflect

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

func (*DeleteMerchantResponse) Reset

func (x *DeleteMerchantResponse) Reset()

func (*DeleteMerchantResponse) String

func (x *DeleteMerchantResponse) String() string

type DeleteUserAddressRequest

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

func (*DeleteUserAddressRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserAddressRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserAddressRequest) GetId

func (x *DeleteUserAddressRequest) GetId() string

func (*DeleteUserAddressRequest) ProtoMessage

func (*DeleteUserAddressRequest) ProtoMessage()

func (*DeleteUserAddressRequest) ProtoReflect

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

func (*DeleteUserAddressRequest) Reset

func (x *DeleteUserAddressRequest) Reset()

func (*DeleteUserAddressRequest) String

func (x *DeleteUserAddressRequest) String() string

type DeleteUserAddressResponse

type DeleteUserAddressResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserAddressResponse) Descriptor deprecated

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

Deprecated: Use DeleteUserAddressResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserAddressResponse) GetSuccess

func (x *DeleteUserAddressResponse) GetSuccess() bool

func (*DeleteUserAddressResponse) ProtoMessage

func (*DeleteUserAddressResponse) ProtoMessage()

func (*DeleteUserAddressResponse) ProtoReflect

func (*DeleteUserAddressResponse) Reset

func (x *DeleteUserAddressResponse) Reset()

func (*DeleteUserAddressResponse) String

func (x *DeleteUserAddressResponse) String() string

type DeleteUserRequest

type DeleteUserRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"required"`
	// contains filtered or unexported fields
}

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type Gender

type Gender int32

性别枚举

const (
	// 保密
	Gender_secrecy Gender = 0
	Gender_male    Gender = 1
	Gender_female  Gender = 2
)

func (Gender) Descriptor

func (Gender) Descriptor() protoreflect.EnumDescriptor

func (Gender) Enum

func (x Gender) Enum() *Gender

func (Gender) EnumDescriptor deprecated

func (Gender) EnumDescriptor() ([]byte, []int)

Deprecated: Use Gender.Descriptor instead.

func (Gender) Number

func (x Gender) Number() protoreflect.EnumNumber

func (Gender) String

func (x Gender) String() string

func (Gender) Type

func (Gender) Type() protoreflect.EnumType

type GetMerchantRequest

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

func (*GetMerchantRequest) Descriptor deprecated

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

Deprecated: Use GetMerchantRequest.ProtoReflect.Descriptor instead.

func (*GetMerchantRequest) GetId

func (x *GetMerchantRequest) GetId() string

func (*GetMerchantRequest) ProtoMessage

func (*GetMerchantRequest) ProtoMessage()

func (*GetMerchantRequest) ProtoReflect

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

func (*GetMerchantRequest) Reset

func (x *GetMerchantRequest) Reset()

func (*GetMerchantRequest) String

func (x *GetMerchantRequest) String() string

type GetUserAddressRequest

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

func (*GetUserAddressRequest) Descriptor deprecated

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

Deprecated: Use GetUserAddressRequest.ProtoReflect.Descriptor instead.

func (*GetUserAddressRequest) GetUserId

func (x *GetUserAddressRequest) GetUserId() string

func (*GetUserAddressRequest) ProtoMessage

func (*GetUserAddressRequest) ProtoMessage()

func (*GetUserAddressRequest) ProtoReflect

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

func (*GetUserAddressRequest) Reset

func (x *GetUserAddressRequest) Reset()

func (*GetUserAddressRequest) String

func (x *GetUserAddressRequest) String() string

type GetUserPointsRequest

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

func (*GetUserPointsRequest) Descriptor deprecated

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

Deprecated: Use GetUserPointsRequest.ProtoReflect.Descriptor instead.

func (*GetUserPointsRequest) GetUserId

func (x *GetUserPointsRequest) GetUserId() string

func (*GetUserPointsRequest) ProtoMessage

func (*GetUserPointsRequest) ProtoMessage()

func (*GetUserPointsRequest) ProtoReflect

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

func (*GetUserPointsRequest) Reset

func (x *GetUserPointsRequest) Reset()

func (*GetUserPointsRequest) String

func (x *GetUserPointsRequest) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserTagsRequest

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

func (*GetUserTagsRequest) Descriptor deprecated

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

Deprecated: Use GetUserTagsRequest.ProtoReflect.Descriptor instead.

func (*GetUserTagsRequest) GetUserId

func (x *GetUserTagsRequest) GetUserId() string

func (*GetUserTagsRequest) ProtoMessage

func (*GetUserTagsRequest) ProtoMessage()

func (*GetUserTagsRequest) ProtoReflect

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

func (*GetUserTagsRequest) Reset

func (x *GetUserTagsRequest) Reset()

func (*GetUserTagsRequest) String

func (x *GetUserTagsRequest) String() string

type Merchant

type Merchant struct {
	Id              string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId          string         `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	StoreName       string         `protobuf:"bytes,3,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"`
	BusinessLicense string         `protobuf:"bytes,4,opt,name=business_license,json=businessLicense,proto3" json:"business_license,omitempty"`
	Status          MerchantStatus `protobuf:"varint,5,opt,name=status,proto3,enum=user.MerchantStatus" json:"status,omitempty"`
	Balance         float64        `protobuf:"fixed64,6,opt,name=balance,proto3" json:"balance,omitempty"`
	CreatedAt       string         `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt       string         `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

商户信息

func (*Merchant) Descriptor deprecated

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

Deprecated: Use Merchant.ProtoReflect.Descriptor instead.

func (*Merchant) GetBalance

func (x *Merchant) GetBalance() float64

func (*Merchant) GetBusinessLicense

func (x *Merchant) GetBusinessLicense() string

func (*Merchant) GetCreatedAt

func (x *Merchant) GetCreatedAt() string

func (*Merchant) GetId

func (x *Merchant) GetId() string

func (*Merchant) GetStatus

func (x *Merchant) GetStatus() MerchantStatus

func (*Merchant) GetStoreName

func (x *Merchant) GetStoreName() string

func (*Merchant) GetUpdatedAt

func (x *Merchant) GetUpdatedAt() string

func (*Merchant) GetUserId

func (x *Merchant) GetUserId() string

func (*Merchant) ProtoMessage

func (*Merchant) ProtoMessage()

func (*Merchant) ProtoReflect

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

func (*Merchant) Reset

func (x *Merchant) Reset()

func (*Merchant) String

func (x *Merchant) String() string

type MerchantResponse

type MerchantResponse struct {
	Merchant *Merchant `protobuf:"bytes,1,opt,name=merchant,proto3" json:"merchant,omitempty"`
	// contains filtered or unexported fields
}

func (*MerchantResponse) Descriptor deprecated

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

Deprecated: Use MerchantResponse.ProtoReflect.Descriptor instead.

func (*MerchantResponse) GetMerchant

func (x *MerchantResponse) GetMerchant() *Merchant

func (*MerchantResponse) ProtoMessage

func (*MerchantResponse) ProtoMessage()

func (*MerchantResponse) ProtoReflect

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

func (*MerchantResponse) Reset

func (x *MerchantResponse) Reset()

func (*MerchantResponse) String

func (x *MerchantResponse) String() string

type MerchantServiceClient

type MerchantServiceClient interface {
	GetMerchantById(ctx context.Context, in *GetMerchantRequest, opts ...grpc.CallOption) (*MerchantResponse, error)
	CreateMerchant(ctx context.Context, in *CreateMerchantRequest, opts ...grpc.CallOption) (*MerchantResponse, error)
	UpdateMerchant(ctx context.Context, in *UpdateMerchantRequest, opts ...grpc.CallOption) (*MerchantResponse, error)
	DeleteMerchant(ctx context.Context, in *DeleteMerchantRequest, opts ...grpc.CallOption) (*DeleteMerchantResponse, error)
}

MerchantServiceClient is the client API for MerchantService 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 MerchantServiceServer

type MerchantServiceServer interface {
	GetMerchantById(context.Context, *GetMerchantRequest) (*MerchantResponse, error)
	CreateMerchant(context.Context, *CreateMerchantRequest) (*MerchantResponse, error)
	UpdateMerchant(context.Context, *UpdateMerchantRequest) (*MerchantResponse, error)
	DeleteMerchant(context.Context, *DeleteMerchantRequest) (*DeleteMerchantResponse, error)
	// contains filtered or unexported methods
}

MerchantServiceServer is the server API for MerchantService service. All implementations must embed UnimplementedMerchantServiceServer for forward compatibility.

==================== 商户服务 ====================

type MerchantStatus

type MerchantStatus int32

审核状态枚举

const (
	// 待审核
	MerchantStatus_pending MerchantStatus = 0
	// 审核通过
	MerchantStatus_approved MerchantStatus = 1
	// 审核拒绝
	MerchantStatus_rejected MerchantStatus = 2
)

func (MerchantStatus) Descriptor

func (MerchantStatus) Enum

func (x MerchantStatus) Enum() *MerchantStatus

func (MerchantStatus) EnumDescriptor deprecated

func (MerchantStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use MerchantStatus.Descriptor instead.

func (MerchantStatus) Number

func (MerchantStatus) String

func (x MerchantStatus) String() string

func (MerchantStatus) Type

type PointReason

type PointReason int32

积分变动原因枚举

const (
	// 购买
	PointReason_purchase PointReason = 0
	// 签到
	PointReason_sign_in PointReason = 1
	// 邀请
	PointReason_invite PointReason = 2
	// 退款
	PointReason_refund PointReason = 3
	// 管理员调整
	PointReason_admin_adjust PointReason = 4
	// 其他
	PointReason_other PointReason = 5
)

func (PointReason) Descriptor

func (PointReason) Enum

func (x PointReason) Enum() *PointReason

func (PointReason) EnumDescriptor deprecated

func (PointReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use PointReason.Descriptor instead.

func (PointReason) Number

func (x PointReason) Number() protoreflect.EnumNumber

func (PointReason) String

func (x PointReason) String() string

func (PointReason) Type

type PointServiceClient

type PointServiceClient interface {
	GetUserPoints(ctx context.Context, in *GetUserPointsRequest, opts ...grpc.CallOption) (*UserPointsResponse, error)
	AddUserPoints(ctx context.Context, in *AddUserPointsRequest, opts ...grpc.CallOption) (*UserPointResponse, error)
	DeductUserPoints(ctx context.Context, in *DeductUserPointsRequest, opts ...grpc.CallOption) (*UserPointResponse, error)
}

PointServiceClient is the client API for PointService 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 PointServiceServer

type PointServiceServer interface {
	GetUserPoints(context.Context, *GetUserPointsRequest) (*UserPointsResponse, error)
	AddUserPoints(context.Context, *AddUserPointsRequest) (*UserPointResponse, error)
	DeductUserPoints(context.Context, *DeductUserPointsRequest) (*UserPointResponse, error)
	// contains filtered or unexported methods
}

PointServiceServer is the server API for PointService service. All implementations must embed UnimplementedPointServiceServer for forward compatibility.

==================== 用户积分服务 ====================

type RemoveUserTagRequest

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

func (*RemoveUserTagRequest) Descriptor deprecated

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

Deprecated: Use RemoveUserTagRequest.ProtoReflect.Descriptor instead.

func (*RemoveUserTagRequest) GetTagId

func (x *RemoveUserTagRequest) GetTagId() string

func (*RemoveUserTagRequest) GetUserId

func (x *RemoveUserTagRequest) GetUserId() string

func (*RemoveUserTagRequest) ProtoMessage

func (*RemoveUserTagRequest) ProtoMessage()

func (*RemoveUserTagRequest) ProtoReflect

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

func (*RemoveUserTagRequest) Reset

func (x *RemoveUserTagRequest) Reset()

func (*RemoveUserTagRequest) String

func (x *RemoveUserTagRequest) String() string

type Role

type Role int32

用户角色枚举

const (
	// 未知
	Role_unknown Role = 0
	// 消费者
	Role_customer Role = 1
	// 商家
	Role_merchant Role = 2
	// 管理员
	Role_admin Role = 3
	// 超级管理员
	Role_superAdmin Role = 4
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

func (Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

type Tag

type Tag struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	CreatedAt string `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt string `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

标签

func (*Tag) Descriptor deprecated

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

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetCreatedAt

func (x *Tag) GetCreatedAt() string

func (*Tag) GetId

func (x *Tag) GetId() string

func (*Tag) GetName

func (x *Tag) GetName() string

func (*Tag) GetUpdatedAt

func (x *Tag) GetUpdatedAt() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

type TagServiceClient

type TagServiceClient interface {
	GetUserTags(ctx context.Context, in *GetUserTagsRequest, opts ...grpc.CallOption) (*UserTagListResponse, error)
	AddUserTag(ctx context.Context, in *AddUserTagRequest, opts ...grpc.CallOption) (*UserTagResponse, error)
	RemoveUserTag(ctx context.Context, in *RemoveUserTagRequest, opts ...grpc.CallOption) (*UserTagResponse, error)
}

TagServiceClient is the client API for TagService 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 NewTagServiceClient

func NewTagServiceClient(cc grpc.ClientConnInterface) TagServiceClient

type TagServiceServer

type TagServiceServer interface {
	GetUserTags(context.Context, *GetUserTagsRequest) (*UserTagListResponse, error)
	AddUserTag(context.Context, *AddUserTagRequest) (*UserTagResponse, error)
	RemoveUserTag(context.Context, *RemoveUserTagRequest) (*UserTagResponse, error)
	// contains filtered or unexported methods
}

TagServiceServer is the server API for TagService service. All implementations must embed UnimplementedTagServiceServer for forward compatibility.

==================== 用户标签服务 ====================

type UnimplementedAddressServiceServer

type UnimplementedAddressServiceServer struct{}

UnimplementedAddressServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAddressServiceServer) CreateUserAddress

func (UnimplementedAddressServiceServer) DeleteUserAddress

func (UnimplementedAddressServiceServer) GetUserAddresses

func (UnimplementedAddressServiceServer) UpdateUserAddress

type UnimplementedMerchantServiceServer

type UnimplementedMerchantServiceServer struct{}

UnimplementedMerchantServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMerchantServiceServer) CreateMerchant

func (UnimplementedMerchantServiceServer) DeleteMerchant

func (UnimplementedMerchantServiceServer) GetMerchantById

func (UnimplementedMerchantServiceServer) UpdateMerchant

type UnimplementedPointServiceServer

type UnimplementedPointServiceServer struct{}

UnimplementedPointServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPointServiceServer) AddUserPoints

func (UnimplementedPointServiceServer) DeductUserPoints

func (UnimplementedPointServiceServer) GetUserPoints

type UnimplementedTagServiceServer

type UnimplementedTagServiceServer struct{}

UnimplementedTagServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedTagServiceServer) AddUserTag

func (UnimplementedTagServiceServer) GetUserTags

func (UnimplementedTagServiceServer) RemoveUserTag

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct{}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUserById

func (UnimplementedUserServiceServer) UpdateUser

type UnsafeAddressServiceServer

type UnsafeAddressServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAddressServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AddressServiceServer will result in compilation errors.

type UnsafeMerchantServiceServer

type UnsafeMerchantServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMerchantServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MerchantServiceServer will result in compilation errors.

type UnsafePointServiceServer

type UnsafePointServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePointServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PointServiceServer will result in compilation errors.

type UnsafeTagServiceServer

type UnsafeTagServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTagServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TagServiceServer 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 UpdateMerchantRequest

type UpdateMerchantRequest struct {
	Id              string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	StoreName       string `protobuf:"bytes,2,opt,name=store_name,json=storeName,proto3" json:"store_name,omitempty"`
	BusinessLicense string `protobuf:"bytes,3,opt,name=business_license,json=businessLicense,proto3" json:"business_license,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMerchantRequest) Descriptor deprecated

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

Deprecated: Use UpdateMerchantRequest.ProtoReflect.Descriptor instead.

func (*UpdateMerchantRequest) GetBusinessLicense

func (x *UpdateMerchantRequest) GetBusinessLicense() string

func (*UpdateMerchantRequest) GetId

func (x *UpdateMerchantRequest) GetId() string

func (*UpdateMerchantRequest) GetStoreName

func (x *UpdateMerchantRequest) GetStoreName() string

func (*UpdateMerchantRequest) ProtoMessage

func (*UpdateMerchantRequest) ProtoMessage()

func (*UpdateMerchantRequest) ProtoReflect

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

func (*UpdateMerchantRequest) Reset

func (x *UpdateMerchantRequest) Reset()

func (*UpdateMerchantRequest) String

func (x *UpdateMerchantRequest) String() string

type UpdateUserAddressRequest

type UpdateUserAddressRequest struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Phone     string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
	Province  string `protobuf:"bytes,4,opt,name=province,proto3" json:"province,omitempty"`
	City      string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
	District  string `protobuf:"bytes,6,opt,name=district,proto3" json:"district,omitempty"`
	Detail    string `protobuf:"bytes,7,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserAddressRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserAddressRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserAddressRequest) GetCity

func (x *UpdateUserAddressRequest) GetCity() string

func (*UpdateUserAddressRequest) GetDetail

func (x *UpdateUserAddressRequest) GetDetail() string

func (*UpdateUserAddressRequest) GetDistrict

func (x *UpdateUserAddressRequest) GetDistrict() string

func (*UpdateUserAddressRequest) GetId

func (x *UpdateUserAddressRequest) GetId() string

func (*UpdateUserAddressRequest) GetPhone

func (x *UpdateUserAddressRequest) GetPhone() string

func (*UpdateUserAddressRequest) GetProvince

func (x *UpdateUserAddressRequest) GetProvince() string

func (*UpdateUserAddressRequest) GetRecipient

func (x *UpdateUserAddressRequest) GetRecipient() string

func (*UpdateUserAddressRequest) ProtoMessage

func (*UpdateUserAddressRequest) ProtoMessage()

func (*UpdateUserAddressRequest) ProtoReflect

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

func (*UpdateUserAddressRequest) Reset

func (x *UpdateUserAddressRequest) Reset()

func (*UpdateUserAddressRequest) String

func (x *UpdateUserAddressRequest) String() string

type UpdateUserRequest

type UpdateUserRequest struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"required"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email    string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty" validate:"omitempty,email"`
	Phone    string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetEmail

func (x *UpdateUserRequest) GetEmail() string

func (*UpdateUserRequest) GetId

func (x *UpdateUserRequest) GetId() string

func (*UpdateUserRequest) GetPhone

func (x *UpdateUserRequest) GetPhone() string

func (*UpdateUserRequest) GetUsername

func (x *UpdateUserRequest) GetUsername() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type User

type User struct {
	Id        string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username  string     `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email     string     `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Phone     string     `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	Role      Role       `protobuf:"varint,5,opt,name=role,proto3,enum=user.Role" json:"role,omitempty"`
	Status    UserStatus `protobuf:"varint,6,opt,name=status,proto3,enum=user.UserStatus" json:"status,omitempty"`
	CreatedAt string     `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt string     `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

用户基本信息

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetRole

func (x *User) GetRole() Role

func (*User) GetStatus

func (x *User) GetStatus() UserStatus

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() string

func (*User) GetUsername

func (x *User) GetUsername() 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 UserAddress

type UserAddress struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId     string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Recipient  string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Phone      string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	Province   string `protobuf:"bytes,5,opt,name=province,proto3" json:"province,omitempty"`
	City       string `protobuf:"bytes,6,opt,name=city,proto3" json:"city,omitempty"`
	District   string `protobuf:"bytes,7,opt,name=district,proto3" json:"district,omitempty"`
	Detail     string `protobuf:"bytes,8,opt,name=detail,proto3" json:"detail,omitempty"`
	PostalCode string `protobuf:"bytes,9,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
	IsDefault  bool   `protobuf:"varint,10,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
	CreatedAt  string `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt  string `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

用户地址

func (*UserAddress) Descriptor deprecated

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

Deprecated: Use UserAddress.ProtoReflect.Descriptor instead.

func (*UserAddress) GetCity

func (x *UserAddress) GetCity() string

func (*UserAddress) GetCreatedAt

func (x *UserAddress) GetCreatedAt() string

func (*UserAddress) GetDetail

func (x *UserAddress) GetDetail() string

func (*UserAddress) GetDistrict

func (x *UserAddress) GetDistrict() string

func (*UserAddress) GetId

func (x *UserAddress) GetId() string

func (*UserAddress) GetIsDefault

func (x *UserAddress) GetIsDefault() bool

func (*UserAddress) GetPhone

func (x *UserAddress) GetPhone() string

func (*UserAddress) GetPostalCode

func (x *UserAddress) GetPostalCode() string

func (*UserAddress) GetProvince

func (x *UserAddress) GetProvince() string

func (*UserAddress) GetRecipient

func (x *UserAddress) GetRecipient() string

func (*UserAddress) GetUpdatedAt

func (x *UserAddress) GetUpdatedAt() string

func (*UserAddress) GetUserId

func (x *UserAddress) GetUserId() string

func (*UserAddress) ProtoMessage

func (*UserAddress) ProtoMessage()

func (*UserAddress) ProtoReflect

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

func (*UserAddress) Reset

func (x *UserAddress) Reset()

func (*UserAddress) String

func (x *UserAddress) String() string

type UserAddressListResponse

type UserAddressListResponse struct {
	Addresses []*UserAddress `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*UserAddressListResponse) Descriptor deprecated

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

Deprecated: Use UserAddressListResponse.ProtoReflect.Descriptor instead.

func (*UserAddressListResponse) GetAddresses

func (x *UserAddressListResponse) GetAddresses() []*UserAddress

func (*UserAddressListResponse) ProtoMessage

func (*UserAddressListResponse) ProtoMessage()

func (*UserAddressListResponse) ProtoReflect

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

func (*UserAddressListResponse) Reset

func (x *UserAddressListResponse) Reset()

func (*UserAddressListResponse) String

func (x *UserAddressListResponse) String() string

type UserAddressResponse

type UserAddressResponse struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId     string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Recipient  string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Phone      string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	Province   string `protobuf:"bytes,5,opt,name=province,proto3" json:"province,omitempty"`
	City       string `protobuf:"bytes,6,opt,name=city,proto3" json:"city,omitempty"`
	District   string `protobuf:"bytes,7,opt,name=district,proto3" json:"district,omitempty"`
	Detail     string `protobuf:"bytes,8,opt,name=detail,proto3" json:"detail,omitempty"`
	PostalCode string `protobuf:"bytes,9,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
	IsDefault  bool   `protobuf:"varint,10,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
	// contains filtered or unexported fields
}

func (*UserAddressResponse) Descriptor deprecated

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

Deprecated: Use UserAddressResponse.ProtoReflect.Descriptor instead.

func (*UserAddressResponse) GetCity

func (x *UserAddressResponse) GetCity() string

func (*UserAddressResponse) GetDetail

func (x *UserAddressResponse) GetDetail() string

func (*UserAddressResponse) GetDistrict

func (x *UserAddressResponse) GetDistrict() string

func (*UserAddressResponse) GetId

func (x *UserAddressResponse) GetId() string

func (*UserAddressResponse) GetIsDefault

func (x *UserAddressResponse) GetIsDefault() bool

func (*UserAddressResponse) GetPhone

func (x *UserAddressResponse) GetPhone() string

func (*UserAddressResponse) GetPostalCode

func (x *UserAddressResponse) GetPostalCode() string

func (*UserAddressResponse) GetProvince

func (x *UserAddressResponse) GetProvince() string

func (*UserAddressResponse) GetRecipient

func (x *UserAddressResponse) GetRecipient() string

func (*UserAddressResponse) GetUserId

func (x *UserAddressResponse) GetUserId() string

func (*UserAddressResponse) ProtoMessage

func (*UserAddressResponse) ProtoMessage()

func (*UserAddressResponse) ProtoReflect

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

func (*UserAddressResponse) Reset

func (x *UserAddressResponse) Reset()

func (*UserAddressResponse) String

func (x *UserAddressResponse) String() string

type UserPoint

type UserPoint struct {
	Id          string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId      string      `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Points      int32       `protobuf:"varint,3,opt,name=points,proto3" json:"points,omitempty"`
	Reason      PointReason `protobuf:"varint,4,opt,name=reason,proto3,enum=user.PointReason" json:"reason,omitempty"`
	Description string      `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt   string      `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ExpiredAt   string      `protobuf:"bytes,7,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"`
	// contains filtered or unexported fields
}

用户积分记录

func (*UserPoint) Descriptor deprecated

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

Deprecated: Use UserPoint.ProtoReflect.Descriptor instead.

func (*UserPoint) GetCreatedAt

func (x *UserPoint) GetCreatedAt() string

func (*UserPoint) GetDescription

func (x *UserPoint) GetDescription() string

func (*UserPoint) GetExpiredAt

func (x *UserPoint) GetExpiredAt() string

func (*UserPoint) GetId

func (x *UserPoint) GetId() string

func (*UserPoint) GetPoints

func (x *UserPoint) GetPoints() int32

func (*UserPoint) GetReason

func (x *UserPoint) GetReason() PointReason

func (*UserPoint) GetUserId

func (x *UserPoint) GetUserId() string

func (*UserPoint) ProtoMessage

func (*UserPoint) ProtoMessage()

func (*UserPoint) ProtoReflect

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

func (*UserPoint) Reset

func (x *UserPoint) Reset()

func (*UserPoint) String

func (x *UserPoint) String() string

type UserPointResponse

type UserPointResponse struct {
	Point *UserPoint `protobuf:"bytes,1,opt,name=point,proto3" json:"point,omitempty"`
	// contains filtered or unexported fields
}

func (*UserPointResponse) Descriptor deprecated

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

Deprecated: Use UserPointResponse.ProtoReflect.Descriptor instead.

func (*UserPointResponse) GetPoint

func (x *UserPointResponse) GetPoint() *UserPoint

func (*UserPointResponse) ProtoMessage

func (*UserPointResponse) ProtoMessage()

func (*UserPointResponse) ProtoReflect

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

func (*UserPointResponse) Reset

func (x *UserPointResponse) Reset()

func (*UserPointResponse) String

func (x *UserPointResponse) String() string

type UserPointsResponse

type UserPointsResponse struct {
	Points []*UserPoint `protobuf:"bytes,1,rep,name=points,proto3" json:"points,omitempty"`
	// contains filtered or unexported fields
}

func (*UserPointsResponse) Descriptor deprecated

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

Deprecated: Use UserPointsResponse.ProtoReflect.Descriptor instead.

func (*UserPointsResponse) GetPoints

func (x *UserPointsResponse) GetPoints() []*UserPoint

func (*UserPointsResponse) ProtoMessage

func (*UserPointsResponse) ProtoMessage()

func (*UserPointsResponse) ProtoReflect

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

func (*UserPointsResponse) Reset

func (x *UserPointsResponse) Reset()

func (*UserPointsResponse) String

func (x *UserPointsResponse) String() string

type UserProfile

type UserProfile struct {
	UserId    string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	FullName  string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Gender    Gender `protobuf:"varint,3,opt,name=gender,proto3,enum=user.Gender" json:"gender,omitempty"`
	BirthDate string `protobuf:"bytes,4,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"`
	AvatarUrl string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

用户详情

func (*UserProfile) Descriptor deprecated

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

Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.

func (*UserProfile) GetAvatarUrl

func (x *UserProfile) GetAvatarUrl() string

func (*UserProfile) GetBirthDate

func (x *UserProfile) GetBirthDate() string

func (*UserProfile) GetCreatedAt

func (x *UserProfile) GetCreatedAt() string

func (*UserProfile) GetFullName

func (x *UserProfile) GetFullName() string

func (*UserProfile) GetGender

func (x *UserProfile) GetGender() Gender

func (*UserProfile) GetUpdatedAt

func (x *UserProfile) GetUpdatedAt() string

func (*UserProfile) GetUserId

func (x *UserProfile) GetUserId() string

func (*UserProfile) ProtoMessage

func (*UserProfile) ProtoMessage()

func (*UserProfile) ProtoReflect

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

func (*UserProfile) Reset

func (x *UserProfile) Reset()

func (*UserProfile) String

func (x *UserProfile) String() string

type UserResponse

type UserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*UserResponse) Descriptor deprecated

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

Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.

func (*UserResponse) GetUser

func (x *UserResponse) GetUser() *User

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) ProtoReflect

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

func (*UserResponse) Reset

func (x *UserResponse) Reset()

func (*UserResponse) String

func (x *UserResponse) String() string

type UserServiceClient

type UserServiceClient interface {
	GetUserById(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserResponse, error)
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*UserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UserResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, 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 {
	GetUserById(context.Context, *GetUserRequest) (*UserResponse, error)
	CreateUser(context.Context, *CreateUserRequest) (*UserResponse, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UserResponse, error)
	DeleteUser(context.Context, *DeleteUserRequest) (*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 UserStatus

type UserStatus int32

用户状态枚举

const (
	// 未激活 用户未激活,不能登录或使用
	UserStatus_inactive UserStatus = 0
	// 正常 用户可以正常使用系统
	UserStatus_active UserStatus = 1
	// 已封禁 违反规则被封禁,不能登录或使用
	UserStatus_banned UserStatus = 2
	// 已注销 用户主动注销账号,但数据可能仍存在
	UserStatus_deleted UserStatus = 3
	// 冻结中 账户暂时被冻结,如风控原因
	UserStatus_suspended UserStatus = 4
)

func (UserStatus) Descriptor

func (UserStatus) Descriptor() protoreflect.EnumDescriptor

func (UserStatus) Enum

func (x UserStatus) Enum() *UserStatus

func (UserStatus) EnumDescriptor deprecated

func (UserStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserStatus.Descriptor instead.

func (UserStatus) Number

func (x UserStatus) Number() protoreflect.EnumNumber

func (UserStatus) String

func (x UserStatus) String() string

func (UserStatus) Type

type UserTag

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

用户标签关联

func (*UserTag) Descriptor deprecated

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

Deprecated: Use UserTag.ProtoReflect.Descriptor instead.

func (*UserTag) GetTagId

func (x *UserTag) GetTagId() string

func (*UserTag) GetUserId

func (x *UserTag) GetUserId() string

func (*UserTag) ProtoMessage

func (*UserTag) ProtoMessage()

func (*UserTag) ProtoReflect

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

func (*UserTag) Reset

func (x *UserTag) Reset()

func (*UserTag) String

func (x *UserTag) String() string

type UserTagListResponse

type UserTagListResponse struct {
	Tags []*UserTag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*UserTagListResponse) Descriptor deprecated

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

Deprecated: Use UserTagListResponse.ProtoReflect.Descriptor instead.

func (*UserTagListResponse) GetTags

func (x *UserTagListResponse) GetTags() []*UserTag

func (*UserTagListResponse) ProtoMessage

func (*UserTagListResponse) ProtoMessage()

func (*UserTagListResponse) ProtoReflect

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

func (*UserTagListResponse) Reset

func (x *UserTagListResponse) Reset()

func (*UserTagListResponse) String

func (x *UserTagListResponse) String() string

type UserTagResponse

type UserTagResponse struct {
	Tag *UserTag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*UserTagResponse) Descriptor deprecated

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

Deprecated: Use UserTagResponse.ProtoReflect.Descriptor instead.

func (*UserTagResponse) GetTag

func (x *UserTagResponse) GetTag() *UserTag

func (*UserTagResponse) ProtoMessage

func (*UserTagResponse) ProtoMessage()

func (*UserTagResponse) ProtoReflect

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

func (*UserTagResponse) Reset

func (x *UserTagResponse) Reset()

func (*UserTagResponse) String

func (x *UserTagResponse) String() string

Jump to

Keyboard shortcuts

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