增加NS域名分组、批量添加域名和记录接口

This commit is contained in:
刘祥超
2022-08-06 20:29:26 +08:00
parent afef00b473
commit 86070bc8aa
29 changed files with 8316 additions and 5874 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -69,6 +69,23 @@ func readComments(data []byte) string {
return string(bytes.TrimSpace(bytes.Join(comments, []byte{'\n'})))
}
func removeDuplicates(s []string) []string {
if len(s) == 0 {
return s
}
var m = map[string]bool{}
var result = []string{}
for _, item := range s {
_, ok := m[item]
if ok {
continue
}
result = append(result, item)
m[item] = true
}
return result
}
// 生成JSON格式API列表
func main() {
var quiet = false
@@ -128,9 +145,23 @@ func main() {
roles = append(roles, "dns")
} else if strings.Contains(methodSource, ".ValidateMonitorNode(") {
roles = append(roles, "monitor")
} else if strings.Contains(methodSource, "rpcutils.UserTypeDNS") {
roles = append(roles, "dns")
} else if strings.Contains(methodSource, "rpcutils.UserTypeUser") {
roles = append(roles, "user")
} else if strings.Contains(methodSource, "rpcutils.UserTypeNode") {
roles = append(roles, "node")
} else if strings.Contains(methodSource, "rpcutils.UserTypeMonitor") {
roles = append(roles, "monitor")
} else if strings.Contains(methodSource, "rpcutils.UserTypeReport") {
roles = append(roles, "report")
} else if strings.Contains(methodSource, "rpcutils.UserTypeCluster") {
roles = append(roles, "cluster")
} else if strings.Contains(methodSource, "rpcutils.UserTypeAdmin") {
roles = append(roles, "admin")
}
methodRolesMap[strings.ToLower(methodName)] = roles
methodRolesMap[strings.ToLower(methodName)] = removeDuplicates(roles)
}
}
}

10
pkg/dnsconfigs/consts.go Normal file
View File

@@ -0,0 +1,10 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package dnsconfigs
type NSDomainStatus = string
const (
NSDomainStatusNone = "none"
NSDomainStatusVerified = "verified"
)

View File

