point

package
v0.0.0-...-e1bfe29 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_point_proto protoreflect.FileDescriptor
View Source
var Point_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "point.point",
	HandlerType: (*PointServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "savePoint",
			Handler:    _Point_SavePoint_Handler,
		},
		{
			MethodName: "getPoint",
			Handler:    _Point_GetPoint_Handler,
		},
		{
			MethodName: "listPoint",
			Handler:    _Point_ListPoint_Handler,
		},
		{
			MethodName: "saveUserPoint",
			Handler:    _Point_SaveUserPoint_Handler,
		},
		{
			MethodName: "savePointRecord",
			Handler:    _Point_SavePointRecord_Handler,
		},
		{
			MethodName: "userPointRecord",
			Handler:    _Point_UserPointRecord_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "point.proto",
}

Point_ServiceDesc is the grpc.ServiceDesc for Point service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPointServer

func RegisterPointServer(s grpc.ServiceRegistrar, srv PointServer)

Types

type IdReq

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

func (*IdReq) Descriptor deprecated

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

Deprecated: Use IdReq.ProtoReflect.Descriptor instead.

func (*IdReq) GetId

func (x *IdReq) GetId() int64

func (*IdReq) ProtoMessage

func (*IdReq) ProtoMessage()

func (*IdReq) ProtoReflect

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

func (*IdReq) Reset

func (x *IdReq) Reset()

func (*IdReq) String

func (x *IdReq) String() string

type PointClient

type PointClient interface {
	SavePoint(ctx context.Context, in *SavePointReq, opts ...grpc.CallOption) (*PointResp, error)
	GetPoint(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*PointResp, error)
	ListPoint(ctx context.Context, in *SizeReq, opts ...grpc.CallOption) (*PointListResp, error)
	SaveUserPoint(ctx context.Context, in *SavePointReq, opts ...grpc.CallOption) (*PointResp, error)
	SavePointRecord(ctx context.Context, in *SavePointRecordReq, opts ...grpc.CallOption) (*PointRecordResp, error)
	UserPointRecord(ctx context.Context, in *UserPageReq, opts ...grpc.CallOption) (*PointRecordPageResp, error)
}

PointClient is the client API for Point 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 NewPointClient

func NewPointClient(cc grpc.ClientConnInterface) PointClient

type PointListResp

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

func (*PointListResp) Descriptor deprecated

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

Deprecated: Use PointListResp.ProtoReflect.Descriptor instead.

func (*PointListResp) GetPoints

func (x *PointListResp) GetPoints() []*PointResp

func (*PointListResp) ProtoMessage

func (*PointListResp) ProtoMessage()

func (*PointListResp) ProtoReflect

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

func (*PointListResp) Reset

func (x *PointListResp) Reset()

func (*PointListResp) String

func (x *PointListResp) String() string

type PointRecordPageResp

type PointRecordPageResp struct {
	Num          int64              `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
	Size         int64              `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Pages        int64              `protobuf:"varint,3,opt,name=pages,proto3" json:"pages,omitempty"`
	Total        int64              `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	PointRecords []*PointRecordResp `protobuf:"bytes,5,rep,name=pointRecords,proto3" json:"pointRecords,omitempty"`
	// contains filtered or unexported fields
}

func (*PointRecordPageResp) Descriptor deprecated

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

Deprecated: Use PointRecordPageResp.ProtoReflect.Descriptor instead.

func (*PointRecordPageResp) GetNum

func (x *PointRecordPageResp) GetNum() int64

func (*PointRecordPageResp) GetPages

func (x *PointRecordPageResp) GetPages() int64

func (*PointRecordPageResp) GetPointRecords

func (x *PointRecordPageResp) GetPointRecords() []*PointRecordResp

func (*PointRecordPageResp) GetSize

func (x *PointRecordPageResp) GetSize() int64

func (*PointRecordPageResp) GetTotal

func (x *PointRecordPageResp) GetTotal() int64

func (*PointRecordPageResp) ProtoMessage

func (*PointRecordPageResp) ProtoMessage()

func (*PointRecordPageResp) ProtoReflect

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

func (*PointRecordPageResp) Reset

func (x *PointRecordPageResp) Reset()

func (*PointRecordPageResp) String

func (x *PointRecordPageResp) String() string

type PointRecordResp

type PointRecordResp struct {
	Id         int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId     int64  `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Quantity   int64  `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Type       string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	CreateTime string `protobuf:"bytes,5,opt,name=createTime,proto3" json:"createTime,omitempty"`
	UpdateTime string `protobuf:"bytes,6,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
	// contains filtered or unexported fields
}

