mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-04 05:00:24 +08:00
增加流量包相关接口
This commit is contained in:
8057
build/rpc.json
8057
build/rpc.json
File diff suppressed because it is too large
Load Diff
185
pkg/rpc/pb/model_traffic_package.pb.go
Normal file
185
pkg/rpc/pb/model_traffic_package.pb.go
Normal file
@@ -0,0 +1,185 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.19.4
|
||||
// source: models/model_traffic_package.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// 流量包
|
||||
type TrafficPackage struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
||||
Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
|
||||
Bytes int64 `protobuf:"varint,4,opt,name=bytes,proto3" json:"bytes,omitempty"`
|
||||
IsOn bool `protobuf:"varint,5,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
||||
}
|
||||
|
||||
func (x *TrafficPackage) Reset() {
|
||||
*x = TrafficPackage{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_models_model_traffic_package_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *TrafficPackage) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TrafficPackage) ProtoMessage() {}
|
||||
|
||||
func (x *TrafficPackage) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_models_model_traffic_package_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use TrafficPackage.ProtoReflect.Descriptor instead.
|
||||
func (*TrafficPackage) Descriptor() ([]byte, []int) {
|
||||
return file_models_model_traffic_package_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *TrafficPackage) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *TrafficPackage) GetSize() int32 {
|
||||
if x != nil {
|
||||
return x.Size
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *TrafficPackage) GetUnit() string {
|
||||
if x != nil {
|
||||
return x.Unit
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *TrafficPackage) GetBytes() int64 {
|
||||
if x != nil {
|
||||
return x.Bytes
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *TrafficPackage) GetIsOn() bool {
|
||||
if x != nil {
|
||||
return x.IsOn
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var File_models_model_traffic_package_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_models_model_traffic_package_proto_rawDesc = []byte{
|
||||
0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x74,
|
||||
0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x72, 0x0a, 0x0e, 0x54, 0x72, 0x61, 0x66,
|
||||
0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69,
|
||||
0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12,
|
||||
0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e,
|
||||
0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e,
|
||||
0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x42, 0x06, 0x5a, 0x04,
|
||||
0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_models_model_traffic_package_proto_rawDescOnce sync.Once
|
||||
file_models_model_traffic_package_proto_rawDescData = file_models_model_traffic_package_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_models_model_traffic_package_proto_rawDescGZIP() []byte {
|
||||
file_models_model_traffic_package_proto_rawDescOnce.Do(func() {
|
||||
file_models_model_traffic_package_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_traffic_package_proto_rawDescData)
|
||||
})
|
||||
return file_models_model_traffic_package_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_models_model_traffic_package_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_models_model_traffic_package_proto_goTypes = []interface{}{
|
||||
(*TrafficPackage)(nil), // 0: pb.TrafficPackage
|
||||
}
|
||||
var file_models_model_traffic_package_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_models_model_traffic_package_proto_init() }
|
||||
func file_models_model_traffic_package_proto_init() {
|
||||
if File_models_model_traffic_package_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_models_model_traffic_package_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*TrafficPackage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_models_model_traffic_package_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_models_model_traffic_package_proto_goTypes,
|
||||
DependencyIndexes: file_models_model_traffic_package_proto_depIdxs,
|
||||
MessageInfos: file_models_model_traffic_package_proto_msgTypes,
|
||||
}.Build()
|
||||
File_models_model_traffic_package_proto = out.File
|
||||
file_models_model_traffic_package_proto_rawDesc = nil
|
||||
file_models_model_traffic_package_proto_goTypes = nil
|
||||
file_models_model_traffic_package_proto_depIdxs = nil
|
||||
}
|
||||
186
pkg/rpc/pb/model_traffic_package_period.pb.go
Normal file
186
pkg/rpc/pb/model_traffic_package_period.pb.go
Normal file
@@ -0,0 +1,186 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.19.4
|
||||
// source: models/model_traffic_package_period.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// 流量包有效期
|
||||
type TrafficPackagePeriod struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
||||
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
|
||||
Unit string `protobuf:"bytes,4,opt,name=unit,proto3" json:"unit,omitempty"`
|
||||
Months int32 `protobuf:"varint,5,opt,name=months,proto3" json:"months,omitempty"`
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePeriod) Reset() {
|
||||
*x = TrafficPackagePeriod{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_models_model_traffic_package_period_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePeriod) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TrafficPackagePeriod) ProtoMessage() {}
|
||||
|
||||
func (x *TrafficPackagePeriod) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_models_model_traffic_package_period_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use TrafficPackagePeriod.ProtoReflect.Descriptor instead.
|
||||
func (*TrafficPackagePeriod) Descriptor() ([]byte, []int) {
|
||||
return file_models_model_traffic_package_period_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePeriod) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePeriod) GetIsOn() bool {
|
||||
if x != nil {
|
||||
return x.IsOn
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePeriod) GetCount() int32 {
|
||||
if x != nil {
|
||||
return x.Count
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePeriod) GetUnit() string {
|
||||
if x != nil {
|
||||
return x.Unit
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePeriod) GetMonths() int32 {
|
||||
if x != nil {
|
||||
return x.Months
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_models_model_traffic_package_period_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_models_model_traffic_package_period_proto_rawDesc = []byte{
|
||||
0x0a, 0x29, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x74,
|
||||
0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70,
|
||||
0x65, 0x72, 0x69, 0x6f, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22,
|
||||
0x7c, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67,
|
||||
0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e,
|
||||
0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x04, 0x75, 0x6e, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x18,
|
||||
0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x42, 0x06, 0x5a,
|
||||
0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_models_model_traffic_package_period_proto_rawDescOnce sync.Once
|
||||
file_models_model_traffic_package_period_proto_rawDescData = file_models_model_traffic_package_period_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_models_model_traffic_package_period_proto_rawDescGZIP() []byte {
|
||||
file_models_model_traffic_package_period_proto_rawDescOnce.Do(func() {
|
||||
file_models_model_traffic_package_period_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_traffic_package_period_proto_rawDescData)
|
||||
})
|
||||
return file_models_model_traffic_package_period_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_models_model_traffic_package_period_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_models_model_traffic_package_period_proto_goTypes = []interface{}{
|
||||
(*TrafficPackagePeriod)(nil), // 0: pb.TrafficPackagePeriod
|
||||
}
|
||||
var file_models_model_traffic_package_period_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_models_model_traffic_package_period_proto_init() }
|
||||
func file_models_model_traffic_package_period_proto_init() {
|
||||
if File_models_model_traffic_package_period_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_models_model_traffic_package_period_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*TrafficPackagePeriod); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_models_model_traffic_package_period_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_models_model_traffic_package_period_proto_goTypes,
|
||||
DependencyIndexes: file_models_model_traffic_package_period_proto_depIdxs,
|
||||
MessageInfos: file_models_model_traffic_package_period_proto_msgTypes,
|
||||
}.Build()
|
||||
File_models_model_traffic_package_period_proto = out.File
|
||||
file_models_model_traffic_package_period_proto_rawDesc = nil
|
||||
file_models_model_traffic_package_period_proto_goTypes = nil
|
||||
file_models_model_traffic_package_period_proto_depIdxs = nil
|
||||
}
|
||||
182
pkg/rpc/pb/model_traffic_package_price.pb.go
Normal file
182
pkg/rpc/pb/model_traffic_package_price.pb.go
Normal file
@@ -0,0 +1,182 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.19.4
|
||||
// source: models/model_traffic_package_price.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// 流量包价格定义
|
||||
type TrafficPackagePrice struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TrafficPackageId int64 `protobuf:"varint,1,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
||||
NodeRegionId int64 `protobuf:"varint,2,opt,name=nodeRegionId,proto3" json:"nodeRegionId,omitempty"`
|
||||
TrafficPackagePeriodId int64 `protobuf:"varint,3,opt,name=trafficPackagePeriodId,proto3" json:"trafficPackagePeriodId,omitempty"`
|
||||
Price float32 `protobuf:"fixed32,4,opt,name=price,proto3" json:"price,omitempty"`
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePrice) Reset() {
|
||||
*x = TrafficPackagePrice{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_models_model_traffic_package_price_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePrice) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TrafficPackagePrice) ProtoMessage() {}
|
||||
|
||||
func (x *TrafficPackagePrice) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_models_model_traffic_package_price_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use TrafficPackagePrice.ProtoReflect.Descriptor instead.
|
||||
func (*TrafficPackagePrice) Descriptor() ([]byte, []int) {
|
||||
return file_models_model_traffic_package_price_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePrice) GetTrafficPackageId() int64 {
|
||||
if x != nil {
|
||||
return x.TrafficPackageId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePrice) GetNodeRegionId() int64 {
|
||||
if x != nil {
|
||||
return x.NodeRegionId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePrice) GetTrafficPackagePeriodId() int64 {
|
||||
if x != nil {
|
||||
return x.TrafficPackagePeriodId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePrice) GetPrice() float32 {
|
||||
if x != nil {
|
||||
return x.Price
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_models_model_traffic_package_price_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_models_model_traffic_package_price_proto_rawDesc = []byte{
|
||||
0x0a, 0x28, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x74,
|
||||
0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70,
|
||||
0x72, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xb3,
|
||||
0x01, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67,
|
||||
0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69,
|
||||
0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
|
||||
0x52, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,
|
||||
0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
|
||||
0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69,
|
||||
0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50,
|
||||
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x70,
|
||||
0x72, 0x69, 0x63, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_models_model_traffic_package_price_proto_rawDescOnce sync.Once
|
||||
file_models_model_traffic_package_price_proto_rawDescData = file_models_model_traffic_package_price_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_models_model_traffic_package_price_proto_rawDescGZIP() []byte {
|
||||
file_models_model_traffic_package_price_proto_rawDescOnce.Do(func() {
|
||||
file_models_model_traffic_package_price_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_traffic_package_price_proto_rawDescData)
|
||||
})
|
||||
return file_models_model_traffic_package_price_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_models_model_traffic_package_price_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_models_model_traffic_package_price_proto_goTypes = []interface{}{
|
||||
(*TrafficPackagePrice)(nil), // 0: pb.TrafficPackagePrice
|
||||
}
|
||||
var file_models_model_traffic_package_price_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_models_model_traffic_package_price_proto_init() }
|
||||
func file_models_model_traffic_package_price_proto_init() {
|
||||
if File_models_model_traffic_package_price_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_models_model_traffic_package_price_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*TrafficPackagePrice); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_models_model_traffic_package_price_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_models_model_traffic_package_price_proto_goTypes,
|
||||
DependencyIndexes: file_models_model_traffic_package_price_proto_depIdxs,
|
||||
MessageInfos: file_models_model_traffic_package_price_proto_msgTypes,
|
||||
}.Build()
|
||||
File_models_model_traffic_package_price_proto = out.File
|
||||
file_models_model_traffic_package_price_proto_rawDesc = nil
|
||||
file_models_model_traffic_package_price_proto_goTypes = nil
|
||||
file_models_model_traffic_package_price_proto_depIdxs = nil
|
||||
}
|
||||
@@ -38,8 +38,10 @@ type UserTrafficBill struct {
|
||||
BandwidthMB float32 `protobuf:"fixed32,5,opt,name=bandwidthMB,proto3" json:"bandwidthMB,omitempty"`
|
||||
BandwidthPercentile int32 `protobuf:"varint,6,opt,name=bandwidthPercentile,proto3" json:"bandwidthPercentile,omitempty"`
|
||||
TrafficGB float32 `protobuf:"fixed32,7,opt,name=trafficGB,proto3" json:"trafficGB,omitempty"`
|
||||
PricePerUnit float32 `protobuf:"fixed32,8,opt,name=pricePerUnit,proto3" json:"pricePerUnit,omitempty"`
|
||||
PriceType string `protobuf:"bytes,9,opt,name=priceType,proto3" json:"priceType,omitempty"`
|
||||
TrafficPackageGB float32 `protobuf:"fixed32,8,opt,name=trafficPackageGB,proto3" json:"trafficPackageGB,omitempty"`
|
||||
UserTrafficPackageIds []int64 `protobuf:"varint,9,rep,packed,name=userTrafficPackageIds,proto3" json:"userTrafficPackageIds,omitempty"`
|
||||
PricePerUnit float32 `protobuf:"fixed32,10,opt,name=pricePerUnit,proto3" json:"pricePerUnit,omitempty"`
|
||||
PriceType string `protobuf:"bytes,11,opt,name=priceType,proto3" json:"priceType,omitempty"`
|
||||
NodeRegion *NodeRegion `protobuf:"bytes,30,opt,name=nodeRegion,proto3" json:"nodeRegion,omitempty"`
|
||||
}
|
||||
|
||||
@@ -124,6 +126,20 @@ func (x *UserTrafficBill) GetTrafficGB() float32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficBill) GetTrafficPackageGB() float32 {
|
||||
if x != nil {
|
||||
return x.TrafficPackageGB
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficBill) GetUserTrafficPackageIds() []int64 {
|
||||
if x != nil {
|
||||
return x.UserTrafficPackageIds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UserTrafficBill) GetPricePerUnit() float32 {
|
||||
if x != nil {
|
||||
return x.PricePerUnit
|
||||
@@ -152,7 +168,7 @@ var file_models_model_user_traffic_bill_proto_rawDesc = []byte{
|
||||
0x73, 0x65, 0x72, 0x5f, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x62, 0x69, 0x6c, 0x6c,
|
||||
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1e, 0x6d, 0x6f, 0x64, 0x65,
|
||||
0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd9, 0x02, 0x0a, 0x0f, 0x55,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbb, 0x03, 0x0a, 0x0f, 0x55,
|
||||
0x73, 0x65, 0x72, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x42, 0x69, 0x6c, 0x6c, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16,
|
||||
0x0a, 0x06, 0x62, 0x69, 0x6c, 0x6c, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
|
||||
@@ -167,15 +183,21 @@ var file_models_model_user_traffic_bill_proto_rawDesc = []byte{
|
||||
0x05, 0x52, 0x13, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x50, 0x65, 0x72, 0x63,
|
||||
0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69,
|
||||
0x63, 0x47, 0x42, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x74, 0x72, 0x61, 0x66, 0x66,
|
||||
0x69, 0x63, 0x47, 0x42, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x63, 0x65, 0x50, 0x65, 0x72,
|
||||
0x55, 0x6e, 0x69, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x63,
|
||||
0x65, 0x50, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x63,
|
||||
0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x69,
|
||||
0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65,
|
||||
0x67, 0x69, 0x6f, 0x6e, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65,
|
||||
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x69, 0x63, 0x47, 0x42, 0x12, 0x2a, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50,
|
||||
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x47, 0x42, 0x18, 0x08, 0x20, 0x01, 0x28, 0x02, 0x52, 0x10,
|
||||
0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x47, 0x42,
|
||||
0x12, 0x34, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x72, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50,
|
||||
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x03, 0x52,
|
||||
0x15, 0x75, 0x73, 0x65, 0x72, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b,
|
||||
0x61, 0x67, 0x65, 0x49, 0x64, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x63, 0x65, 0x50,
|
||||
0x65, 0x72, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0c, 0x70, 0x72,
|
||||
0x69, 0x63, 0x65, 0x50, 0x65, 0x72, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72,
|
||||
0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70,
|
||||
0x72, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65,
|
||||
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6e, 0x6f,
|
||||
0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
320
pkg/rpc/pb/model_user_traffic_package.pb.go
Normal file
320
pkg/rpc/pb/model_user_traffic_package.pb.go
Normal file
@@ -0,0 +1,320 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.19.4
|
||||
// source: models/model_user_traffic_package.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// 用户流量包
|
||||
type UserTrafficPackage struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
|
||||
TrafficPackageId int64 `protobuf:"varint,3,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
||||
TotalBytes int64 `protobuf:"varint,4,opt,name=totalBytes,proto3" json:"totalBytes,omitempty"`
|
||||
UsedBytes int64 `protobuf:"varint,5,opt,name=usedBytes,proto3" json:"usedBytes,omitempty"`
|
||||
NodeRegionId int64 `protobuf:"varint,6,opt,name=nodeRegionId,proto3" json:"nodeRegionId,omitempty"`
|
||||
TrafficPackagePeriodId int64 `protobuf:"varint,7,opt,name=trafficPackagePeriodId,proto3" json:"trafficPackagePeriodId,omitempty"`
|
||||
TrafficPackagePeriodCount int32 `protobuf:"varint,8,opt,name=trafficPackagePeriodCount,proto3" json:"trafficPackagePeriodCount,omitempty"`
|
||||
TrafficPackagePeriodUnit string `protobuf:"bytes,9,opt,name=trafficPackagePeriodUnit,proto3" json:"trafficPackagePeriodUnit,omitempty"`
|
||||
DayFrom string `protobuf:"bytes,10,opt,name=dayFrom,proto3" json:"dayFrom,omitempty"`
|
||||
DayTo string `protobuf:"bytes,11,opt,name=dayTo,proto3" json:"dayTo,omitempty"`
|
||||
CreatedAt int64 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
|
||||
TrafficPackage *TrafficPackage `protobuf:"bytes,30,opt,name=trafficPackage,proto3" json:"trafficPackage,omitempty"`
|
||||
NodeRegion *NodeRegion `protobuf:"bytes,31,opt,name=nodeRegion,proto3" json:"nodeRegion,omitempty"`
|
||||
User *User `protobuf:"bytes,32,opt,name=user,proto3" json:"user,omitempty"`
|
||||
CanDelete bool `protobuf:"varint,33,opt,name=canDelete,proto3" json:"canDelete,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) Reset() {
|
||||
*x = UserTrafficPackage{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_models_model_user_traffic_package_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UserTrafficPackage) ProtoMessage() {}
|
||||
|
||||
func (x *UserTrafficPackage) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_models_model_user_traffic_package_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UserTrafficPackage.ProtoReflect.Descriptor instead.
|
||||
func (*UserTrafficPackage) Descriptor() ([]byte, []int) {
|
||||
return file_models_model_user_traffic_package_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetUserId() int64 {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetTrafficPackageId() int64 {
|
||||
if x != nil {
|
||||
return x.TrafficPackageId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetTotalBytes() int64 {
|
||||
if x != nil {
|
||||
return x.TotalBytes
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetUsedBytes() int64 {
|
||||
if x != nil {
|
||||
return x.UsedBytes
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetNodeRegionId() int64 {
|
||||
if x != nil {
|
||||
return x.NodeRegionId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetTrafficPackagePeriodId() int64 {
|
||||
if x != nil {
|
||||
return x.TrafficPackagePeriodId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetTrafficPackagePeriodCount() int32 {
|
||||
if x != nil {
|
||||
return x.TrafficPackagePeriodCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetTrafficPackagePeriodUnit() string {
|
||||
if x != nil {
|
||||
return x.TrafficPackagePeriodUnit
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetDayFrom() string {
|
||||
if x != nil {
|
||||
return x.DayFrom
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetDayTo() string {
|
||||
if x != nil {
|
||||
return x.DayTo
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetCreatedAt() int64 {
|
||||
if x != nil {
|
||||
return x.CreatedAt
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetTrafficPackage() *TrafficPackage {
|
||||
if x != nil {
|
||||
return x.TrafficPackage
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetNodeRegion() *NodeRegion {
|
||||
if x != nil {
|
||||
return x.NodeRegion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetUser() *User {
|
||||
if x != nil {
|
||||
return x.User
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *UserTrafficPackage) GetCanDelete() bool {
|
||||
if x != nil {
|
||||
return x.CanDelete
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var File_models_model_user_traffic_package_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_models_model_user_traffic_package_proto_rawDesc = []byte{
|
||||
0x0a, 0x27, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75,
|
||||
0x73, 0x65, 0x72, 0x5f, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x70, 0x61, 0x63, 0x6b,
|
||||
0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1e, 0x6d,
|
||||
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65,
|
||||
0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6d,
|
||||
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x74, 0x72, 0x61, 0x66,
|
||||
0x66, 0x69, 0x63, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x1a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f,
|
||||
0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf2, 0x04, 0x0a, 0x12, 0x55,
|
||||
0x73, 0x65, 0x72, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67,
|
||||
0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69,
|
||||
0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x74, 0x72, 0x61,
|
||||
0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b,
|
||||
0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x42, 0x79,
|
||||
0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c,
|
||||
0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x64, 0x42, 0x79, 0x74,
|
||||
0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x73, 0x65, 0x64, 0x42, 0x79,
|
||||
0x74, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52,
|
||||
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x72, 0x61, 0x66, 0x66,
|
||||
0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49,
|
||||
0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63,
|
||||
0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12,
|
||||
0x3c, 0x0a, 0x19, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67,
|
||||
0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x19, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61,
|
||||
0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3a, 0x0a,
|
||||
0x18, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50,
|
||||
0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x18, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50,
|
||||
0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x61, 0x79,
|
||||
0x46, 0x72, 0x6f, 0x6d, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x61, 0x79, 0x46,
|
||||
0x72, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x18, 0x0b, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65,
|
||||
0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72,
|
||||
0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3a, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x66, 0x66,
|
||||
0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x12, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b,
|
||||
0x61, 0x67, 0x65, 0x52, 0x0e, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b,
|
||||
0x61, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64,
|
||||
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67,
|
||||
0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x20, 0x20, 0x01, 0x28,
|
||||
0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65,
|
||||
0x72, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x21,
|
||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x63, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42,
|
||||
0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_models_model_user_traffic_package_proto_rawDescOnce sync.Once
|
||||
file_models_model_user_traffic_package_proto_rawDescData = file_models_model_user_traffic_package_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_models_model_user_traffic_package_proto_rawDescGZIP() []byte {
|
||||
file_models_model_user_traffic_package_proto_rawDescOnce.Do(func() {
|
||||
file_models_model_user_traffic_package_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_user_traffic_package_proto_rawDescData)
|
||||
})
|
||||
return file_models_model_user_traffic_package_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_models_model_user_traffic_package_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_models_model_user_traffic_package_proto_goTypes = []interface{}{
|
||||
(*UserTrafficPackage)(nil), // 0: pb.UserTrafficPackage
|
||||
(*TrafficPackage)(nil), // 1: pb.TrafficPackage
|
||||
(*NodeRegion)(nil), // 2: pb.NodeRegion
|
||||
(*User)(nil), // 3: pb.User
|
||||
}
|
||||
var file_models_model_user_traffic_package_proto_depIdxs = []int32{
|
||||
1, // 0: pb.UserTrafficPackage.trafficPackage:type_name -> pb.TrafficPackage
|
||||
2, // 1: pb.UserTrafficPackage.nodeRegion:type_name -> pb.NodeRegion
|
||||
3, // 2: pb.UserTrafficPackage.user:type_name -> pb.User
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_models_model_user_traffic_package_proto_init() }
|
||||
func file_models_model_user_traffic_package_proto_init() {
|
||||
if File_models_model_user_traffic_package_proto != nil {
|
||||
return
|
||||
}
|
||||
file_models_model_node_region_proto_init()
|
||||
file_models_model_traffic_package_proto_init()
|
||||
file_models_model_user_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_models_model_user_traffic_package_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UserTrafficPackage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_models_model_user_traffic_package_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_models_model_user_traffic_package_proto_goTypes,
|
||||
DependencyIndexes: file_models_model_user_traffic_package_proto_depIdxs,
|
||||
MessageInfos: file_models_model_user_traffic_package_proto_msgTypes,
|
||||
}.Build()
|
||||
File_models_model_user_traffic_package_proto = out.File
|
||||
file_models_model_user_traffic_package_proto_rawDesc = nil
|
||||
file_models_model_user_traffic_package_proto_goTypes = nil
|
||||
file_models_model_user_traffic_package_proto_depIdxs = nil
|
||||
}
|
||||
1070
pkg/rpc/pb/service_traffic_package.pb.go
Normal file
1070
pkg/rpc/pb/service_traffic_package.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
1088
pkg/rpc/pb/service_traffic_package_period.pb.go
Normal file
1088
pkg/rpc/pb/service_traffic_package_period.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
965
pkg/rpc/pb/service_traffic_package_price.pb.go
Normal file
965
pkg/rpc/pb/service_traffic_package_price.pb.go
Normal file
@@ -0,0 +1,965 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.19.4
|
||||
// source: service_traffic_package_price.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
context "context"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
|
||||
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)
|
||||
)
|
||||
|
||||
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||
// of the legacy proto package is being used.
|
||||
const _ = proto.ProtoPackageIsVersion4
|
||||
|
||||
// 设置流量包价格
|
||||
type UpdateTrafficPackagePriceRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TrafficPackageId int64 `protobuf:"varint,1,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
||||
NodeRegionId int64 `protobuf:"varint,2,opt,name=nodeRegionId,proto3" json:"nodeRegionId,omitempty"`
|
||||
TrafficPackagePeriodId int64 `protobuf:"varint,3,opt,name=trafficPackagePeriodId,proto3" json:"trafficPackagePeriodId,omitempty"`
|
||||
Price float32 `protobuf:"fixed32,4,opt,name=price,proto3" json:"price,omitempty"`
|
||||
}
|
||||
|
||||
func (x *UpdateTrafficPackagePriceRequest) Reset() {
|
||||
*x = UpdateTrafficPackagePriceRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *UpdateTrafficPackagePriceRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdateTrafficPackagePriceRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdateTrafficPackagePriceRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UpdateTrafficPackagePriceRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateTrafficPackagePriceRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_traffic_package_price_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *UpdateTrafficPackagePriceRequest) GetTrafficPackageId() int64 {
|
||||
if x != nil {
|
||||
return x.TrafficPackageId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UpdateTrafficPackagePriceRequest) GetNodeRegionId() int64 {
|
||||
if x != nil {
|
||||
return x.NodeRegionId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UpdateTrafficPackagePriceRequest) GetTrafficPackagePeriodId() int64 {
|
||||
if x != nil {
|
||||
return x.TrafficPackagePeriodId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UpdateTrafficPackagePriceRequest) GetPrice() float32 {
|
||||
if x != nil {
|
||||
return x.Price
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 获取单个流量包具体价格
|
||||
type FindTrafficPackagePriceRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TrafficPackageId int64 `protobuf:"varint,1,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
||||
NodeRegionId int64 `protobuf:"varint,2,opt,name=nodeRegionId,proto3" json:"nodeRegionId,omitempty"`
|
||||
TrafficPackagePeriodId int64 `protobuf:"varint,3,opt,name=trafficPackagePeriodId,proto3" json:"trafficPackagePeriodId,omitempty"`
|
||||
Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePriceRequest) Reset() {
|
||||
*x = FindTrafficPackagePriceRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePriceRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindTrafficPackagePriceRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FindTrafficPackagePriceRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FindTrafficPackagePriceRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FindTrafficPackagePriceRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_traffic_package_price_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePriceRequest) GetTrafficPackageId() int64 {
|
||||
if x != nil {
|
||||
return x.TrafficPackageId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePriceRequest) GetNodeRegionId() int64 {
|
||||
if x != nil {
|
||||
return x.NodeRegionId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePriceRequest) GetTrafficPackagePeriodId() int64 {
|
||||
if x != nil {
|
||||
return x.TrafficPackagePeriodId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePriceRequest) GetCount() int32 {
|
||||
if x != nil {
|
||||
return x.Count
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type FindTrafficPackagePriceResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Price float32 `protobuf:"fixed32,1,opt,name=price,proto3" json:"price,omitempty"` // 单价
|
||||
Amount float32 `protobuf:"fixed32,2,opt,name=amount,proto3" json:"amount,omitempty"` // 总价
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePriceResponse) Reset() {
|
||||
*x = FindTrafficPackagePriceResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePriceResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindTrafficPackagePriceResponse) ProtoMessage() {}
|
||||
|
||||
func (x *FindTrafficPackagePriceResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FindTrafficPackagePriceResponse.ProtoReflect.Descriptor instead.
|
||||
func (*FindTrafficPackagePriceResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_traffic_package_price_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePriceResponse) GetPrice() float32 {
|
||||
if x != nil {
|
||||
return x.Price
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePriceResponse) GetAmount() float32 {
|
||||
if x != nil {
|
||||
return x.Amount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 计算流量包价格项数量
|
||||
type CountTrafficPackagePricesRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TrafficPackageId int64 `protobuf:"varint,1,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CountTrafficPackagePricesRequest) Reset() {
|
||||
*x = CountTrafficPackagePricesRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CountTrafficPackagePricesRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CountTrafficPackagePricesRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CountTrafficPackagePricesRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CountTrafficPackagePricesRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CountTrafficPackagePricesRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_traffic_package_price_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *CountTrafficPackagePricesRequest) GetTrafficPackageId() int64 {
|
||||
if x != nil {
|
||||
return x.TrafficPackageId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 查找流量包价格
|
||||
type FindTrafficPackagePricesRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TrafficPackageId int64 `protobuf:"varint,1,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePricesRequest) Reset() {
|
||||
*x = FindTrafficPackagePricesRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePricesRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindTrafficPackagePricesRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FindTrafficPackagePricesRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FindTrafficPackagePricesRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FindTrafficPackagePricesRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_traffic_package_price_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePricesRequest) GetTrafficPackageId() int64 {
|
||||
if x != nil {
|
||||
return x.TrafficPackageId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type FindTrafficPackagePricesResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TrafficPackagePrices []*TrafficPackagePrice `protobuf:"bytes,1,rep,name=trafficPackagePrices,proto3" json:"trafficPackagePrices,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePricesResponse) Reset() {
|
||||
*x = FindTrafficPackagePricesResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePricesResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindTrafficPackagePricesResponse) ProtoMessage() {}
|
||||
|
||||
func (x *FindTrafficPackagePricesResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FindTrafficPackagePricesResponse.ProtoReflect.Descriptor instead.
|
||||
func (*FindTrafficPackagePricesResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_traffic_package_price_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *FindTrafficPackagePricesResponse) GetTrafficPackagePrices() []*TrafficPackagePrice {
|
||||
if x != nil {
|
||||
return x.TrafficPackagePrices
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 查找所有流量包价格
|
||||
type FindAllTrafficPackagePricesRequest struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *FindAllTrafficPackagePricesRequest) Reset() {
|
||||
*x = FindAllTrafficPackagePricesRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindAllTrafficPackagePricesRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindAllTrafficPackagePricesRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FindAllTrafficPackagePricesRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FindAllTrafficPackagePricesRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FindAllTrafficPackagePricesRequest) Descriptor() ([]byte, []int) {
|
||||
return file_service_traffic_package_price_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
type FindAllTrafficPackagePricesResponse struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
TrafficPackagePrices []*TrafficPackagePrice `protobuf:"bytes,1,rep,name=trafficPackagePrices,proto3" json:"trafficPackagePrices,omitempty"`
|
||||
}
|
||||
|
||||
func (x *FindAllTrafficPackagePricesResponse) Reset() {
|
||||
*x = FindAllTrafficPackagePricesResponse{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *FindAllTrafficPackagePricesResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FindAllTrafficPackagePricesResponse) ProtoMessage() {}
|
||||
|
||||
func (x *FindAllTrafficPackagePricesResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_service_traffic_package_price_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FindAllTrafficPackagePricesResponse.ProtoReflect.Descriptor instead.
|
||||
func (*FindAllTrafficPackagePricesResponse) Descriptor() ([]byte, []int) {
|
||||
return file_service_traffic_package_price_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *FindAllTrafficPackagePricesResponse) GetTrafficPackagePrices() []*TrafficPackagePrice {
|
||||
if x != nil {
|
||||
return x.TrafficPackagePrices
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_service_traffic_package_price_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_service_traffic_package_price_proto_rawDesc = []byte{
|
||||
0x0a, 0x23, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69,
|
||||
0x63, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x28, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
|
||||
0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f,
|
||||
0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f,
|
||||
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc0,
|
||||
0x01, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63,
|
||||
0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||||
0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61,
|
||||
0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x74,
|
||||
0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12,
|
||||
0x22, 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f,
|
||||
0x6e, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61,
|
||||
0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x03, 0x20,
|
||||
0x01, 0x28, 0x03, 0x52, 0x16, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b,
|
||||
0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70,
|
||||
0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63,
|
||||
0x65, 0x22, 0xbe, 0x01, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69,
|
||||
0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71,
|
||||
0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50,
|
||||
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10,
|
||||
0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64,
|
||||
0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69,
|
||||
0x6f, 0x6e, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50,
|
||||
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63,
|
||||
0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x22, 0x4f, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69,
|
||||
0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61,
|
||||
0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x61, 0x6d, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x22, 0x4e, 0x0a, 0x20, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x66,
|
||||
0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73,
|
||||
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66,
|
||||
0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67,
|
||||
0x65, 0x49, 0x64, 0x22, 0x4d, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x66, 0x66,
|
||||
0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69,
|
||||
0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
|
||||
0x52, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,
|
||||
0x49, 0x64, 0x22, 0x6f, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69,
|
||||
0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65,
|
||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x14, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69,
|
||||
0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69,
|
||||
0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x14, 0x74,
|
||||
0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69,
|
||||
0x63, 0x65, 0x73, 0x22, 0x24, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x72,
|
||||
0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63,
|
||||
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x72, 0x0a, 0x23, 0x46, 0x69, 0x6e,
|
||||
0x64, 0x41, 0x6c, 0x6c, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61,
|
||||
0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
||||
0x12, 0x4b, 0x0a, 0x14, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61,
|
||||
0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61,
|
||||
0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x14, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63,
|
||||
0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x32, 0x83, 0x04,
|
||||
0x0a, 0x1a, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,
|
||||
0x50, 0x72, 0x69, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x51, 0x0a, 0x19,
|
||||
0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63,
|
||||
0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b,
|
||||
0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||
0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
|
||||
0x62, 0x0a, 0x17, 0x66, 0x69, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61,
|
||||
0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x46, 0x69, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61,
|
||||
0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50,
|
||||
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x19, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x66,
|
||||
0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73,
|
||||
0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x66, 0x66,
|
||||
0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52,
|
||||
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18,
|
||||
0x66, 0x69, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61,
|
||||
0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
|
||||
0x6e, 0x64, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,
|
||||
0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e,
|
||||
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61,
|
||||
0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x72,
|
||||
0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63,
|
||||
0x65, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54,
|
||||
0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69,
|
||||
0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x62, 0x2e,
|
||||
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x61,
|
||||
0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||
0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_service_traffic_package_price_proto_rawDescOnce sync.Once
|
||||
file_service_traffic_package_price_proto_rawDescData = file_service_traffic_package_price_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_service_traffic_package_price_proto_rawDescGZIP() []byte {
|
||||
file_service_traffic_package_price_proto_rawDescOnce.Do(func() {
|
||||
file_service_traffic_package_price_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_traffic_package_price_proto_rawDescData)
|
||||
})
|
||||
return file_service_traffic_package_price_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_service_traffic_package_price_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_service_traffic_package_price_proto_goTypes = []interface{}{
|
||||
(*UpdateTrafficPackagePriceRequest)(nil), // 0: pb.UpdateTrafficPackagePriceRequest
|
||||
(*FindTrafficPackagePriceRequest)(nil), // 1: pb.FindTrafficPackagePriceRequest
|
||||
(*FindTrafficPackagePriceResponse)(nil), // 2: pb.FindTrafficPackagePriceResponse
|
||||
(*CountTrafficPackagePricesRequest)(nil), // 3: pb.CountTrafficPackagePricesRequest
|
||||
(*FindTrafficPackagePricesRequest)(nil), // 4: pb.FindTrafficPackagePricesRequest
|
||||
(*FindTrafficPackagePricesResponse)(nil), // 5: pb.FindTrafficPackagePricesResponse
|
||||
(*FindAllTrafficPackagePricesRequest)(nil), // 6: pb.FindAllTrafficPackagePricesRequest
|
||||
(*FindAllTrafficPackagePricesResponse)(nil), // 7: pb.FindAllTrafficPackagePricesResponse
|
||||
(*TrafficPackagePrice)(nil), // 8: pb.TrafficPackagePrice
|
||||
(*RPCSuccess)(nil), // 9: pb.RPCSuccess
|
||||
(*RPCCountResponse)(nil), // 10: pb.RPCCountResponse
|
||||
}
|
||||
var file_service_traffic_package_price_proto_depIdxs = []int32{
|
||||
8, // 0: pb.FindTrafficPackagePricesResponse.trafficPackagePrices:type_name -> pb.TrafficPackagePrice
|
||||
8, // 1: pb.FindAllTrafficPackagePricesResponse.trafficPackagePrices:type_name -> pb.TrafficPackagePrice
|
||||
0, // 2: pb.TrafficPackagePriceService.updateTrafficPackagePrice:input_type -> pb.UpdateTrafficPackagePriceRequest
|
||||
1, // 3: pb.TrafficPackagePriceService.findTrafficPackagePrice:input_type -> pb.FindTrafficPackagePriceRequest
|
||||
3, // 4: pb.TrafficPackagePriceService.countTrafficPackagePrices:input_type -> pb.CountTrafficPackagePricesRequest
|
||||
4, // 5: pb.TrafficPackagePriceService.findTrafficPackagePrices:input_type -> pb.FindTrafficPackagePricesRequest
|
||||
6, // 6: pb.TrafficPackagePriceService.findAllTrafficPackagePrices:input_type -> pb.FindAllTrafficPackagePricesRequest
|
||||
9, // 7: pb.TrafficPackagePriceService.updateTrafficPackagePrice:output_type -> pb.RPCSuccess
|
||||
2, // 8: pb.TrafficPackagePriceService.findTrafficPackagePrice:output_type -> pb.FindTrafficPackagePriceResponse
|
||||
10, // 9: pb.TrafficPackagePriceService.countTrafficPackagePrices:output_type -> pb.RPCCountResponse
|
||||
5, // 10: pb.TrafficPackagePriceService.findTrafficPackagePrices:output_type -> pb.FindTrafficPackagePricesResponse
|
||||
7, // 11: pb.TrafficPackagePriceService.findAllTrafficPackagePrices:output_type -> pb.FindAllTrafficPackagePricesResponse
|
||||
7, // [7:12] is the sub-list for method output_type
|
||||
2, // [2:7] is the sub-list for method input_type
|
||||
2, // [2:2] is the sub-list for extension type_name
|
||||
2, // [2:2] is the sub-list for extension extendee
|
||||
0, // [0:2] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_service_traffic_package_price_proto_init() }
|
||||
func file_service_traffic_package_price_proto_init() {
|
||||
if File_service_traffic_package_price_proto != nil {
|
||||
return
|
||||
}
|
||||
file_models_model_traffic_package_price_proto_init()
|
||||
file_models_rpc_messages_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_service_traffic_package_price_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*UpdateTrafficPackagePriceRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_traffic_package_price_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindTrafficPackagePriceRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_traffic_package_price_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindTrafficPackagePriceResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_traffic_package_price_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CountTrafficPackagePricesRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_traffic_package_price_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindTrafficPackagePricesRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_traffic_package_price_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindTrafficPackagePricesResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_traffic_package_price_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindAllTrafficPackagePricesRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_service_traffic_package_price_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*FindAllTrafficPackagePricesResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_service_traffic_package_price_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_service_traffic_package_price_proto_goTypes,
|
||||
DependencyIndexes: file_service_traffic_package_price_proto_depIdxs,
|
||||
MessageInfos: file_service_traffic_package_price_proto_msgTypes,
|
||||
}.Build()
|
||||
File_service_traffic_package_price_proto = out.File
|
||||
file_service_traffic_package_price_proto_rawDesc = nil
|
||||
file_service_traffic_package_price_proto_goTypes = nil
|
||||
file_service_traffic_package_price_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConnInterface
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion6
|
||||
|
||||
// TrafficPackagePriceServiceClient is the client API for TrafficPackagePriceService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type TrafficPackagePriceServiceClient interface {
|
||||
// 设置流量包价格
|
||||
UpdateTrafficPackagePrice(ctx context.Context, in *UpdateTrafficPackagePriceRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 获取单个流量包具体价格
|
||||
FindTrafficPackagePrice(ctx context.Context, in *FindTrafficPackagePriceRequest, opts ...grpc.CallOption) (*FindTrafficPackagePriceResponse, error)
|
||||
// 计算流量包价格项数量
|
||||
CountTrafficPackagePrices(ctx context.Context, in *CountTrafficPackagePricesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||||
// 查找流量包价格
|
||||
FindTrafficPackagePrices(ctx context.Context, in *FindTrafficPackagePricesRequest, opts ...grpc.CallOption) (*FindTrafficPackagePricesResponse, error)
|
||||
// 查找所有流量包价格
|
||||
FindAllTrafficPackagePrices(ctx context.Context, in *FindAllTrafficPackagePricesRequest, opts ...grpc.CallOption) (*FindAllTrafficPackagePricesResponse, error)
|
||||
}
|
||||
|
||||
type trafficPackagePriceServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewTrafficPackagePriceServiceClient(cc grpc.ClientConnInterface) TrafficPackagePriceServiceClient {
|
||||
return &trafficPackagePriceServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *trafficPackagePriceServiceClient) UpdateTrafficPackagePrice(ctx context.Context, in *UpdateTrafficPackagePriceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.TrafficPackagePriceService/updateTrafficPackagePrice", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *trafficPackagePriceServiceClient) FindTrafficPackagePrice(ctx context.Context, in *FindTrafficPackagePriceRequest, opts ...grpc.CallOption) (*FindTrafficPackagePriceResponse, error) {
|
||||
out := new(FindTrafficPackagePriceResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.TrafficPackagePriceService/findTrafficPackagePrice", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *trafficPackagePriceServiceClient) CountTrafficPackagePrices(ctx context.Context, in *CountTrafficPackagePricesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
||||
out := new(RPCCountResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.TrafficPackagePriceService/countTrafficPackagePrices", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *trafficPackagePriceServiceClient) FindTrafficPackagePrices(ctx context.Context, in *FindTrafficPackagePricesRequest, opts ...grpc.CallOption) (*FindTrafficPackagePricesResponse, error) {
|
||||
out := new(FindTrafficPackagePricesResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.TrafficPackagePriceService/findTrafficPackagePrices", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *trafficPackagePriceServiceClient) FindAllTrafficPackagePrices(ctx context.Context, in *FindAllTrafficPackagePricesRequest, opts ...grpc.CallOption) (*FindAllTrafficPackagePricesResponse, error) {
|
||||
out := new(FindAllTrafficPackagePricesResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.TrafficPackagePriceService/findAllTrafficPackagePrices", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// TrafficPackagePriceServiceServer is the server API for TrafficPackagePriceService service.
|
||||
type TrafficPackagePriceServiceServer interface {
|
||||
// 设置流量包价格
|
||||
UpdateTrafficPackagePrice(context.Context, *UpdateTrafficPackagePriceRequest) (*RPCSuccess, error)
|
||||
// 获取单个流量包具体价格
|
||||
FindTrafficPackagePrice(context.Context, *FindTrafficPackagePriceRequest) (*FindTrafficPackagePriceResponse, error)
|
||||
// 计算流量包价格项数量
|
||||
CountTrafficPackagePrices(context.Context, *CountTrafficPackagePricesRequest) (*RPCCountResponse, error)
|
||||
// 查找流量包价格
|
||||
FindTrafficPackagePrices(context.Context, *FindTrafficPackagePricesRequest) (*FindTrafficPackagePricesResponse, error)
|
||||
// 查找所有流量包价格
|
||||
FindAllTrafficPackagePrices(context.Context, *FindAllTrafficPackagePricesRequest) (*FindAllTrafficPackagePricesResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedTrafficPackagePriceServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedTrafficPackagePriceServiceServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedTrafficPackagePriceServiceServer) UpdateTrafficPackagePrice(context.Context, *UpdateTrafficPackagePriceRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateTrafficPackagePrice not implemented")
|
||||
}
|
||||
func (*UnimplementedTrafficPackagePriceServiceServer) FindTrafficPackagePrice(context.Context, *FindTrafficPackagePriceRequest) (*FindTrafficPackagePriceResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindTrafficPackagePrice not implemented")
|
||||
}
|
||||
func (*UnimplementedTrafficPackagePriceServiceServer) CountTrafficPackagePrices(context.Context, *CountTrafficPackagePricesRequest) (*RPCCountResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountTrafficPackagePrices not implemented")
|
||||
}
|
||||
func (*UnimplementedTrafficPackagePriceServiceServer) FindTrafficPackagePrices(context.Context, *FindTrafficPackagePricesRequest) (*FindTrafficPackagePricesResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindTrafficPackagePrices not implemented")
|
||||
}
|
||||
func (*UnimplementedTrafficPackagePriceServiceServer) FindAllTrafficPackagePrices(context.Context, *FindAllTrafficPackagePricesRequest) (*FindAllTrafficPackagePricesResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindAllTrafficPackagePrices not implemented")
|
||||
}
|
||||
|
||||
func RegisterTrafficPackagePriceServiceServer(s *grpc.Server, srv TrafficPackagePriceServiceServer) {
|
||||
s.RegisterService(&_TrafficPackagePriceService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _TrafficPackagePriceService_UpdateTrafficPackagePrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateTrafficPackagePriceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TrafficPackagePriceServiceServer).UpdateTrafficPackagePrice(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.TrafficPackagePriceService/UpdateTrafficPackagePrice",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TrafficPackagePriceServiceServer).UpdateTrafficPackagePrice(ctx, req.(*UpdateTrafficPackagePriceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TrafficPackagePriceService_FindTrafficPackagePrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindTrafficPackagePriceRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TrafficPackagePriceServiceServer).FindTrafficPackagePrice(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.TrafficPackagePriceService/FindTrafficPackagePrice",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TrafficPackagePriceServiceServer).FindTrafficPackagePrice(ctx, req.(*FindTrafficPackagePriceRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TrafficPackagePriceService_CountTrafficPackagePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CountTrafficPackagePricesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TrafficPackagePriceServiceServer).CountTrafficPackagePrices(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.TrafficPackagePriceService/CountTrafficPackagePrices",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TrafficPackagePriceServiceServer).CountTrafficPackagePrices(ctx, req.(*CountTrafficPackagePricesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TrafficPackagePriceService_FindTrafficPackagePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindTrafficPackagePricesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TrafficPackagePriceServiceServer).FindTrafficPackagePrices(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.TrafficPackagePriceService/FindTrafficPackagePrices",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TrafficPackagePriceServiceServer).FindTrafficPackagePrices(ctx, req.(*FindTrafficPackagePricesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _TrafficPackagePriceService_FindAllTrafficPackagePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindAllTrafficPackagePricesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(TrafficPackagePriceServiceServer).FindAllTrafficPackagePrices(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.TrafficPackagePriceService/FindAllTrafficPackagePrices",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(TrafficPackagePriceServiceServer).FindAllTrafficPackagePrices(ctx, req.(*FindAllTrafficPackagePricesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _TrafficPackagePriceService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "pb.TrafficPackagePriceService",
|
||||
HandlerType: (*TrafficPackagePriceServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "updateTrafficPackagePrice",
|
||||
Handler: _TrafficPackagePriceService_UpdateTrafficPackagePrice_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findTrafficPackagePrice",
|
||||
Handler: _TrafficPackagePriceService_FindTrafficPackagePrice_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "countTrafficPackagePrices",
|
||||
Handler: _TrafficPackagePriceService_CountTrafficPackagePrices_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findTrafficPackagePrices",
|
||||
Handler: _TrafficPackagePriceService_FindTrafficPackagePrices_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findAllTrafficPackagePrices",
|
||||
Handler: _TrafficPackagePriceService_FindAllTrafficPackagePrices_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "service_traffic_package_price.proto",
|
||||
}
|
||||
1105
pkg/rpc/pb/service_user_traffic_package.pb.go
Normal file
1105
pkg/rpc/pb/service_user_traffic_package.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
13
pkg/rpc/protos/models/model_traffic_package.proto
Normal file
13
pkg/rpc/protos/models/model_traffic_package.proto
Normal file
@@ -0,0 +1,13 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// 流量包
|
||||
message TrafficPackage {
|
||||
int64 id = 1;
|
||||
int32 size = 2;
|
||||
string unit = 3;
|
||||
int64 bytes = 4;
|
||||
bool isOn = 5;
|
||||
}
|
||||
13
pkg/rpc/protos/models/model_traffic_package_period.proto
Normal file
13
pkg/rpc/protos/models/model_traffic_package_period.proto
Normal file
@@ -0,0 +1,13 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// 流量包有效期
|
||||
message TrafficPackagePeriod {
|
||||
int64 id = 1;
|
||||
bool isOn = 2;
|
||||
int32 count = 3;
|
||||
string unit = 4;
|
||||
int32 months = 5;
|
||||
}
|
||||
12
pkg/rpc/protos/models/model_traffic_package_price.proto
Normal file
12
pkg/rpc/protos/models/model_traffic_package_price.proto
Normal file
@@ -0,0 +1,12 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
// 流量包价格定义
|
||||
message TrafficPackagePrice {
|
||||
int64 trafficPackageId = 1;
|
||||
int64 nodeRegionId = 2;
|
||||
int64 trafficPackagePeriodId = 3;
|
||||
float price = 4;
|
||||
}
|
||||
@@ -14,8 +14,10 @@ message UserTrafficBill {
|
||||
float bandwidthMB = 5;
|
||||
int32 bandwidthPercentile = 6;
|
||||
float trafficGB = 7;
|
||||
float pricePerUnit = 8;
|
||||
string priceType = 9;
|
||||
float trafficPackageGB = 8;
|
||||
repeated int64 userTrafficPackageIds = 9;
|
||||
float pricePerUnit = 10;
|
||||
string priceType = 11;
|
||||
|
||||
NodeRegion nodeRegion = 30;
|
||||
}
|
||||
29
pkg/rpc/protos/models/model_user_traffic_package.proto
Normal file
29
pkg/rpc/protos/models/model_user_traffic_package.proto
Normal file
@@ -0,0 +1,29 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_node_region.proto";
|
||||
import "models/model_traffic_package.proto";
|
||||
import "models/model_user.proto";
|
||||
|
||||
// 用户流量包
|
||||
message UserTrafficPackage {
|
||||
int64 id = 1;
|
||||
int64 userId = 2;
|
||||
int64 trafficPackageId = 3;
|
||||
int64 totalBytes = 4;
|
||||
int64 usedBytes = 5;
|
||||
int64 nodeRegionId = 6;
|
||||
int64 trafficPackagePeriodId = 7;
|
||||
int32 trafficPackagePeriodCount = 8;
|
||||
string trafficPackagePeriodUnit = 9;
|
||||
string dayFrom = 10;
|
||||
string dayTo = 11;
|
||||
int64 createdAt = 12;
|
||||
|
||||
TrafficPackage trafficPackage = 30;
|
||||
NodeRegion nodeRegion = 31;
|
||||
User user = 32;
|
||||
bool canDelete = 33;
|
||||
}
|
||||
76
pkg/rpc/protos/service_traffic_package.proto
Normal file
76
pkg/rpc/protos/service_traffic_package.proto
Normal file
@@ -0,0 +1,76 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_traffic_package.proto";
|
||||
import "models/rpc_messages.proto";
|
||||
|
||||
// 流量包服务
|
||||
service TrafficPackageService {
|
||||
// 创建流量包
|
||||
rpc createTrafficPackage(CreateTrafficPackageRequest) returns (CreateTrafficPackageResponse);
|
||||
|
||||
// 修改流量包
|
||||
rpc updateTrafficPackage(UpdateTrafficPackageRequest) returns (RPCSuccess);
|
||||
|
||||
// 删除流量包
|
||||
rpc deleteTrafficPackage(DeleteTrafficPackageRequest) returns (RPCSuccess);
|
||||
|
||||
// 查找流量包
|
||||
rpc findTrafficPackage(FindTrafficPackageRequest) returns (FindTrafficPackageResponse);
|
||||
|
||||
// 查找所有流量包
|
||||
rpc findAllTrafficPackages(FindAllTrafficPackagesRequest) returns (FindAllTrafficPackagesResponse);
|
||||
|
||||
// 查找所有可用流量包
|
||||
rpc findAllAvailableTrafficPackages(FindAllAvailableTrafficPackagesRequest) returns (FindAllAvailableTrafficPackagesResponse);
|
||||
}
|
||||
|
||||
// 创建流量包
|
||||
message CreateTrafficPackageRequest {
|
||||
int32 size = 1; // 流量包尺寸
|
||||
string unit = 2; // 单位:gb, tb, pb
|
||||
}
|
||||
|
||||
message CreateTrafficPackageResponse {
|
||||
int64 trafficPackageId = 1;
|
||||
}
|
||||
|
||||
// 修改流量包
|
||||
message UpdateTrafficPackageRequest {
|
||||
int64 trafficPackageId = 1;
|
||||
bool isOn = 2;
|
||||
}
|
||||
|
||||
// 删除流量包
|
||||
message DeleteTrafficPackageRequest {
|
||||
int64 trafficPackageId = 1;
|
||||
}
|
||||
|
||||
// 查找流量包
|
||||
message FindTrafficPackageRequest {
|
||||
int64 trafficPackageId = 1;
|
||||
}
|
||||
|
||||
message FindTrafficPackageResponse {
|
||||
TrafficPackage trafficPackage = 1;
|
||||
}
|
||||
|
||||
// 查找所有流量包
|
||||
message FindAllTrafficPackagesRequest {
|
||||
|
||||
}
|
||||
|
||||
message FindAllTrafficPackagesResponse {
|
||||
repeated TrafficPackage trafficPackages = 1;
|
||||
}
|
||||
|
||||
// 查找所有可用流量包
|
||||
message FindAllAvailableTrafficPackagesRequest {
|
||||
|
||||
}
|
||||
|
||||
message FindAllAvailableTrafficPackagesResponse {
|
||||
repeated TrafficPackage trafficPackages = 1;
|
||||
}
|
||||
76
pkg/rpc/protos/service_traffic_package_period.proto
Normal file
76
pkg/rpc/protos/service_traffic_package_period.proto
Normal file
@@ -0,0 +1,76 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_traffic_package_period.proto";
|
||||
import "models/rpc_messages.proto";
|
||||
|
||||
// 流量包有效期服务
|
||||
service TrafficPackagePeriodService {
|
||||
// 创建有效期
|
||||
rpc createTrafficPackagePeriod(CreateTrafficPackagePeriodRequest) returns (CreateTrafficPackagePeriodResponse);
|
||||
|
||||
// 修改有效期
|
||||
rpc updateTrafficPackagePeriod(UpdateTrafficPackagePeriodRequest) returns (RPCSuccess);
|
||||
|
||||
// 删除有效期
|
||||
rpc deleteTrafficPackagePeriod(DeleteTrafficPackagePeriodRequest) returns (RPCSuccess);
|
||||
|
||||
// 查找有效期
|
||||
rpc findTrafficPackagePeriod(FindTrafficPackagePeriodRequest) returns (FindTrafficPackagePeriodResponse);
|
||||
|
||||
// 列出所有有效期
|
||||
rpc findAllTrafficPackagePeriods(FindAllTrafficPackagePeriodsRequest) returns (FindAllTrafficPackagePeriodsResponse);
|
||||
|
||||
// 列出所有可用有效期
|
||||
rpc findAllAvailableTrafficPackagePeriods(FindAllAvailableTrafficPackagePeriodsRequest) returns (FindAllAvailableTrafficPackagePeriodsResponse);
|
||||
}
|
||||
|
||||
// 创建有效期
|
||||
message CreateTrafficPackagePeriodRequest {
|
||||
int32 count = 1;
|
||||
string unit = 2; // month | year
|
||||
}
|
||||
|
||||
message CreateTrafficPackagePeriodResponse {
|
||||
int64 trafficPackagePeriodId = 1;
|
||||
}
|
||||
|
||||
// 修改有效期
|
||||
message UpdateTrafficPackagePeriodRequest {
|
||||
int64 trafficPackagePeriodId = 1;
|
||||
bool isOn = 2;
|
||||
}
|
||||
|
||||
// 删除有效期
|
||||
message DeleteTrafficPackagePeriodRequest {
|
||||
int64 trafficPackagePeriodId = 1;
|
||||
}
|
||||
|
||||
// 查找有效期
|
||||
message FindTrafficPackagePeriodRequest {
|
||||
int64 trafficPackagePeriodId = 1;
|
||||
}
|
||||
|
||||
message FindTrafficPackagePeriodResponse {
|
||||
TrafficPackagePeriod trafficPackagePeriod = 1;
|
||||
}
|
||||
|
||||
// 列出所有有效期
|
||||
message FindAllTrafficPackagePeriodsRequest {
|
||||
|
||||
}
|
||||
|
||||
message FindAllTrafficPackagePeriodsResponse {
|
||||
repeated TrafficPackagePeriod trafficPackagePeriods = 1;
|
||||
}
|
||||
|
||||
// 列出所有可用有效期
|
||||
message FindAllAvailableTrafficPackagePeriodsRequest {
|
||||
|
||||
}
|
||||
|
||||
message FindAllAvailableTrafficPackagePeriodsResponse {
|
||||
repeated TrafficPackagePeriod trafficPackagePeriods = 1;
|
||||
}
|
||||
69
pkg/rpc/protos/service_traffic_package_price.proto
Normal file
69
pkg/rpc/protos/service_traffic_package_price.proto
Normal file
@@ -0,0 +1,69 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_traffic_package_price.proto";
|
||||
import "models/rpc_messages.proto";
|
||||
|
||||
// 流量包价格服务
|
||||
service TrafficPackagePriceService {
|
||||
// 设置流量包价格
|
||||
rpc updateTrafficPackagePrice(UpdateTrafficPackagePriceRequest) returns (RPCSuccess);
|
||||
|
||||
// 获取单个流量包具体价格
|
||||
rpc findTrafficPackagePrice(FindTrafficPackagePriceRequest) returns (FindTrafficPackagePriceResponse);
|
||||
|
||||
// 计算流量包价格项数量
|
||||
rpc countTrafficPackagePrices(CountTrafficPackagePricesRequest) returns (RPCCountResponse);
|
||||
|
||||
// 查找流量包价格
|
||||
rpc findTrafficPackagePrices(FindTrafficPackagePricesRequest) returns (FindTrafficPackagePricesResponse);
|
||||
|
||||
// 查找所有流量包价格
|
||||
rpc findAllTrafficPackagePrices(FindAllTrafficPackagePricesRequest) returns (FindAllTrafficPackagePricesResponse);
|
||||
}
|
||||
|
||||
// 设置流量包价格
|
||||
message UpdateTrafficPackagePriceRequest {
|
||||
int64 trafficPackageId = 1;
|
||||
int64 nodeRegionId = 2;
|
||||
int64 trafficPackagePeriodId = 3;
|
||||
float price = 4;
|
||||
}
|
||||
|
||||
// 获取单个流量包具体价格
|
||||
message FindTrafficPackagePriceRequest {
|
||||
int64 trafficPackageId = 1;
|
||||
int64 nodeRegionId = 2;
|
||||
int64 trafficPackagePeriodId = 3;
|
||||
int32 count = 4;
|
||||
}
|
||||
|
||||
message FindTrafficPackagePriceResponse {
|
||||
float price = 1; // 单价
|
||||
float amount = 2; // 总价
|
||||
}
|
||||
|
||||
// 计算流量包价格项数量
|
||||
message CountTrafficPackagePricesRequest {
|
||||
int64 trafficPackageId = 1;
|
||||
}
|
||||
|
||||
// 查找流量包价格
|
||||
message FindTrafficPackagePricesRequest {
|
||||
int64 trafficPackageId = 1;
|
||||
}
|
||||
|
||||
message FindTrafficPackagePricesResponse {
|
||||
repeated TrafficPackagePrice trafficPackagePrices = 1;
|
||||
}
|
||||
|
||||
// 查找所有流量包价格
|
||||
message FindAllTrafficPackagePricesRequest {
|
||||
|
||||
}
|
||||
|
||||
message FindAllTrafficPackagePricesResponse {
|
||||
repeated TrafficPackagePrice trafficPackagePrices = 1;
|
||||
}
|
||||
82
pkg/rpc/protos/service_user_traffic_package.proto
Normal file
82
pkg/rpc/protos/service_user_traffic_package.proto
Normal file
@@ -0,0 +1,82 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_user_traffic_package.proto";
|
||||
import "models/rpc_messages.proto";
|
||||
|
||||
// 用户流量包服务
|
||||
service UserTrafficPackageService {
|
||||
// 创建用户流量包
|
||||
rpc createUserTrafficPackage(CreateUserTrafficPackageRequest) returns (CreateUserTrafficPackageResponse);
|
||||
|
||||
// 购买用户流量包
|
||||
rpc buyUserTrafficPackage(BuyUserTrafficPackageRequest) returns (BuyUserTrafficPackageResponse);
|
||||
|
||||
// 查询当前流量包数量
|
||||
rpc countUserTrafficPackages(CountUserTrafficPackagesRequest) returns (RPCCountResponse);
|
||||
|
||||
// 列出单页流量包
|
||||
rpc listUserTrafficPackages(ListUserTrafficPackagesRequest) returns (ListUserTrafficPackagesResponse);
|
||||
|
||||
// 删除流量包
|
||||
rpc deleteUserTrafficPackage(DeleteUserTrafficPackageRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 创建用户流量包
|
||||
message CreateUserTrafficPackageRequest {
|
||||
int64 userId = 1;
|
||||
int64 trafficPackageId = 2;
|
||||
int64 nodeRegionId = 3;
|
||||
int64 trafficPackagePeriodId = 4;
|
||||
int32 count = 5;
|
||||
}
|
||||
|
||||
message CreateUserTrafficPackageResponse {
|
||||
repeated int64 userTrafficPackageIds = 1;
|
||||
}
|
||||
|
||||
// 购买用户流量包
|
||||
message BuyUserTrafficPackageRequest {
|
||||
int64 userId = 1;
|
||||
int64 trafficPackageId = 2;
|
||||
int64 nodeRegionId = 3;
|
||||
int64 trafficPackagePeriodId = 4;
|
||||
int32 count = 5;
|
||||
}
|
||||
|
||||
message BuyUserTrafficPackageResponse {
|
||||
repeated int64 userTrafficPackageIds = 1;
|
||||
}
|
||||
|
||||
// 查询当前流量包数量
|
||||
message CountUserTrafficPackagesRequest {
|
||||
int64 trafficPackageId = 1;
|
||||
int64 userId = 2;
|
||||
int64 nodeRegionId = 3;
|
||||
int64 trafficPackagePeriodId = 4;
|
||||
string expiresDay = 5;
|
||||
bool availableOnly = 6; // 是否只查询有效的流量包
|
||||
}
|
||||
|
||||
// 列出单页流量包
|
||||
message ListUserTrafficPackagesRequest {
|
||||
int64 trafficPackageId = 1;
|
||||
int64 userId = 2;
|
||||
int64 nodeRegionId = 3;
|
||||
int64 trafficPackagePeriodId = 4;
|
||||
string expiresDay = 5;
|
||||
bool availableOnly = 6; // 是否只查询有效的流量包
|
||||
int64 offset = 7;
|
||||
int64 size = 8;
|
||||
}
|
||||
|
||||
message ListUserTrafficPackagesResponse {
|
||||
repeated UserTrafficPackage userTrafficPackages = 1;
|
||||
}
|
||||
|
||||
// 删除流量包
|
||||
message DeleteUserTrafficPackageRequest {
|
||||
int64 userTrafficPackageId = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user