@@ -31,15 +31,17 @@ type NSDomain struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"`
CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
IsDeleted bool `protobuf:"varint,5,opt,name=isDeleted,proto3" json:"isDeleted,omitempty"`
Version int64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
TsigJSON []byte `protobuf:"bytes,7,opt,name=tsigJSON,proto3" json:"tsigJSON,omitempty"`
NsCluster *NSCluster `protobuf:"bytes,30,opt,name=nsCluster,proto3" json:"nsCluster,omitempty"`
User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"`
CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
IsDeleted bool `protobuf:"varint,5,opt,name=isDeleted,proto3" json:"isDeleted,omitempty"`
Version int64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
TsigJSON []byte `protobuf:"bytes,7,opt,name=tsigJSON,proto3" json:"tsigJSON,omitempty"`
NsDomainGroupIds []int64 `protobuf:"varint,8,rep,packed,name=nsDomainGroupIds,proto3" json:"nsDomainGroupIds,omitempty"`
NsCluster *NSCluster `protobuf:"bytes,30,opt,name=nsCluster,proto3" json:"nsCluster,omitempty"`
User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"`
NsDomainGroups []*NSDomainGroup `protobuf:"bytes,32,rep,name=nsDomainGroups,proto3" json:"nsDomainGroups,omitempty"`
}
func (x *NSDomain) Reset() {
@@ -123,6 +125,13 @@ func (x *NSDomain) GetTsigJSON() []byte {
return nil
}
func (x *NSDomain) GetNsDomainGroupIds() []int64 {
if x != nil {
return x.NsDomainGroupIds
}
return nil
}
func (x *NSDomain) GetNsCluster() *NSCluster {
if x != nil {
return x.NsCluster
@@ -137,6 +146,13 @@ func (x *NSDomain) GetUser() *User {
return nil
}
func (x *NSDomain) GetNsDomainGroups() []*NSDomainGroup {
if x != nil {
return x.NsDomainGroups
}
return nil
}
var File_models_model_ns_domain_proto protoreflect.FileDescriptor
var file_models_model_ns_domain_proto_rawDesc = []byte{
@@ -144,25 +160,34 @@ var file_models_model_ns_domain_proto_rawDesc = []byte{
0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x6e, 0x73, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 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, 0xff, 0x01, 0x0a, 0x08, 0x4e,
0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69,
0x73, 0x4f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12,
0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x04, 0x20, 0x01,
0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, 0x0a,
0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08,
0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f,
0x4e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f,
0x4e, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e,
0x6f, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f,
0x6e, 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 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, 0xe6,
0x02, 0x0a, 0x08, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69,
0x73, 0x4f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
0x74, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x05,
0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12,
0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03,
0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x73, 0x69,
0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, 0x69,
0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x2a, 0x0a, 0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x03, 0x52,
0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
0x73, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73,
0x74, 0x65, 0x72, 0x52, 0x09, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 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, 0x42, 0x06, 0x5a, 0x04,
0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0e,
0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x20,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -179,18 +204,20 @@ func file_models_model_ns_domain_proto_rawDescGZIP() []byte {
var file_models_model_ns_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_ns_domain_proto_goTypes = []interface{}{
(*NSDomain)(nil), // 0: pb.NSDomain
(*NSCluster)(nil), // 1: pb.NSCluster
(*User)(nil), // 2: pb.User
(*NSDomain)(nil), // 0: pb.NSDomain
(*NSCluster)(nil), // 1: pb.NSCluster
(*User)(nil), // 2: pb.User
(*NSDomainGroup)(nil), // 3: pb.NSDomainGroup
}
var file_models_model_ns_domain_proto_depIdxs = []int32{
1, // 0: pb.NSDomain.nsCluster:type_name -> pb.NSCluster
2, // 1: pb.NSDomain.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
3, // 2: pb.NSDomain.nsDomainGroups:type_name -> pb.NSDomainGroup
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_ns_domain_proto_init() }
@@ -199,6 +226,7 @@ func file_models_model_ns_domain_proto_init() {
return
}
file_models_model_ns_cluster_proto_init()
file_models_model_ns_domain_group_proto_init()
file_models_model_user_proto_init()
if !protoimpl.UnsafeEnabled {
file_models_model_ns_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {

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_ns_domain_group.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 NSDomainGroup struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"`
UserId int64 `protobuf:"varint,4,opt,name=userId,proto3" json:"userId,omitempty"`
}
func (x *NSDomainGroup) Reset() {
*x = NSDomainGroup{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_ns_domain_group_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NSDomainGroup) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NSDomainGroup) ProtoMessage() {}
func (x *NSDomainGroup) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ns_domain_group_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 NSDomainGroup.ProtoReflect.Descriptor instead.
func (*NSDomainGroup) Descriptor() ([]byte, []int) {
return file_models_model_ns_domain_group_proto_rawDescGZIP(), []int{0}
}
func (x *NSDomainGroup) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *NSDomainGroup) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *NSDomainGroup) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
func (x *NSDomainGroup) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
var File_models_model_ns_domain_group_proto protoreflect.FileDescriptor
var file_models_model_ns_domain_group_proto_rawDesc = []byte{
0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e,
0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x5f, 0x0a, 0x0d, 0x4e, 0x53, 0x44, 0x6f,
0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a,
0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f,
0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_ns_domain_group_proto_rawDescOnce sync.Once
file_models_model_ns_domain_group_proto_rawDescData = file_models_model_ns_domain_group_proto_rawDesc
)
func file_models_model_ns_domain_group_proto_rawDescGZIP() []byte {
file_models_model_ns_domain_group_proto_rawDescOnce.Do(func() {
file_models_model_ns_domain_group_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ns_domain_group_proto_rawDescData)
})
return file_models_model_ns_domain_group_proto_rawDescData
}
var file_models_model_ns_domain_group_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_ns_domain_group_proto_goTypes = []interface{}{
(*NSDomainGroup)(nil), // 0: pb.NSDomainGroup
}
var file_models_model_ns_domain_group_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_ns_domain_group_proto_init() }
func file_models_model_ns_domain_group_proto_init() {
if File_models_model_ns_domain_group_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_models_model_ns_domain_group_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*NSDomainGroup); 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_ns_domain_group_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_ns_domain_group_proto_goTypes,
DependencyIndexes: file_models_model_ns_domain_group_proto_depIdxs,
MessageInfos: file_models_model_ns_domain_group_proto_msgTypes,
}.Build()
File_models_model_ns_domain_group_proto = out.File
file_models_model_ns_domain_group_proto_rawDesc = nil
file_models_model_ns_domain_group_proto_goTypes = nil
file_models_model_ns_domain_group_proto_depIdxs = nil
}

View File

@@ -372,7 +372,7 @@ func (x *FindAllEnabledNodePriceItemsResponse) GetNodePriceItems() []*NodePriceI
}
// 查找所有启用的区域价格
type FindAllEnabledAndOnNodePriceItemsRequest struct {
type FindAllAvailableNodePriceItemsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -380,8 +380,8 @@ type FindAllEnabledAndOnNodePriceItemsRequest struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
}
func (x *FindAllEnabledAndOnNodePriceItemsRequest) Reset() {
*x = FindAllEnabledAndOnNodePriceItemsRequest{}
func (x *FindAllAvailableNodePriceItemsRequest) Reset() {
*x = FindAllAvailableNodePriceItemsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_price_item_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -389,13 +389,13 @@ func (x *FindAllEnabledAndOnNodePriceItemsRequest) Reset() {
}
}
func (x *FindAllEnabledAndOnNodePriceItemsRequest) String() string {
func (x *FindAllAvailableNodePriceItemsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledAndOnNodePriceItemsRequest) ProtoMessage() {}
func (*FindAllAvailableNodePriceItemsRequest) ProtoMessage() {}
func (x *FindAllEnabledAndOnNodePriceItemsRequest) ProtoReflect() protoreflect.Message {
func (x *FindAllAvailableNodePriceItemsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_price_item_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -407,19 +407,19 @@ func (x *FindAllEnabledAndOnNodePriceItemsRequest) ProtoReflect() protoreflect.M
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledAndOnNodePriceItemsRequest.ProtoReflect.Descriptor instead.
func (*FindAllEnabledAndOnNodePriceItemsRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllAvailableNodePriceItemsRequest.ProtoReflect.Descriptor instead.
func (*FindAllAvailableNodePriceItemsRequest) Descriptor() ([]byte, []int) {
return file_service_node_price_item_proto_rawDescGZIP(), []int{6}
}
func (x *FindAllEnabledAndOnNodePriceItemsRequest) GetType() string {
func (x *FindAllAvailableNodePriceItemsRequest) GetType() string {
if x != nil {
return x.Type
}
return ""
}
type FindAllEnabledAndOnNodePriceItemsResponse struct {
type FindAllAvailableNodePriceItemsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -427,8 +427,8 @@ type FindAllEnabledAndOnNodePriceItemsResponse struct {
NodePriceItems []*NodePriceItem `protobuf:"bytes,1,rep,name=NodePriceItems,proto3" json:"NodePriceItems,omitempty"`
}
func (x *FindAllEnabledAndOnNodePriceItemsResponse) Reset() {
*x = FindAllEnabledAndOnNodePriceItemsResponse{}
func (x *FindAllAvailableNodePriceItemsResponse) Reset() {
*x = FindAllAvailableNodePriceItemsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_price_item_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -436,13 +436,13 @@ func (x *FindAllEnabledAndOnNodePriceItemsResponse) Reset() {
}
}
func (x *FindAllEnabledAndOnNodePriceItemsResponse) String() string {
func (x *FindAllAvailableNodePriceItemsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledAndOnNodePriceItemsResponse) ProtoMessage() {}
func (*FindAllAvailableNodePriceItemsResponse) ProtoMessage() {}
func (x *FindAllEnabledAndOnNodePriceItemsResponse) ProtoReflect() protoreflect.Message {
func (x *FindAllAvailableNodePriceItemsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_price_item_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -454,12 +454,12 @@ func (x *FindAllEnabledAndOnNodePriceItemsResponse) ProtoReflect() protoreflect.
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledAndOnNodePriceItemsResponse.ProtoReflect.Descriptor instead.
func (*FindAllEnabledAndOnNodePriceItemsResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllAvailableNodePriceItemsResponse.ProtoReflect.Descriptor instead.
func (*FindAllAvailableNodePriceItemsResponse) Descriptor() ([]byte, []int) {
return file_service_node_price_item_proto_rawDescGZIP(), []int{7}
}
func (x *FindAllEnabledAndOnNodePriceItemsResponse) GetNodePriceItems() []*NodePriceItem {
func (x *FindAllAvailableNodePriceItemsResponse) GetNodePriceItems() []*NodePriceItem {
if x != nil {
return x.NodePriceItems
}
@@ -607,58 +607,57 @@ var file_service_node_price_item_proto_rawDesc = []byte{
0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d,
0x52, 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73,
0x22, 0x3e, 0x0a, 0x28, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65,
0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
0x22, 0x66, 0x0a, 0x29, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65,
0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a,
0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x50,
0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72,
0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x4b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65,
0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x4e,
0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49,
0x74, 0x65, 0x6d, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65,
0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x4e, 0x6f, 0x64,
0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49,
0x74, 0x65, 0x6d, 0x52, 0x0d, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74,
0x65, 0x6d, 0x32, 0xd9, 0x04, 0x0a, 0x14, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65,
0x49, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74,
0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f,
0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f,
0x22, 0x3b, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c,
0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65,
0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x63, 0x0a,
0x26, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c,
0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x50,
0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74,
0x65, 0x6d, 0x52, 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65,
0x6d, 0x73, 0x22, 0x4b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69,
0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x22,
0x5b, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f,
0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x13, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49,
0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x45, 0x0a, 0x13, 0x64, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65,
0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
0x73, 0x12, 0x71, 0x0a, 0x1c, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d,
0x73, 0x12, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74,
0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f,
0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65,
0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e,
0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f,
0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52,
0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65,
0x49, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e,
0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0d, 0x4e,
0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x32, 0xcf, 0x04, 0x0a,
0x14, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e,
0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70,
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63,
0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70,
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63,
0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a,
0x13, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65,
0x49, 0x74, 0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63,
0x63, 0x65, 0x73, 0x73, 0x12, 0x45, 0x0a, 0x13, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f,
0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62,
0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65,
0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x71, 0x0a, 0x1c, 0x66,
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64,
0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x27, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e,
0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63,
0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77,
0x0a, 0x1e, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62,
0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73,
0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61,
0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49,
0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c,
0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49,
0x74, 0x65, 0x6d, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
@@ -683,34 +682,34 @@ func file_service_node_price_item_proto_rawDescGZIP() []byte {
var file_service_node_price_item_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_service_node_price_item_proto_goTypes = []interface{}{
(*CreateNodePriceItemRequest)(nil), // 0: pb.CreateNodePriceItemRequest
(*CreateNodePriceItemResponse)(nil), // 1: pb.CreateNodePriceItemResponse
(*UpdateNodePriceItemRequest)(nil), // 2: pb.UpdateNodePriceItemRequest
(*DeleteNodePriceItemRequest)(nil), // 3: pb.DeleteNodePriceItemRequest
(*FindAllEnabledNodePriceItemsRequest)(nil), // 4: pb.FindAllEnabledNodePriceItemsRequest
(*FindAllEnabledNodePriceItemsResponse)(nil), // 5: pb.FindAllEnabledNodePriceItemsResponse
(*FindAllEnabledAndOnNodePriceItemsRequest)(nil), // 6: pb.FindAllEnabledAndOnNodePriceItemsRequest
(*FindAllEnabledAndOnNodePriceItemsResponse)(nil), // 7: pb.FindAllEnabledAndOnNodePriceItemsResponse
(*FindEnabledNodePriceItemRequest)(nil), // 8: pb.FindEnabledNodePriceItemRequest
(*FindEnabledNodePriceItemResponse)(nil), // 9: pb.FindEnabledNodePriceItemResponse
(*NodePriceItem)(nil), // 10: pb.NodePriceItem
(*RPCSuccess)(nil), // 11: pb.RPCSuccess
(*CreateNodePriceItemRequest)(nil), // 0: pb.CreateNodePriceItemRequest
(*CreateNodePriceItemResponse)(nil), // 1: pb.CreateNodePriceItemResponse
(*UpdateNodePriceItemRequest)(nil), // 2: pb.UpdateNodePriceItemRequest
(*DeleteNodePriceItemRequest)(nil), // 3: pb.DeleteNodePriceItemRequest
(*FindAllEnabledNodePriceItemsRequest)(nil), // 4: pb.FindAllEnabledNodePriceItemsRequest
(*FindAllEnabledNodePriceItemsResponse)(nil), // 5: pb.FindAllEnabledNodePriceItemsResponse
(*FindAllAvailableNodePriceItemsRequest)(nil), // 6: pb.FindAllAvailableNodePriceItemsRequest
(*FindAllAvailableNodePriceItemsResponse)(nil), // 7: pb.FindAllAvailableNodePriceItemsResponse
(*FindEnabledNodePriceItemRequest)(nil), // 8: pb.FindEnabledNodePriceItemRequest
(*FindEnabledNodePriceItemResponse)(nil), // 9: pb.FindEnabledNodePriceItemResponse
(*NodePriceItem)(nil), // 10: pb.NodePriceItem
(*RPCSuccess)(nil), // 11: pb.RPCSuccess
}
var file_service_node_price_item_proto_depIdxs = []int32{
10, // 0: pb.FindAllEnabledNodePriceItemsResponse.NodePriceItems:type_name -> pb.NodePriceItem
10, // 1: pb.FindAllEnabledAndOnNodePriceItemsResponse.NodePriceItems:type_name -> pb.NodePriceItem
10, // 1: pb.FindAllAvailableNodePriceItemsResponse.NodePriceItems:type_name -> pb.NodePriceItem
10, // 2: pb.FindEnabledNodePriceItemResponse.NodePriceItem:type_name -> pb.NodePriceItem
0, // 3: pb.NodePriceItemService.createNodePriceItem:input_type -> pb.CreateNodePriceItemRequest
2, // 4: pb.NodePriceItemService.updateNodePriceItem:input_type -> pb.UpdateNodePriceItemRequest
3, // 5: pb.NodePriceItemService.deleteNodePriceItem:input_type -> pb.DeleteNodePriceItemRequest
4, // 6: pb.NodePriceItemService.findAllEnabledNodePriceItems:input_type -> pb.FindAllEnabledNodePriceItemsRequest
6, // 7: pb.NodePriceItemService.findAllEnabledAndOnNodePriceItems:input_type -> pb.FindAllEnabledAndOnNodePriceItemsRequest
6, // 7: pb.NodePriceItemService.findAllAvailableNodePriceItems:input_type -> pb.FindAllAvailableNodePriceItemsRequest
8, // 8: pb.NodePriceItemService.findEnabledNodePriceItem:input_type -> pb.FindEnabledNodePriceItemRequest
1, // 9: pb.NodePriceItemService.createNodePriceItem:output_type -> pb.CreateNodePriceItemResponse
11, // 10: pb.NodePriceItemService.updateNodePriceItem:output_type -> pb.RPCSuccess
11, // 11: pb.NodePriceItemService.deleteNodePriceItem:output_type -> pb.RPCSuccess
5, // 12: pb.NodePriceItemService.findAllEnabledNodePriceItems:output_type -> pb.FindAllEnabledNodePriceItemsResponse
7, // 13: pb.NodePriceItemService.findAllEnabledAndOnNodePriceItems:output_type -> pb.FindAllEnabledAndOnNodePriceItemsResponse
7, // 13: pb.NodePriceItemService.findAllAvailableNodePriceItems:output_type -> pb.FindAllAvailableNodePriceItemsResponse
9, // 14: pb.NodePriceItemService.findEnabledNodePriceItem:output_type -> pb.FindEnabledNodePriceItemResponse
9, // [9:15] is the sub-list for method output_type
3, // [3:9] is the sub-list for method input_type
@@ -800,7 +799,7 @@ func file_service_node_price_item_proto_init() {
}
}
file_service_node_price_item_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledAndOnNodePriceItemsRequest); i {
switch v := v.(*FindAllAvailableNodePriceItemsRequest); i {
case 0:
return &v.state
case 1:
@@ -812,7 +811,7 @@ func file_service_node_price_item_proto_init() {
}
}
file_service_node_price_item_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledAndOnNodePriceItemsResponse); i {
switch v := v.(*FindAllAvailableNodePriceItemsResponse); i {
case 0:
return &v.state
case 1:
@@ -889,7 +888,7 @@ type NodePriceItemServiceClient interface {
// 查找所有区域价格
FindAllEnabledNodePriceItems(ctx context.Context, in *FindAllEnabledNodePriceItemsRequest, opts ...grpc.CallOption) (*FindAllEnabledNodePriceItemsResponse, error)
// 查找所有启用的区域价格
FindAllEnabledAndOnNodePriceItems(ctx context.Context, in *FindAllEnabledAndOnNodePriceItemsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnNodePriceItemsResponse, error)
FindAllAvailableNodePriceItems(ctx context.Context, in *FindAllAvailableNodePriceItemsRequest, opts ...grpc.CallOption) (*FindAllAvailableNodePriceItemsResponse, error)
// 查找单个区域信息
FindEnabledNodePriceItem(ctx context.Context, in *FindEnabledNodePriceItemRequest, opts ...grpc.CallOption) (*FindEnabledNodePriceItemResponse, error)
}
@@ -938,9 +937,9 @@ func (c *nodePriceItemServiceClient) FindAllEnabledNodePriceItems(ctx context.Co
return out, nil
}
func (c *nodePriceItemServiceClient) FindAllEnabledAndOnNodePriceItems(ctx context.Context, in *FindAllEnabledAndOnNodePriceItemsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnNodePriceItemsResponse, error) {
out := new(FindAllEnabledAndOnNodePriceItemsResponse)
err := c.cc.Invoke(ctx, "/pb.NodePriceItemService/findAllEnabledAndOnNodePriceItems", in, out, opts...)
func (c *nodePriceItemServiceClient) FindAllAvailableNodePriceItems(ctx context.Context, in *FindAllAvailableNodePriceItemsRequest, opts ...grpc.CallOption) (*FindAllAvailableNodePriceItemsResponse, error) {
out := new(FindAllAvailableNodePriceItemsResponse)
err := c.cc.Invoke(ctx, "/pb.NodePriceItemService/findAllAvailableNodePriceItems", in, out, opts...)
if err != nil {
return nil, err
}
@@ -967,7 +966,7 @@ type NodePriceItemServiceServer interface {
// 查找所有区域价格
FindAllEnabledNodePriceItems(context.Context, *FindAllEnabledNodePriceItemsRequest) (*FindAllEnabledNodePriceItemsResponse, error)
// 查找所有启用的区域价格
FindAllEnabledAndOnNodePriceItems(context.Context, *FindAllEnabledAndOnNodePriceItemsRequest) (*FindAllEnabledAndOnNodePriceItemsResponse, error)
FindAllAvailableNodePriceItems(context.Context, *FindAllAvailableNodePriceItemsRequest) (*FindAllAvailableNodePriceItemsResponse, error)
// 查找单个区域信息
FindEnabledNodePriceItem(context.Context, *FindEnabledNodePriceItemRequest) (*FindEnabledNodePriceItemResponse, error)
}
@@ -988,8 +987,8 @@ func (*UnimplementedNodePriceItemServiceServer) DeleteNodePriceItem(context.Cont
func (*UnimplementedNodePriceItemServiceServer) FindAllEnabledNodePriceItems(context.Context, *FindAllEnabledNodePriceItemsRequest) (*FindAllEnabledNodePriceItemsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodePriceItems not implemented")
}
func (*UnimplementedNodePriceItemServiceServer) FindAllEnabledAndOnNodePriceItems(context.Context, *FindAllEnabledAndOnNodePriceItemsRequest) (*FindAllEnabledAndOnNodePriceItemsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledAndOnNodePriceItems not implemented")
func (*UnimplementedNodePriceItemServiceServer) FindAllAvailableNodePriceItems(context.Context, *FindAllAvailableNodePriceItemsRequest) (*FindAllAvailableNodePriceItemsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableNodePriceItems not implemented")
}
func (*UnimplementedNodePriceItemServiceServer) FindEnabledNodePriceItem(context.Context, *FindEnabledNodePriceItemRequest) (*FindEnabledNodePriceItemResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNodePriceItem not implemented")
@@ -1071,20 +1070,20 @@ func _NodePriceItemService_FindAllEnabledNodePriceItems_Handler(srv interface{},
return interceptor(ctx, in, info, handler)
}
func _NodePriceItemService_FindAllEnabledAndOnNodePriceItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllEnabledAndOnNodePriceItemsRequest)
func _NodePriceItemService_FindAllAvailableNodePriceItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllAvailableNodePriceItemsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodePriceItemServiceServer).FindAllEnabledAndOnNodePriceItems(ctx, in)
return srv.(NodePriceItemServiceServer).FindAllAvailableNodePriceItems(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodePriceItemService/FindAllEnabledAndOnNodePriceItems",
FullMethod: "/pb.NodePriceItemService/FindAllAvailableNodePriceItems",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodePriceItemServiceServer).FindAllEnabledAndOnNodePriceItems(ctx, req.(*FindAllEnabledAndOnNodePriceItemsRequest))
return srv.(NodePriceItemServiceServer).FindAllAvailableNodePriceItems(ctx, req.(*FindAllAvailableNodePriceItemsRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -1128,8 +1127,8 @@ var _NodePriceItemService_serviceDesc = grpc.ServiceDesc{
Handler: _NodePriceItemService_FindAllEnabledNodePriceItems_Handler,
},
{
MethodName: "findAllEnabledAndOnNodePriceItems",
Handler: _NodePriceItemService_FindAllEnabledAndOnNodePriceItems_Handler,
MethodName: "findAllAvailableNodePriceItems",
Handler: _NodePriceItemService_FindAllAvailableNodePriceItems_Handler,
},
{
MethodName: "findEnabledNodePriceItem",

View File

@@ -339,14 +339,14 @@ func (x *FindAllEnabledNodeRegionsResponse) GetNodeRegions() []*NodeRegion {
}
// 查找所有启用的区域
type FindAllEnabledAndOnNodeRegionsRequest struct {
type FindAllAvailableNodeRegionsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *FindAllEnabledAndOnNodeRegionsRequest) Reset() {
*x = FindAllEnabledAndOnNodeRegionsRequest{}
func (x *FindAllAvailableNodeRegionsRequest) Reset() {
*x = FindAllAvailableNodeRegionsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_region_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -354,13 +354,13 @@ func (x *FindAllEnabledAndOnNodeRegionsRequest) Reset() {
}
}
func (x *FindAllEnabledAndOnNodeRegionsRequest) String() string {
func (x *FindAllAvailableNodeRegionsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledAndOnNodeRegionsRequest) ProtoMessage() {}
func (*FindAllAvailableNodeRegionsRequest) ProtoMessage() {}
func (x *FindAllEnabledAndOnNodeRegionsRequest) ProtoReflect() protoreflect.Message {
func (x *FindAllAvailableNodeRegionsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_node_region_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -372,12 +372,12 @@ func (x *FindAllEnabledAndOnNodeRegionsRequest) ProtoReflect() protoreflect.Mess
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledAndOnNodeRegionsRequest.ProtoReflect.Descriptor instead.
func (*FindAllEnabledAndOnNodeRegionsRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllAvailableNodeRegionsRequest.ProtoReflect.Descriptor instead.
func (*FindAllAvailableNodeRegionsRequest) Descriptor() ([]byte, []int) {
return file_service_node_region_proto_rawDescGZIP(), []int{6}
}
type FindAllEnabledAndOnNodeRegionsResponse struct {
type FindAllAvailableNodeRegionsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -385,8 +385,8 @@ type FindAllEnabledAndOnNodeRegionsResponse struct {
NodeRegions []*NodeRegion `protobuf:"bytes,1,rep,name=nodeRegions,proto3" json:"nodeRegions,omitempty"`
}
func (x *FindAllEnabledAndOnNodeRegionsResponse) Reset() {
*x = FindAllEnabledAndOnNodeRegionsResponse{}
func (x *FindAllAvailableNodeRegionsResponse) Reset() {
*x = FindAllAvailableNodeRegionsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_node_region_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -394,13 +394,13 @@ func (x *FindAllEnabledAndOnNodeRegionsResponse) Reset() {
}
}
func (x *FindAllEnabledAndOnNodeRegionsResponse) String() string {
func (x *FindAllAvailableNodeRegionsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledAndOnNodeRegionsResponse) ProtoMessage() {}
func (*FindAllAvailableNodeRegionsResponse) ProtoMessage() {}
func (x *FindAllEnabledAndOnNodeRegionsResponse) ProtoReflect() protoreflect.Message {
func (x *FindAllAvailableNodeRegionsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_node_region_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -412,12 +412,12 @@ func (x *FindAllEnabledAndOnNodeRegionsResponse) ProtoReflect() protoreflect.Mes
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledAndOnNodeRegionsResponse.ProtoReflect.Descriptor instead.
func (*FindAllEnabledAndOnNodeRegionsResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllAvailableNodeRegionsResponse.ProtoReflect.Descriptor instead.
func (*FindAllAvailableNodeRegionsResponse) Descriptor() ([]byte, []int) {
return file_service_node_region_proto_rawDescGZIP(), []int{7}
}
func (x *FindAllEnabledAndOnNodeRegionsResponse) GetNodeRegions() []*NodeRegion {
func (x *FindAllAvailableNodeRegionsResponse) GetNodeRegions() []*NodeRegion {
if x != nil {
return x.NodeRegions
}
@@ -669,81 +669,80 @@ var file_service_node_region_proto_rawDesc = []byte{
0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x22,
0x27, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5a, 0x0a, 0x26, 0x46, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e,
0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64,
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x73, 0x22, 0x45, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f,
0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f,
0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x42, 0x0a, 0x1c, 0x46,
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x6e,
0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22,
0x4f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f,
0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x22, 0x78, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x74, 0x65, 0x6d,
0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x74,
0x65, 0x6d, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x02, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x32, 0xbd, 0x05, 0x0a, 0x11, 0x4e,
0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x4d, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64,
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x3f, 0x0a, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
0x12, 0x3f, 0x0a, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
0x73, 0x12, 0x68, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, 0x66,
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64,
0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x29, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f,
0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f,
0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x21,
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
0x73, 0x12, 0x5c, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70,
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64,
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70,
0x24, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61,
0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x57, 0x0a, 0x23, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0b,
0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x45,
0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x42, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x64,
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x1d, 0x46, 0x69, 0x6e,
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f,
0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e,
0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0a,
0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x78, 0x0a, 0x1c, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 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, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f,
0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e,
0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
0x28, 0x03, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x14,
0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x70,
0x72, 0x69, 0x63, 0x65, 0x32, 0xb4, 0x05, 0x0a, 0x11, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b,
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x10, 0x75, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e,
0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3f, 0x0a, 0x10, 0x64, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b,
0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x68, 0x0a, 0x19, 0x66,
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64,
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70,
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62,
0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e,
0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12,
0x21, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
0x73, 0x73, 0x12, 0x5c, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f,
0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 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, 0x42, 0x06, 0x5a, 0x04, 0x2e,
0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -760,30 +759,30 @@ func file_service_node_region_proto_rawDescGZIP() []byte {
var file_service_node_region_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_service_node_region_proto_goTypes = []interface{}{
(*CreateNodeRegionRequest)(nil), // 0: pb.CreateNodeRegionRequest
(*CreateNodeRegionResponse)(nil), // 1: pb.CreateNodeRegionResponse
(*UpdateNodeRegionRequest)(nil), // 2: pb.UpdateNodeRegionRequest
(*DeleteNodeRegionRequest)(nil), // 3: pb.DeleteNodeRegionRequest
(*FindAllEnabledNodeRegionsRequest)(nil), // 4: pb.FindAllEnabledNodeRegionsRequest
(*FindAllEnabledNodeRegionsResponse)(nil), // 5: pb.FindAllEnabledNodeRegionsResponse
(*FindAllEnabledAndOnNodeRegionsRequest)(nil), // 6: pb.FindAllEnabledAndOnNodeRegionsRequest
(*FindAllEnabledAndOnNodeRegionsResponse)(nil), // 7: pb.FindAllEnabledAndOnNodeRegionsResponse
(*UpdateNodeRegionOrdersRequest)(nil), // 8: pb.UpdateNodeRegionOrdersRequest
(*FindEnabledNodeRegionRequest)(nil), // 9: pb.FindEnabledNodeRegionRequest
(*FindEnabledNodeRegionResponse)(nil), // 10: pb.FindEnabledNodeRegionResponse
(*UpdateNodeRegionPriceRequest)(nil), // 11: pb.UpdateNodeRegionPriceRequest
(*NodeRegion)(nil), // 12: pb.NodeRegion
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
(*CreateNodeRegionRequest)(nil), // 0: pb.CreateNodeRegionRequest
(*CreateNodeRegionResponse)(nil), // 1: pb.CreateNodeRegionResponse
(*UpdateNodeRegionRequest)(nil), // 2: pb.UpdateNodeRegionRequest
(*DeleteNodeRegionRequest)(nil), // 3: pb.DeleteNodeRegionRequest
(*FindAllEnabledNodeRegionsRequest)(nil), // 4: pb.FindAllEnabledNodeRegionsRequest
(*FindAllEnabledNodeRegionsResponse)(nil), // 5: pb.FindAllEnabledNodeRegionsResponse
(*FindAllAvailableNodeRegionsRequest)(nil), // 6: pb.FindAllAvailableNodeRegionsRequest
(*FindAllAvailableNodeRegionsResponse)(nil), // 7: pb.FindAllAvailableNodeRegionsResponse
(*UpdateNodeRegionOrdersRequest)(nil), // 8: pb.UpdateNodeRegionOrdersRequest
(*FindEnabledNodeRegionRequest)(nil), // 9: pb.FindEnabledNodeRegionRequest
(*FindEnabledNodeRegionResponse)(nil), // 10: pb.FindEnabledNodeRegionResponse
(*UpdateNodeRegionPriceRequest)(nil), // 11: pb.UpdateNodeRegionPriceRequest
(*NodeRegion)(nil), // 12: pb.NodeRegion
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
}
var file_service_node_region_proto_depIdxs = []int32{
12, // 0: pb.FindAllEnabledNodeRegionsResponse.nodeRegions:type_name -> pb.NodeRegion
12, // 1: pb.FindAllEnabledAndOnNodeRegionsResponse.nodeRegions:type_name -> pb.NodeRegion
12, // 1: pb.FindAllAvailableNodeRegionsResponse.nodeRegions:type_name -> pb.NodeRegion
12, // 2: pb.FindEnabledNodeRegionResponse.nodeRegion:type_name -> pb.NodeRegion
0, // 3: pb.NodeRegionService.createNodeRegion:input_type -> pb.CreateNodeRegionRequest
2, // 4: pb.NodeRegionService.updateNodeRegion:input_type -> pb.UpdateNodeRegionRequest
3, // 5: pb.NodeRegionService.deleteNodeRegion:input_type -> pb.DeleteNodeRegionRequest
4, // 6: pb.NodeRegionService.findAllEnabledNodeRegions:input_type -> pb.FindAllEnabledNodeRegionsRequest
6, // 7: pb.NodeRegionService.findAllEnabledAndOnNodeRegions:input_type -> pb.FindAllEnabledAndOnNodeRegionsRequest
6, // 7: pb.NodeRegionService.findAllAvailableNodeRegions:input_type -> pb.FindAllAvailableNodeRegionsRequest
8, // 8: pb.NodeRegionService.updateNodeRegionOrders:input_type -> pb.UpdateNodeRegionOrdersRequest
9, // 9: pb.NodeRegionService.findEnabledNodeRegion:input_type -> pb.FindEnabledNodeRegionRequest
11, // 10: pb.NodeRegionService.updateNodeRegionPrice:input_type -> pb.UpdateNodeRegionPriceRequest
@@ -791,7 +790,7 @@ var file_service_node_region_proto_depIdxs = []int32{
13, // 12: pb.NodeRegionService.updateNodeRegion:output_type -> pb.RPCSuccess
13, // 13: pb.NodeRegionService.deleteNodeRegion:output_type -> pb.RPCSuccess
5, // 14: pb.NodeRegionService.findAllEnabledNodeRegions:output_type -> pb.FindAllEnabledNodeRegionsResponse
7, // 15: pb.NodeRegionService.findAllEnabledAndOnNodeRegions:output_type -> pb.FindAllEnabledAndOnNodeRegionsResponse
7, // 15: pb.NodeRegionService.findAllAvailableNodeRegions:output_type -> pb.FindAllAvailableNodeRegionsResponse
13, // 16: pb.NodeRegionService.updateNodeRegionOrders:output_type -> pb.RPCSuccess
10, // 17: pb.NodeRegionService.findEnabledNodeRegion:output_type -> pb.FindEnabledNodeRegionResponse
13, // 18: pb.NodeRegionService.updateNodeRegionPrice:output_type -> pb.RPCSuccess
@@ -883,7 +882,7 @@ func file_service_node_region_proto_init() {
}
}
file_service_node_region_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledAndOnNodeRegionsRequest); i {
switch v := v.(*FindAllAvailableNodeRegionsRequest); i {
case 0:
return &v.state
case 1:
@@ -895,7 +894,7 @@ func file_service_node_region_proto_init() {
}
}
file_service_node_region_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledAndOnNodeRegionsResponse); i {
switch v := v.(*FindAllAvailableNodeRegionsResponse); i {
case 0:
return &v.state
case 1:
@@ -996,7 +995,7 @@ type NodeRegionServiceClient interface {
// 查找所有区域
FindAllEnabledNodeRegions(ctx context.Context, in *FindAllEnabledNodeRegionsRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeRegionsResponse, error)
// 查找所有启用的区域
FindAllEnabledAndOnNodeRegions(ctx context.Context, in *FindAllEnabledAndOnNodeRegionsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnNodeRegionsResponse, error)
FindAllAvailableNodeRegions(ctx context.Context, in *FindAllAvailableNodeRegionsRequest, opts ...grpc.CallOption) (*FindAllAvailableNodeRegionsResponse, error)
// 排序
UpdateNodeRegionOrders(ctx context.Context, in *UpdateNodeRegionOrdersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 查找单个区域信息
@@ -1049,9 +1048,9 @@ func (c *nodeRegionServiceClient) FindAllEnabledNodeRegions(ctx context.Context,
return out, nil
}
func (c *nodeRegionServiceClient) FindAllEnabledAndOnNodeRegions(ctx context.Context, in *FindAllEnabledAndOnNodeRegionsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnNodeRegionsResponse, error) {
out := new(FindAllEnabledAndOnNodeRegionsResponse)
err := c.cc.Invoke(ctx, "/pb.NodeRegionService/findAllEnabledAndOnNodeRegions", in, out, opts...)
func (c *nodeRegionServiceClient) FindAllAvailableNodeRegions(ctx context.Context, in *FindAllAvailableNodeRegionsRequest, opts ...grpc.CallOption) (*FindAllAvailableNodeRegionsResponse, error) {
out := new(FindAllAvailableNodeRegionsResponse)
err := c.cc.Invoke(ctx, "/pb.NodeRegionService/findAllAvailableNodeRegions", in, out, opts...)
if err != nil {
return nil, err
}
@@ -1096,7 +1095,7 @@ type NodeRegionServiceServer interface {
// 查找所有区域
FindAllEnabledNodeRegions(context.Context, *FindAllEnabledNodeRegionsRequest) (*FindAllEnabledNodeRegionsResponse, error)
// 查找所有启用的区域
FindAllEnabledAndOnNodeRegions(context.Context, *FindAllEnabledAndOnNodeRegionsRequest) (*FindAllEnabledAndOnNodeRegionsResponse, error)
FindAllAvailableNodeRegions(context.Context, *FindAllAvailableNodeRegionsRequest) (*FindAllAvailableNodeRegionsResponse, error)
// 排序
UpdateNodeRegionOrders(context.Context, *UpdateNodeRegionOrdersRequest) (*RPCSuccess, error)
// 查找单个区域信息
@@ -1121,8 +1120,8 @@ func (*UnimplementedNodeRegionServiceServer) DeleteNodeRegion(context.Context, *
func (*UnimplementedNodeRegionServiceServer) FindAllEnabledNodeRegions(context.Context, *FindAllEnabledNodeRegionsRequest) (*FindAllEnabledNodeRegionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodeRegions not implemented")
}
func (*UnimplementedNodeRegionServiceServer) FindAllEnabledAndOnNodeRegions(context.Context, *FindAllEnabledAndOnNodeRegionsRequest) (*FindAllEnabledAndOnNodeRegionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledAndOnNodeRegions not implemented")
func (*UnimplementedNodeRegionServiceServer) FindAllAvailableNodeRegions(context.Context, *FindAllAvailableNodeRegionsRequest) (*FindAllAvailableNodeRegionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableNodeRegions not implemented")
}
func (*UnimplementedNodeRegionServiceServer) UpdateNodeRegionOrders(context.Context, *UpdateNodeRegionOrdersRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeRegionOrders not implemented")
@@ -1210,20 +1209,20 @@ func _NodeRegionService_FindAllEnabledNodeRegions_Handler(srv interface{}, ctx c
return interceptor(ctx, in, info, handler)
}
func _NodeRegionService_FindAllEnabledAndOnNodeRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllEnabledAndOnNodeRegionsRequest)
func _NodeRegionService_FindAllAvailableNodeRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllAvailableNodeRegionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NodeRegionServiceServer).FindAllEnabledAndOnNodeRegions(ctx, in)
return srv.(NodeRegionServiceServer).FindAllAvailableNodeRegions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NodeRegionService/FindAllEnabledAndOnNodeRegions",
FullMethod: "/pb.NodeRegionService/FindAllAvailableNodeRegions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NodeRegionServiceServer).FindAllEnabledAndOnNodeRegions(ctx, req.(*FindAllEnabledAndOnNodeRegionsRequest))
return srv.(NodeRegionServiceServer).FindAllAvailableNodeRegions(ctx, req.(*FindAllAvailableNodeRegionsRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -1303,8 +1302,8 @@ var _NodeRegionService_serviceDesc = grpc.ServiceDesc{
Handler: _NodeRegionService_FindAllEnabledNodeRegions_Handler,
},
{
MethodName: "findAllEnabledAndOnNodeRegions",
Handler: _NodeRegionService_FindAllEnabledAndOnNodeRegions_Handler,
MethodName: "findAllAvailableNodeRegions",
Handler: _NodeRegionService_FindAllAvailableNodeRegions_Handler,
},
{
MethodName: "updateNodeRegionOrders",

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

@@ -301,7 +301,7 @@ func (x *DeleteNSKeyRequest) GetNsKeyId() int64 {
}
// 查找单个密钥
type FindEnabledNSKeyRequest struct {
type FindNSKeyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -309,8 +309,8 @@ type FindEnabledNSKeyRequest struct {
NsKeyId int64 `protobuf:"varint,1,opt,name=nsKeyId,proto3" json:"nsKeyId,omitempty"`
}
func (x *FindEnabledNSKeyRequest) Reset() {
*x = FindEnabledNSKeyRequest{}
func (x *FindNSKeyRequest) Reset() {
*x = FindNSKeyRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -318,13 +318,13 @@ func (x *FindEnabledNSKeyRequest) Reset() {
}
}
func (x *FindEnabledNSKeyRequest) String() string {
func (x *FindNSKeyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledNSKeyRequest) ProtoMessage() {}
func (*FindNSKeyRequest) ProtoMessage() {}
func (x *FindEnabledNSKeyRequest) ProtoReflect() protoreflect.Message {
func (x *FindNSKeyRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -336,19 +336,19 @@ func (x *FindEnabledNSKeyRequest) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledNSKeyRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledNSKeyRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use FindNSKeyRequest.ProtoReflect.Descriptor instead.
func (*FindNSKeyRequest) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{4}
}
func (x *FindEnabledNSKeyRequest) GetNsKeyId() int64 {
func (x *FindNSKeyRequest) GetNsKeyId() int64 {
if x != nil {
return x.NsKeyId
}
return 0
}
type FindEnabledNSKeyResponse struct {
type FindNSKeyResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -356,8 +356,8 @@ type FindEnabledNSKeyResponse struct {
NsKey *NSKey `protobuf:"bytes,1,opt,name=nsKey,proto3" json:"nsKey,omitempty"`
}
func (x *FindEnabledNSKeyResponse) Reset() {
*x = FindEnabledNSKeyResponse{}
func (x *FindNSKeyResponse) Reset() {
*x = FindNSKeyResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -365,13 +365,13 @@ func (x *FindEnabledNSKeyResponse) Reset() {
}
}
func (x *FindEnabledNSKeyResponse) String() string {
func (x *FindNSKeyResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledNSKeyResponse) ProtoMessage() {}
func (*FindNSKeyResponse) ProtoMessage() {}
func (x *FindEnabledNSKeyResponse) ProtoReflect() protoreflect.Message {
func (x *FindNSKeyResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -383,12 +383,12 @@ func (x *FindEnabledNSKeyResponse) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledNSKeyResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledNSKeyResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use FindNSKeyResponse.ProtoReflect.Descriptor instead.
func (*FindNSKeyResponse) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{5}
}
func (x *FindEnabledNSKeyResponse) GetNsKey() *NSKey {
func (x *FindNSKeyResponse) GetNsKey() *NSKey {
if x != nil {
return x.NsKey
}
@@ -396,7 +396,7 @@ func (x *FindEnabledNSKeyResponse) GetNsKey() *NSKey {
}
// 计算密钥数量
type CountAllEnabledNSKeysRequest struct {
type CountAllNSKeysRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -405,8 +405,8 @@ type CountAllEnabledNSKeysRequest struct {
NsZoneId int64 `protobuf:"varint,2,opt,name=nsZoneId,proto3" json:"nsZoneId,omitempty"`
}
func (x *CountAllEnabledNSKeysRequest) Reset() {
*x = CountAllEnabledNSKeysRequest{}
func (x *CountAllNSKeysRequest) Reset() {
*x = CountAllNSKeysRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -414,13 +414,13 @@ func (x *CountAllEnabledNSKeysRequest) Reset() {
}
}
func (x *CountAllEnabledNSKeysRequest) String() string {
func (x *CountAllNSKeysRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountAllEnabledNSKeysRequest) ProtoMessage() {}
func (*CountAllNSKeysRequest) ProtoMessage() {}
func (x *CountAllEnabledNSKeysRequest) ProtoReflect() protoreflect.Message {
func (x *CountAllNSKeysRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -432,19 +432,19 @@ func (x *CountAllEnabledNSKeysRequest) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use CountAllEnabledNSKeysRequest.ProtoReflect.Descriptor instead.
func (*CountAllEnabledNSKeysRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use CountAllNSKeysRequest.ProtoReflect.Descriptor instead.
func (*CountAllNSKeysRequest) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{6}
}
func (x *CountAllEnabledNSKeysRequest) GetNsDomainId() int64 {
func (x *CountAllNSKeysRequest) GetNsDomainId() int64 {
if x != nil {
return x.NsDomainId
}
return 0
}
func (x *CountAllEnabledNSKeysRequest) GetNsZoneId() int64 {
func (x *CountAllNSKeysRequest) GetNsZoneId() int64 {
if x != nil {
return x.NsZoneId
}
@@ -452,7 +452,7 @@ func (x *CountAllEnabledNSKeysRequest) GetNsZoneId() int64 {
}
// 列出单页密钥
type ListEnabledNSKeysRequest struct {
type ListNSKeysRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -463,8 +463,8 @@ type ListEnabledNSKeysRequest struct {
Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
}
func (x *ListEnabledNSKeysRequest) Reset() {
*x = ListEnabledNSKeysRequest{}
func (x *ListNSKeysRequest) Reset() {
*x = ListNSKeysRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -472,13 +472,13 @@ func (x *ListEnabledNSKeysRequest) Reset() {
}
}
func (x *ListEnabledNSKeysRequest) String() string {
func (x *ListNSKeysRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEnabledNSKeysRequest) ProtoMessage() {}
func (*ListNSKeysRequest) ProtoMessage() {}
func (x *ListEnabledNSKeysRequest) ProtoReflect() protoreflect.Message {
func (x *ListNSKeysRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -490,40 +490,40 @@ func (x *ListEnabledNSKeysRequest) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use ListEnabledNSKeysRequest.ProtoReflect.Descriptor instead.
func (*ListEnabledNSKeysRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use ListNSKeysRequest.ProtoReflect.Descriptor instead.
func (*ListNSKeysRequest) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{7}
}
func (x *ListEnabledNSKeysRequest) GetNsDomainId() int64 {
func (x *ListNSKeysRequest) GetNsDomainId() int64 {
if x != nil {
return x.NsDomainId
}
return 0
}
func (x *ListEnabledNSKeysRequest) GetNsZoneId() int64 {
func (x *ListNSKeysRequest) GetNsZoneId() int64 {
if x != nil {
return x.NsZoneId
}
return 0
}
func (x *ListEnabledNSKeysRequest) GetOffset() int64 {
func (x *ListNSKeysRequest) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
func (x *ListEnabledNSKeysRequest) GetSize() int64 {
func (x *ListNSKeysRequest) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
type ListEnabledNSKeysResponse struct {
type ListNSKeysResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -531,8 +531,8 @@ type ListEnabledNSKeysResponse struct {
NsKeys []*NSKey `protobuf:"bytes,1,rep,name=nsKeys,proto3" json:"nsKeys,omitempty"`
}
func (x *ListEnabledNSKeysResponse) Reset() {
*x = ListEnabledNSKeysResponse{}
func (x *ListNSKeysResponse) Reset() {
*x = ListNSKeysResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_key_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -540,13 +540,13 @@ func (x *ListEnabledNSKeysResponse) Reset() {
}
}
func (x *ListEnabledNSKeysResponse) String() string {
func (x *ListNSKeysResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEnabledNSKeysResponse) ProtoMessage() {}
func (*ListNSKeysResponse) ProtoMessage() {}
func (x *ListEnabledNSKeysResponse) ProtoReflect() protoreflect.Message {
func (x *ListNSKeysResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_key_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -558,12 +558,12 @@ func (x *ListEnabledNSKeysResponse) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use ListEnabledNSKeysResponse.ProtoReflect.Descriptor instead.
func (*ListEnabledNSKeysResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use ListNSKeysResponse.ProtoReflect.Descriptor instead.
func (*ListNSKeysResponse) Descriptor() ([]byte, []int) {
return file_service_ns_key_proto_rawDescGZIP(), []int{8}
}
func (x *ListEnabledNSKeysResponse) GetNsKeys() []*NSKey {
func (x *ListNSKeysResponse) GetNsKeys() []*NSKey {
if x != nil {
return x.NsKeys
}
@@ -708,76 +708,70 @@ var file_service_ns_key_proto_rawDesc = []byte{
0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, 0x2e, 0x0a, 0x12, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x18, 0x0a, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x17, 0x46, 0x69, 0x6e,
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x3b,
0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b,
0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x6e, 0x73,
0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4e,
0x53, 0x4b, 0x65, 0x79, 0x52, 0x05, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x22, 0x5a, 0x0a, 0x1c, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53,
0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e,
0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e,
0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e,
0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x22, 0x82, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64,
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64,
0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65,
0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3e, 0x0a, 0x19,
0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6e, 0x73, 0x4b,
0x52, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x2c, 0x0a, 0x10, 0x46, 0x69, 0x6e,
0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a,
0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x34, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4e,
0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x05,
0x6e, 0x73, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62,
0x2e, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x05, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x22, 0x53, 0x0a,
0x15, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61,
0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f,
0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, 0x65,
0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, 0x65,
0x49, 0x64, 0x22, 0x7b, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e,
0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e,
0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20,
0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73,
0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22,
0x37, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4b, 0x65, 0x79,
0x52, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x4d, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74,
0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x4e,
0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6e, 0x73, 0x4b,
0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4e,
0x53, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x4d, 0x0a, 0x1d,
0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a,
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x1e, 0x4c,
0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a,
0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e,
0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73,
0x32, 0x8f, 0x04, 0x0a, 0x0c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79,
0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65,
0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x35, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79,
0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65,
0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12,
0x4d, 0x0a, 0x10, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53,
0x4b, 0x65, 0x79, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f,
0x0a, 0x15, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65,
0x79, 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,
0x50, 0x0a, 0x11, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53,
0x4b, 0x65, 0x79, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41,
0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x70, 0x62,
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72,
0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22,
0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66,
0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
0x53, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x32, 0xd7, 0x03, 0x0a,
0x0c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3e, 0x0a,
0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x70,
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a,
0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x70,
0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63,
0x63, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53,
0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e,
0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x66,
0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c,
0x6c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 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, 0x3b, 0x0a, 0x0a, 0x6c, 0x69, 0x73, 0x74,
0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74,
0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b,
0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
0x21, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41,
0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65,
0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 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 (
@@ -798,11 +792,11 @@ var file_service_ns_key_proto_goTypes = []interface{}{
(*CreateNSKeyResponse)(nil), // 1: pb.CreateNSKeyResponse
(*UpdateNSKeyRequest)(nil), // 2: pb.UpdateNSKeyRequest
(*DeleteNSKeyRequest)(nil), // 3: pb.DeleteNSKeyRequest
(*FindEnabledNSKeyRequest)(nil), // 4: pb.FindEnabledNSKeyRequest
(*FindEnabledNSKeyResponse)(nil), // 5: pb.FindEnabledNSKeyResponse
(*CountAllEnabledNSKeysRequest)(nil), // 6: pb.CountAllEnabledNSKeysRequest
(*ListEnabledNSKeysRequest)(nil), // 7: pb.ListEnabledNSKeysRequest
(*ListEnabledNSKeysResponse)(nil), // 8: pb.ListEnabledNSKeysResponse
(*FindNSKeyRequest)(nil), // 4: pb.FindNSKeyRequest
(*FindNSKeyResponse)(nil), // 5: pb.FindNSKeyResponse
(*CountAllNSKeysRequest)(nil), // 6: pb.CountAllNSKeysRequest
(*ListNSKeysRequest)(nil), // 7: pb.ListNSKeysRequest
(*ListNSKeysResponse)(nil), // 8: pb.ListNSKeysResponse
(*ListNSKeysAfterVersionRequest)(nil), // 9: pb.ListNSKeysAfterVersionRequest
(*ListNSKeysAfterVersionResponse)(nil), // 10: pb.ListNSKeysAfterVersionResponse
(*NSKey)(nil), // 11: pb.NSKey
@@ -810,22 +804,22 @@ var file_service_ns_key_proto_goTypes = []interface{}{
(*RPCCountResponse)(nil), // 13: pb.RPCCountResponse
}
var file_service_ns_key_proto_depIdxs = []int32{
11, // 0: pb.FindEnabledNSKeyResponse.nsKey:type_name -> pb.NSKey
11, // 1: pb.ListEnabledNSKeysResponse.nsKeys:type_name -> pb.NSKey
11, // 0: pb.FindNSKeyResponse.nsKey:type_name -> pb.NSKey
11, // 1: pb.ListNSKeysResponse.nsKeys:type_name -> pb.NSKey
11, // 2: pb.ListNSKeysAfterVersionResponse.nsKeys:type_name -> pb.NSKey
0, // 3: pb.NSKeyService.createNSKey:input_type -> pb.CreateNSKeyRequest
2, // 4: pb.NSKeyService.updateNSKey:input_type -> pb.UpdateNSKeyRequest
3, // 5: pb.NSKeyService.deleteNSKey:input_type -> pb.DeleteNSKeyRequest
4, // 6: pb.NSKeyService.findEnabledNSKey:input_type -> pb.FindEnabledNSKeyRequest
6, // 7: pb.NSKeyService.countAllEnabledNSKeys:input_type -> pb.CountAllEnabledNSKeysRequest
7, // 8: pb.NSKeyService.listEnabledNSKeys:input_type -> pb.ListEnabledNSKeysRequest
4, // 6: pb.NSKeyService.findNSKey:input_type -> pb.FindNSKeyRequest
6, // 7: pb.NSKeyService.countAllNSKeys:input_type -> pb.CountAllNSKeysRequest
7, // 8: pb.NSKeyService.listNSKeys:input_type -> pb.ListNSKeysRequest
9, // 9: pb.NSKeyService.listNSKeysAfterVersion:input_type -> pb.ListNSKeysAfterVersionRequest
1, // 10: pb.NSKeyService.createNSKey:output_type -> pb.CreateNSKeyResponse
12, // 11: pb.NSKeyService.updateNSKey:output_type -> pb.RPCSuccess
12, // 12: pb.NSKeyService.deleteNSKey:output_type -> pb.RPCSuccess
5, // 13: pb.NSKeyService.findEnabledNSKey:output_type -> pb.FindEnabledNSKeyResponse
13, // 14: pb.NSKeyService.countAllEnabledNSKeys:output_type -> pb.RPCCountResponse
8, // 15: pb.NSKeyService.listEnabledNSKeys:output_type -> pb.ListEnabledNSKeysResponse
5, // 13: pb.NSKeyService.findNSKey:output_type -> pb.FindNSKeyResponse
13, // 14: pb.NSKeyService.countAllNSKeys:output_type -> pb.RPCCountResponse
8, // 15: pb.NSKeyService.listNSKeys:output_type -> pb.ListNSKeysResponse
10, // 16: pb.NSKeyService.listNSKeysAfterVersion:output_type -> pb.ListNSKeysAfterVersionResponse
10, // [10:17] is the sub-list for method output_type
3, // [3:10] is the sub-list for method input_type
@@ -891,7 +885,7 @@ func file_service_ns_key_proto_init() {
}
}
file_service_ns_key_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledNSKeyRequest); i {
switch v := v.(*FindNSKeyRequest); i {
case 0:
return &v.state
case 1:
@@ -903,7 +897,7 @@ func file_service_ns_key_proto_init() {
}
}
file_service_ns_key_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledNSKeyResponse); i {
switch v := v.(*FindNSKeyResponse); i {
case 0:
return &v.state
case 1:
@@ -915,7 +909,7 @@ func file_service_ns_key_proto_init() {
}
}
file_service_ns_key_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CountAllEnabledNSKeysRequest); i {
switch v := v.(*CountAllNSKeysRequest); i {
case 0:
return &v.state
case 1:
@@ -927,7 +921,7 @@ func file_service_ns_key_proto_init() {
}
}
file_service_ns_key_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledNSKeysRequest); i {
switch v := v.(*ListNSKeysRequest); i {
case 0:
return &v.state
case 1:
@@ -939,7 +933,7 @@ func file_service_ns_key_proto_init() {
}
}
file_service_ns_key_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledNSKeysResponse); i {
switch v := v.(*ListNSKeysResponse); i {
case 0:
return &v.state
case 1:
@@ -1014,11 +1008,11 @@ type NSKeyServiceClient interface {
// 删除密钥
DeleteNSKey(ctx context.Context, in *DeleteNSKeyRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 查找单个密钥
FindEnabledNSKey(ctx context.Context, in *FindEnabledNSKeyRequest, opts ...grpc.CallOption) (*FindEnabledNSKeyResponse, error)
FindNSKey(ctx context.Context, in *FindNSKeyRequest, opts ...grpc.CallOption) (*FindNSKeyResponse, error)
// 计算密钥数量
CountAllEnabledNSKeys(ctx context.Context, in *CountAllEnabledNSKeysRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
CountAllNSKeys(ctx context.Context, in *CountAllNSKeysRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
// 列出单页密钥
ListEnabledNSKeys(ctx context.Context, in *ListEnabledNSKeysRequest, opts ...grpc.CallOption) (*ListEnabledNSKeysResponse, error)
ListNSKeys(ctx context.Context, in *ListNSKeysRequest, opts ...grpc.CallOption) (*ListNSKeysResponse, error)
// 根据版本列出一组密钥
ListNSKeysAfterVersion(ctx context.Context, in *ListNSKeysAfterVersionRequest, opts ...grpc.CallOption) (*ListNSKeysAfterVersionResponse, error)
}
@@ -1058,27 +1052,27 @@ func (c *nSKeyServiceClient) DeleteNSKey(ctx context.Context, in *DeleteNSKeyReq
return out, nil
}
func (c *nSKeyServiceClient) FindEnabledNSKey(ctx context.Context, in *FindEnabledNSKeyRequest, opts ...grpc.CallOption) (*FindEnabledNSKeyResponse, error) {
out := new(FindEnabledNSKeyResponse)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/findEnabledNSKey", in, out, opts...)
func (c *nSKeyServiceClient) FindNSKey(ctx context.Context, in *FindNSKeyRequest, opts ...grpc.CallOption) (*FindNSKeyResponse, error) {
out := new(FindNSKeyResponse)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/findNSKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSKeyServiceClient) CountAllEnabledNSKeys(ctx context.Context, in *CountAllEnabledNSKeysRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
func (c *nSKeyServiceClient) CountAllNSKeys(ctx context.Context, in *CountAllNSKeysRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
out := new(RPCCountResponse)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/countAllEnabledNSKeys", in, out, opts...)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/countAllNSKeys", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSKeyServiceClient) ListEnabledNSKeys(ctx context.Context, in *ListEnabledNSKeysRequest, opts ...grpc.CallOption) (*ListEnabledNSKeysResponse, error) {
out := new(ListEnabledNSKeysResponse)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/listEnabledNSKeys", in, out, opts...)
func (c *nSKeyServiceClient) ListNSKeys(ctx context.Context, in *ListNSKeysRequest, opts ...grpc.CallOption) (*ListNSKeysResponse, error) {
out := new(ListNSKeysResponse)
err := c.cc.Invoke(ctx, "/pb.NSKeyService/listNSKeys", in, out, opts...)
if err != nil {
return nil, err
}
@@ -1103,11 +1097,11 @@ type NSKeyServiceServer interface {
// 删除密钥
DeleteNSKey(context.Context, *DeleteNSKeyRequest) (*RPCSuccess, error)
// 查找单个密钥
FindEnabledNSKey(context.Context, *FindEnabledNSKeyRequest) (*FindEnabledNSKeyResponse, error)
FindNSKey(context.Context, *FindNSKeyRequest) (*FindNSKeyResponse, error)
// 计算密钥数量
CountAllEnabledNSKeys(context.Context, *CountAllEnabledNSKeysRequest) (*RPCCountResponse, error)
CountAllNSKeys(context.Context, *CountAllNSKeysRequest) (*RPCCountResponse, error)
// 列出单页密钥
ListEnabledNSKeys(context.Context, *ListEnabledNSKeysRequest) (*ListEnabledNSKeysResponse, error)
ListNSKeys(context.Context, *ListNSKeysRequest) (*ListNSKeysResponse, error)
// 根据版本列出一组密钥
ListNSKeysAfterVersion(context.Context, *ListNSKeysAfterVersionRequest) (*ListNSKeysAfterVersionResponse, error)
}
@@ -1125,14 +1119,14 @@ func (*UnimplementedNSKeyServiceServer) UpdateNSKey(context.Context, *UpdateNSKe
func (*UnimplementedNSKeyServiceServer) DeleteNSKey(context.Context, *DeleteNSKeyRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteNSKey not implemented")
}
func (*UnimplementedNSKeyServiceServer) FindEnabledNSKey(context.Context, *FindEnabledNSKeyRequest) (*FindEnabledNSKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNSKey not implemented")
func (*UnimplementedNSKeyServiceServer) FindNSKey(context.Context, *FindNSKeyRequest) (*FindNSKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindNSKey not implemented")
}
func (*UnimplementedNSKeyServiceServer) CountAllEnabledNSKeys(context.Context, *CountAllEnabledNSKeysRequest) (*RPCCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNSKeys not implemented")
func (*UnimplementedNSKeyServiceServer) CountAllNSKeys(context.Context, *CountAllNSKeysRequest) (*RPCCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CountAllNSKeys not implemented")
}
func (*UnimplementedNSKeyServiceServer) ListEnabledNSKeys(context.Context, *ListEnabledNSKeysRequest) (*ListEnabledNSKeysResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListEnabledNSKeys not implemented")
func (*UnimplementedNSKeyServiceServer) ListNSKeys(context.Context, *ListNSKeysRequest) (*ListNSKeysResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListNSKeys not implemented")
}
func (*UnimplementedNSKeyServiceServer) ListNSKeysAfterVersion(context.Context, *ListNSKeysAfterVersionRequest) (*ListNSKeysAfterVersionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListNSKeysAfterVersion not implemented")
@@ -1196,56 +1190,56 @@ func _NSKeyService_DeleteNSKey_Handler(srv interface{}, ctx context.Context, dec
return interceptor(ctx, in, info, handler)
}
func _NSKeyService_FindEnabledNSKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindEnabledNSKeyRequest)
func _NSKeyService_FindNSKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindNSKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSKeyServiceServer).FindEnabledNSKey(ctx, in)
return srv.(NSKeyServiceServer).FindNSKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSKeyService/FindEnabledNSKey",
FullMethod: "/pb.NSKeyService/FindNSKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSKeyServiceServer).FindEnabledNSKey(ctx, req.(*FindEnabledNSKeyRequest))
return srv.(NSKeyServiceServer).FindNSKey(ctx, req.(*FindNSKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSKeyService_CountAllEnabledNSKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountAllEnabledNSKeysRequest)
func _NSKeyService_CountAllNSKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountAllNSKeysRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSKeyServiceServer).CountAllEnabledNSKeys(ctx, in)
return srv.(NSKeyServiceServer).CountAllNSKeys(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSKeyService/CountAllEnabledNSKeys",
FullMethod: "/pb.NSKeyService/CountAllNSKeys",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSKeyServiceServer).CountAllEnabledNSKeys(ctx, req.(*CountAllEnabledNSKeysRequest))
return srv.(NSKeyServiceServer).CountAllNSKeys(ctx, req.(*CountAllNSKeysRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSKeyService_ListEnabledNSKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListEnabledNSKeysRequest)
func _NSKeyService_ListNSKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListNSKeysRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSKeyServiceServer).ListEnabledNSKeys(ctx, in)
return srv.(NSKeyServiceServer).ListNSKeys(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSKeyService/ListEnabledNSKeys",
FullMethod: "/pb.NSKeyService/ListNSKeys",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSKeyServiceServer).ListEnabledNSKeys(ctx, req.(*ListEnabledNSKeysRequest))
return srv.(NSKeyServiceServer).ListNSKeys(ctx, req.(*ListNSKeysRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -1285,16 +1279,16 @@ var _NSKeyService_serviceDesc = grpc.ServiceDesc{
Handler: _NSKeyService_DeleteNSKey_Handler,
},
{
MethodName: "findEnabledNSKey",
Handler: _NSKeyService_FindEnabledNSKey_Handler,
MethodName: "findNSKey",
Handler: _NSKeyService_FindNSKey_Handler,
},
{
MethodName: "countAllEnabledNSKeys",
Handler: _NSKeyService_CountAllEnabledNSKeys_Handler,
MethodName: "countAllNSKeys",
Handler: _NSKeyService_CountAllNSKeys_Handler,
},
{
MethodName: "listEnabledNSKeys",
Handler: _NSKeyService_ListEnabledNSKeys_Handler,
MethodName: "listNSKeys",
Handler: _NSKeyService_ListNSKeys_Handler,
},
{
MethodName: "listNSKeysAfterVersion",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -269,7 +269,7 @@ func (x *DeleteNSRouteRequest) GetNsRouteId() int64 {
}
// 获取单个路线信息
type FindEnabledNSRouteRequest struct {
type FindNSRouteRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -277,8 +277,8 @@ type FindEnabledNSRouteRequest struct {
NsRouteId int64 `protobuf:"varint,1,opt,name=nsRouteId,proto3" json:"nsRouteId,omitempty"`
}
func (x *FindEnabledNSRouteRequest) Reset() {
*x = FindEnabledNSRouteRequest{}
func (x *FindNSRouteRequest) Reset() {
*x = FindNSRouteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_route_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -286,13 +286,13 @@ func (x *FindEnabledNSRouteRequest) Reset() {
}
}
func (x *FindEnabledNSRouteRequest) String() string {
func (x *FindNSRouteRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledNSRouteRequest) ProtoMessage() {}
func (*FindNSRouteRequest) ProtoMessage() {}
func (x *FindEnabledNSRouteRequest) ProtoReflect() protoreflect.Message {
func (x *FindNSRouteRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_route_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -304,19 +304,19 @@ func (x *FindEnabledNSRouteRequest) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledNSRouteRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledNSRouteRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use FindNSRouteRequest.ProtoReflect.Descriptor instead.
func (*FindNSRouteRequest) Descriptor() ([]byte, []int) {
return file_service_ns_route_proto_rawDescGZIP(), []int{4}
}
func (x *FindEnabledNSRouteRequest) GetNsRouteId() int64 {
func (x *FindNSRouteRequest) GetNsRouteId() int64 {
if x != nil {
return x.NsRouteId
}
return 0
}
type FindEnabledNSRouteResponse struct {
type FindNSRouteResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -324,8 +324,8 @@ type FindEnabledNSRouteResponse struct {
NsRoute *NSRoute `protobuf:"bytes,1,opt,name=nsRoute,proto3" json:"nsRoute,omitempty"`
}
func (x *FindEnabledNSRouteResponse) Reset() {
*x = FindEnabledNSRouteResponse{}
func (x *FindNSRouteResponse) Reset() {
*x = FindNSRouteResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_route_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -333,13 +333,13 @@ func (x *FindEnabledNSRouteResponse) Reset() {
}
}
func (x *FindEnabledNSRouteResponse) String() string {
func (x *FindNSRouteResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledNSRouteResponse) ProtoMessage() {}
func (*FindNSRouteResponse) ProtoMessage() {}
func (x *FindEnabledNSRouteResponse) ProtoReflect() protoreflect.Message {
func (x *FindNSRouteResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_route_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -351,12 +351,12 @@ func (x *FindEnabledNSRouteResponse) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledNSRouteResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledNSRouteResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use FindNSRouteResponse.ProtoReflect.Descriptor instead.
func (*FindNSRouteResponse) Descriptor() ([]byte, []int) {
return file_service_ns_route_proto_rawDescGZIP(), []int{5}
}
func (x *FindEnabledNSRouteResponse) GetNsRoute() *NSRoute {
func (x *FindNSRouteResponse) GetNsRoute() *NSRoute {
if x != nil {
return x.NsRoute
}
@@ -364,7 +364,7 @@ func (x *FindEnabledNSRouteResponse) GetNsRoute() *NSRoute {
}
// 读取所有线路
type FindAllEnabledNSRoutesRequest struct {
type FindAllNSRoutesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -374,8 +374,8 @@ type FindAllEnabledNSRoutesRequest struct {
UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"`
}
func (x *FindAllEnabledNSRoutesRequest) Reset() {
*x = FindAllEnabledNSRoutesRequest{}
func (x *FindAllNSRoutesRequest) Reset() {
*x = FindAllNSRoutesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_route_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -383,13 +383,13 @@ func (x *FindAllEnabledNSRoutesRequest) Reset() {
}
}
func (x *FindAllEnabledNSRoutesRequest) String() string {
func (x *FindAllNSRoutesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledNSRoutesRequest) ProtoMessage() {}
func (*FindAllNSRoutesRequest) ProtoMessage() {}
func (x *FindAllEnabledNSRoutesRequest) ProtoReflect() protoreflect.Message {
func (x *FindAllNSRoutesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_route_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -401,33 +401,33 @@ func (x *FindAllEnabledNSRoutesRequest) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledNSRoutesRequest.ProtoReflect.Descriptor instead.
func (*FindAllEnabledNSRoutesRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllNSRoutesRequest.ProtoReflect.Descriptor instead.
func (*FindAllNSRoutesRequest) Descriptor() ([]byte, []int) {
return file_service_ns_route_proto_rawDescGZIP(), []int{6}
}
func (x *FindAllEnabledNSRoutesRequest) GetNsClusterId() int64 {
func (x *FindAllNSRoutesRequest) GetNsClusterId() int64 {
if x != nil {
return x.NsClusterId
}
return 0
}
func (x *FindAllEnabledNSRoutesRequest) GetNsDomainId() int64 {
func (x *FindAllNSRoutesRequest) GetNsDomainId() int64 {
if x != nil {
return x.NsDomainId
}
return 0
}
func (x *FindAllEnabledNSRoutesRequest) GetUserId() int64 {
func (x *FindAllNSRoutesRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
type FindAllEnabledNSRoutesResponse struct {
type FindAllNSRoutesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -435,8 +435,8 @@ type FindAllEnabledNSRoutesResponse struct {
NsRoutes []*NSRoute `protobuf:"bytes,1,rep,name=nsRoutes,proto3" json:"nsRoutes,omitempty"`
}
func (x *FindAllEnabledNSRoutesResponse) Reset() {
*x = FindAllEnabledNSRoutesResponse{}
func (x *FindAllNSRoutesResponse) Reset() {
*x = FindAllNSRoutesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_route_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -444,13 +444,13 @@ func (x *FindAllEnabledNSRoutesResponse) Reset() {
}
}
func (x *FindAllEnabledNSRoutesResponse) String() string {
func (x *FindAllNSRoutesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledNSRoutesResponse) ProtoMessage() {}
func (*FindAllNSRoutesResponse) ProtoMessage() {}
func (x *FindAllEnabledNSRoutesResponse) ProtoReflect() protoreflect.Message {
func (x *FindAllNSRoutesResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_route_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -462,12 +462,12 @@ func (x *FindAllEnabledNSRoutesResponse) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledNSRoutesResponse.ProtoReflect.Descriptor instead.
func (*FindAllEnabledNSRoutesResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllNSRoutesResponse.ProtoReflect.Descriptor instead.
func (*FindAllNSRoutesResponse) Descriptor() ([]byte, []int) {
return file_service_ns_route_proto_rawDescGZIP(), []int{7}
}
func (x *FindAllEnabledNSRoutesResponse) GetNsRoutes() []*NSRoute {
func (x *FindAllNSRoutesResponse) GetNsRoutes() []*NSRoute {
if x != nil {
return x.NsRoutes
}
@@ -657,77 +657,73 @@ var file_service_ns_route_proto_rawDesc = []byte{
0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65,
0x49, 0x64, 0x22, 0x39, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1c, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x03, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x22, 0x43, 0x0a,
0x1a, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f,
0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x07, 0x6e,
0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x07, 0x6e, 0x73, 0x52, 0x6f, 0x75,
0x74, 0x65, 0x22, 0x79, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73,
0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69,
0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d,
0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x49, 0x0a,
0x1e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e,
0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x49, 0x64, 0x22, 0x32, 0x0a, 0x12, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x6f,
0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6e, 0x73, 0x52,
0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x22, 0x3c, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53,
0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a,
0x07, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b,
0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x07, 0x6e, 0x73, 0x52,
0x6f, 0x75, 0x74, 0x65, 0x22, 0x72, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e,
0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20,
0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64,
0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64,
0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x42, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75,
0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x3c, 0x0a, 0x1a,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64,
0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73,
0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a,
0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x22, 0x4f, 0x0a, 0x1f, 0x4c, 0x69,
0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a,
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x20, 0x4c,
0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72,
0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x08,
0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x3c, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74,
0x65, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, 0x6f,
0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x22, 0x4f, 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53,
0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4e,
0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e,
0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e,
0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f,
0x75, 0x74, 0x65, 0x73, 0x32, 0xb0, 0x04, 0x0a, 0x0e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74,
0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53,
0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a,
0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18,
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74,
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, 0x39, 0x0a, 0x0d, 0x64, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 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, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46,
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74,
0x65, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x13, 0x75, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73,
0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f,
0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
0x12, 0x65, 0x0a, 0x18, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73,
0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x70,
0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66,
0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75,
0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x32, 0x86, 0x04, 0x0a, 0x0e, 0x4e, 0x53, 0x52,
0x6f, 0x75, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x63,
0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x70,
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x39, 0x0a, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75,
0x74, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53,
0x52, 0x6f, 0x75, 0x74, 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, 0x39, 0x0a, 0x0d,
0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e,
0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 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, 0x3e, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x64, 0x4e,
0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x66, 0x69, 0x6e, 0x64, 0x41,
0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x13, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52,
0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64,
0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x65, 0x0a, 0x18, 0x6c, 0x69,
0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74,
0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72,
0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62,
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74,
0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 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 (
@@ -748,10 +744,10 @@ var file_service_ns_route_proto_goTypes = []interface{}{
(*CreateNSRouteResponse)(nil), // 1: pb.CreateNSRouteResponse
(*UpdateNSRouteRequest)(nil), // 2: pb.UpdateNSRouteRequest
(*DeleteNSRouteRequest)(nil), // 3: pb.DeleteNSRouteRequest
(*FindEnabledNSRouteRequest)(nil), // 4: pb.FindEnabledNSRouteRequest
(*FindEnabledNSRouteResponse)(nil), // 5: pb.FindEnabledNSRouteResponse
(*FindAllEnabledNSRoutesRequest)(nil), // 6: pb.FindAllEnabledNSRoutesRequest
(*FindAllEnabledNSRoutesResponse)(nil), // 7: pb.FindAllEnabledNSRoutesResponse
(*FindNSRouteRequest)(nil), // 4: pb.FindNSRouteRequest
(*FindNSRouteResponse)(nil), // 5: pb.FindNSRouteResponse
(*FindAllNSRoutesRequest)(nil), // 6: pb.FindAllNSRoutesRequest
(*FindAllNSRoutesResponse)(nil), // 7: pb.FindAllNSRoutesResponse
(*UpdateNSRouteOrdersRequest)(nil), // 8: pb.UpdateNSRouteOrdersRequest
(*ListNSRoutesAfterVersionRequest)(nil), // 9: pb.ListNSRoutesAfterVersionRequest
(*ListNSRoutesAfterVersionResponse)(nil), // 10: pb.ListNSRoutesAfterVersionResponse
@@ -759,21 +755,21 @@ var file_service_ns_route_proto_goTypes = []interface{}{
(*RPCSuccess)(nil), // 12: pb.RPCSuccess
}
var file_service_ns_route_proto_depIdxs = []int32{
11, // 0: pb.FindEnabledNSRouteResponse.nsRoute:type_name -> pb.NSRoute
11, // 1: pb.FindAllEnabledNSRoutesResponse.nsRoutes:type_name -> pb.NSRoute
11, // 0: pb.FindNSRouteResponse.nsRoute:type_name -> pb.NSRoute
11, // 1: pb.FindAllNSRoutesResponse.nsRoutes:type_name -> pb.NSRoute
11, // 2: pb.ListNSRoutesAfterVersionResponse.nsRoutes:type_name -> pb.NSRoute
0, // 3: pb.NSRouteService.createNSRoute:input_type -> pb.CreateNSRouteRequest
2, // 4: pb.NSRouteService.updateNSRoute:input_type -> pb.UpdateNSRouteRequest
3, // 5: pb.NSRouteService.deleteNSRoute:input_type -> pb.DeleteNSRouteRequest
4, // 6: pb.NSRouteService.findEnabledNSRoute:input_type -> pb.FindEnabledNSRouteRequest
6, // 7: pb.NSRouteService.findAllEnabledNSRoutes:input_type -> pb.FindAllEnabledNSRoutesRequest
4, // 6: pb.NSRouteService.findNSRoute:input_type -> pb.FindNSRouteRequest
6, // 7: pb.NSRouteService.findAllNSRoutes:input_type -> pb.FindAllNSRoutesRequest
8, // 8: pb.NSRouteService.updateNSRouteOrders:input_type -> pb.UpdateNSRouteOrdersRequest
9, // 9: pb.NSRouteService.listNSRoutesAfterVersion:input_type -> pb.ListNSRoutesAfterVersionRequest
1, // 10: pb.NSRouteService.createNSRoute:output_type -> pb.CreateNSRouteResponse
12, // 11: pb.NSRouteService.updateNSRoute:output_type -> pb.RPCSuccess
12, // 12: pb.NSRouteService.deleteNSRoute:output_type -> pb.RPCSuccess
5, // 13: pb.NSRouteService.findEnabledNSRoute:output_type -> pb.FindEnabledNSRouteResponse
7, // 14: pb.NSRouteService.findAllEnabledNSRoutes:output_type -> pb.FindAllEnabledNSRoutesResponse
5, // 13: pb.NSRouteService.findNSRoute:output_type -> pb.FindNSRouteResponse
7, // 14: pb.NSRouteService.findAllNSRoutes:output_type -> pb.FindAllNSRoutesResponse
12, // 15: pb.NSRouteService.updateNSRouteOrders:output_type -> pb.RPCSuccess
10, // 16: pb.NSRouteService.listNSRoutesAfterVersion:output_type -> pb.ListNSRoutesAfterVersionResponse
10, // [10:17] is the sub-list for method output_type
@@ -840,7 +836,7 @@ func file_service_ns_route_proto_init() {
}
}
file_service_ns_route_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledNSRouteRequest); i {
switch v := v.(*FindNSRouteRequest); i {
case 0:
return &v.state
case 1:
@@ -852,7 +848,7 @@ func file_service_ns_route_proto_init() {
}
}
file_service_ns_route_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledNSRouteResponse); i {
switch v := v.(*FindNSRouteResponse); i {
case 0:
return &v.state
case 1:
@@ -864,7 +860,7 @@ func file_service_ns_route_proto_init() {
}
}
file_service_ns_route_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledNSRoutesRequest); i {
switch v := v.(*FindAllNSRoutesRequest); i {
case 0:
return &v.state
case 1:
@@ -876,7 +872,7 @@ func file_service_ns_route_proto_init() {
}
}
file_service_ns_route_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledNSRoutesResponse); i {
switch v := v.(*FindAllNSRoutesResponse); i {
case 0:
return &v.state
case 1:
@@ -963,9 +959,9 @@ type NSRouteServiceClient interface {
// 删除线路
DeleteNSRoute(ctx context.Context, in *DeleteNSRouteRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 获取单个路线信息
FindEnabledNSRoute(ctx context.Context, in *FindEnabledNSRouteRequest, opts ...grpc.CallOption) (*FindEnabledNSRouteResponse, error)
FindNSRoute(ctx context.Context, in *FindNSRouteRequest, opts ...grpc.CallOption) (*FindNSRouteResponse, error)
// 读取所有线路
FindAllEnabledNSRoutes(ctx context.Context, in *FindAllEnabledNSRoutesRequest, opts ...grpc.CallOption) (*FindAllEnabledNSRoutesResponse, error)
FindAllNSRoutes(ctx context.Context, in *FindAllNSRoutesRequest, opts ...grpc.CallOption) (*FindAllNSRoutesResponse, error)
// 设置线路排序
UpdateNSRouteOrders(ctx context.Context, in *UpdateNSRouteOrdersRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 根据版本列出一组线路
@@ -1007,18 +1003,18 @@ func (c *nSRouteServiceClient) DeleteNSRoute(ctx context.Context, in *DeleteNSRo
return out, nil
}
func (c *nSRouteServiceClient) FindEnabledNSRoute(ctx context.Context, in *FindEnabledNSRouteRequest, opts ...grpc.CallOption) (*FindEnabledNSRouteResponse, error) {
out := new(FindEnabledNSRouteResponse)
err := c.cc.Invoke(ctx, "/pb.NSRouteService/findEnabledNSRoute", in, out, opts...)
func (c *nSRouteServiceClient) FindNSRoute(ctx context.Context, in *FindNSRouteRequest, opts ...grpc.CallOption) (*FindNSRouteResponse, error) {
out := new(FindNSRouteResponse)
err := c.cc.Invoke(ctx, "/pb.NSRouteService/findNSRoute", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSRouteServiceClient) FindAllEnabledNSRoutes(ctx context.Context, in *FindAllEnabledNSRoutesRequest, opts ...grpc.CallOption) (*FindAllEnabledNSRoutesResponse, error) {
out := new(FindAllEnabledNSRoutesResponse)
err := c.cc.Invoke(ctx, "/pb.NSRouteService/findAllEnabledNSRoutes", in, out, opts...)
func (c *nSRouteServiceClient) FindAllNSRoutes(ctx context.Context, in *FindAllNSRoutesRequest, opts ...grpc.CallOption) (*FindAllNSRoutesResponse, error) {
out := new(FindAllNSRoutesResponse)
err := c.cc.Invoke(ctx, "/pb.NSRouteService/findAllNSRoutes", in, out, opts...)
if err != nil {
return nil, err
}
@@ -1052,9 +1048,9 @@ type NSRouteServiceServer interface {
// 删除线路
DeleteNSRoute(context.Context, *DeleteNSRouteRequest) (*RPCSuccess, error)
// 获取单个路线信息
FindEnabledNSRoute(context.Context, *FindEnabledNSRouteRequest) (*FindEnabledNSRouteResponse, error)
FindNSRoute(context.Context, *FindNSRouteRequest) (*FindNSRouteResponse, error)
// 读取所有线路
FindAllEnabledNSRoutes(context.Context, *FindAllEnabledNSRoutesRequest) (*FindAllEnabledNSRoutesResponse, error)
FindAllNSRoutes(context.Context, *FindAllNSRoutesRequest) (*FindAllNSRoutesResponse, error)
// 设置线路排序
UpdateNSRouteOrders(context.Context, *UpdateNSRouteOrdersRequest) (*RPCSuccess, error)
// 根据版本列出一组线路
@@ -1074,11 +1070,11 @@ func (*UnimplementedNSRouteServiceServer) UpdateNSRoute(context.Context, *Update
func (*UnimplementedNSRouteServiceServer) DeleteNSRoute(context.Context, *DeleteNSRouteRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteNSRoute not implemented")
}
func (*UnimplementedNSRouteServiceServer) FindEnabledNSRoute(context.Context, *FindEnabledNSRouteRequest) (*FindEnabledNSRouteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNSRoute not implemented")
func (*UnimplementedNSRouteServiceServer) FindNSRoute(context.Context, *FindNSRouteRequest) (*FindNSRouteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindNSRoute not implemented")
}
func (*UnimplementedNSRouteServiceServer) FindAllEnabledNSRoutes(context.Context, *FindAllEnabledNSRoutesRequest) (*FindAllEnabledNSRoutesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNSRoutes not implemented")
func (*UnimplementedNSRouteServiceServer) FindAllNSRoutes(context.Context, *FindAllNSRoutesRequest) (*FindAllNSRoutesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllNSRoutes not implemented")
}
func (*UnimplementedNSRouteServiceServer) UpdateNSRouteOrders(context.Context, *UpdateNSRouteOrdersRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSRouteOrders not implemented")
@@ -1145,38 +1141,38 @@ func _NSRouteService_DeleteNSRoute_Handler(srv interface{}, ctx context.Context,
return interceptor(ctx, in, info, handler)
}
func _NSRouteService_FindEnabledNSRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindEnabledNSRouteRequest)
func _NSRouteService_FindNSRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindNSRouteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSRouteServiceServer).FindEnabledNSRoute(ctx, in)
return srv.(NSRouteServiceServer).FindNSRoute(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSRouteService/FindEnabledNSRoute",
FullMethod: "/pb.NSRouteService/FindNSRoute",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSRouteServiceServer).FindEnabledNSRoute(ctx, req.(*FindEnabledNSRouteRequest))
return srv.(NSRouteServiceServer).FindNSRoute(ctx, req.(*FindNSRouteRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSRouteService_FindAllEnabledNSRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllEnabledNSRoutesRequest)
func _NSRouteService_FindAllNSRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllNSRoutesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSRouteServiceServer).FindAllEnabledNSRoutes(ctx, in)
return srv.(NSRouteServiceServer).FindAllNSRoutes(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSRouteService/FindAllEnabledNSRoutes",
FullMethod: "/pb.NSRouteService/FindAllNSRoutes",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSRouteServiceServer).FindAllEnabledNSRoutes(ctx, req.(*FindAllEnabledNSRoutesRequest))
return srv.(NSRouteServiceServer).FindAllNSRoutes(ctx, req.(*FindAllNSRoutesRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -1234,12 +1230,12 @@ var _NSRouteService_serviceDesc = grpc.ServiceDesc{
Handler: _NSRouteService_DeleteNSRoute_Handler,
},
{
MethodName: "findEnabledNSRoute",
Handler: _NSRouteService_FindEnabledNSRoute_Handler,
MethodName: "findNSRoute",
Handler: _NSRouteService_FindNSRoute_Handler,
},
{
MethodName: "findAllEnabledNSRoutes",
Handler: _NSRouteService_FindAllEnabledNSRoutes_Handler,
MethodName: "findAllNSRoutes",
Handler: _NSRouteService_FindAllNSRoutes_Handler,
},
{
MethodName: "updateNSRouteOrders",

View File

@@ -561,14 +561,14 @@ func (x *FindAllEnabledOrderMethodsResponse) GetOrderMethods() []*OrderMethod {
}
// 查找所有已启用的支付方式
type FindAllEnabledAndOnOrderMethodsRequest struct {
type FindAllAvailableOrderMethodsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *FindAllEnabledAndOnOrderMethodsRequest) Reset() {
*x = FindAllEnabledAndOnOrderMethodsRequest{}
func (x *FindAllAvailableOrderMethodsRequest) Reset() {
*x = FindAllAvailableOrderMethodsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_order_method_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -576,13 +576,13 @@ func (x *FindAllEnabledAndOnOrderMethodsRequest) Reset() {
}
}
func (x *FindAllEnabledAndOnOrderMethodsRequest) String() string {
func (x *FindAllAvailableOrderMethodsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledAndOnOrderMethodsRequest) ProtoMessage() {}
func (*FindAllAvailableOrderMethodsRequest) ProtoMessage() {}
func (x *FindAllEnabledAndOnOrderMethodsRequest) ProtoReflect() protoreflect.Message {
func (x *FindAllAvailableOrderMethodsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_order_method_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -594,12 +594,12 @@ func (x *FindAllEnabledAndOnOrderMethodsRequest) ProtoReflect() protoreflect.Mes
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledAndOnOrderMethodsRequest.ProtoReflect.Descriptor instead.
func (*FindAllEnabledAndOnOrderMethodsRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllAvailableOrderMethodsRequest.ProtoReflect.Descriptor instead.
func (*FindAllAvailableOrderMethodsRequest) Descriptor() ([]byte, []int) {
return file_service_order_method_proto_rawDescGZIP(), []int{10}
}
type FindAllEnabledAndOnOrderMethodsResponse struct {
type FindAllAvailableOrderMethodsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -607,8 +607,8 @@ type FindAllEnabledAndOnOrderMethodsResponse struct {
OrderMethods []*OrderMethod `protobuf:"bytes,1,rep,name=orderMethods,proto3" json:"orderMethods,omitempty"`
}
func (x *FindAllEnabledAndOnOrderMethodsResponse) Reset() {
*x = FindAllEnabledAndOnOrderMethodsResponse{}
func (x *FindAllAvailableOrderMethodsResponse) Reset() {
*x = FindAllAvailableOrderMethodsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_order_method_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -616,13 +616,13 @@ func (x *FindAllEnabledAndOnOrderMethodsResponse) Reset() {
}
}
func (x *FindAllEnabledAndOnOrderMethodsResponse) String() string {
func (x *FindAllAvailableOrderMethodsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllEnabledAndOnOrderMethodsResponse) ProtoMessage() {}
func (*FindAllAvailableOrderMethodsResponse) ProtoMessage() {}
func (x *FindAllEnabledAndOnOrderMethodsResponse) ProtoReflect() protoreflect.Message {
func (x *FindAllAvailableOrderMethodsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_order_method_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -634,12 +634,12 @@ func (x *FindAllEnabledAndOnOrderMethodsResponse) ProtoReflect() protoreflect.Me
return mi.MessageOf(x)
}
// Deprecated: Use FindAllEnabledAndOnOrderMethodsResponse.ProtoReflect.Descriptor instead.
func (*FindAllEnabledAndOnOrderMethodsResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllAvailableOrderMethodsResponse.ProtoReflect.Descriptor instead.
func (*FindAllAvailableOrderMethodsResponse) Descriptor() ([]byte, []int) {
return file_service_order_method_proto_rawDescGZIP(), []int{11}
}
func (x *FindAllEnabledAndOnOrderMethodsResponse) GetOrderMethods() []*OrderMethod {
func (x *FindAllAvailableOrderMethodsResponse) GetOrderMethods() []*OrderMethod {
if x != nil {
return x.OrderMethods
}
@@ -709,59 +709,58 @@ var file_service_order_method_proto_rawDesc = []byte{
0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65,
0x74, 0x68, 0x6f, 0x64, 0x52, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f,
0x64, 0x73, 0x22, 0x28, 0x0a, 0x26, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65,
0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x27,
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e,
0x64, 0x4f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72,
0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0c,
0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x32, 0xaf, 0x05, 0x0a,
0x12, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64,
0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f,
0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f,
0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x2e,
0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65,
0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, 0x16, 0x66,
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d,
0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f,
0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x64, 0x73, 0x22, 0x25, 0x0a, 0x23, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61,
0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f,
0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5b, 0x0a, 0x24, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x72, 0x64,
0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x33, 0x0a, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64,
0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d,
0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x32, 0xa6, 0x05, 0x0a, 0x12, 0x4f, 0x72, 0x64, 0x65, 0x72,
0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a,
0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68,
0x6f, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72,
0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65,
0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65,
0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65,
0x73, 0x73, 0x12, 0x41, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65,
0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75,
0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12,
0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64,
0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65,
0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e,
0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72,
0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x29,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f,
0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f,
0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46,
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d,
0x65, 0x74, 0x68, 0x6f, 0x64, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68,
0x6f, 0x64, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68,
0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72,
0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x7a, 0x0a, 0x1f, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65,
0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4f, 0x72,
0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x2b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d,
0x65, 0x74, 0x68, 0x6f, 0x64, 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,
0x74, 0x68, 0x6f, 0x64, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x57,
0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x6b, 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x25, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74,
0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x1c,
0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65,
0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x27, 0x2e, 0x70,
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62,
0x6c, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72,
0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 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 (
@@ -778,40 +777,40 @@ func file_service_order_method_proto_rawDescGZIP() []byte {
var file_service_order_method_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_service_order_method_proto_goTypes = []interface{}{
(*CreateOrderMethodRequest)(nil), // 0: pb.CreateOrderMethodRequest
(*CreateOrderMethodResponse)(nil), // 1: pb.CreateOrderMethodResponse
(*UpdateOrderMethodRequest)(nil), // 2: pb.UpdateOrderMethodRequest
(*DeleteOrderMethodRequest)(nil), // 3: pb.DeleteOrderMethodRequest
(*FindEnabledOrderMethodRequest)(nil), // 4: pb.FindEnabledOrderMethodRequest
(*FindEnabledOrderMethodResponse)(nil), // 5: pb.FindEnabledOrderMethodResponse
(*FindEnabledOrderMethodWithCodeRequest)(nil), // 6: pb.FindEnabledOrderMethodWithCodeRequest
(*FindEnabledOrderMethodWithCodeResponse)(nil), // 7: pb.FindEnabledOrderMethodWithCodeResponse
(*FindAllEnabledOrderMethodsRequest)(nil), // 8: pb.FindAllEnabledOrderMethodsRequest
(*FindAllEnabledOrderMethodsResponse)(nil), // 9: pb.FindAllEnabledOrderMethodsResponse
(*FindAllEnabledAndOnOrderMethodsRequest)(nil), // 10: pb.FindAllEnabledAndOnOrderMethodsRequest
(*FindAllEnabledAndOnOrderMethodsResponse)(nil), // 11: pb.FindAllEnabledAndOnOrderMethodsResponse
(*OrderMethod)(nil), // 12: pb.OrderMethod
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
(*CreateOrderMethodRequest)(nil), // 0: pb.CreateOrderMethodRequest
(*CreateOrderMethodResponse)(nil), // 1: pb.CreateOrderMethodResponse
(*UpdateOrderMethodRequest)(nil), // 2: pb.UpdateOrderMethodRequest
(*DeleteOrderMethodRequest)(nil), // 3: pb.DeleteOrderMethodRequest
(*FindEnabledOrderMethodRequest)(nil), // 4: pb.FindEnabledOrderMethodRequest
(*FindEnabledOrderMethodResponse)(nil), // 5: pb.FindEnabledOrderMethodResponse
(*FindEnabledOrderMethodWithCodeRequest)(nil), // 6: pb.FindEnabledOrderMethodWithCodeRequest
(*FindEnabledOrderMethodWithCodeResponse)(nil), // 7: pb.FindEnabledOrderMethodWithCodeResponse
(*FindAllEnabledOrderMethodsRequest)(nil), // 8: pb.FindAllEnabledOrderMethodsRequest
(*FindAllEnabledOrderMethodsResponse)(nil), // 9: pb.FindAllEnabledOrderMethodsResponse
(*FindAllAvailableOrderMethodsRequest)(nil), // 10: pb.FindAllAvailableOrderMethodsRequest
(*FindAllAvailableOrderMethodsResponse)(nil), // 11: pb.FindAllAvailableOrderMethodsResponse
(*OrderMethod)(nil), // 12: pb.OrderMethod
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
}
var file_service_order_method_proto_depIdxs = []int32{
12, // 0: pb.FindEnabledOrderMethodResponse.orderMethod:type_name -> pb.OrderMethod
12, // 1: pb.FindEnabledOrderMethodWithCodeResponse.orderMethod:type_name -> pb.OrderMethod
12, // 2: pb.FindAllEnabledOrderMethodsResponse.orderMethods:type_name -> pb.OrderMethod
12, // 3: pb.FindAllEnabledAndOnOrderMethodsResponse.orderMethods:type_name -> pb.OrderMethod
12, // 3: pb.FindAllAvailableOrderMethodsResponse.orderMethods:type_name -> pb.OrderMethod
0, // 4: pb.OrderMethodService.createOrderMethod:input_type -> pb.CreateOrderMethodRequest
2, // 5: pb.OrderMethodService.updateOrderMethod:input_type -> pb.UpdateOrderMethodRequest
3, // 6: pb.OrderMethodService.deleteOrderMethod:input_type -> pb.DeleteOrderMethodRequest
4, // 7: pb.OrderMethodService.findEnabledOrderMethod:input_type -> pb.FindEnabledOrderMethodRequest
6, // 8: pb.OrderMethodService.findEnabledOrderMethodWithCode:input_type -> pb.FindEnabledOrderMethodWithCodeRequest
8, // 9: pb.OrderMethodService.findAllEnabledOrderMethods:input_type -> pb.FindAllEnabledOrderMethodsRequest
10, // 10: pb.OrderMethodService.findAllEnabledAndOnOrderMethods:input_type -> pb.FindAllEnabledAndOnOrderMethodsRequest
10, // 10: pb.OrderMethodService.findAllAvailableOrderMethods:input_type -> pb.FindAllAvailableOrderMethodsRequest
1, // 11: pb.OrderMethodService.createOrderMethod:output_type -> pb.CreateOrderMethodResponse
13, // 12: pb.OrderMethodService.updateOrderMethod:output_type -> pb.RPCSuccess
13, // 13: pb.OrderMethodService.deleteOrderMethod:output_type -> pb.RPCSuccess
5, // 14: pb.OrderMethodService.findEnabledOrderMethod:output_type -> pb.FindEnabledOrderMethodResponse
7, // 15: pb.OrderMethodService.findEnabledOrderMethodWithCode:output_type -> pb.FindEnabledOrderMethodWithCodeResponse
9, // 16: pb.OrderMethodService.findAllEnabledOrderMethods:output_type -> pb.FindAllEnabledOrderMethodsResponse
11, // 17: pb.OrderMethodService.findAllEnabledAndOnOrderMethods:output_type -> pb.FindAllEnabledAndOnOrderMethodsResponse
11, // 17: pb.OrderMethodService.findAllAvailableOrderMethods:output_type -> pb.FindAllAvailableOrderMethodsResponse
11, // [11:18] is the sub-list for method output_type
4, // [4:11] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
@@ -948,7 +947,7 @@ func file_service_order_method_proto_init() {
}
}
file_service_order_method_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledAndOnOrderMethodsRequest); i {
switch v := v.(*FindAllAvailableOrderMethodsRequest); i {
case 0:
return &v.state
case 1:
@@ -960,7 +959,7 @@ func file_service_order_method_proto_init() {
}
}
file_service_order_method_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledAndOnOrderMethodsResponse); i {
switch v := v.(*FindAllAvailableOrderMethodsResponse); i {
case 0:
return &v.state
case 1:
@@ -1017,7 +1016,7 @@ type OrderMethodServiceClient interface {
// 查找所有支付方式
FindAllEnabledOrderMethods(ctx context.Context, in *FindAllEnabledOrderMethodsRequest, opts ...grpc.CallOption) (*FindAllEnabledOrderMethodsResponse, error)
// 查找所有已启用的支付方式
FindAllEnabledAndOnOrderMethods(ctx context.Context, in *FindAllEnabledAndOnOrderMethodsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnOrderMethodsResponse, error)
FindAllAvailableOrderMethods(ctx context.Context, in *FindAllAvailableOrderMethodsRequest, opts ...grpc.CallOption) (*FindAllAvailableOrderMethodsResponse, error)
}
type orderMethodServiceClient struct {
@@ -1082,9 +1081,9 @@ func (c *orderMethodServiceClient) FindAllEnabledOrderMethods(ctx context.Contex
return out, nil
}
func (c *orderMethodServiceClient) FindAllEnabledAndOnOrderMethods(ctx context.Context, in *FindAllEnabledAndOnOrderMethodsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnOrderMethodsResponse, error) {
out := new(FindAllEnabledAndOnOrderMethodsResponse)
err := c.cc.Invoke(ctx, "/pb.OrderMethodService/findAllEnabledAndOnOrderMethods", in, out, opts...)
func (c *orderMethodServiceClient) FindAllAvailableOrderMethods(ctx context.Context, in *FindAllAvailableOrderMethodsRequest, opts ...grpc.CallOption) (*FindAllAvailableOrderMethodsResponse, error) {
out := new(FindAllAvailableOrderMethodsResponse)
err := c.cc.Invoke(ctx, "/pb.OrderMethodService/findAllAvailableOrderMethods", in, out, opts...)
if err != nil {
return nil, err
}
@@ -1106,7 +1105,7 @@ type OrderMethodServiceServer interface {
// 查找所有支付方式
FindAllEnabledOrderMethods(context.Context, *FindAllEnabledOrderMethodsRequest) (*FindAllEnabledOrderMethodsResponse, error)
// 查找所有已启用的支付方式
FindAllEnabledAndOnOrderMethods(context.Context, *FindAllEnabledAndOnOrderMethodsRequest) (*FindAllEnabledAndOnOrderMethodsResponse, error)
FindAllAvailableOrderMethods(context.Context, *FindAllAvailableOrderMethodsRequest) (*FindAllAvailableOrderMethodsResponse, error)
}
// UnimplementedOrderMethodServiceServer can be embedded to have forward compatible implementations.
@@ -1131,8 +1130,8 @@ func (*UnimplementedOrderMethodServiceServer) FindEnabledOrderMethodWithCode(con
func (*UnimplementedOrderMethodServiceServer) FindAllEnabledOrderMethods(context.Context, *FindAllEnabledOrderMethodsRequest) (*FindAllEnabledOrderMethodsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledOrderMethods not implemented")
}
func (*UnimplementedOrderMethodServiceServer) FindAllEnabledAndOnOrderMethods(context.Context, *FindAllEnabledAndOnOrderMethodsRequest) (*FindAllEnabledAndOnOrderMethodsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledAndOnOrderMethods not implemented")
func (*UnimplementedOrderMethodServiceServer) FindAllAvailableOrderMethods(context.Context, *FindAllAvailableOrderMethodsRequest) (*FindAllAvailableOrderMethodsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableOrderMethods not implemented")
}
func RegisterOrderMethodServiceServer(s *grpc.Server, srv OrderMethodServiceServer) {
@@ -1247,20 +1246,20 @@ func _OrderMethodService_FindAllEnabledOrderMethods_Handler(srv interface{}, ctx
return interceptor(ctx, in, info, handler)
}
func _OrderMethodService_FindAllEnabledAndOnOrderMethods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllEnabledAndOnOrderMethodsRequest)
func _OrderMethodService_FindAllAvailableOrderMethods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllAvailableOrderMethodsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrderMethodServiceServer).FindAllEnabledAndOnOrderMethods(ctx, in)
return srv.(OrderMethodServiceServer).FindAllAvailableOrderMethods(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.OrderMethodService/FindAllEnabledAndOnOrderMethods",
FullMethod: "/pb.OrderMethodService/FindAllAvailableOrderMethods",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrderMethodServiceServer).FindAllEnabledAndOnOrderMethods(ctx, req.(*FindAllEnabledAndOnOrderMethodsRequest))
return srv.(OrderMethodServiceServer).FindAllAvailableOrderMethods(ctx, req.(*FindAllAvailableOrderMethodsRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -1294,8 +1293,8 @@ var _OrderMethodService_serviceDesc = grpc.ServiceDesc{
Handler: _OrderMethodService_FindAllEnabledOrderMethods_Handler,
},
{
MethodName: "findAllEnabledAndOnOrderMethods",
Handler: _OrderMethodService_FindAllEnabledAndOnOrderMethods_Handler,
MethodName: "findAllAvailableOrderMethods",
Handler: _OrderMethodService_FindAllAvailableOrderMethods_Handler,
},
},
Streams: []grpc.StreamDesc{},

View File

@@ -323,14 +323,14 @@ func (x *FindAllUserTicketCategoriesResponse) GetUserTicketCategories() []*UserT
}
// 查找所有启用中的分类
type FindAllOnUserTicketCategoriesRequest struct {
type FindAllAvailableUserTicketCategoriesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *FindAllOnUserTicketCategoriesRequest) Reset() {
*x = FindAllOnUserTicketCategoriesRequest{}
func (x *FindAllAvailableUserTicketCategoriesRequest) Reset() {
*x = FindAllAvailableUserTicketCategoriesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_ticket_category_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -338,13 +338,13 @@ func (x *FindAllOnUserTicketCategoriesRequest) Reset() {
}
}
func (x *FindAllOnUserTicketCategoriesRequest) String() string {
func (x *FindAllAvailableUserTicketCategoriesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllOnUserTicketCategoriesRequest) ProtoMessage() {}
func (*FindAllAvailableUserTicketCategoriesRequest) ProtoMessage() {}
func (x *FindAllOnUserTicketCategoriesRequest) ProtoReflect() protoreflect.Message {
func (x *FindAllAvailableUserTicketCategoriesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_ticket_category_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -356,12 +356,12 @@ func (x *FindAllOnUserTicketCategoriesRequest) ProtoReflect() protoreflect.Messa
return mi.MessageOf(x)
}
// Deprecated: Use FindAllOnUserTicketCategoriesRequest.ProtoReflect.Descriptor instead.
func (*FindAllOnUserTicketCategoriesRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllAvailableUserTicketCategoriesRequest.ProtoReflect.Descriptor instead.
func (*FindAllAvailableUserTicketCategoriesRequest) Descriptor() ([]byte, []int) {
return file_service_user_ticket_category_proto_rawDescGZIP(), []int{6}
}
type FindAllOnUserTicketCategoriesResponse struct {
type FindAllAvailableUserTicketCategoriesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -369,8 +369,8 @@ type FindAllOnUserTicketCategoriesResponse struct {
UserTicketCategories []*UserTicketCategory `protobuf:"bytes,1,rep,name=userTicketCategories,proto3" json:"userTicketCategories,omitempty"`
}
func (x *FindAllOnUserTicketCategoriesResponse) Reset() {
*x = FindAllOnUserTicketCategoriesResponse{}
func (x *FindAllAvailableUserTicketCategoriesResponse) Reset() {
*x = FindAllAvailableUserTicketCategoriesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_ticket_category_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -378,13 +378,13 @@ func (x *FindAllOnUserTicketCategoriesResponse) Reset() {
}
}
func (x *FindAllOnUserTicketCategoriesResponse) String() string {
func (x *FindAllAvailableUserTicketCategoriesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllOnUserTicketCategoriesResponse) ProtoMessage() {}
func (*FindAllAvailableUserTicketCategoriesResponse) ProtoMessage() {}
func (x *FindAllOnUserTicketCategoriesResponse) ProtoReflect() protoreflect.Message {
func (x *FindAllAvailableUserTicketCategoriesResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_user_ticket_category_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -396,12 +396,12 @@ func (x *FindAllOnUserTicketCategoriesResponse) ProtoReflect() protoreflect.Mess
return mi.MessageOf(x)
}
// Deprecated: Use FindAllOnUserTicketCategoriesResponse.ProtoReflect.Descriptor instead.
func (*FindAllOnUserTicketCategoriesResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use FindAllAvailableUserTicketCategoriesResponse.ProtoReflect.Descriptor instead.
func (*FindAllAvailableUserTicketCategoriesResponse) Descriptor() ([]byte, []int) {
return file_service_user_ticket_category_proto_rawDescGZIP(), []int{7}
}
func (x *FindAllOnUserTicketCategoriesResponse) GetUserTicketCategories() []*UserTicketCategory {
func (x *FindAllAvailableUserTicketCategoriesResponse) GetUserTicketCategories() []*UserTicketCategory {
if x != nil {
return x.UserTicketCategories
}
@@ -544,69 +544,71 @@ var file_service_user_ticket_category_proto_rawDesc = []byte{
0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70,
0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65,
0x67, 0x6f, 0x72, 0x79, 0x52, 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74,
0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x26, 0x0a, 0x24, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65,
0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x22, 0x73, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4f, 0x6e, 0x55,
0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x14, 0x75,
0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55,
0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
0x79, 0x52, 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74,
0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x53, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x55,
0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x72,
0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b,
0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x68, 0x0a, 0x1e,
0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61,
0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46,
0x0a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65,
0x67, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e,
0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f,
0x72, 0x79, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61,
0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x32, 0xeb, 0x04, 0x0a, 0x19, 0x55, 0x73, 0x65, 0x72, 0x54,
0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73,
0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67,
0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x18, 0x75,
0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43,
0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74,
0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70,
0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4f, 0x0a, 0x18,
0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74,
0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61,
0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e,
0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a,
0x1b, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b,
0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x70,
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63,
0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67,
0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a,
0x1d, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69,
0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x28,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4f, 0x6e, 0x55, 0x73, 0x65,
0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x2d, 0x0a, 0x2b, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73,
0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x7a, 0x0a, 0x2c, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73, 0x65,
0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65,
0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54,
0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x21, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65,
0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69,
0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x14, 0x75, 0x73, 0x65,
0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65,
0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52,
0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67,
0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x53, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65,
0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69,
0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74,
0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x68, 0x0a, 0x1e, 0x46, 0x69,
0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65,
0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x12,
0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f,
0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73,
0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65,
0x67, 0x6f, 0x72, 0x79, 0x32, 0x81, 0x05, 0x0a, 0x19, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63,
0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x23,
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69,
0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55,
0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x18, 0x75, 0x70, 0x64,
0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74,
0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67,
0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4f, 0x0a, 0x18, 0x64, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61,
0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65,
0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x1b, 0x66,
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74,
0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65,
0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55,
0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x89, 0x01, 0x0a, 0x24,
0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65,
0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f,
0x72, 0x69, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69,
0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54,
0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x55,
0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
0x79, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54,
0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73,
0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,
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 (
@@ -623,34 +625,34 @@ func file_service_user_ticket_category_proto_rawDescGZIP() []byte {
var file_service_user_ticket_category_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_service_user_ticket_category_proto_goTypes = []interface{}{
(*CreateUserTicketCategoryRequest)(nil), // 0: pb.CreateUserTicketCategoryRequest
(*CreateUserTicketCategoryResponse)(nil), // 1: pb.CreateUserTicketCategoryResponse
(*UpdateUserTicketCategoryRequest)(nil), // 2: pb.UpdateUserTicketCategoryRequest
(*DeleteUserTicketCategoryRequest)(nil), // 3: pb.DeleteUserTicketCategoryRequest
(*FindAllUserTicketCategoriesRequest)(nil), // 4: pb.FindAllUserTicketCategoriesRequest
(*FindAllUserTicketCategoriesResponse)(nil), // 5: pb.FindAllUserTicketCategoriesResponse
(*FindAllOnUserTicketCategoriesRequest)(nil), // 6: pb.FindAllOnUserTicketCategoriesRequest
(*FindAllOnUserTicketCategoriesResponse)(nil), // 7: pb.FindAllOnUserTicketCategoriesResponse
(*FindUserTicketCategoryRequest)(nil), // 8: pb.FindUserTicketCategoryRequest
(*FindUserTicketCategoryResponse)(nil), // 9: pb.FindUserTicketCategoryResponse
(*UserTicketCategory)(nil), // 10: pb.UserTicketCategory
(*RPCSuccess)(nil), // 11: pb.RPCSuccess
(*CreateUserTicketCategoryRequest)(nil), // 0: pb.CreateUserTicketCategoryRequest
(*CreateUserTicketCategoryResponse)(nil), // 1: pb.CreateUserTicketCategoryResponse
(*UpdateUserTicketCategoryRequest)(nil), // 2: pb.UpdateUserTicketCategoryRequest
(*DeleteUserTicketCategoryRequest)(nil), // 3: pb.DeleteUserTicketCategoryRequest
(*FindAllUserTicketCategoriesRequest)(nil), // 4: pb.FindAllUserTicketCategoriesRequest
(*FindAllUserTicketCategoriesResponse)(nil), // 5: pb.FindAllUserTicketCategoriesResponse
(*FindAllAvailableUserTicketCategoriesRequest)(nil), // 6: pb.FindAllAvailableUserTicketCategoriesRequest
(*FindAllAvailableUserTicketCategoriesResponse)(nil), // 7: pb.FindAllAvailableUserTicketCategoriesResponse
(*FindUserTicketCategoryRequest)(nil), // 8: pb.FindUserTicketCategoryRequest
(*FindUserTicketCategoryResponse)(nil), // 9: pb.FindUserTicketCategoryResponse
(*UserTicketCategory)(nil), // 10: pb.UserTicketCategory
(*RPCSuccess)(nil), // 11: pb.RPCSuccess
}
var file_service_user_ticket_category_proto_depIdxs = []int32{
10, // 0: pb.FindAllUserTicketCategoriesResponse.userTicketCategories:type_name -> pb.UserTicketCategory
10, // 1: pb.FindAllOnUserTicketCategoriesResponse.userTicketCategories:type_name -> pb.UserTicketCategory
10, // 1: pb.FindAllAvailableUserTicketCategoriesResponse.userTicketCategories:type_name -> pb.UserTicketCategory
10, // 2: pb.FindUserTicketCategoryResponse.userTicketCategory:type_name -> pb.UserTicketCategory
0, // 3: pb.UserTicketCategoryService.createUserTicketCategory:input_type -> pb.CreateUserTicketCategoryRequest
2, // 4: pb.UserTicketCategoryService.updateUserTicketCategory:input_type -> pb.UpdateUserTicketCategoryRequest
3, // 5: pb.UserTicketCategoryService.deleteUserTicketCategory:input_type -> pb.DeleteUserTicketCategoryRequest
4, // 6: pb.UserTicketCategoryService.findAllUserTicketCategories:input_type -> pb.FindAllUserTicketCategoriesRequest
6, // 7: pb.UserTicketCategoryService.findAllOnUserTicketCategories:input_type -> pb.FindAllOnUserTicketCategoriesRequest
6, // 7: pb.UserTicketCategoryService.findAllAvailableUserTicketCategories:input_type -> pb.FindAllAvailableUserTicketCategoriesRequest
8, // 8: pb.UserTicketCategoryService.findUserTicketCategory:input_type -> pb.FindUserTicketCategoryRequest
1, // 9: pb.UserTicketCategoryService.createUserTicketCategory:output_type -> pb.CreateUserTicketCategoryResponse
11, // 10: pb.UserTicketCategoryService.updateUserTicketCategory:output_type -> pb.RPCSuccess
11, // 11: pb.UserTicketCategoryService.deleteUserTicketCategory:output_type -> pb.RPCSuccess
5, // 12: pb.UserTicketCategoryService.findAllUserTicketCategories:output_type -> pb.FindAllUserTicketCategoriesResponse
7, // 13: pb.UserTicketCategoryService.findAllOnUserTicketCategories:output_type -> pb.FindAllOnUserTicketCategoriesResponse
7, // 13: pb.UserTicketCategoryService.findAllAvailableUserTicketCategories:output_type -> pb.FindAllAvailableUserTicketCategoriesResponse
9, // 14: pb.UserTicketCategoryService.findUserTicketCategory:output_type -> pb.FindUserTicketCategoryResponse
9, // [9:15] is the sub-list for method output_type
3, // [3:9] is the sub-list for method input_type
@@ -740,7 +742,7 @@ func file_service_user_ticket_category_proto_init() {
}
}
file_service_user_ticket_category_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllOnUserTicketCategoriesRequest); i {
switch v := v.(*FindAllAvailableUserTicketCategoriesRequest); i {
case 0:
return &v.state
case 1:
@@ -752,7 +754,7 @@ func file_service_user_ticket_category_proto_init() {
}
}
file_service_user_ticket_category_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllOnUserTicketCategoriesResponse); i {
switch v := v.(*FindAllAvailableUserTicketCategoriesResponse); i {
case 0:
return &v.state
case 1:
@@ -829,7 +831,7 @@ type UserTicketCategoryServiceClient interface {
// 查找所有分类
FindAllUserTicketCategories(ctx context.Context, in *FindAllUserTicketCategoriesRequest, opts ...grpc.CallOption) (*FindAllUserTicketCategoriesResponse, error)
// 查找所有启用中的分类
FindAllOnUserTicketCategories(ctx context.Context, in *FindAllOnUserTicketCategoriesRequest, opts ...grpc.CallOption) (*FindAllOnUserTicketCategoriesResponse, error)
FindAllAvailableUserTicketCategories(ctx context.Context, in *FindAllAvailableUserTicketCategoriesRequest, opts ...grpc.CallOption) (*FindAllAvailableUserTicketCategoriesResponse, error)
// 查询单个分类
FindUserTicketCategory(ctx context.Context, in *FindUserTicketCategoryRequest, opts ...grpc.CallOption) (*FindUserTicketCategoryResponse, error)
}
@@ -878,9 +880,9 @@ func (c *userTicketCategoryServiceClient) FindAllUserTicketCategories(ctx contex
return out, nil
}
func (c *userTicketCategoryServiceClient) FindAllOnUserTicketCategories(ctx context.Context, in *FindAllOnUserTicketCategoriesRequest, opts ...grpc.CallOption) (*FindAllOnUserTicketCategoriesResponse, error) {
out := new(FindAllOnUserTicketCategoriesResponse)
err := c.cc.Invoke(ctx, "/pb.UserTicketCategoryService/findAllOnUserTicketCategories", in, out, opts...)
func (c *userTicketCategoryServiceClient) FindAllAvailableUserTicketCategories(ctx context.Context, in *FindAllAvailableUserTicketCategoriesRequest, opts ...grpc.CallOption) (*FindAllAvailableUserTicketCategoriesResponse, error) {
out := new(FindAllAvailableUserTicketCategoriesResponse)
err := c.cc.Invoke(ctx, "/pb.UserTicketCategoryService/findAllAvailableUserTicketCategories", in, out, opts...)
if err != nil {
return nil, err
}
@@ -907,7 +909,7 @@ type UserTicketCategoryServiceServer interface {
// 查找所有分类
FindAllUserTicketCategories(context.Context, *FindAllUserTicketCategoriesRequest) (*FindAllUserTicketCategoriesResponse, error)
// 查找所有启用中的分类
FindAllOnUserTicketCategories(context.Context, *FindAllOnUserTicketCategoriesRequest) (*FindAllOnUserTicketCategoriesResponse, error)
FindAllAvailableUserTicketCategories(context.Context, *FindAllAvailableUserTicketCategoriesRequest) (*FindAllAvailableUserTicketCategoriesResponse, error)
// 查询单个分类
FindUserTicketCategory(context.Context, *FindUserTicketCategoryRequest) (*FindUserTicketCategoryResponse, error)
}
@@ -928,8 +930,8 @@ func (*UnimplementedUserTicketCategoryServiceServer) DeleteUserTicketCategory(co
func (*UnimplementedUserTicketCategoryServiceServer) FindAllUserTicketCategories(context.Context, *FindAllUserTicketCategoriesRequest) (*FindAllUserTicketCategoriesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllUserTicketCategories not implemented")
}
func (*UnimplementedUserTicketCategoryServiceServer) FindAllOnUserTicketCategories(context.Context, *FindAllOnUserTicketCategoriesRequest) (*FindAllOnUserTicketCategoriesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllOnUserTicketCategories not implemented")
func (*UnimplementedUserTicketCategoryServiceServer) FindAllAvailableUserTicketCategories(context.Context, *FindAllAvailableUserTicketCategoriesRequest) (*FindAllAvailableUserTicketCategoriesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableUserTicketCategories not implemented")
}
func (*UnimplementedUserTicketCategoryServiceServer) FindUserTicketCategory(context.Context, *FindUserTicketCategoryRequest) (*FindUserTicketCategoryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindUserTicketCategory not implemented")
@@ -1011,20 +1013,20 @@ func _UserTicketCategoryService_FindAllUserTicketCategories_Handler(srv interfac
return interceptor(ctx, in, info, handler)
}
func _UserTicketCategoryService_FindAllOnUserTicketCategories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllOnUserTicketCategoriesRequest)
func _UserTicketCategoryService_FindAllAvailableUserTicketCategories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllAvailableUserTicketCategoriesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserTicketCategoryServiceServer).FindAllOnUserTicketCategories(ctx, in)
return srv.(UserTicketCategoryServiceServer).FindAllAvailableUserTicketCategories(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserTicketCategoryService/FindAllOnUserTicketCategories",
FullMethod: "/pb.UserTicketCategoryService/FindAllAvailableUserTicketCategories",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserTicketCategoryServiceServer).FindAllOnUserTicketCategories(ctx, req.(*FindAllOnUserTicketCategoriesRequest))
return srv.(UserTicketCategoryServiceServer).FindAllAvailableUserTicketCategories(ctx, req.(*FindAllAvailableUserTicketCategoriesRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -1068,8 +1070,8 @@ var _UserTicketCategoryService_serviceDesc = grpc.ServiceDesc{
Handler: _UserTicketCategoryService_FindAllUserTicketCategories_Handler,
},
{
MethodName: "findAllOnUserTicketCategories",
Handler: _UserTicketCategoryService_FindAllOnUserTicketCategories_Handler,
MethodName: "findAllAvailableUserTicketCategories",
Handler: _UserTicketCategoryService_FindAllAvailableUserTicketCategories_Handler,
},
{
MethodName: "findUserTicketCategory",

View File

@@ -4,6 +4,7 @@ option go_package = "./pb";
package pb;
import "models/model_ns_cluster.proto";
import "models/model_ns_domain_group.proto";
import "models/model_user.proto";
// DNS域名
@@ -15,7 +16,9 @@ message NSDomain {
bool isDeleted = 5;
int64 version = 6;
bytes tsigJSON = 7;
repeated int64 nsDomainGroupIds = 8;
NSCluster nsCluster = 30;
User user = 31;
repeated NSDomainGroup nsDomainGroups = 32;
}

View File

@@ -0,0 +1,12 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 域名分组
message NSDomainGroup {
int64 id = 1;
string name = 2;
bool isOn = 3;
int64 userId = 4;
}

View File

@@ -21,7 +21,7 @@ service NodePriceItemService {
rpc findAllEnabledNodePriceItems (FindAllEnabledNodePriceItemsRequest) returns (FindAllEnabledNodePriceItemsResponse);
// 查找所有启用的区域价格
rpc findAllEnabledAndOnNodePriceItems (FindAllEnabledAndOnNodePriceItemsRequest) returns (FindAllEnabledAndOnNodePriceItemsResponse);
rpc findAllAvailableNodePriceItems (FindAllAvailableNodePriceItemsRequest) returns (FindAllAvailableNodePriceItemsResponse);
// 查找单个区域信息
rpc findEnabledNodePriceItem (FindEnabledNodePriceItemRequest) returns (FindEnabledNodePriceItemResponse);
@@ -63,11 +63,11 @@ message FindAllEnabledNodePriceItemsResponse {
}
// 查找所有启用的区域价格
message FindAllEnabledAndOnNodePriceItemsRequest {
message FindAllAvailableNodePriceItemsRequest {
string type = 1;
}
message FindAllEnabledAndOnNodePriceItemsResponse {
message FindAllAvailableNodePriceItemsResponse {
repeated NodePriceItem NodePriceItems = 1;
}

View File

@@ -21,7 +21,7 @@ service NodeRegionService {
rpc findAllEnabledNodeRegions (FindAllEnabledNodeRegionsRequest) returns (FindAllEnabledNodeRegionsResponse);
// 查找所有启用的区域
rpc findAllEnabledAndOnNodeRegions (FindAllEnabledAndOnNodeRegionsRequest) returns (FindAllEnabledAndOnNodeRegionsResponse);
rpc findAllAvailableNodeRegions (FindAllAvailableNodeRegionsRequest) returns (FindAllAvailableNodeRegionsResponse);
// 排序
rpc updateNodeRegionOrders (UpdateNodeRegionOrdersRequest) returns (RPCSuccess);
@@ -66,11 +66,11 @@ message FindAllEnabledNodeRegionsResponse {
}
// 查找所有启用的区域
message FindAllEnabledAndOnNodeRegionsRequest {
message FindAllAvailableNodeRegionsRequest {
}
message FindAllEnabledAndOnNodeRegionsResponse {
message FindAllAvailableNodeRegionsResponse {
repeated NodeRegion nodeRegions = 1;
}

View File

@@ -24,16 +24,16 @@ service NSClusterService {
rpc deleteNSCluster (DeleteNSCluster) returns (RPCSuccess);
// 查找单个可用集群信息
rpc findEnabledNSCluster (FindEnabledNSClusterRequest) returns (FindEnabledNSClusterResponse);
rpc findNSCluster (FindNSClusterRequest) returns (FindNSClusterResponse);
// 计算所有可用集群的数量
rpc countAllEnabledNSClusters (CountAllEnabledNSClustersRequest) returns (RPCCountResponse);
rpc countAllNSClusters (CountAllNSClustersRequest) returns (RPCCountResponse);
// 列出单页可用集群
rpc listEnabledNSClusters (ListEnabledNSClustersRequest) returns (ListEnabledNSClustersResponse);
rpc listNSClusters (ListNSClustersRequest) returns (ListNSClustersResponse);
// 查找所有可用集群
rpc findAllEnabledNSClusters (FindAllEnabledNSClustersRequest) returns (FindAllEnabledNSClustersResponse);
rpc findAllNSClusters (FindAllNSClustersRequest) returns (FindAllNSClustersResponse);
// 设置递归DNS配置
rpc updateNSClusterRecursionConfig(UpdateNSClusterRecursionConfigRequest) returns (RPCSuccess);
@@ -101,34 +101,34 @@ message DeleteNSCluster {
}
// 查找单个可用集群信息
message FindEnabledNSClusterRequest {
message FindNSClusterRequest {
int64 nsClusterId = 1;
}
message FindEnabledNSClusterResponse {
message FindNSClusterResponse {
NSCluster nsCluster = 1;
}
// 计算所有可用集群的数量
message CountAllEnabledNSClustersRequest {
message CountAllNSClustersRequest {
}
// 列出单页可用集群
message ListEnabledNSClustersRequest {
message ListNSClustersRequest {
int64 offset = 1;
int64 size = 2;
}
message ListEnabledNSClustersResponse {
message ListNSClustersResponse {
repeated NSCluster nsClusters = 1;
}
// 查找所有可用集群
message FindAllEnabledNSClustersRequest {
message FindAllNSClustersRequest {
}
message FindAllEnabledNSClustersResponse {
message FindAllNSClustersResponse {
repeated NSCluster nsClusters = 1;
}

View File

@@ -8,9 +8,12 @@ import "models/rpc_messages.proto";
// 域名相关服务
service NSDomainService {
// 创建域名
// 创建单个域名
rpc createNSDomain (CreateNSDomainRequest) returns (CreateNSDomainResponse);
// 批量创建域名
rpc createNSDomains(CreateNSDomainsRequest) returns (CreateNSDomainsResponse);
// 修改域名
rpc updateNSDomain (UpdateNSDomainRequest) returns (RPCSuccess);
@@ -18,41 +21,58 @@ service NSDomainService {
rpc deleteNSDomain (DeleteNSDomainRequest) returns (RPCSuccess);
// 查找单个域名
rpc findEnabledNSDomain (FindEnabledNSDomainRequest) returns (FindEnabledNSDomainResponse);
rpc findNSDomain (FindNSDomainRequest) returns (FindNSDomainResponse);
// 计算域名数量
rpc countAllEnabledNSDomains (CountAllEnabledNSDomainsRequest) returns (RPCCountResponse);
rpc countAllNSDomains (CountAllNSDomainsRequest) returns (RPCCountResponse);
// 列出单页域名
rpc listEnabledNSDomains (ListEnabledNSDomainsRequest) returns (ListEnabledNSDomainsResponse);
rpc listNSDomains (ListNSDomainsRequest) returns (ListNSDomainsResponse);
// 根据版本列出一组域名
rpc listNSDomainsAfterVersion (ListNSDomainsAfterVersionRequest) returns (ListNSDomainsAfterVersionResponse);
// 查找TSIG配置
rpc findEnabledNSDomainTSIG (FindEnabledNSDomainTSIGRequest) returns (FindEnabledNSDomainTSIGResponse);
rpc findNSDomainTSIG (FindNSDomainTSIGRequest) returns (FindNSDomainTSIGResponse);
// 修改TSIG配置
rpc updateNSDomainTSIG (UpdateNSDomainTSIGRequest) returns (RPCSuccess);
// 检查一组域名是否存在
rpc existNSDomains(ExistNSDomainsRequest) returns (ExistNSDomainsResponse);
}
// 创建域名
// 创建单个域名
message CreateNSDomainRequest {
int64 nsClusterId = 1;
int64 userId = 2;
string name = 3;
int64 nsClusterId = 1; // 所属集群
int64 userId = 2; // 所属用户
string name = 3; // 域名
repeated int64 nsDomainGroupIds = 4; // 域名分组ID
}
message CreateNSDomainResponse {
int64 nsDomainId = 1;
}
// 批量创建域名
message CreateNSDomainsRequest {
int64 nsClusterId = 1; // 所属集群
int64 userId = 2; // 所属用户
repeated string names = 3; // 一组域名
repeated int64 nsDomainGroupIds = 4; // 域名分组ID
}
message CreateNSDomainsResponse {
repeated int64 nsDomainIds = 1;
}
// 修改域名
// 注意:名称不能修改
message UpdateNSDomainRequest {
int64 nsDomainId = 1;
int64 nsClusterId = 2;
int64 userId = 3;
repeated int64 nsDomainGroupIds = 5; // 域名分组ID
bool isOn = 4;
}
@@ -62,31 +82,33 @@ message DeleteNSDomainRequest {
}
// 查找单个域名
message FindEnabledNSDomainRequest {
message FindNSDomainRequest {
int64 nsDomainId = 1;
}
message FindEnabledNSDomainResponse {
message FindNSDomainResponse {
NSDomain nsDomain = 1;
}
// 计算域名数量
message CountAllEnabledNSDomainsRequest {
message CountAllNSDomainsRequest {
int64 userId = 1;
int64 nsClusterId = 2;
string keyword = 3;
int64 nsDomainGroupId = 4;
}
// 列出单页域名
message ListEnabledNSDomainsRequest {
message ListNSDomainsRequest {
int64 userId = 1;
int64 nsClusterId = 2;
string keyword = 3;
int64 nsDomainGroupId = 6;
int64 offset = 4;
int64 size = 5;
}
message ListEnabledNSDomainsResponse {
message ListNSDomainsResponse {
repeated NSDomain nsDomains = 1;
}
@@ -101,11 +123,11 @@ message ListNSDomainsAfterVersionResponse {
}
// 查找TSIG配置
message FindEnabledNSDomainTSIGRequest {
message FindNSDomainTSIGRequest {
int64 nsDomainId = 1;
}
message FindEnabledNSDomainTSIGResponse {
message FindNSDomainTSIGResponse {
bytes tsigJSON = 1;
}
@@ -113,4 +135,14 @@ message FindEnabledNSDomainTSIGResponse {
message UpdateNSDomainTSIGRequest {
int64 nsDomainId = 1;
bytes tsigJSON = 2;
}
// 检查一组域名是否存在
message ExistNSDomainsRequest {
repeated string names = 1;
int64 userId = 2;
}
message ExistNSDomainsResponse {
repeated string existingNames = 1;
}

View File

@@ -0,0 +1,84 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_ns_domain_group.proto";
import "models/rpc_messages.proto";
// 域名分组服务
service NSDomainGroupService {
// 创建分组
rpc createNSDomainGroup(CreateNSDomainGroupRequest) returns (CreateNSDomainGroupResponse);
// 修改分组
rpc updateNSDomainGroup(UpdateNSDomainGroupRequest) returns (RPCSuccess);
// 删除分组
rpc deleteNSDomainGroup(DeleteNSDomainGroupRequest) returns (RPCSuccess);
// 查询所有分组
rpc findAllNSDomainGroups(FindAllNSDomainGroupsRequest) returns (FindAllNSDomainGroupsResponse);
// 查询可用分组数量
rpc countAllAvailableNSDomainGroups(CountAllAvailableNSDomainGroupsRequest) returns (RPCCountResponse);
// 查询所有启用分组
rpc findAllAvailableNSDomainGroups(FindAllAvailableNSDomainGroupsRequest) returns (FindAllAvailableNSDomainGroupsResponse);
// 查找单个分组
rpc findNSDomainGroup(FindNSDomainGroupRequest) returns (FindNSDomainGroupResponse);
}
// 创建分组
message CreateNSDomainGroupRequest {
string name = 1;
}
message CreateNSDomainGroupResponse {
int64 nsDomainGroupId = 1;
}
// 修改分组
message UpdateNSDomainGroupRequest {
int64 nsDomainGroupId = 1;
string name = 2;
bool isOn = 3;
}
// 删除分组
message DeleteNSDomainGroupRequest {
int64 nsDomainGroupId = 1;
}
// 查询所有分组
message FindAllNSDomainGroupsRequest {
int64 userId = 1;
}
message FindAllNSDomainGroupsResponse {
repeated NSDomainGroup nsDomainGroups = 1;
}
// 查询可用分组数量
message CountAllAvailableNSDomainGroupsRequest {
int64 userId = 1;
}
// 查询所有启用分组
message FindAllAvailableNSDomainGroupsRequest {
int64 userId = 1;
}
message FindAllAvailableNSDomainGroupsResponse {
repeated NSDomainGroup nsDomainGroups = 1;
}
// 查找单个分组
message FindNSDomainGroupRequest {
int64 nsDomainGroupId = 1;
}
message FindNSDomainGroupResponse {
NSDomainGroup nsDomainGroup = 1;
}

View File

@@ -18,13 +18,13 @@ service NSKeyService {
rpc deleteNSKey (DeleteNSKeyRequest) returns (RPCSuccess);
// 查找单个密钥
rpc findEnabledNSKey (FindEnabledNSKeyRequest) returns (FindEnabledNSKeyResponse);
rpc findNSKey (FindNSKeyRequest) returns (FindNSKeyResponse);
// 计算密钥数量
rpc countAllEnabledNSKeys (CountAllEnabledNSKeysRequest) returns (RPCCountResponse);
rpc countAllNSKeys (CountAllNSKeysRequest) returns (RPCCountResponse);
// 列出单页密钥
rpc listEnabledNSKeys (ListEnabledNSKeysRequest) returns (ListEnabledNSKeysResponse);
rpc listNSKeys (ListNSKeysRequest) returns (ListNSKeysResponse);
// 根据版本列出一组密钥
rpc listNSKeysAfterVersion (ListNSKeysAfterVersionRequest) returns (ListNSKeysAfterVersionResponse);
@@ -60,29 +60,29 @@ message DeleteNSKeyRequest {
}
// 查找单个密钥
message FindEnabledNSKeyRequest {
message FindNSKeyRequest {
int64 nsKeyId = 1;
}
message FindEnabledNSKeyResponse {
message FindNSKeyResponse {
NSKey nsKey = 1;
}
// 计算密钥数量
message CountAllEnabledNSKeysRequest {
message CountAllNSKeysRequest {
int64 nsDomainId = 1;
int64 nsZoneId = 2;
}
// 列出单页密钥
message ListEnabledNSKeysRequest {
message ListNSKeysRequest {
int64 nsDomainId = 1;
int64 nsZoneId = 2;
int64 offset = 3;
int64 size = 4;
}
message ListEnabledNSKeysResponse {
message ListNSKeysResponse {
repeated NSKey nsKeys = 1;
}

View File

@@ -11,16 +11,16 @@ import "models/model_node_login.proto";
// 域名服务器节点服务
service NSNodeService {
// 根据集群查找所有节点
rpc findAllEnabledNSNodesWithNSClusterId (FindAllEnabledNSNodesWithNSClusterIdRequest) returns (FindAllEnabledNSNodesWithNSClusterIdResponse);
rpc findAllNSNodesWithNSClusterId (FindAllNSNodesWithNSClusterIdRequest) returns (FindAllNSNodesWithNSClusterIdResponse);
// 所有可用的节点数量
rpc countAllEnabledNSNodes (CountAllEnabledNSNodesRequest) returns (RPCCountResponse);
rpc countAllNSNodes (CountAllNSNodesRequest) returns (RPCCountResponse);
// 计算匹配的节点数量
rpc countAllEnabledNSNodesMatch (CountAllEnabledNSNodesMatchRequest) returns (RPCCountResponse);
rpc countAllNSNodesMatch (CountAllNSNodesMatchRequest) returns (RPCCountResponse);
// 列出单页节点
rpc listEnabledNSNodesMatch (ListEnabledNSNodesMatchRequest) returns (ListEnabledNSNodesMatchResponse);
rpc listNSNodesMatch (ListNSNodesMatchRequest) returns (ListNSNodesMatchResponse);
// 计算需要升级的节点数量
rpc countAllUpgradeNSNodesWithNSClusterId (CountAllUpgradeNSNodesWithNSClusterIdRequest) returns (RPCCountResponse);
@@ -32,7 +32,7 @@ service NSNodeService {
rpc deleteNSNode (DeleteNSNodeRequest) returns (RPCSuccess);
// 获取单个节点信息
rpc findEnabledNSNode (FindEnabledNSNodeRequest) returns (FindEnabledNSNodeResponse);
rpc findNSNode (FindNSNodeRequest) returns (FindNSNodeResponse);
// 修改节点
rpc updateNSNode (UpdateNSNodeRequest) returns (RPCSuccess);
@@ -78,21 +78,21 @@ service NSNodeService {
}
// 根据集群查找所有节点
message FindAllEnabledNSNodesWithNSClusterIdRequest {
message FindAllNSNodesWithNSClusterIdRequest {
int64 nsClusterId = 1;
}
message FindAllEnabledNSNodesWithNSClusterIdResponse {
message FindAllNSNodesWithNSClusterIdResponse {
repeated NSNode nsNodes = 1;
}
// 所有可用的节点数量
message CountAllEnabledNSNodesRequest {
message CountAllNSNodesRequest {
}
// 计算匹配的节点数量
message CountAllEnabledNSNodesMatchRequest {
message CountAllNSNodesMatchRequest {
int64 nsClusterId = 1;
int32 installState = 2;
int32 activeState = 3;
@@ -102,7 +102,7 @@ message CountAllEnabledNSNodesMatchRequest {
}
// 列出单页节点
message ListEnabledNSNodesMatchRequest {
message ListNSNodesMatchRequest {
int64 offset = 1;
int64 size = 2;
int64 nsClusterId = 3;
@@ -113,7 +113,7 @@ message ListEnabledNSNodesMatchRequest {
//int64 nodeRegionId = 8;
}
message ListEnabledNSNodesMatchResponse {
message ListNSNodesMatchResponse {
repeated NSNode nsNodes = 1;
}
@@ -139,11 +139,11 @@ message DeleteNSNodeRequest {
}
// 获取单个节点信息
message FindEnabledNSNodeRequest {
message FindNSNodeRequest {
int64 nsNodeId = 1;
}
message FindEnabledNSNodeResponse {
message FindNSNodeResponse {
NSNode nsNode = 1;
}

View File

@@ -11,6 +11,9 @@ service NSRecordService {
// 创建记录
rpc createNSRecord (CreateNSRecordRequest) returns (CreateNSRecordResponse);
// 批量创建记录
rpc createNSRecords(CreateNSRecordsRequest) returns (CreateNSRecordsResponse);
// 修改记录
rpc updateNSRecord (UpdateNSRecordRequest) returns (RPCSuccess);
@@ -18,13 +21,13 @@ service NSRecordService {
rpc deleteNSRecord (DeleteNSRecordRequest) returns (RPCSuccess);
// 计算记录数量
rpc countAllEnabledNSRecords (CountAllEnabledNSRecordsRequest) returns (RPCCountResponse);
rpc countAllNSRecords (CountAllNSRecordsRequest) returns (RPCCountResponse);
// 读取单页记录
rpc listEnabledNSRecords (ListEnabledNSRecordsRequest) returns (ListEnabledNSRecordsResponse);
rpc listNSRecords (ListNSRecordsRequest) returns (ListNSRecordsResponse);
// 查询单个记录信息
rpc findEnabledNSRecord (FindEnabledNSRecordRequest) returns (FindEnabledNSRecordResponse);
rpc findNSRecord (FindNSRecordRequest) returns (FindNSRecordResponse);
// 根据版本列出一组记录
rpc listNSRecordsAfterVersion (ListNSRecordsAfterVersionRequest) returns (ListNSRecordsAfterVersionResponse);
@@ -46,6 +49,21 @@ message CreateNSRecordResponse {
int64 nsRecordId = 1;
}
// 批量创建记录
message CreateNSRecordsRequest {
int64 nsDomainId = 1;
string description = 2;
repeated string names = 3;
string type = 4;
string value = 5;
int32 ttl = 6;
repeated string nsRouteCodes = 7; // 路线代号
}
message CreateNSRecordsResponse {
repeated int64 nsRecordIds = 1;
}
// 修改记录
message UpdateNSRecordRequest {
int64 nsRecordId = 1;
@@ -65,7 +83,7 @@ message DeleteNSRecordRequest {
}
// 计算记录数量
message CountAllEnabledNSRecordsRequest {
message CountAllNSRecordsRequest {
int64 nsDomainId = 1;
string type = 2;
int64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替
@@ -74,7 +92,7 @@ message CountAllEnabledNSRecordsRequest {
}
// 读取单页记录
message ListEnabledNSRecordsRequest {
message ListNSRecordsRequest {
int64 nsDomainId = 1;
string type = 2;
int64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替
@@ -84,16 +102,16 @@ message ListEnabledNSRecordsRequest {
int64 size = 6;
}
message ListEnabledNSRecordsResponse {
message ListNSRecordsResponse {
repeated NSRecord nsRecords = 1;
}
// 查询单个记录信息
message FindEnabledNSRecordRequest {
message FindNSRecordRequest {
int64 nsRecordId = 1;
}
message FindEnabledNSRecordResponse {
message FindNSRecordResponse {
NSRecord nsRecord = 1;
}

View File

@@ -18,10 +18,10 @@ service NSRouteService {
rpc deleteNSRoute (DeleteNSRouteRequest) returns (RPCSuccess);
// 获取单个路线信息
rpc findEnabledNSRoute (FindEnabledNSRouteRequest) returns (FindEnabledNSRouteResponse);
rpc findNSRoute (FindNSRouteRequest) returns (FindNSRouteResponse);
// 读取所有线路
rpc findAllEnabledNSRoutes (FindAllEnabledNSRoutesRequest) returns (FindAllEnabledNSRoutesResponse);
rpc findAllNSRoutes (FindAllNSRoutesRequest) returns (FindAllNSRoutesResponse);
// 设置线路排序
rpc updateNSRouteOrders (UpdateNSRouteOrdersRequest) returns (RPCSuccess);
@@ -56,22 +56,22 @@ message DeleteNSRouteRequest {
}
// 获取单个路线信息
message FindEnabledNSRouteRequest {
message FindNSRouteRequest {
int64 nsRouteId = 1;
}
message FindEnabledNSRouteResponse {
message FindNSRouteResponse {
NSRoute nsRoute = 1;
}
// 读取所有线路
message FindAllEnabledNSRoutesRequest {
message FindAllNSRoutesRequest {
int64 nsClusterId = 1;
int64 nsDomainId = 2;
int64 userId = 3;
}
message FindAllEnabledNSRoutesResponse {
message FindAllNSRoutesResponse {
repeated NSRoute nsRoutes = 1;
}

View File

@@ -27,7 +27,7 @@ service OrderMethodService {
rpc findAllEnabledOrderMethods(FindAllEnabledOrderMethodsRequest) returns (FindAllEnabledOrderMethodsResponse);
// 查找所有已启用的支付方式
rpc findAllEnabledAndOnOrderMethods(FindAllEnabledAndOnOrderMethodsRequest) returns (FindAllEnabledAndOnOrderMethodsResponse);
rpc findAllAvailableOrderMethods(FindAllAvailableOrderMethodsRequest) returns (FindAllAvailableOrderMethodsResponse);
}
// 创建支付方式
@@ -85,10 +85,10 @@ message FindAllEnabledOrderMethodsResponse {
}
// 查找所有已启用的支付方式
message FindAllEnabledAndOnOrderMethodsRequest {
message FindAllAvailableOrderMethodsRequest {
}
message FindAllEnabledAndOnOrderMethodsResponse {
message FindAllAvailableOrderMethodsResponse {
repeated OrderMethod orderMethods = 1;
}

View File

@@ -21,7 +21,7 @@ service UserTicketCategoryService {
rpc findAllUserTicketCategories(FindAllUserTicketCategoriesRequest) returns (FindAllUserTicketCategoriesResponse);
// 查找所有启用中的分类
rpc findAllOnUserTicketCategories(FindAllOnUserTicketCategoriesRequest) returns (FindAllOnUserTicketCategoriesResponse);
rpc findAllAvailableUserTicketCategories(FindAllAvailableUserTicketCategoriesRequest) returns (FindAllAvailableUserTicketCategoriesResponse);
// 查询单个分类
rpc findUserTicketCategory(FindUserTicketCategoryRequest) returns (FindUserTicketCategoryResponse);
@@ -58,11 +58,11 @@ message FindAllUserTicketCategoriesResponse {
}
// 查找所有启用中的分类
message FindAllOnUserTicketCategoriesRequest {
message FindAllAvailableUserTicketCategoriesRequest {
}
message FindAllOnUserTicketCategoriesResponse {
message FindAllAvailableUserTicketCategoriesResponse {
repeated UserTicketCategory userTicketCategories = 1;
}