增加高防相应对象

This commit is contained in:
刘祥超
2023-02-22 17:36:41 +08:00
parent d03775957e
commit 23db1c4b77
26 changed files with 10271 additions and 7 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,176 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_ad_network.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 ADNetwork 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"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
}
func (x *ADNetwork) Reset() {
*x = ADNetwork{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_ad_network_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ADNetwork) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ADNetwork) ProtoMessage() {}
func (x *ADNetwork) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ad_network_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 ADNetwork.ProtoReflect.Descriptor instead.
func (*ADNetwork) Descriptor() ([]byte, []int) {
return file_models_model_ad_network_proto_rawDescGZIP(), []int{0}
}
func (x *ADNetwork) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *ADNetwork) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
func (x *ADNetwork) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ADNetwork) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
var File_models_model_ad_network_proto protoreflect.FileDescriptor
var file_models_model_ad_network_proto_rawDesc = []byte{
0x0a, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61,
0x64, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x02, 0x70, 0x62, 0x22, 0x65, 0x0a, 0x09, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
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, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_ad_network_proto_rawDescOnce sync.Once
file_models_model_ad_network_proto_rawDescData = file_models_model_ad_network_proto_rawDesc
)
func file_models_model_ad_network_proto_rawDescGZIP() []byte {
file_models_model_ad_network_proto_rawDescOnce.Do(func() {
file_models_model_ad_network_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ad_network_proto_rawDescData)
})
return file_models_model_ad_network_proto_rawDescData
}
var file_models_model_ad_network_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_ad_network_proto_goTypes = []interface{}{
(*ADNetwork)(nil), // 0: pb.ADNetwork
}
var file_models_model_ad_network_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_ad_network_proto_init() }
func file_models_model_ad_network_proto_init() {
if File_models_model_ad_network_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_models_model_ad_network_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ADNetwork); 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_ad_network_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_ad_network_proto_goTypes,
DependencyIndexes: file_models_model_ad_network_proto_depIdxs,
MessageInfos: file_models_model_ad_network_proto_msgTypes,
}.Build()
File_models_model_ad_network_proto = out.File
file_models_model_ad_network_proto_rawDesc = nil
file_models_model_ad_network_proto_goTypes = nil
file_models_model_ad_network_proto_depIdxs = nil
}

View File

@@ -0,0 +1,250 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_ad_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 ADPackage 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"`
AdNetworkId int64 `protobuf:"varint,3,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"`
ProtectionBandwidthSize int32 `protobuf:"varint,4,opt,name=protectionBandwidthSize,proto3" json:"protectionBandwidthSize,omitempty"`
ProtectionBandwidthUnit string `protobuf:"bytes,5,opt,name=protectionBandwidthUnit,proto3" json:"protectionBandwidthUnit,omitempty"`
ServerBandwidthSize int32 `protobuf:"varint,6,opt,name=serverBandwidthSize,proto3" json:"serverBandwidthSize,omitempty"`
ServerBandwidthUnit string `protobuf:"bytes,7,opt,name=serverBandwidthUnit,proto3" json:"serverBandwidthUnit,omitempty"`
AdNetwork *ADNetwork `protobuf:"bytes,30,opt,name=adNetwork,proto3" json:"adNetwork,omitempty"`
Summary string `protobuf:"bytes,31,opt,name=summary,proto3" json:"summary,omitempty"` // 概述
CountIdleADPackageInstances int64 `protobuf:"varint,32,opt,name=countIdleADPackageInstances,proto3" json:"countIdleADPackageInstances,omitempty"` // 剩余可用的实例数,只有在获取可用高防产品的时候才会返回
}
func (x *ADPackage) Reset() {
*x = ADPackage{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_ad_package_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ADPackage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ADPackage) ProtoMessage() {}
func (x *ADPackage) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ad_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 ADPackage.ProtoReflect.Descriptor instead.
func (*ADPackage) Descriptor() ([]byte, []int) {
return file_models_model_ad_package_proto_rawDescGZIP(), []int{0}
}
func (x *ADPackage) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *ADPackage) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
func (x *ADPackage) GetAdNetworkId() int64 {
if x != nil {
return x.AdNetworkId
}
return 0
}
func (x *ADPackage) GetProtectionBandwidthSize() int32 {
if x != nil {
return x.ProtectionBandwidthSize
}
return 0
}
func (x *ADPackage) GetProtectionBandwidthUnit() string {
if x != nil {
return x.ProtectionBandwidthUnit
}
return ""
}
func (x *ADPackage) GetServerBandwidthSize() int32 {
if x != nil {
return x.ServerBandwidthSize
}
return 0
}
func (x *ADPackage) GetServerBandwidthUnit() string {
if x != nil {
return x.ServerBandwidthUnit
}
return ""
}
func (x *ADPackage) GetAdNetwork() *ADNetwork {
if x != nil {
return x.AdNetwork
}
return nil
}
func (x *ADPackage) GetSummary() string {
if x != nil {
return x.Summary
}
return ""
}
func (x *ADPackage) GetCountIdleADPackageInstances() int64 {
if x != nil {
return x.CountIdleADPackageInstances
}
return 0
}
var File_models_model_ad_package_proto protoreflect.FileDescriptor
var file_models_model_ad_package_proto_rawDesc = []byte{
0x0a, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61,
0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x02, 0x70, 0x62, 0x1a, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x5f, 0x61, 0x64, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0xb2, 0x03, 0x0a, 0x09, 0x41, 0x44, 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, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04,
0x69, 0x73, 0x4f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72,
0x6b, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74,
0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a,
0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74,
0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65,
0x12, 0x38, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61,
0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
0x09, 0x52, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e,
0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x73, 0x65,
0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a,
0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42,
0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x30, 0x0a, 0x13,
0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55,
0x6e, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65,
0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x2b,
0x0a, 0x09, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x1e, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
0x52, 0x09, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x73,
0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75,
0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x40, 0x0a, 0x1b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61,
0x6e, 0x63, 0x65, 0x73, 0x18, 0x20, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1b, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e,
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_ad_package_proto_rawDescOnce sync.Once
file_models_model_ad_package_proto_rawDescData = file_models_model_ad_package_proto_rawDesc
)
func file_models_model_ad_package_proto_rawDescGZIP() []byte {
file_models_model_ad_package_proto_rawDescOnce.Do(func() {
file_models_model_ad_package_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ad_package_proto_rawDescData)
})
return file_models_model_ad_package_proto_rawDescData
}
var file_models_model_ad_package_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_ad_package_proto_goTypes = []interface{}{
(*ADPackage)(nil), // 0: pb.ADPackage
(*ADNetwork)(nil), // 1: pb.ADNetwork
}
var file_models_model_ad_package_proto_depIdxs = []int32{
1, // 0: pb.ADPackage.adNetwork:type_name -> pb.ADNetwork
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_models_model_ad_package_proto_init() }
func file_models_model_ad_package_proto_init() {
if File_models_model_ad_package_proto != nil {
return
}
file_models_model_ad_network_proto_init()
if !protoimpl.UnsafeEnabled {
file_models_model_ad_package_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ADPackage); 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_ad_package_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_ad_package_proto_goTypes,
DependencyIndexes: file_models_model_ad_package_proto_depIdxs,
MessageInfos: file_models_model_ad_package_proto_msgTypes,
}.Build()
File_models_model_ad_package_proto = out.File
file_models_model_ad_package_proto_rawDesc = nil
file_models_model_ad_package_proto_goTypes = nil
file_models_model_ad_package_proto_depIdxs = nil
}

View File

