663 lines
24 KiB
Go
663 lines
24 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_user_traffic_package.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// 创建用户流量包
|
|
type CreateUserTrafficPackageRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
TrafficPackageId int64 `protobuf:"varint,2,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
|
NodeRegionId int64 `protobuf:"varint,3,opt,name=nodeRegionId,proto3" json:"nodeRegionId,omitempty"`
|
|
TrafficPackagePeriodId int64 `protobuf:"varint,4,opt,name=trafficPackagePeriodId,proto3" json:"trafficPackagePeriodId,omitempty"`
|
|
Count int32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateUserTrafficPackageRequest) Reset() {
|
|
*x = CreateUserTrafficPackageRequest{}
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateUserTrafficPackageRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserTrafficPackageRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateUserTrafficPackageRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateUserTrafficPackageRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserTrafficPackageRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_traffic_package_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateUserTrafficPackageRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateUserTrafficPackageRequest) GetTrafficPackageId() int64 {
|
|
if x != nil {
|
|
return x.TrafficPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateUserTrafficPackageRequest) GetNodeRegionId() int64 {
|
|
if x != nil {
|
|
return x.NodeRegionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateUserTrafficPackageRequest) GetTrafficPackagePeriodId() int64 {
|
|
if x != nil {
|
|
return x.TrafficPackagePeriodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateUserTrafficPackageRequest) GetCount() int32 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateUserTrafficPackageResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserTrafficPackageIds []int64 `protobuf:"varint,1,rep,packed,name=userTrafficPackageIds,proto3" json:"userTrafficPackageIds,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateUserTrafficPackageResponse) Reset() {
|
|
*x = CreateUserTrafficPackageResponse{}
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateUserTrafficPackageResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserTrafficPackageResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateUserTrafficPackageResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateUserTrafficPackageResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserTrafficPackageResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_traffic_package_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateUserTrafficPackageResponse) GetUserTrafficPackageIds() []int64 {
|
|
if x != nil {
|
|
return x.UserTrafficPackageIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 购买用户流量包
|
|
type BuyUserTrafficPackageRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
TrafficPackageId int64 `protobuf:"varint,2,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
|
NodeRegionId int64 `protobuf:"varint,3,opt,name=nodeRegionId,proto3" json:"nodeRegionId,omitempty"`
|
|
TrafficPackagePeriodId int64 `protobuf:"varint,4,opt,name=trafficPackagePeriodId,proto3" json:"trafficPackagePeriodId,omitempty"`
|
|
Count int32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BuyUserTrafficPackageRequest) Reset() {
|
|
*x = BuyUserTrafficPackageRequest{}
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BuyUserTrafficPackageRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BuyUserTrafficPackageRequest) ProtoMessage() {}
|
|
|
|
func (x *BuyUserTrafficPackageRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use BuyUserTrafficPackageRequest.ProtoReflect.Descriptor instead.
|
|
func (*BuyUserTrafficPackageRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_traffic_package_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *BuyUserTrafficPackageRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BuyUserTrafficPackageRequest) GetTrafficPackageId() int64 {
|
|
if x != nil {
|
|
return x.TrafficPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BuyUserTrafficPackageRequest) GetNodeRegionId() int64 {
|
|
if x != nil {
|
|
return x.NodeRegionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BuyUserTrafficPackageRequest) GetTrafficPackagePeriodId() int64 {
|
|
if x != nil {
|
|
return x.TrafficPackagePeriodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BuyUserTrafficPackageRequest) GetCount() int32 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type BuyUserTrafficPackageResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserTrafficPackageIds []int64 `protobuf:"varint,1,rep,packed,name=userTrafficPackageIds,proto3" json:"userTrafficPackageIds,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BuyUserTrafficPackageResponse) Reset() {
|
|
*x = BuyUserTrafficPackageResponse{}
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BuyUserTrafficPackageResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BuyUserTrafficPackageResponse) ProtoMessage() {}
|
|
|
|
func (x *BuyUserTrafficPackageResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use BuyUserTrafficPackageResponse.ProtoReflect.Descriptor instead.
|
|
func (*BuyUserTrafficPackageResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_traffic_package_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *BuyUserTrafficPackageResponse) GetUserTrafficPackageIds() []int64 {
|
|
if x != nil {
|
|
return x.UserTrafficPackageIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 查询当前流量包数量
|
|
type CountUserTrafficPackagesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TrafficPackageId int64 `protobuf:"varint,1,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
|
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
NodeRegionId int64 `protobuf:"varint,3,opt,name=nodeRegionId,proto3" json:"nodeRegionId,omitempty"`
|
|
TrafficPackagePeriodId int64 `protobuf:"varint,4,opt,name=trafficPackagePeriodId,proto3" json:"trafficPackagePeriodId,omitempty"`
|
|
ExpiresDay string `protobuf:"bytes,5,opt,name=expiresDay,proto3" json:"expiresDay,omitempty"`
|
|
AvailableOnly bool `protobuf:"varint,6,opt,name=availableOnly,proto3" json:"availableOnly,omitempty"` // 是否只查询有效的流量包
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountUserTrafficPackagesRequest) Reset() {
|
|
*x = CountUserTrafficPackagesRequest{}
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountUserTrafficPackagesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountUserTrafficPackagesRequest) ProtoMessage() {}
|
|
|
|
func (x *CountUserTrafficPackagesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CountUserTrafficPackagesRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountUserTrafficPackagesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_traffic_package_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *CountUserTrafficPackagesRequest) GetTrafficPackageId() int64 {
|
|
if x != nil {
|
|
return x.TrafficPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountUserTrafficPackagesRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountUserTrafficPackagesRequest) GetNodeRegionId() int64 {
|
|
if x != nil {
|
|
return x.NodeRegionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountUserTrafficPackagesRequest) GetTrafficPackagePeriodId() int64 {
|
|
if x != nil {
|
|
return x.TrafficPackagePeriodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountUserTrafficPackagesRequest) GetExpiresDay() string {
|
|
if x != nil {
|
|
return x.ExpiresDay
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CountUserTrafficPackagesRequest) GetAvailableOnly() bool {
|
|
if x != nil {
|
|
return x.AvailableOnly
|
|
}
|
|
return false
|
|
}
|
|
|
|
// 列出单页流量包
|
|
type ListUserTrafficPackagesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TrafficPackageId int64 `protobuf:"varint,1,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
|
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
NodeRegionId int64 `protobuf:"varint,3,opt,name=nodeRegionId,proto3" json:"nodeRegionId,omitempty"`
|
|
TrafficPackagePeriodId int64 `protobuf:"varint,4,opt,name=trafficPackagePeriodId,proto3" json:"trafficPackagePeriodId,omitempty"`
|
|
ExpiresDay string `protobuf:"bytes,5,opt,name=expiresDay,proto3" json:"expiresDay,omitempty"`
|
|
AvailableOnly bool `protobuf:"varint,6,opt,name=availableOnly,proto3" json:"availableOnly,omitempty"` // 是否只查询有效的流量包
|
|
Offset int64 `protobuf:"varint,7,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
Size int64 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) Reset() {
|
|
*x = ListUserTrafficPackagesRequest{}
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListUserTrafficPackagesRequest) ProtoMessage() {}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListUserTrafficPackagesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListUserTrafficPackagesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_traffic_package_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) GetTrafficPackageId() int64 {
|
|
if x != nil {
|
|
return x.TrafficPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) GetNodeRegionId() int64 {
|
|
if x != nil {
|
|
return x.NodeRegionId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) GetTrafficPackagePeriodId() int64 {
|
|
if x != nil {
|
|
return x.TrafficPackagePeriodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) GetExpiresDay() string {
|
|
if x != nil {
|
|
return x.ExpiresDay
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) GetAvailableOnly() bool {
|
|
if x != nil {
|
|
return x.AvailableOnly
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) GetOffset() int64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesRequest) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListUserTrafficPackagesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserTrafficPackages []*UserTrafficPackage `protobuf:"bytes,1,rep,name=userTrafficPackages,proto3" json:"userTrafficPackages,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesResponse) Reset() {
|
|
*x = ListUserTrafficPackagesResponse{}
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListUserTrafficPackagesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListUserTrafficPackagesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListUserTrafficPackagesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListUserTrafficPackagesResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_traffic_package_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListUserTrafficPackagesResponse) GetUserTrafficPackages() []*UserTrafficPackage {
|
|
if x != nil {
|
|
return x.UserTrafficPackages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 删除流量包
|
|
type DeleteUserTrafficPackageRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserTrafficPackageId int64 `protobuf:"varint,1,opt,name=userTrafficPackageId,proto3" json:"userTrafficPackageId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteUserTrafficPackageRequest) Reset() {
|
|
*x = DeleteUserTrafficPackageRequest{}
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteUserTrafficPackageRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteUserTrafficPackageRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteUserTrafficPackageRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_traffic_package_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteUserTrafficPackageRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteUserTrafficPackageRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_traffic_package_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *DeleteUserTrafficPackageRequest) GetUserTrafficPackageId() int64 {
|
|
if x != nil {
|
|
return x.UserTrafficPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_service_user_traffic_package_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_user_traffic_package_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\"service_user_traffic_package.proto\x12\x02pb\x1a'models/model_user_traffic_package.proto\x1a\x19models/rpc_messages.proto\"\xd7\x01\n" +
|
|
"\x1fCreateUserTrafficPackageRequest\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12*\n" +
|
|
"\x10trafficPackageId\x18\x02 \x01(\x03R\x10trafficPackageId\x12\"\n" +
|
|
"\fnodeRegionId\x18\x03 \x01(\x03R\fnodeRegionId\x126\n" +
|
|
"\x16trafficPackagePeriodId\x18\x04 \x01(\x03R\x16trafficPackagePeriodId\x12\x14\n" +
|
|
"\x05count\x18\x05 \x01(\x05R\x05count\"X\n" +
|
|
" CreateUserTrafficPackageResponse\x124\n" +
|
|
"\x15userTrafficPackageIds\x18\x01 \x03(\x03R\x15userTrafficPackageIds\"\xd4\x01\n" +
|
|
"\x1cBuyUserTrafficPackageRequest\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12*\n" +
|
|
"\x10trafficPackageId\x18\x02 \x01(\x03R\x10trafficPackageId\x12\"\n" +
|
|
"\fnodeRegionId\x18\x03 \x01(\x03R\fnodeRegionId\x126\n" +
|
|
"\x16trafficPackagePeriodId\x18\x04 \x01(\x03R\x16trafficPackagePeriodId\x12\x14\n" +
|
|
"\x05count\x18\x05 \x01(\x05R\x05count\"U\n" +
|
|
"\x1dBuyUserTrafficPackageResponse\x124\n" +
|
|
"\x15userTrafficPackageIds\x18\x01 \x03(\x03R\x15userTrafficPackageIds\"\x87\x02\n" +
|
|
"\x1fCountUserTrafficPackagesRequest\x12*\n" +
|
|
"\x10trafficPackageId\x18\x01 \x01(\x03R\x10trafficPackageId\x12\x16\n" +
|
|
"\x06userId\x18\x02 \x01(\x03R\x06userId\x12\"\n" +
|
|
"\fnodeRegionId\x18\x03 \x01(\x03R\fnodeRegionId\x126\n" +
|
|
"\x16trafficPackagePeriodId\x18\x04 \x01(\x03R\x16trafficPackagePeriodId\x12\x1e\n" +
|
|
"\n" +
|
|
"expiresDay\x18\x05 \x01(\tR\n" +
|
|
"expiresDay\x12$\n" +
|
|
"\ravailableOnly\x18\x06 \x01(\bR\ravailableOnly\"\xb2\x02\n" +
|
|
"\x1eListUserTrafficPackagesRequest\x12*\n" +
|
|
"\x10trafficPackageId\x18\x01 \x01(\x03R\x10trafficPackageId\x12\x16\n" +
|
|
"\x06userId\x18\x02 \x01(\x03R\x06userId\x12\"\n" +
|
|
"\fnodeRegionId\x18\x03 \x01(\x03R\fnodeRegionId\x126\n" +
|
|
"\x16trafficPackagePeriodId\x18\x04 \x01(\x03R\x16trafficPackagePeriodId\x12\x1e\n" +
|
|
"\n" +
|
|
"expiresDay\x18\x05 \x01(\tR\n" +
|
|
"expiresDay\x12$\n" +
|
|
"\ravailableOnly\x18\x06 \x01(\bR\ravailableOnly\x12\x16\n" +
|
|
"\x06offset\x18\a \x01(\x03R\x06offset\x12\x12\n" +
|
|
"\x04size\x18\b \x01(\x03R\x04size\"k\n" +
|
|
"\x1fListUserTrafficPackagesResponse\x12H\n" +
|
|
"\x13userTrafficPackages\x18\x01 \x03(\v2\x16.pb.UserTrafficPackageR\x13userTrafficPackages\"U\n" +
|
|
"\x1fDeleteUserTrafficPackageRequest\x122\n" +
|
|
"\x14userTrafficPackageId\x18\x01 \x01(\x03R\x14userTrafficPackageId2\xec\x03\n" +
|
|
"\x19UserTrafficPackageService\x12e\n" +
|
|
"\x18createUserTrafficPackage\x12#.pb.CreateUserTrafficPackageRequest\x1a$.pb.CreateUserTrafficPackageResponse\x12\\\n" +
|
|
"\x15buyUserTrafficPackage\x12 .pb.BuyUserTrafficPackageRequest\x1a!.pb.BuyUserTrafficPackageResponse\x12U\n" +
|
|
"\x18countUserTrafficPackages\x12#.pb.CountUserTrafficPackagesRequest\x1a\x14.pb.RPCCountResponse\x12b\n" +
|
|
"\x17listUserTrafficPackages\x12\".pb.ListUserTrafficPackagesRequest\x1a#.pb.ListUserTrafficPackagesResponse\x12O\n" +
|
|
"\x18deleteUserTrafficPackage\x12#.pb.DeleteUserTrafficPackageRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_user_traffic_package_proto_rawDescOnce sync.Once
|
|
file_service_user_traffic_package_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_user_traffic_package_proto_rawDescGZIP() []byte {
|
|
file_service_user_traffic_package_proto_rawDescOnce.Do(func() {
|
|
file_service_user_traffic_package_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_user_traffic_package_proto_rawDesc), len(file_service_user_traffic_package_proto_rawDesc)))
|
|
})
|
|
return file_service_user_traffic_package_proto_rawDescData
|
|
}
|
|
|
|
var file_service_user_traffic_package_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
var file_service_user_traffic_package_proto_goTypes = []any{
|
|
(*CreateUserTrafficPackageRequest)(nil), // 0: pb.CreateUserTrafficPackageRequest
|
|
(*CreateUserTrafficPackageResponse)(nil), // 1: pb.CreateUserTrafficPackageResponse
|
|
(*BuyUserTrafficPackageRequest)(nil), // 2: pb.BuyUserTrafficPackageRequest
|
|
(*BuyUserTrafficPackageResponse)(nil), // 3: pb.BuyUserTrafficPackageResponse
|
|
(*CountUserTrafficPackagesRequest)(nil), // 4: pb.CountUserTrafficPackagesRequest
|
|
(*ListUserTrafficPackagesRequest)(nil), // 5: pb.ListUserTrafficPackagesRequest
|
|
(*ListUserTrafficPackagesResponse)(nil), // 6: pb.ListUserTrafficPackagesResponse
|
|
(*DeleteUserTrafficPackageRequest)(nil), // 7: pb.DeleteUserTrafficPackageRequest
|
|
(*UserTrafficPackage)(nil), // 8: pb.UserTrafficPackage
|
|
(*RPCCountResponse)(nil), // 9: pb.RPCCountResponse
|
|
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
|
|
}
|
|
var file_service_user_traffic_package_proto_depIdxs = []int32{
|
|
8, // 0: pb.ListUserTrafficPackagesResponse.userTrafficPackages:type_name -> pb.UserTrafficPackage
|
|
0, // 1: pb.UserTrafficPackageService.createUserTrafficPackage:input_type -> pb.CreateUserTrafficPackageRequest
|
|
2, // 2: pb.UserTrafficPackageService.buyUserTrafficPackage:input_type -> pb.BuyUserTrafficPackageRequest
|
|
4, // 3: pb.UserTrafficPackageService.countUserTrafficPackages:input_type -> pb.CountUserTrafficPackagesRequest
|
|
5, // 4: pb.UserTrafficPackageService.listUserTrafficPackages:input_type -> pb.ListUserTrafficPackagesRequest
|
|
7, // 5: pb.UserTrafficPackageService.deleteUserTrafficPackage:input_type -> pb.DeleteUserTrafficPackageRequest
|
|
1, // 6: pb.UserTrafficPackageService.createUserTrafficPackage:output_type -> pb.CreateUserTrafficPackageResponse
|
|
3, // 7: pb.UserTrafficPackageService.buyUserTrafficPackage:output_type -> pb.BuyUserTrafficPackageResponse
|
|
9, // 8: pb.UserTrafficPackageService.countUserTrafficPackages:output_type -> pb.RPCCountResponse
|
|
6, // 9: pb.UserTrafficPackageService.listUserTrafficPackages:output_type -> pb.ListUserTrafficPackagesResponse
|
|
10, // 10: pb.UserTrafficPackageService.deleteUserTrafficPackage:output_type -> pb.RPCSuccess
|
|
6, // [6:11] is the sub-list for method output_type
|
|
1, // [1:6] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_user_traffic_package_proto_init() }
|
|
func file_service_user_traffic_package_proto_init() {
|
|
if File_service_user_traffic_package_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_user_traffic_package_proto_init()
|
|
file_models_rpc_messages_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_user_traffic_package_proto_rawDesc), len(file_service_user_traffic_package_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 8,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_user_traffic_package_proto_goTypes,
|
|
DependencyIndexes: file_service_user_traffic_package_proto_depIdxs,
|
|
MessageInfos: file_service_user_traffic_package_proto_msgTypes,
|
|
}.Build()
|
|
File_service_user_traffic_package_proto = out.File
|
|
file_service_user_traffic_package_proto_goTypes = nil
|
|
file_service_user_traffic_package_proto_depIdxs = nil
|
|
}
|