func (*PointRecordResp) Descriptor deprecated

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

Deprecated: Use PointRecordResp.ProtoReflect.Descriptor instead.

func (*PointRecordResp) GetCreateTime

func (x *PointRecordResp) GetCreateTime() string

func (*PointRecordResp) GetId

func (x *PointRecordResp) GetId() int64

func (*PointRecordResp) GetQuantity

func (x *PointRecordResp) GetQuantity() int64

func (*PointRecordResp) GetType

func (x *PointRecordResp) GetType() string

func (*PointRecordResp) GetUpdateTime

func (x *PointRecordResp) GetUpdateTime() string

func (*PointRecordResp) GetUserId

func (x *PointRecordResp) GetUserId() int64

func (*PointRecordResp) ProtoMessage

func (*PointRecordResp) ProtoMessage()

func (*PointRecordResp) ProtoReflect

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

func (*PointRecordResp) Reset

func (x *PointRecordResp) Reset()

func (*PointRecordResp) String

func (x *PointRecordResp) String() string

type PointResp

type PointResp struct {
	Id         int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Balance    int64  `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	Canuse     int64  `protobuf:"varint,3,opt,name=canuse,proto3" json:"canuse,omitempty"`
	Locking    int64  `protobuf:"varint,4,opt,name=locking,proto3" json:"locking,omitempty"`
	UserId     int64  `protobuf:"varint,5,opt,name=userId,proto3" json:"userId,omitempty"`
	CreateTime string `protobuf:"bytes,6,opt,name=createTime,proto3" json:"createTime,omitempty"`
	UpdateTime string `protobuf:"bytes,7,opt,name=updateTime,proto3" json:"updateTime,omitempty"`
	// contains filtered or unexported fields
}

func (*PointResp) Descriptor deprecated

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

Deprecated: Use PointResp.ProtoReflect.Descriptor instead.

func (*PointResp) GetBalance

func (x *PointResp) GetBalance() int64

func (*PointResp) GetCanuse

func (x *PointResp) GetCanuse() int64

func (*PointResp) GetCreateTime

func (x *PointResp) GetCreateTime() string

func (*PointResp) GetId

func (x *PointResp) GetId() int64

func (*PointResp) GetLocking

func (x *PointResp) GetLocking() int64

func (*PointResp) GetUpdateTime

func (x *PointResp) GetUpdateTime() string

func (*PointResp) GetUserId

func (x *PointResp) GetUserId() int64

func (*PointResp) ProtoMessage

func (*PointResp) ProtoMessage()

func (*PointResp) ProtoReflect

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

func (*PointResp) Reset

func (x *PointResp) Reset()

func (*PointResp) String

func (x *PointResp) String() string

type PointServer

type PointServer interface {
	SavePoint(context.Context, *SavePointReq) (*PointResp, error)
	GetPoint(context.Context, *IdReq) (*PointResp, error)
	ListPoint(context.Context, *SizeReq) (*PointListResp, error)
	SaveUserPoint(context.Context, *SavePointReq) (*PointResp, error)
	SavePointRecord(context.Context, *SavePointRecordReq) (*PointRecordResp, error)
	UserPointRecord(context.Context, *UserPageReq) (*PointRecordPageResp, error)
	// contains filtered or unexported methods
}

PointServer is the server API for Point service. All implementations must embed UnimplementedPointServer for forward compatibility

type SavePointRecordReq

type SavePointRecordReq struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId   int64  `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Quantity int64  `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Type     string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

--------------------point record

func (*SavePointRecordReq) Descriptor deprecated

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

Deprecated: Use SavePointRecordReq.ProtoReflect.Descriptor instead.

func (*SavePointRecordReq) GetId

func (x *SavePointRecordReq) GetId() int64

func (*SavePointRecordReq) GetQuantity

func (x *SavePointRecordReq) GetQuantity() int64

func (*SavePointRecordReq) GetType

func (x *SavePointRecordReq) GetType() string

func (*SavePointRecordReq) GetUserId

func (x *SavePointRecordReq) GetUserId() int64

func (*SavePointRecordReq) ProtoMessage

func (*SavePointRecordReq) ProtoMessage()

func (*SavePointRecordReq) ProtoReflect

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

func (*SavePointRecordReq) Reset

func (x *SavePointRecordReq) Reset()

func (*SavePointRecordReq) String

func (x *SavePointRecordReq) String() string

type SavePointReq

type SavePointReq struct {
	Id      int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"`
	Canuse  int64 `protobuf:"varint,3,opt,name=canuse,proto3" json:"canuse,omitempty"`
	Locking int64 `protobuf:"varint,4,opt,name=locking,proto3" json:"locking,omitempty"`
	UserId  int64 `protobuf:"varint,5,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

--------------------point

func (*SavePointReq) Descriptor deprecated

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

Deprecated: Use SavePointReq.ProtoReflect.Descriptor instead.

func (*SavePointReq) GetBalance

func (x *SavePointReq) GetBalance() int64

func (*SavePointReq) GetCanuse

func (x *SavePointReq) GetCanuse() int64

func (*SavePointReq) GetId

func (x *SavePointReq) GetId() int64

func (*SavePointReq) GetLocking

func (x *SavePointReq) GetLocking() int64

func (*SavePointReq) GetUserId

func (x *SavePointReq) GetUserId() int64

func (*SavePointReq) ProtoMessage

func (*SavePointReq) ProtoMessage()

func (*SavePointReq) ProtoReflect

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

func (*SavePointReq) Reset

func (x *SavePointReq) Reset()

func (*SavePointReq) String

func (x *SavePointReq) String() string

type SizeReq

type SizeReq struct {
	Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*SizeReq) Descriptor deprecated

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

Deprecated: Use SizeReq.ProtoReflect.Descriptor instead.

func (*SizeReq) GetSize

func (x *SizeReq) GetSize() int64

func (*SizeReq) ProtoMessage

func (*SizeReq) ProtoMessage()

func (*SizeReq) ProtoReflect

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

func (*SizeReq) Reset

func (x *SizeReq) Reset()

func (*SizeReq) String

func (x *SizeReq) String() string

type UnimplementedPointServer

type UnimplementedPointServer struct {
}

UnimplementedPointServer must be embedded to have forward compatible implementations.

func (UnimplementedPointServer) GetPoint

func (UnimplementedPointServer) ListPoint

func (UnimplementedPointServer) SavePoint

func (UnimplementedPointServer) SavePointRecord

func (UnimplementedPointServer) SaveUserPoint

func (UnimplementedPointServer) UserPointRecord

type UnsafePointServer

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

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

type UserPageReq

type UserPageReq struct {
	Num    int64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"`
	Size   int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*UserPageReq) Descriptor deprecated

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

Deprecated: Use UserPageReq.ProtoReflect.Descriptor instead.

func (*UserPageReq) GetNum

func (x *UserPageReq) GetNum() int64

func (*UserPageReq) GetSize

func (x *UserPageReq) GetSize() int64

func (*UserPageReq) GetUserId

func (x *UserPageReq) GetUserId() int64

func (*UserPageReq) ProtoMessage

func (*UserPageReq) ProtoMessage()

func (*UserPageReq) ProtoReflect

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

func (*UserPageReq) Reset

func (x *UserPageReq) Reset()

func (*UserPageReq) String

func (x *UserPageReq) String() string

Jump to

Keyboard shortcuts

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