@@ -0,0 +1,274 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_ad_package_instance.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 ADPackageInstance 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"`
AdPackageId int64 `protobuf:"varint,3,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
NodeClusterId int64 `protobuf:"varint,4,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"`
NodeIds []int64 `protobuf:"varint,5,rep,packed,name=nodeIds,proto3" json:"nodeIds,omitempty"`
IpAddresses []string `protobuf:"bytes,6,rep,name=ipAddresses,proto3" json:"ipAddresses,omitempty"`
UserId int64 `protobuf:"varint,7,opt,name=userId,proto3" json:"userId,omitempty"` // 租用用户ID
UserDayTo string `protobuf:"bytes,8,opt,name=userDayTo,proto3" json:"userDayTo,omitempty"` // 租用日期
UserInstanceId int64 `protobuf:"varint,9,opt,name=userInstanceId,proto3" json:"userInstanceId,omitempty"` // 当前绑定的用户实例ID
NodeCluster *NodeCluster `protobuf:"bytes,30,opt,name=nodeCluster,proto3" json:"nodeCluster,omitempty"`
AdPackage *ADPackage `protobuf:"bytes,31,opt,name=adPackage,proto3" json:"adPackage,omitempty"`
User *User `protobuf:"bytes,32,opt,name=user,proto3" json:"user,omitempty"`
}
func (x *ADPackageInstance) Reset() {
*x = ADPackageInstance{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_ad_package_instance_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ADPackageInstance) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ADPackageInstance) ProtoMessage() {}
func (x *ADPackageInstance) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ad_package_instance_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 ADPackageInstance.ProtoReflect.Descriptor instead.
func (*ADPackageInstance) Descriptor() ([]byte, []int) {
return file_models_model_ad_package_instance_proto_rawDescGZIP(), []int{0}
}
func (x *ADPackageInstance) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *ADPackageInstance) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
func (x *ADPackageInstance) GetAdPackageId() int64 {
if x != nil {
return x.AdPackageId
}
return 0
}
func (x *ADPackageInstance) GetNodeClusterId() int64 {
if x != nil {
return x.NodeClusterId
}
return 0
}
func (x *ADPackageInstance) GetNodeIds() []int64 {
if x != nil {
return x.NodeIds
}
return nil
}
func (x *ADPackageInstance) GetIpAddresses() []string {
if x != nil {
return x.IpAddresses
}
return nil
}
func (x *ADPackageInstance) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *ADPackageInstance) GetUserDayTo() string {
if x != nil {
return x.UserDayTo
}
return ""
}
func (x *ADPackageInstance) GetUserInstanceId() int64 {
if x != nil {
return x.UserInstanceId
}
return 0
}
func (x *ADPackageInstance) GetNodeCluster() *NodeCluster {
if x != nil {
return x.NodeCluster
}
return nil
}
func (x *ADPackageInstance) GetAdPackage() *ADPackage {
if x != nil {
return x.AdPackage
}
return nil
}
func (x *ADPackageInstance) GetUser() *User {
if x != nil {
return x.User
}
return nil
}
var File_models_model_ad_package_instance_proto protoreflect.FileDescriptor
var file_models_model_ad_package_instance_proto_rawDesc = []byte{
0x0a, 0x26, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61,
0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1f, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f,
0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 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, 0x97, 0x03, 0x0a, 0x11, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b,
0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 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,
0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x03,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49,
0x64, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c,
0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49,
0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64,
0x73, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73,
0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x07, 0x20,
0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x75,
0x73, 0x65, 0x72, 0x44, 0x61, 0x79, 0x54, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x75, 0x73, 0x65, 0x72, 0x44, 0x61, 0x79, 0x54, 0x6f, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65,
0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28,
0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49,
0x64, 0x12, 0x31, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65,
0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75,
0x73, 0x74, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x09, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67,
0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50,
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x09, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67,
0x65, 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, 0x42,
0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_ad_package_instance_proto_rawDescOnce sync.Once
file_models_model_ad_package_instance_proto_rawDescData = file_models_model_ad_package_instance_proto_rawDesc
)
func file_models_model_ad_package_instance_proto_rawDescGZIP() []byte {
file_models_model_ad_package_instance_proto_rawDescOnce.Do(func() {
file_models_model_ad_package_instance_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ad_package_instance_proto_rawDescData)
})
return file_models_model_ad_package_instance_proto_rawDescData
}
var file_models_model_ad_package_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_ad_package_instance_proto_goTypes = []interface{}{
(*ADPackageInstance)(nil), // 0: pb.ADPackageInstance
(*NodeCluster)(nil), // 1: pb.NodeCluster
(*ADPackage)(nil), // 2: pb.ADPackage
(*User)(nil), // 3: pb.User
}
var file_models_model_ad_package_instance_proto_depIdxs = []int32{
1, // 0: pb.ADPackageInstance.nodeCluster:type_name -> pb.NodeCluster
2, // 1: pb.ADPackageInstance.adPackage:type_name -> pb.ADPackage
3, // 2: pb.ADPackageInstance.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_ad_package_instance_proto_init() }
func file_models_model_ad_package_instance_proto_init() {
if File_models_model_ad_package_instance_proto != nil {
return
}
file_models_model_node_cluster_proto_init()
file_models_model_ad_package_proto_init()
file_models_model_user_proto_init()
if !protoimpl.UnsafeEnabled {
file_models_model_ad_package_instance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ADPackageInstance); 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_ad_package_instance_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_ad_package_instance_proto_goTypes,
DependencyIndexes: file_models_model_ad_package_instance_proto_depIdxs,
MessageInfos: file_models_model_ad_package_instance_proto_msgTypes,
}.Build()
File_models_model_ad_package_instance_proto = out.File
file_models_model_ad_package_instance_proto_rawDesc = nil
file_models_model_ad_package_instance_proto_goTypes = nil
file_models_model_ad_package_instance_proto_depIdxs = nil
}

View 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_ad_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 ADPackagePeriod 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 *ADPackagePeriod) Reset() {
*x = ADPackagePeriod{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_ad_package_period_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ADPackagePeriod) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ADPackagePeriod) ProtoMessage() {}
func (x *ADPackagePeriod) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ad_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 ADPackagePeriod.ProtoReflect.Descriptor instead.
func (*ADPackagePeriod) Descriptor() ([]byte, []int) {
return file_models_model_ad_package_period_proto_rawDescGZIP(), []int{0}
}
func (x *ADPackagePeriod) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *ADPackagePeriod) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
func (x *ADPackagePeriod) GetCount() int32 {
if x != nil {
return x.Count
}
return 0
}
func (x *ADPackagePeriod) GetUnit() string {
if x != nil {
return x.Unit
}
return ""
}
func (x *ADPackagePeriod) GetMonths() int32 {
if x != nil {
return x.Months
}
return 0
}
var File_models_model_ad_package_period_proto protoreflect.FileDescriptor
var file_models_model_ad_package_period_proto_rawDesc = []byte{
0x0a, 0x24, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61,
0x64, 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, 0x77, 0x0a, 0x0f, 0x41, 0x44,
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_ad_package_period_proto_rawDescOnce sync.Once
file_models_model_ad_package_period_proto_rawDescData = file_models_model_ad_package_period_proto_rawDesc
)
func file_models_model_ad_package_period_proto_rawDescGZIP() []byte {
file_models_model_ad_package_period_proto_rawDescOnce.Do(func() {
file_models_model_ad_package_period_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ad_package_period_proto_rawDescData)
})
return file_models_model_ad_package_period_proto_rawDescData
}
var file_models_model_ad_package_period_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_ad_package_period_proto_goTypes = []interface{}{
(*ADPackagePeriod)(nil), // 0: pb.ADPackagePeriod
}
var file_models_model_ad_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_ad_package_period_proto_init() }
func file_models_model_ad_package_period_proto_init() {
if File_models_model_ad_package_period_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_models_model_ad_package_period_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ADPackagePeriod); 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_ad_package_period_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_ad_package_period_proto_goTypes,
DependencyIndexes: file_models_model_ad_package_period_proto_depIdxs,
MessageInfos: file_models_model_ad_package_period_proto_msgTypes,
}.Build()
File_models_model_ad_package_period_proto = out.File
file_models_model_ad_package_period_proto_rawDesc = nil
file_models_model_ad_package_period_proto_goTypes = nil
file_models_model_ad_package_period_proto_depIdxs = nil
}

View File

@@ -0,0 +1,170 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_ad_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 ADPackagePrice struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
AdPackagePeriodId int64 `protobuf:"varint,2,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"`
Price float64 `protobuf:"fixed64,3,opt,name=price,proto3" json:"price,omitempty"`
}
func (x *ADPackagePrice) Reset() {
*x = ADPackagePrice{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_ad_package_price_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ADPackagePrice) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ADPackagePrice) ProtoMessage() {}
func (x *ADPackagePrice) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ad_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 ADPackagePrice.ProtoReflect.Descriptor instead.
func (*ADPackagePrice) Descriptor() ([]byte, []int) {
return file_models_model_ad_package_price_proto_rawDescGZIP(), []int{0}
}
func (x *ADPackagePrice) GetAdPackageId() int64 {
if x != nil {
return x.AdPackageId
}
return 0
}
func (x *ADPackagePrice) GetAdPackagePeriodId() int64 {
if x != nil {
return x.AdPackagePeriodId
}
return 0
}
func (x *ADPackagePrice) GetPrice() float64 {
if x != nil {
return x.Price
}
return 0
}
var File_models_model_ad_package_price_proto protoreflect.FileDescriptor
var file_models_model_ad_package_price_proto_rawDesc = []byte{
0x0a, 0x23, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61,
0x64, 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, 0x76, 0x0a, 0x0e, 0x41, 0x44, 0x50,
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61,
0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a,
0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64,
0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 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, 0x03, 0x20, 0x01, 0x28, 0x01, 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_ad_package_price_proto_rawDescOnce sync.Once
file_models_model_ad_package_price_proto_rawDescData = file_models_model_ad_package_price_proto_rawDesc
)
func file_models_model_ad_package_price_proto_rawDescGZIP() []byte {
file_models_model_ad_package_price_proto_rawDescOnce.Do(func() {
file_models_model_ad_package_price_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ad_package_price_proto_rawDescData)
})
return file_models_model_ad_package_price_proto_rawDescData
}
var file_models_model_ad_package_price_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_ad_package_price_proto_goTypes = []interface{}{
(*ADPackagePrice)(nil), // 0: pb.ADPackagePrice
}
var file_models_model_ad_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_ad_package_price_proto_init() }
func file_models_model_ad_package_price_proto_init() {
if File_models_model_ad_package_price_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_models_model_ad_package_price_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ADPackagePrice); 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_ad_package_price_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_ad_package_price_proto_goTypes,
DependencyIndexes: file_models_model_ad_package_price_proto_depIdxs,
MessageInfos: file_models_model_ad_package_price_proto_msgTypes,
}.Build()
File_models_model_ad_package_price_proto = out.File
file_models_model_ad_package_price_proto_rawDesc = nil
file_models_model_ad_package_price_proto_goTypes = nil
file_models_model_ad_package_price_proto_depIdxs = nil
}

View File

@@ -0,0 +1,324 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_user_ad_instance.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 UserADInstance 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"`
AdPackageInstanceId int64 `protobuf:"varint,3,opt,name=adPackageInstanceId,proto3" json:"adPackageInstanceId,omitempty"`
AdPackagePeriodId int64 `protobuf:"varint,4,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"`
AdPackagePeriodCount int32 `protobuf:"varint,5,opt,name=adPackagePeriodCount,proto3" json:"adPackagePeriodCount,omitempty"`
AdPackagePeriodUnit string `protobuf:"bytes,6,opt,name=adPackagePeriodUnit,proto3" json:"adPackagePeriodUnit,omitempty"`
DayFrom string `protobuf:"bytes,7,opt,name=dayFrom,proto3" json:"dayFrom,omitempty"` // 开始日期格式YYYYMMDD
DayTo string `protobuf:"bytes,8,opt,name=dayTo,proto3" json:"dayTo,omitempty"` // 结束日期格式YYYYMMDD
CreatedAt int64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
MaxObjects int32 `protobuf:"varint,10,opt,name=maxObjects,proto3" json:"maxObjects,omitempty"`
ObjectCodes []string `protobuf:"bytes,11,rep,name=objectCodes,proto3" json:"objectCodes,omitempty"`
AdPackageInstance *ADPackageInstance `protobuf:"bytes,30,opt,name=adPackageInstance,proto3" json:"adPackageInstance,omitempty"`
User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"`
CanDelete bool `protobuf:"varint,32,opt,name=canDelete,proto3" json:"canDelete,omitempty"`
IsAvailable bool `protobuf:"varint,33,opt,name=isAvailable,proto3" json:"isAvailable,omitempty"` // 当前是否在生效中
CountObjects int32 `protobuf:"varint,34,opt,name=countObjects,proto3" json:"countObjects,omitempty"` // 防护对象数量
ObjectsJSON []byte `protobuf:"bytes,35,opt,name=objectsJSON,proto3" json:"objectsJSON,omitempty"` // 对象JSON
}
func (x *UserADInstance) Reset() {
*x = UserADInstance{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_user_ad_instance_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserADInstance) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserADInstance) ProtoMessage() {}
func (x *UserADInstance) ProtoReflect() protoreflect.Message {
mi := &file_models_model_user_ad_instance_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 UserADInstance.ProtoReflect.Descriptor instead.
func (*UserADInstance) Descriptor() ([]byte, []int) {
return file_models_model_user_ad_instance_proto_rawDescGZIP(), []int{0}
}
func (x *UserADInstance) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *UserADInstance) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *UserADInstance) GetAdPackageInstanceId() int64 {
if x != nil {
return x.AdPackageInstanceId
}
return 0
}
func (x *UserADInstance) GetAdPackagePeriodId() int64 {
if x != nil {
return x.AdPackagePeriodId
}
return 0
}
func (x *UserADInstance) GetAdPackagePeriodCount() int32 {
if x != nil {
return x.AdPackagePeriodCount
}
return 0
}
func (x *UserADInstance) GetAdPackagePeriodUnit() string {
if x != nil {
return x.AdPackagePeriodUnit
}
return ""
}
func (x *UserADInstance) GetDayFrom() string {
if x != nil {
return x.DayFrom
}
return ""
}
func (x *UserADInstance) GetDayTo() string {
if x != nil {
return x.DayTo
}
return ""
}
func (x *UserADInstance) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *UserADInstance) GetMaxObjects() int32 {
if x != nil {
return x.MaxObjects
}
return 0
}
func (x *UserADInstance) GetObjectCodes() []string {
if x != nil {
return x.ObjectCodes
}
return nil
}
func (x *UserADInstance) GetAdPackageInstance() *ADPackageInstance {
if x != nil {
return x.AdPackageInstance
}
return nil
}
func (x *UserADInstance) GetUser() *User {
if x != nil {
return x.User
}
return nil
}
func (x *UserADInstance) GetCanDelete() bool {
if x != nil {
return x.CanDelete
}
return false
}
func (x *UserADInstance) GetIsAvailable() bool {
if x != nil {
return x.IsAvailable
}
return false
}
func (x *UserADInstance) GetCountObjects() int32 {
if x != nil {
return x.CountObjects
}
return 0
}
func (x *UserADInstance) GetObjectsJSON() []byte {
if x != nil {
return x.ObjectsJSON
}
return nil
}
var File_models_model_user_ad_instance_proto protoreflect.FileDescriptor
var file_models_model_user_ad_instance_proto_rawDesc = []byte{
0x0a, 0x23, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75,
0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x26, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61,
0x67, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 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, 0xf7, 0x04, 0x0a, 0x0e, 0x55,
0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 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, 0x30, 0x0a, 0x13, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61,
0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01,
0x28, 0x03, 0x52, 0x13, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73,
0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63,
0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01,
0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72,
0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x14, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61,
0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20,
0x01, 0x28, 0x05, 0x52, 0x14, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65,
0x72, 0x69, 0x6f, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x64, 0x50,
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74,
0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x61, 0x64, 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, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x61,
0x79, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x18, 0x08,
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, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x61, 0x78,
0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6d,
0x61, 0x78, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x62, 0x6a,
0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b,
0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x11, 0x61,
0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61,
0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x11, 0x61,
0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x1f, 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, 0x20, 0x20, 0x01, 0x28,
0x08, 0x52, 0x09, 0x63, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b,
0x69, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x21, 0x20, 0x01, 0x28,
0x08, 0x52, 0x0b, 0x69, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x22,
0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x22,
0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63,
0x74, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x4a, 0x53, 0x4f,
0x4e, 0x18, 0x23, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73,
0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_user_ad_instance_proto_rawDescOnce sync.Once
file_models_model_user_ad_instance_proto_rawDescData = file_models_model_user_ad_instance_proto_rawDesc
)
func file_models_model_user_ad_instance_proto_rawDescGZIP() []byte {
file_models_model_user_ad_instance_proto_rawDescOnce.Do(func() {
file_models_model_user_ad_instance_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_user_ad_instance_proto_rawDescData)
})
return file_models_model_user_ad_instance_proto_rawDescData
}
var file_models_model_user_ad_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_user_ad_instance_proto_goTypes = []interface{}{
(*UserADInstance)(nil), // 0: pb.UserADInstance
(*ADPackageInstance)(nil), // 1: pb.ADPackageInstance
(*User)(nil), // 2: pb.User
}
var file_models_model_user_ad_instance_proto_depIdxs = []int32{
1, // 0: pb.UserADInstance.adPackageInstance:type_name -> pb.ADPackageInstance
2, // 1: pb.UserADInstance.user:type_name -> pb.User
2, // [2:2] is the sub-list for method output_type
2, // [2:2] 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_models_model_user_ad_instance_proto_init() }
func file_models_model_user_ad_instance_proto_init() {
if File_models_model_user_ad_instance_proto != nil {
return
}
file_models_model_ad_package_instance_proto_init()
file_models_model_user_proto_init()
if !protoimpl.UnsafeEnabled {
file_models_model_user_ad_instance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UserADInstance); 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_ad_instance_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_user_ad_instance_proto_goTypes,
DependencyIndexes: file_models_model_user_ad_instance_proto_depIdxs,
MessageInfos: file_models_model_user_ad_instance_proto_msgTypes,
}.Build()
File_models_model_user_ad_instance_proto = out.File
file_models_model_user_ad_instance_proto_rawDesc = nil
file_models_model_user_ad_instance_proto_goTypes = nil
file_models_model_user_ad_instance_proto_depIdxs = nil
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,931 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: service_ad_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 UpdateADPackagePriceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
AdPackagePeriodId int64 `protobuf:"varint,2,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"`
Price float64 `protobuf:"fixed64,3,opt,name=price,proto3" json:"price,omitempty"`
}
func (x *UpdateADPackagePriceRequest) Reset() {
*x = UpdateADPackagePriceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ad_package_price_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateADPackagePriceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateADPackagePriceRequest) ProtoMessage() {}
func (x *UpdateADPackagePriceRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ad_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 UpdateADPackagePriceRequest.ProtoReflect.Descriptor instead.
func (*UpdateADPackagePriceRequest) Descriptor() ([]byte, []int) {
return file_service_ad_package_price_proto_rawDescGZIP(), []int{0}
}
func (x *UpdateADPackagePriceRequest) GetAdPackageId() int64 {
if x != nil {
return x.AdPackageId
}
return 0
}
func (x *UpdateADPackagePriceRequest) GetAdPackagePeriodId() int64 {
if x != nil {
return x.AdPackagePeriodId
}
return 0
}
func (x *UpdateADPackagePriceRequest) GetPrice() float64 {
if x != nil {
return x.Price
}
return 0
}
// 获取单个高防产品具体价格
type FindADPackagePriceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
AdPackagePeriodId int64 `protobuf:"varint,2,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
}
func (x *FindADPackagePriceRequest) Reset() {
*x = FindADPackagePriceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ad_package_price_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindADPackagePriceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindADPackagePriceRequest) ProtoMessage() {}
func (x *FindADPackagePriceRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ad_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 FindADPackagePriceRequest.ProtoReflect.Descriptor instead.
func (*FindADPackagePriceRequest) Descriptor() ([]byte, []int) {
return file_service_ad_package_price_proto_rawDescGZIP(), []int{1}
}
func (x *FindADPackagePriceRequest) GetAdPackageId() int64 {
if x != nil {
return x.AdPackageId
}
return 0
}
func (x *FindADPackagePriceRequest) GetAdPackagePeriodId() int64 {
if x != nil {
return x.AdPackagePeriodId
}
return 0
}
func (x *FindADPackagePriceRequest) GetCount() int32 {
if x != nil {
return x.Count
}
return 0
}
type FindADPackagePriceResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Price float64 `protobuf:"fixed64,1,opt,name=price,proto3" json:"price,omitempty"` // 单价
Amount float64 `protobuf:"fixed64,2,opt,name=amount,proto3" json:"amount,omitempty"` // 总价
}
func (x *FindADPackagePriceResponse) Reset() {
*x = FindADPackagePriceResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ad_package_price_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindADPackagePriceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindADPackagePriceResponse) ProtoMessage() {}
func (x *FindADPackagePriceResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ad_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 FindADPackagePriceResponse.ProtoReflect.Descriptor instead.
func (*FindADPackagePriceResponse) Descriptor() ([]byte, []int) {
return file_service_ad_package_price_proto_rawDescGZIP(), []int{2}
}
func (x *FindADPackagePriceResponse) GetPrice() float64 {
if x != nil {
return x.Price
}
return 0
}
func (x *FindADPackagePriceResponse) GetAmount() float64 {
if x != nil {
return x.Amount
}
return 0
}
// 计算高防产品价格项数量
type CountADPackagePricesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
}
func (x *CountADPackagePricesRequest) Reset() {
*x = CountADPackagePricesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ad_package_price_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CountADPackagePricesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountADPackagePricesRequest) ProtoMessage() {}
func (x *CountADPackagePricesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ad_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 CountADPackagePricesRequest.ProtoReflect.Descriptor instead.
func (*CountADPackagePricesRequest) Descriptor() ([]byte, []int) {
return file_service_ad_package_price_proto_rawDescGZIP(), []int{3}
}
func (x *CountADPackagePricesRequest) GetAdPackageId() int64 {
if x != nil {
return x.AdPackageId
}
return 0
}
// 查找高防产品价格
type FindADPackagePricesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
}
func (x *FindADPackagePricesRequest) Reset() {
*x = FindADPackagePricesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ad_package_price_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindADPackagePricesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindADPackagePricesRequest) ProtoMessage() {}
func (x *FindADPackagePricesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ad_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 FindADPackagePricesRequest.ProtoReflect.Descriptor instead.
func (*FindADPackagePricesRequest) Descriptor() ([]byte, []int) {
return file_service_ad_package_price_proto_rawDescGZIP(), []int{4}
}
func (x *FindADPackagePricesRequest) GetAdPackageId() int64 {
if x != nil {
return x.AdPackageId
}
return 0
}
type FindADPackagePricesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AdPackagePrices []*ADPackagePrice `protobuf:"bytes,1,rep,name=adPackagePrices,proto3" json:"adPackagePrices,omitempty"`
}
func (x *FindADPackagePricesResponse) Reset() {
*x = FindADPackagePricesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ad_package_price_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindADPackagePricesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindADPackagePricesResponse) ProtoMessage() {}
func (x *FindADPackagePricesResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ad_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 FindADPackagePricesResponse.ProtoReflect.Descriptor instead.
func (*FindADPackagePricesResponse) Descriptor() ([]byte, []int) {
return file_service_ad_package_price_proto_rawDescGZIP(), []int{5}
}
func (x *FindADPackagePricesResponse) GetAdPackagePrices() []*ADPackagePrice {
if x != nil {
return x.AdPackagePrices
}
return nil
}
// 查找所有高防产品价格
type FindAllADPackagePricesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *FindAllADPackagePricesRequest) Reset() {
*x = FindAllADPackagePricesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ad_package_price_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllADPackagePricesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllADPackagePricesRequest) ProtoMessage() {}
func (x *FindAllADPackagePricesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ad_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 FindAllADPackagePricesRequest.ProtoReflect.Descriptor instead.
func (*FindAllADPackagePricesRequest) Descriptor() ([]byte, []int) {
return file_service_ad_package_price_proto_rawDescGZIP(), []int{6}
}
type FindAllADPackagePricesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AdPackagePrices []*ADPackagePrice `protobuf:"bytes,1,rep,name=adPackagePrices,proto3" json:"adPackagePrices,omitempty"`
}
func (x *FindAllADPackagePricesResponse) Reset() {
*x = FindAllADPackagePricesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ad_package_price_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllADPackagePricesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllADPackagePricesResponse) ProtoMessage() {}
func (x *FindAllADPackagePricesResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ad_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 FindAllADPackagePricesResponse.ProtoReflect.Descriptor instead.
func (*FindAllADPackagePricesResponse) Descriptor() ([]byte, []int) {
return file_service_ad_package_price_proto_rawDescGZIP(), []int{7}
}
func (x *FindAllADPackagePricesResponse) GetAdPackagePrices() []*ADPackagePrice {
if x != nil {
return x.AdPackagePrices
}
return nil
}
var File_service_ad_package_price_proto protoreflect.FileDescriptor
var file_service_ad_package_price_proto_rawDesc = []byte{
0x0a, 0x1e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x64, 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, 0x23, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x5f, 0x61, 0x64, 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, 0x83, 0x01, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41,
0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67,
0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63,
0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b,
0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x03, 0x52, 0x11, 0x61, 0x64, 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, 0x03, 0x20,
0x01, 0x28, 0x01, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x19, 0x46,
0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61,
0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61,
0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64,
0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 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, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x4a,
0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 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, 0x01, 0x52, 0x05, 0x70, 0x72, 0x69,
0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
0x28, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3f, 0x0a, 0x1b, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50,
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b,
0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x1a, 0x46,
0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50,
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b,
0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x1b, 0x46,
0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63,
0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x61, 0x64,
0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61,
0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x0f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61,
0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x22, 0x1f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x1e, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69,
0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x61,
0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b,
0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x0f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b,
0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x32, 0xbd, 0x03, 0x0a, 0x15, 0x41, 0x44,
0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x14, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50,
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x70, 0x62,
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 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, 0x53, 0x0a, 0x12,
0x66, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69,
0x63, 0x65, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61,
0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63,
0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x4d, 0x0a, 0x14, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b,
0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44, 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, 0x56, 0x0a, 0x13, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67,
0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63,
0x65, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41,
0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x6c, 0x6c, 0x41, 0x44, 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_ad_package_price_proto_rawDescOnce sync.Once
file_service_ad_package_price_proto_rawDescData = file_service_ad_package_price_proto_rawDesc
)
func file_service_ad_package_price_proto_rawDescGZIP() []byte {
file_service_ad_package_price_proto_rawDescOnce.Do(func() {
file_service_ad_package_price_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ad_package_price_proto_rawDescData)
})
return file_service_ad_package_price_proto_rawDescData
}
var file_service_ad_package_price_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_service_ad_package_price_proto_goTypes = []interface{}{
(*UpdateADPackagePriceRequest)(nil), // 0: pb.UpdateADPackagePriceRequest
(*FindADPackagePriceRequest)(nil), // 1: pb.FindADPackagePriceRequest
(*FindADPackagePriceResponse)(nil), // 2: pb.FindADPackagePriceResponse
(*CountADPackagePricesRequest)(nil), // 3: pb.CountADPackagePricesRequest
(*FindADPackagePricesRequest)(nil), // 4: pb.FindADPackagePricesRequest
(*FindADPackagePricesResponse)(nil), // 5: pb.FindADPackagePricesResponse
(*FindAllADPackagePricesRequest)(nil), // 6: pb.FindAllADPackagePricesRequest
(*FindAllADPackagePricesResponse)(nil), // 7: pb.FindAllADPackagePricesResponse
(*ADPackagePrice)(nil), // 8: pb.ADPackagePrice
(*RPCSuccess)(nil), // 9: pb.RPCSuccess
(*RPCCountResponse)(nil), // 10: pb.RPCCountResponse
}
var file_service_ad_package_price_proto_depIdxs = []int32{
8, // 0: pb.FindADPackagePricesResponse.adPackagePrices:type_name -> pb.ADPackagePrice
8, // 1: pb.FindAllADPackagePricesResponse.adPackagePrices:type_name -> pb.ADPackagePrice
0, // 2: pb.ADPackagePriceService.updateADPackagePrice:input_type -> pb.UpdateADPackagePriceRequest
1, // 3: pb.ADPackagePriceService.findADPackagePrice:input_type -> pb.FindADPackagePriceRequest
3, // 4: pb.ADPackagePriceService.countADPackagePrices:input_type -> pb.CountADPackagePricesRequest
4, // 5: pb.ADPackagePriceService.findADPackagePrices:input_type -> pb.FindADPackagePricesRequest
6, // 6: pb.ADPackagePriceService.findAllADPackagePrices:input_type -> pb.FindAllADPackagePricesRequest
9, // 7: pb.ADPackagePriceService.updateADPackagePrice:output_type -> pb.RPCSuccess
2, // 8: pb.ADPackagePriceService.findADPackagePrice:output_type -> pb.FindADPackagePriceResponse
10, // 9: pb.ADPackagePriceService.countADPackagePrices:output_type -> pb.RPCCountResponse
5, // 10: pb.ADPackagePriceService.findADPackagePrices:output_type -> pb.FindADPackagePricesResponse
7, // 11: pb.ADPackagePriceService.findAllADPackagePrices:output_type -> pb.FindAllADPackagePricesResponse
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_ad_package_price_proto_init() }
func file_service_ad_package_price_proto_init() {
if File_service_ad_package_price_proto != nil {
return
}
file_models_model_ad_package_price_proto_init()
file_models_rpc_messages_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_ad_package_price_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateADPackagePriceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ad_package_price_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindADPackagePriceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ad_package_price_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindADPackagePriceResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ad_package_price_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CountADPackagePricesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ad_package_price_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindADPackagePricesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ad_package_price_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindADPackagePricesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ad_package_price_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllADPackagePricesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ad_package_price_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllADPackagePricesResponse); 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_ad_package_price_proto_rawDesc,
NumEnums: 0,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_ad_package_price_proto_goTypes,
DependencyIndexes: file_service_ad_package_price_proto_depIdxs,
MessageInfos: file_service_ad_package_price_proto_msgTypes,
}.Build()
File_service_ad_package_price_proto = out.File
file_service_ad_package_price_proto_rawDesc = nil
file_service_ad_package_price_proto_goTypes = nil
file_service_ad_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
// ADPackagePriceServiceClient is the client API for ADPackagePriceService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ADPackagePriceServiceClient interface {
// 设置高防产品价格
UpdateADPackagePrice(ctx context.Context, in *UpdateADPackagePriceRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 获取单个高防产品具体价格
FindADPackagePrice(ctx context.Context, in *FindADPackagePriceRequest, opts ...grpc.CallOption) (*FindADPackagePriceResponse, error)
// 计算高防产品价格项数量
CountADPackagePrices(ctx context.Context, in *CountADPackagePricesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
// 查找高防产品价格
FindADPackagePrices(ctx context.Context, in *FindADPackagePricesRequest, opts ...grpc.CallOption) (*FindADPackagePricesResponse, error)
// 查找所有高防产品价格
FindAllADPackagePrices(ctx context.Context, in *FindAllADPackagePricesRequest, opts ...grpc.CallOption) (*FindAllADPackagePricesResponse, error)
}
type aDPackagePriceServiceClient struct {
cc grpc.ClientConnInterface
}
func NewADPackagePriceServiceClient(cc grpc.ClientConnInterface) ADPackagePriceServiceClient {
return &aDPackagePriceServiceClient{cc}
}
func (c *aDPackagePriceServiceClient) UpdateADPackagePrice(ctx context.Context, in *UpdateADPackagePriceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.ADPackagePriceService/updateADPackagePrice", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aDPackagePriceServiceClient) FindADPackagePrice(ctx context.Context, in *FindADPackagePriceRequest, opts ...grpc.CallOption) (*FindADPackagePriceResponse, error) {
out := new(FindADPackagePriceResponse)
err := c.cc.Invoke(ctx, "/pb.ADPackagePriceService/findADPackagePrice", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aDPackagePriceServiceClient) CountADPackagePrices(ctx context.Context, in *CountADPackagePricesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
out := new(RPCCountResponse)
err := c.cc.Invoke(ctx, "/pb.ADPackagePriceService/countADPackagePrices", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aDPackagePriceServiceClient) FindADPackagePrices(ctx context.Context, in *FindADPackagePricesRequest, opts ...grpc.CallOption) (*FindADPackagePricesResponse, error) {
out := new(FindADPackagePricesResponse)
err := c.cc.Invoke(ctx, "/pb.ADPackagePriceService/findADPackagePrices", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *aDPackagePriceServiceClient) FindAllADPackagePrices(ctx context.Context, in *FindAllADPackagePricesRequest, opts ...grpc.CallOption) (*FindAllADPackagePricesResponse, error) {
out := new(FindAllADPackagePricesResponse)
err := c.cc.Invoke(ctx, "/pb.ADPackagePriceService/findAllADPackagePrices", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ADPackagePriceServiceServer is the server API for ADPackagePriceService service.
type ADPackagePriceServiceServer interface {
// 设置高防产品价格
UpdateADPackagePrice(context.Context, *UpdateADPackagePriceRequest) (*RPCSuccess, error)
// 获取单个高防产品具体价格
FindADPackagePrice(context.Context, *FindADPackagePriceRequest) (*FindADPackagePriceResponse, error)
// 计算高防产品价格项数量
CountADPackagePrices(context.Context, *CountADPackagePricesRequest) (*RPCCountResponse, error)
// 查找高防产品价格
FindADPackagePrices(context.Context, *FindADPackagePricesRequest) (*FindADPackagePricesResponse, error)
// 查找所有高防产品价格
FindAllADPackagePrices(context.Context, *FindAllADPackagePricesRequest) (*FindAllADPackagePricesResponse, error)
}
// UnimplementedADPackagePriceServiceServer can be embedded to have forward compatible implementations.
type UnimplementedADPackagePriceServiceServer struct {
}
func (*UnimplementedADPackagePriceServiceServer) UpdateADPackagePrice(context.Context, *UpdateADPackagePriceRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateADPackagePrice not implemented")
}
func (*UnimplementedADPackagePriceServiceServer) FindADPackagePrice(context.Context, *FindADPackagePriceRequest) (*FindADPackagePriceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindADPackagePrice not implemented")
}
func (*UnimplementedADPackagePriceServiceServer) CountADPackagePrices(context.Context, *CountADPackagePricesRequest) (*RPCCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CountADPackagePrices not implemented")
}
func (*UnimplementedADPackagePriceServiceServer) FindADPackagePrices(context.Context, *FindADPackagePricesRequest) (*FindADPackagePricesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindADPackagePrices not implemented")
}
func (*UnimplementedADPackagePriceServiceServer) FindAllADPackagePrices(context.Context, *FindAllADPackagePricesRequest) (*FindAllADPackagePricesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllADPackagePrices not implemented")
}
func RegisterADPackagePriceServiceServer(s *grpc.Server, srv ADPackagePriceServiceServer) {
s.RegisterService(&_ADPackagePriceService_serviceDesc, srv)
}
func _ADPackagePriceService_UpdateADPackagePrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateADPackagePriceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ADPackagePriceServiceServer).UpdateADPackagePrice(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ADPackagePriceService/UpdateADPackagePrice",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ADPackagePriceServiceServer).UpdateADPackagePrice(ctx, req.(*UpdateADPackagePriceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ADPackagePriceService_FindADPackagePrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindADPackagePriceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ADPackagePriceServiceServer).FindADPackagePrice(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ADPackagePriceService/FindADPackagePrice",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ADPackagePriceServiceServer).FindADPackagePrice(ctx, req.(*FindADPackagePriceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ADPackagePriceService_CountADPackagePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountADPackagePricesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ADPackagePriceServiceServer).CountADPackagePrices(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ADPackagePriceService/CountADPackagePrices",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ADPackagePriceServiceServer).CountADPackagePrices(ctx, req.(*CountADPackagePricesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ADPackagePriceService_FindADPackagePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindADPackagePricesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ADPackagePriceServiceServer).FindADPackagePrices(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ADPackagePriceService/FindADPackagePrices",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ADPackagePriceServiceServer).FindADPackagePrices(ctx, req.(*FindADPackagePricesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ADPackagePriceService_FindAllADPackagePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllADPackagePricesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ADPackagePriceServiceServer).FindAllADPackagePrices(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ADPackagePriceService/FindAllADPackagePrices",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ADPackagePriceServiceServer).FindAllADPackagePrices(ctx, req.(*FindAllADPackagePricesRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ADPackagePriceService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.ADPackagePriceService",
HandlerType: (*ADPackagePriceServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "updateADPackagePrice",
Handler: _ADPackagePriceService_UpdateADPackagePrice_Handler,
},
{
MethodName: "findADPackagePrice",
Handler: _ADPackagePriceService_FindADPackagePrice_Handler,
},
{
MethodName: "countADPackagePrices",
Handler: _ADPackagePriceService_CountADPackagePrices_Handler,
},
{
MethodName: "findADPackagePrices",
Handler: _ADPackagePriceService_FindADPackagePrices_Handler,
},
{
MethodName: "findAllADPackagePrices",
Handler: _ADPackagePriceService_FindAllADPackagePrices_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_ad_package_price.proto",
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,12 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 高防线路
message ADNetwork {
int64 id = 1;
bool isOn = 2;
string name = 3;
string description = 4;
}

View File

@@ -0,0 +1,21 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_ad_network.proto";
// 高防产品
message ADPackage {
int64 id = 1;
bool isOn = 2;
int64 adNetworkId = 3;
int32 protectionBandwidthSize = 4;
string protectionBandwidthUnit = 5;
int32 serverBandwidthSize = 6;
string serverBandwidthUnit = 7;
ADNetwork adNetwork = 30;
string summary = 31; // 概述
int64 countIdleADPackageInstances = 32; // 剩余可用的实例数,只有在获取可用高防产品的时候才会返回
}

View File

@@ -0,0 +1,25 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_node_cluster.proto";
import "models/model_ad_package.proto";
import "models/model_user.proto";
// 高防产品实例
message ADPackageInstance {
int64 id = 1;
bool isOn = 2;
int64 adPackageId = 3;
int64 nodeClusterId = 4;
repeated int64 nodeIds = 5;
repeated string ipAddresses = 6;
int64 userId = 7; // 租用用户ID
string userDayTo = 8; // 租用日期
int64 userInstanceId = 9; // 当前绑定的用户实例ID
NodeCluster nodeCluster = 30;
ADPackage adPackage = 31;
User user = 32;
}

View File

@@ -0,0 +1,13 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 高防实例有效期
message ADPackagePeriod {
int64 id = 1;
bool isOn = 2;
int32 count = 3;
string unit = 4;
int32 months = 5;
}

View File

@@ -0,0 +1,11 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 高防产品价格定义
message ADPackagePrice {
int64 adPackageId = 1;
int64 adPackagePeriodId = 2;
double price = 3;
}

View File

@@ -0,0 +1,29 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_ad_package_instance.proto";
import "models/model_user.proto";
// 高防实例
message UserADInstance {
int64 id = 1;
int64 userId = 2;
int64 adPackageInstanceId = 3;
int64 adPackagePeriodId = 4;
int32 adPackagePeriodCount = 5;
string adPackagePeriodUnit = 6;
string dayFrom = 7; // 开始日期格式YYYYMMDD
string dayTo = 8; // 结束日期格式YYYYMMDD
int64 createdAt = 9;
int32 maxObjects = 10;
repeated string objectCodes = 11;
ADPackageInstance adPackageInstance = 30;
User user = 31;
bool canDelete = 32;
bool isAvailable = 33; // 当前是否在生效中
int32 countObjects = 34; // 防护对象数量
bytes objectsJSON = 35; // 对象JSON
}

View File

@@ -0,0 +1,78 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_ad_network.proto";
import "models/rpc_messages.proto";
// 高防线路服务
service ADNetworkService {
// 创建线路
rpc createADNetwork(CreateADNetworkRequest) returns (CreateADNetworkResponse);
// 修改线路
rpc updateADNetwork(UpdateADNetworkRequest) returns (RPCSuccess);
// 查找单个线路
rpc findADNetwork(FindADNetworkRequest) returns (FindADNetworkResponse);
// 列出所有线路
rpc findAllADNetworks(FindAllADNetworkRequest) returns (FindAllADNetworkResponse);
// 列出所有可用的线路
rpc findAllAvailableADNetworks(FindAllAvailableADNetworksRequest) returns (FindAllAvailableADNetworksResponse);
// 删除线路
rpc deleteADNetwork(DeleteADNetworkRequest) returns (RPCSuccess);
}
// 创建线路
message CreateADNetworkRequest {
string name = 1;
string description = 2;
}
message CreateADNetworkResponse {
int64 adNetworkId = 1;
}
// 修改线路
message UpdateADNetworkRequest {
int64 adNetworkId = 1;
bool isOn = 2;
string name = 3;
string description = 4;
}
// 查找单个线路
message FindADNetworkRequest {
int64 adNetworkId = 1;
}
message FindADNetworkResponse {
ADNetwork adNetwork = 1;
}
// 列出所有线路
message FindAllADNetworkRequest {
}
message FindAllADNetworkResponse {
repeated ADNetwork adNetworks = 1;
}
// 列出所有可用的线路
message FindAllAvailableADNetworksRequest {
}
message FindAllAvailableADNetworksResponse {
repeated ADNetwork adNetworks = 1;
}
// 删除线路
message DeleteADNetworkRequest {
int64 adNetworkId = 1;
}

View File

@@ -0,0 +1,102 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_ad_package.proto";
import "models/rpc_messages.proto";
// 高防产品服务
service ADPackageService {
// 创建高防产品
rpc createADPackage(CreateADPackageRequest) returns (CreateADPackageResponse);
// 修改高防产品
rpc updateADPackage(UpdateADPackageRequest) returns (RPCSuccess);
// 查找单个高防产品
rpc findADPackage(FindADPackageRequest) returns (FindADPackageResponse);
// 查询高防产品数量
rpc countADPackages(CountADPackagesRequest) returns (RPCCountResponse);
// 查询可用的产品数量
rpc countAllIdleADPackages(CountAllIdleADPackages) returns (RPCCountResponse);
// 列出单页高防产品
rpc listADPackages(ListADPackagesRequest) returns (ListADPackagesResponse);
// 列出所有可用的高防产品
rpc findAllIdleADPackages(FindAllIdleADPackagesRequest) returns (FindAllIdleADPackagesResponse);
// 删除高防产品
rpc deleteADPackage(DeleteADPackageRequest) returns (RPCSuccess);
}
// 创建高防产品
message CreateADPackageRequest {
int64 adNetworkId = 1;
int32 protectionBandwidthSize = 2;
string protectionBandwidthUnit = 3;
int32 serverBandwidthSize = 4;
string serverBandwidthUnit = 5;
}
message CreateADPackageResponse {
int64 adPackageId = 1;
}
// 修改高防产品
message UpdateADPackageRequest {
int64 adPackageId = 1;
bool isOn = 2;
int64 adNetworkId = 3;
int32 protectionBandwidthSize = 4;
string protectionBandwidthUnit = 5;
int32 serverBandwidthSize = 6;
string serverBandwidthUnit = 7;
}
// 查找单个高防产品
message FindADPackageRequest {
int64 adPackageId = 1;
}
message FindADPackageResponse {
ADPackage adPackage = 1;
}
// 查询高防产品数量
message CountADPackagesRequest {
int64 adNetworkId = 1;
}
// 查询可用的产品数量
message CountAllIdleADPackages {
}
// 列出单页高防产品
message ListADPackagesRequest {
int64 adNetworkId = 1;
int64 offset = 2;
int64 size = 3;
}
message ListADPackagesResponse {
repeated ADPackage adPackages = 1;
}
// 列出所有可用的高防产品
message FindAllIdleADPackagesRequest {
}
message FindAllIdleADPackagesResponse {
repeated ADPackage adPackages = 1;
}
// 删除高防产品
message DeleteADPackageRequest {
int64 adPackageId = 1;
}

View File

@@ -0,0 +1,105 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_ad_package_instance.proto";
import "models/rpc_messages.proto";
// 高防实例服务
service ADPackageInstanceService {
// 创建实例
rpc createADPackageInstance(CreateADPackageInstanceRequest) returns (CreateADPackageInstanceResponse);
// 修改实例
rpc updateADPackageInstance(UpdateADPackageInstanceRequest) returns (RPCSuccess);
// 查找单个实例
rpc findADPackageInstance(FindADPackageInstanceRequest) returns (FindADPackageInstanceResponse);
// 列出单个高防产品所有实例
rpc findAllADPackageInstances(FindAllADPackageInstancesRequest) returns (FindAllADPackageInstancesResponse);
// 删除实例
rpc deleteADPackageInstance(DeleteADPackageInstanceRequest) returns (RPCSuccess);
// 计算可购的实例数量
rpc countIdleADPackageInstances(CountIdleADPackageInstancesRequest) returns (RPCCountResponse);
// 计算实例数量
rpc countADPackageInstances(CountADPackageInstancesRequest) returns (RPCCountResponse);
// 列出单页实例
rpc listADPackageInstances(ListADPackageInstancesRequest) returns (ListADPackageInstancesResponse);
}
// 创建实例
message CreateADPackageInstanceRequest {
int64 adPackageId = 1;
int64 nodeClusterId = 2;
repeated int64 nodeIds = 3;
repeated string ipAddresses = 4;
}
message CreateADPackageInstanceResponse {
int64 adPackageInstanceId = 1;
}
// 修改实例
message UpdateADPackageInstanceRequest {
int64 adPackageInstanceId = 1;
int64 nodeClusterId = 2;
repeated int64 nodeIds = 3;
repeated string ipAddresses = 4;
bool isOn = 5;
}
// 查找单个实例
message FindADPackageInstanceRequest {
int64 adPackageInstanceId = 1;
}
message FindADPackageInstanceResponse {
ADPackageInstance adPackageInstance = 1;
}
// 列出单个高防产品所有实例
message FindAllADPackageInstancesRequest {
int64 adPackageId = 1;
}
message FindAllADPackageInstancesResponse {
repeated ADPackageInstance adPackageInstances = 1;
}
// 删除实例
message DeleteADPackageInstanceRequest {
int64 adPackageInstanceId = 1;
}
// 计算可购的实例数量
message CountIdleADPackageInstancesRequest {
int64 adPackageId = 1;
}
// 计算实例数量
message CountADPackageInstancesRequest {
int64 adNetworkId = 1; // 可选,线路
int64 adPackageId = 2; // 可选,如果不填则表示获取所有实例数量
int64 userId = 3; // 可选用户ID
string ip = 4; // 可选高防IP
}
// 列出单页实例
message ListADPackageInstancesRequest {
int64 adNetworkId = 1; // 可选,线路
int64 adPackageId = 2; // 可选,如果不填则表示获取所有实例数量
int64 userId = 3; // 可选用户ID
string ip = 4; // 可选高防IP
int64 offset = 5;
int64 size = 6;
}
message ListADPackageInstancesResponse {
repeated ADPackageInstance adPackageInstances = 1;
}

View File

@@ -0,0 +1,76 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_ad_package_period.proto";
import "models/rpc_messages.proto";
// 高防实例有效期服务
service ADPackagePeriodService {
// 创建有效期
rpc createADPackagePeriod(CreateADPackagePeriodRequest) returns (CreateADPackagePeriodResponse);
// 修改有效期
rpc updateADPackagePeriod(UpdateADPackagePeriodRequest) returns (RPCSuccess);
// 删除有效期
rpc deleteADPackagePeriod(DeleteADPackagePeriodRequest) returns (RPCSuccess);
// 查找有效期
rpc findADPackagePeriod(FindADPackagePeriodRequest) returns (FindADPackagePeriodResponse);
// 列出所有有效期
rpc findAllADPackagePeriods(FindAllADPackagePeriodsRequest) returns (FindAllADPackagePeriodsResponse);
// 列出所有可用有效期
rpc findAllAvailableADPackagePeriods(FindAllAvailableADPackagePeriodsRequest) returns (FindAllAvailableADPackagePeriodsResponse);
}
// 创建有效期
message CreateADPackagePeriodRequest {
int32 count = 1;
string unit = 2; // month | year
}
message CreateADPackagePeriodResponse {
int64 adPackagePeriodId = 1;
}
// 修改有效期
message UpdateADPackagePeriodRequest {
int64 adPackagePeriodId = 1;
bool isOn = 2;
}
// 删除有效期
message DeleteADPackagePeriodRequest {
int64 adPackagePeriodId = 1;
}
// 查找有效期
message FindADPackagePeriodRequest {
int64 adPackagePeriodId = 1;
}
message FindADPackagePeriodResponse {
ADPackagePeriod adPackagePeriod = 1;
}
// 列出所有有效期
message FindAllADPackagePeriodsRequest {
}
message FindAllADPackagePeriodsResponse {
repeated ADPackagePeriod adPackagePeriods = 1;
}
// 列出所有可用有效期
message FindAllAvailableADPackagePeriodsRequest {
}
message FindAllAvailableADPackagePeriodsResponse {
repeated ADPackagePeriod adPackagePeriods = 1;
}

View File

@@ -0,0 +1,67 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_ad_package_price.proto";
import "models/rpc_messages.proto";
// 高防产品价格服务
service ADPackagePriceService {
// 设置高防产品价格
rpc updateADPackagePrice(UpdateADPackagePriceRequest) returns (RPCSuccess);
// 获取单个高防产品具体价格
rpc findADPackagePrice(FindADPackagePriceRequest) returns (FindADPackagePriceResponse);
// 计算高防产品价格项数量
rpc countADPackagePrices(CountADPackagePricesRequest) returns (RPCCountResponse);
// 查找高防产品价格
rpc findADPackagePrices(FindADPackagePricesRequest) returns (FindADPackagePricesResponse);
// 查找所有高防产品价格
rpc findAllADPackagePrices(FindAllADPackagePricesRequest) returns (FindAllADPackagePricesResponse);
}
// 设置高防产品价格
message UpdateADPackagePriceRequest {
int64 adPackageId = 1;
int64 adPackagePeriodId = 2;
double price = 3;
}
// 获取单个高防产品具体价格
message FindADPackagePriceRequest {
int64 adPackageId = 1;
int64 adPackagePeriodId = 2;
int32 count = 3;
}
message FindADPackagePriceResponse {
double price = 1; // 单价
double amount = 2; // 总价
}
// 计算高防产品价格项数量
message CountADPackagePricesRequest {
int64 adPackageId = 1;
}
// 查找高防产品价格
message FindADPackagePricesRequest {
int64 adPackageId = 1;
}
message FindADPackagePricesResponse {
repeated ADPackagePrice adPackagePrices = 1;
}
// 查找所有高防产品价格
message FindAllADPackagePricesRequest {
}
message FindAllADPackagePricesResponse {
repeated ADPackagePrice adPackagePrices = 1;
}

View File

@@ -116,7 +116,7 @@ service HTTPWebService {
// 创建Web配置 // 创建Web配置
message CreateHTTPWebRequest { message CreateHTTPWebRequest {
bytes rootJSON = 1; bytes rootJSON = 1; // 可选,静态分发配置
} }
message CreateHTTPWebResponse { message CreateHTTPWebResponse {

View File

@@ -0,0 +1,108 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_user_ad_instance.proto";
import "models/rpc_messages.proto";
// 用户高防实例服务
service UserADInstanceService {
// 创建用户高防实例
rpc createUserADInstance(CreateUserADInstanceRequest) returns (CreateUserADInstanceResponse);
// 购买用户高防实例
rpc buyUserADInstance(BuyUserADInstanceRequest) returns (BuyUserADInstanceResponse);
// 计算用户高防实例数量
rpc countUserADInstances(CountUserADInstancesRequest) returns (RPCCountResponse);
// 列出单页用户高防实例
rpc listUserADInstances(ListUserADInstancesRequest) returns (ListUserADInstancesResponse);
// 查找单个用户高防实例
rpc findUserADInstance(FindUserADInstanceRequest) returns (FindUserADInstanceResponse);
// 删除用户高防实例
rpc deleteUserADInstance(DeleteUserADInstanceRequest) returns (RPCSuccess);
// 续期用户高防实例
rpc renewUserADInstance(RenewUserADInstanceRequest) returns (RPCSuccess);
// 修改实例防护对象
rpc updateUserADInstanceObjects(UpdateUserADInstanceObjectsRequest) returns (RPCSuccess);
}
// 创建用户高防实例
message CreateUserADInstanceRequest {
int64 userId = 1;
int64 adPackageId = 2;
int64 adPackagePeriodId = 3;
int32 count = 4;
}
message CreateUserADInstanceResponse {
repeated int64 userADInstanceIds = 1;
}
// 购买用户高防实例
message BuyUserADInstanceRequest {
int64 userId = 1;
int64 adPackageId = 2;
int64 adPackagePeriodId = 3;
int32 count = 4;
}
message BuyUserADInstanceResponse {
repeated int64 userADInstanceIds = 1;
}
// 查询用户高防实例数量
message CountUserADInstancesRequest {
int64 adNetworkId = 1; // 线路ID
int64 userId = 2; // 用户ID
int64 adPackagePeriodId = 3;
string expiresDay = 4;
bool availableOnly = 5; // 是否只查询有效的高防实例
}
// 列出单页用户高防实例
message ListUserADInstancesRequest {
int64 adNetworkId = 1; // 线路ID
int64 userId = 2; // 用户ID
int64 adPackagePeriodId = 3;
string expiresDay = 4;
bool availableOnly = 5; // 是否只查询有效的高防实例
int64 offset = 6;
int64 size = 7;
}
message ListUserADInstancesResponse {
repeated UserADInstance userADInstances = 1;
}
// 查找单个用户高防实例
message FindUserADInstanceRequest {
int64 userADInstanceId = 1;
}
message FindUserADInstanceResponse {
UserADInstance userADInstance = 1;
}
// 删除用户高防实例
message DeleteUserADInstanceRequest {
int64 userADInstanceId = 1;
}
// 续期用户高防实例
message RenewUserADInstanceRequest {
int64 userADInstanceId = 1;
int64 adPackagePeriodId = 2;
}
// 修改实例防护对象
message UpdateUserADInstanceObjectsRequest {
int64 userADInstanceId = 1;
repeated string objectCodes = 2;
}