Compare commits

...

21 Commits

Author SHA1 Message Date
刘祥超
ec02d83ee6 IP库阶段性提交(未完成) 2022-08-14 19:42:05 +08:00
刘祥超
debf4a5249 IP库阶段性提交(未完成) 2022-08-14 16:33:11 +08:00
刘祥超
4ddc1ac89f 新版IP库管理阶段性提交(未完成) 2022-08-13 23:55:59 +08:00
刘祥超
507457dec1 增加批量操作NS域名和记录相关接口 2022-08-09 21:03:04 +08:00
刘祥超
525429bbb0 访问日志ES存储增加Data Stream模式 2022-08-09 18:12:15 +08:00
刘祥超
25e33ac1ee 缓存条件增加If-None-Match和If-Modified-Since是否回源选项 2022-08-07 16:37:03 +08:00
刘祥超
f428cb2de9 优化代码 2022-08-07 15:09:39 +08:00
刘祥超
86070bc8aa 增加NS域名分组、批量添加域名和记录接口 2022-08-06 20:29:26 +08:00
刘祥超
afef00b473 增加查找使用某个证书的NS集群数量的API 2022-08-04 16:25:00 +08:00
刘祥超
812e9482af 自动从代码中分析接口方法所适用的角色 2022-08-04 16:01:57 +08:00
刘祥超
fa5dc80426 优化代码 2022-08-04 11:52:28 +08:00
刘祥超
76b6a5c847 优化代码 2022-08-04 11:24:50 +08:00
刘祥超
a19b738d73 源站读取错误时自动尝试下一个源站 2022-08-03 20:33:31 +08:00
刘祥超
526d72fd99 增加工单相关接口定义 2022-08-03 10:45:23 +08:00
刘祥超
7ea8189c19 服务带宽API增加按月、按日查询接口 2022-08-01 15:41:07 +08:00
刘祥超
c453222774 实现用户订单、在线支付接口(商业版可用) 2022-07-31 19:57:28 +08:00
刘祥超
905163880c EdgeDNS:访问日志增加集群和记录类型筛选 2022-07-27 20:19:19 +08:00
刘祥超
ac106ca4f0 NS节点也增加DDoS配置 2022-07-27 19:41:51 +08:00
刘祥超
262dcf0c8d 智能DNS支持自定义端口 2022-07-27 16:56:32 +08:00
刘祥超
f6b3a0b829 修改文字 2022-07-26 11:28:09 +08:00
刘祥超
ac7ab51dbb 智能DNS增加中国香港、中国澳门、中国台湾、中国大陆、海外等线路 2022-07-26 11:15:05 +08:00
119 changed files with 30166 additions and 7041 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,7 @@ import (
"github.com/iwind/TeaGo/Tea"
_ "github.com/iwind/TeaGo/bootstrap"
"github.com/iwind/TeaGo/types"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strings"
@@ -24,11 +24,12 @@ type ServiceInfo struct {
}
type MethodInfo struct {
Name string `json:"name"`
RequestMessageName string `json:"requestMessageName"`
ResponseMessageName string `json:"responseMessageName"`
Code string `json:"code"`
Doc string `json:"doc"`
Name string `json:"name"`
RequestMessageName string `json:"requestMessageName"`
ResponseMessageName string `json:"responseMessageName"`
Code string `json:"code"`
Doc string `json:"doc"`
Roles []string `json:"roles"`
}
type MessageInfo struct {
@@ -68,12 +69,103 @@ 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
flag.BoolVar(&quiet, "quiet", false, "")
flag.Parse()
var methodRolesMap = map[string][]string{} // method => roles
{
var rootDir = filepath.Clean(Tea.Root + "/../../EdgeAPI/internal/rpc/services")
files, err := filepath.Glob(rootDir + "/service_*.go")
if err != nil {
fmt.Println("[ERROR]list service implementation files failed: " + err.Error())
return
}
var methodNameReg = regexp.MustCompile(`func\s*\(\w+\s+\*\s*(\w+Service)\)\s*(\w+)\s*\(`) // $1: serviceName, $2 methodName
for _, file := range files {
data, err := os.ReadFile(file)
if err != nil {
fmt.Println("[ERROR]read file '" + file + "' failed: " + err.Error())
return
}
var sourceCode = string(data)
var locList = methodNameReg.FindAllStringIndex(sourceCode, -1)
for index, loc := range locList {
var methodSource = ""
if index == len(locList)-1 { // last one
methodSource = sourceCode[loc[0]:]
} else {
methodSource = sourceCode[loc[0]:locList[index+1][0]]
}
// 方法名
var submatch = methodNameReg.FindStringSubmatch(methodSource)
if len(submatch) == 0 {
continue
}
var serviceName = submatch[1]
if serviceName == "BaseService" {
continue
}
var methodName = submatch[2]
if methodName[0] < 'A' || methodName[0] > 'Z' {
continue
}
var roles = []string{}
if strings.Contains(methodSource, ".ValidateNode(") {
roles = append(roles, "node")
} else if strings.Contains(methodSource, ".ValidateUserNode(") {
roles = append(roles, "user")
} else if strings.Contains(methodSource, ".ValidateAdmin(") {
roles = append(roles, "admin")
} else if strings.Contains(methodSource, ".ValidateAdminAndUser(") {
roles = append(roles, "admin", "user")
} else if strings.Contains(methodSource, ".ValidateNSNode(") {
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)] = removeDuplicates(roles)
}
}
}
var services = []*ServiceInfo{}
var messages = []*MessageInfo{}
@@ -91,7 +183,12 @@ func main() {
for _, path := range files {
func(path string) {
data, err := ioutil.ReadFile(path)
var filename = filepath.Base(path)
if filename == "service_authority_key.proto" || filename == "service_authority_node.proto" {
return
}
data, err := os.ReadFile(path)
if err != nil {
fmt.Println("[ERROR]" + err.Error())
return
@@ -130,19 +227,25 @@ func main() {
var methodPieces = methodReg.FindSubmatch(methodData)
var methodCodePosition = methodCodePositions[methodMatchIndex]
var roles = methodRolesMap[strings.ToLower(string(methodPieces[1]))]
if roles == nil {
roles = []string{}
}
methods = append(methods, &MethodInfo{
Name: string(methodPieces[1]),
RequestMessageName: string(methodPieces[2]),
ResponseMessageName: string(methodPieces[3]),
Code: string(methodData),
Doc: readComments(serviceData[:methodCodePosition[0]]),
Roles: roles,
})
}
services = append(services, &ServiceInfo{
Name: serviceName,
Methods: methods,
Filename: filepath.Base(path),
Filename: filename,
Doc: comment,
})
}
@@ -231,7 +334,7 @@ func main() {
for _, path := range files {
func(path string) {
var name = strings.TrimSuffix(filepath.Base(path), ".md")
data, err := ioutil.ReadFile(path)
data, err := os.ReadFile(path)
if err != nil {
fmt.Println("[ERROR]read '" + path + "' failed: " + err.Error())
return
@@ -259,7 +362,7 @@ func main() {
}
var jsonFile = Tea.Root + "/rpc.json"
err = ioutil.WriteFile(jsonFile, jsonData, 0666)
err = os.WriteFile(jsonFile, jsonData, 0666)
if err != nil {
fmt.Println("[ERROR]write json to file failed: " + err.Error())
return

View File

@@ -2,11 +2,11 @@ package configutils
import (
"gopkg.in/yaml.v3"
"io/ioutil"
"os"
)
func UnmarshalYamlFile(file string, ptr interface{}) error {
data, err := ioutil.ReadFile(file)
data, err := os.ReadFile(file)
if err != nil {
return err
}

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

@@ -0,0 +1,30 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package dnsconfigs
import "github.com/iwind/TeaGo/maps"
// 一组系统默认值
// 修改单个IP相关限制值时要考虑到NAT中每个IP会代表很多个主机并非1对1的关系
const (
DefaultMaxThreads = 20000 // 单节点最大线程数
DefaultMaxThreadsMin = 1000 // 单节点最大线程数最小值
DefaultMaxThreadsMax = 100_000 // 单节点最大线程数最大值
DefaultTCPMaxConnections = 100_000 // 单节点TCP最大连接数
DefaultTCPMaxConnectionsPerIP = 1000 // 单IP最大连接数
DefaultTCPMinConnectionsPerIP = 5 // 单IP最小连接数
DefaultTCPNewConnectionsRate = 500 // 单IP连接速率限制按分钟
DefaultTCPNewConnectionsMinRate = 5 // 单IP最小连接速率
DefaultTCPLinger = 3 // 单节点TCP Linger值
DefaultTLSHandshakeTimeout = 3 // TLS握手超时时间
)
var DefaultConfigs = maps.Map{
"tcpMaxConnections": DefaultTCPMaxConnections,
"tcpMaxConnectionsPerIP": DefaultTCPMaxConnectionsPerIP,
"tcpMinConnectionsPerIP": DefaultTCPMinConnectionsPerIP,
"tcpNewConnectionsRate": DefaultTCPNewConnectionsRate,
"tcpNewConnectionsMinRate": DefaultTCPNewConnectionsMinRate,
}

View File

@@ -2,15 +2,25 @@
package dnsconfigs
import "fmt"
import (
"fmt"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/ddosconfigs"
)
type NSNodeConfig struct {
Id int64 `yaml:"id" json:"id"`
NodeId string `yaml:"nodeId" json:"nodeId"`
Secret string `yaml:"secret" json:"secret"`
ClusterId int64 `yaml:"clusterId" json:"clusterId"`
AccessLogRef *NSAccessLogRef `yaml:"accessLogRef" json:"accessLogRef"`
RecursionConfig *RecursionConfig `yaml:"recursionConfig" json:"recursionConfig"`
Id int64 `yaml:"id" json:"id"`
NodeId string `yaml:"nodeId" json:"nodeId"`
Secret string `yaml:"secret" json:"secret"`
ClusterId int64 `yaml:"clusterId" json:"clusterId"`
AccessLogRef *NSAccessLogRef `yaml:"accessLogRef" json:"accessLogRef"`
RecursionConfig *RecursionConfig `yaml:"recursionConfig" json:"recursionConfig"`
DDoSProtection *ddosconfigs.ProtectionConfig `yaml:"ddosProtection" json:"ddosProtection"`
AllowedIPs []string `yaml:"allowedIPs" json:"allowedIPs"`
TCP *serverconfigs.TCPProtocolConfig `yaml:"tcp" json:"tcp"` // TCP配置
TLS *serverconfigs.TLSProtocolConfig `yaml:"tls" json:"tls"` // TLS配置
UDP *serverconfigs.UDPProtocolConfig `yaml:"udp" json:"udp"` // UDP配置
paddedId string
}
@@ -26,6 +36,46 @@ func (this *NSNodeConfig) Init() error {
}
}
// 递归DNS
if this.RecursionConfig != nil {
err := this.RecursionConfig.Init()
if err != nil {
return err
}
}
// DDoS
if this.DDoSProtection != nil {
err := this.DDoSProtection.Init()
if err != nil {
return err
}
}
// tcp
if this.TCP != nil {
err := this.TCP.Init()
if err != nil {
return err
}
}
// tls
if this.TLS != nil {
err := this.TLS.Init()
if err != nil {
return err
}
}
// udp
if this.UDP != nil {
err := this.UDP.Init()
if err != nil {
return err
}
}
return nil
}

View File

@@ -16,3 +16,7 @@ type RecursionConfig struct {
AllowDomains []string `json:"allowDomains"`
DenyDomains []string `json:"denyDomains"`
}
func (this *RecursionConfig) Init() error {
return nil
}

View File

@@ -2,6 +2,8 @@
package dnsconfigs
type RouteCode = string
type Route struct {
Name string `json:"name"`
Code string `json:"code"`
@@ -105,6 +107,12 @@ var AllDefaultISPRoutes = []*Route{
},
}
const (
ChinaProvinceCodeHK RouteCode = "china:province:hk"
ChinaProvinceCodeMO RouteCode = "china:province:mo"
ChinaProvinceCodeTW RouteCode = "china:province:tw"
)
// AllDefaultChinaProvinceRoutes 中国地域线路
var AllDefaultChinaProvinceRoutes = []*Route{
{
@@ -264,29 +272,63 @@ var AllDefaultChinaProvinceRoutes = []*Route{
},
{
Name: "香港特别行政区",
Code: "china:province:hk",
Code: ChinaProvinceCodeHK,
AliasNames: []string{"香港特别行政区", "香港"},
},
{
Name: "澳门特别行政区",
Code: "china:province:mo",
Code: ChinaProvinceCodeMO,
AliasNames: []string{"澳门特别行政区", "澳门"},
},
{
Name: "台湾省",
Code: "china:province:tw",
Code: ChinaProvinceCodeTW,
AliasNames: []string{"台湾省", "台湾"},
},
}
const (
WorldRegionCodeChina RouteCode = "world:CN"
WorldRegionCodeHK RouteCode = "world:CN:hk"
WorldRegionCodeMO RouteCode = "world:CN:mo"
WorldRegionCodeTW RouteCode = "world:CN:tw"
WorldRegionCodeChinaMainland RouteCode = "world:CN:mainland"
WorldRegionCodeChinaAbroad RouteCode = "world:CN:abroad"
)
// AllDefaultWorldRegionRoutes 世界地域线路
// 参考https://zh.wikipedia.org/wiki/%E5%9C%8B%E5%AE%B6%E5%9C%B0%E5%8D%80%E4%BB%A3%E7%A2%BC
var AllDefaultWorldRegionRoutes = []*Route{
{
Name: "中国",
Code: "world:CN",
Name: "中国全境",
Code: WorldRegionCodeChina,
AliasNames: []string{"中国"},
},
{
Name: "中国香港",
Code: WorldRegionCodeHK,
AliasNames: []string{"中国香港地区"},
},
{
Name: "中国澳门",
Code: WorldRegionCodeMO,
AliasNames: []string{"中国澳门地区"},
},
{
Name: "中国台湾",
Code: WorldRegionCodeTW,
AliasNames: []string{"中国台湾地区"},
},
{
Name: "中国大陆",
Code: WorldRegionCodeChinaMainland,
AliasNames: []string{"中国大陆大区"},
},
{
Name: "海外",
Code: WorldRegionCodeChinaAbroad,
AliasNames: []string{"中国海外地区"},
},
{
Name: "蒙古",
Code: "world:MN",

View File

@@ -62,7 +62,7 @@ func TestRoutes_Markdown(t *testing.T) {
case 0:
markdown += "## 默认线路\n"
case 1:
markdown += "## 中国地区\n"
markdown += "## 中国省市\n"
case 2:
markdown += "## 运营商\n"
case 3:

1
pkg/iplibrary/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
ip.db

13
pkg/iplibrary/ip_item.go Normal file
View File

@@ -0,0 +1,13 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
type ipItem struct {
ipFrom uint64
ipTo uint64
countryId int64
provinceId int64
cityId int64
townId int64
providerId int64
}

94
pkg/iplibrary/meta.go Normal file
View File

@@ -0,0 +1,94 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
type Country struct {
Id int64 `json:"id"`
Name string `json:"name"`
Codes []string `json:"codes"`
}
type Province struct {
Id int64 `json:"id"`
Name string `json:"name"`
Codes []string `json:"codes"`
}
type City struct {
Id int64 `json:"id"`
Name string `json:"name"`
Codes []string `json:"codes"`
}
type Town struct {
Id int64 `json:"id"`
Name string `json:"name"`
Codes []string `json:"codes"`
}
type Provider struct {
Id int64 `json:"id"`
Name string `json:"name"`
Codes []string `json:"codes"`
}
type Meta struct {
Version int `json:"version"` // IP库版本
Author string `json:"author"`
Countries []*Country `json:"countries"`
Provinces []*Province `json:"provinces"`
Cities []*City `json:"cities"`
Towns []*Town `json:"towns"`
Providers []*Provider `json:"providers"`
CreatedAt int64 `json:"createdAt"`
countryMap map[int64]*Country // id => *Country
provinceMap map[int64]*Province // id => *Province
cityMap map[int64]*City // id => *City
townMap map[int64]*Town // id => *Town
providerMap map[int64]*Provider // id => *Provider
}
func (this *Meta) Init() {
this.countryMap = map[int64]*Country{}
this.provinceMap = map[int64]*Province{}
this.cityMap = map[int64]*City{}
this.townMap = map[int64]*Town{}
this.providerMap = map[int64]*Provider{}
for _, country := range this.Countries {
this.countryMap[country.Id] = country
}
for _, province := range this.Provinces {
this.provinceMap[province.Id] = province
}
for _, city := range this.Cities {
this.cityMap[city.Id] = city
}
for _, town := range this.Towns {
this.townMap[town.Id] = town
}
for _, provider := range this.Providers {
this.providerMap[provider.Id] = provider
}
}
func (this *Meta) CountryWithId(countryId int64) *Country {
return this.countryMap[countryId]
}
func (this *Meta) ProvinceWithId(provinceId int64) *Province {
return this.provinceMap[provinceId]
}
func (this *Meta) CityWithId(cityId int64) *City {
return this.cityMap[cityId]
}
func (this *Meta) TownWithId(townId int64) *Town {
return this.townMap[townId]
}
func (this *Meta) ProviderWithId(providerId int64) *Provider {
return this.providerMap[providerId]
}

View File

@@ -0,0 +1,3 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary_test

64
pkg/iplibrary/parser.go Normal file
View File

@@ -0,0 +1,64 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
import (
"bytes"
"errors"
)
type Parser struct {
config *ParserConfig
data []byte
}
func NewParser(config *ParserConfig) (*Parser, error) {
if config == nil {
config = &ParserConfig{}
}
if config.Template == nil {
return nil, errors.New("template must not be nil")
}
return &Parser{
config: config,
}, nil
}
func (this *Parser) Write(data []byte) {
this.data = append(this.data, data...)
}
func (this *Parser) Parse() error {
if len(this.data) == 0 {
return nil
}
for {
var index = bytes.IndexByte(this.data, '\n')
if index >= 0 {
var line = this.data[:index+1]
values, found := this.config.Template.Extract(string(line), this.config.EmptyValues)
if found {
if this.config.Iterator != nil {
err := this.config.Iterator(values)
if err != nil {
return err
}
}
} else {
// 防止错误信息太长
if len(line) > 256 {
line = line[:256]
}
return errors.New("invalid line '" + string(line) + "'")
}
this.data = this.data[index+1:]
} else {
break
}
}
return nil
}

View File

@@ -0,0 +1,9 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
type ParserConfig struct {
Template *Template
EmptyValues []string
Iterator func(values map[string]string) error
}

View File

@@ -0,0 +1,54 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
import (
"errors"
"io"
)
type ReaderParser struct {
reader io.Reader
rawParser *Parser
}
func NewReaderParser(reader io.Reader, config *ParserConfig) (*ReaderParser, error) {
if config == nil {
config = &ParserConfig{}
}
if config.Template == nil {
return nil, errors.New("template must not be nil")
}
parser, err := NewParser(config)
if err != nil {
return nil, err
}
return &ReaderParser{
reader: reader,
rawParser: parser,
}, nil
}
func (this *ReaderParser) Parse() error {
var buf = make([]byte, 1024)
for {
n, err := this.reader.Read(buf)
if n > 0 {
this.rawParser.Write(buf[:n])
parseErr := this.rawParser.Parse()
if parseErr != nil {
return parseErr
}
}
if err != nil {
if err != io.EOF {
return err
}
break
}
}
return nil
}

View File

@@ -0,0 +1,62 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary_test
import (
"bytes"
"github.com/TeaOSLab/EdgeCommon/pkg/iplibrary"
"testing"
)
func TestNewReaderParser(t *testing.T) {
template, err := iplibrary.NewTemplate("${ipFrom}|${ipTo}|${country}|${any}|${province}|${city}|${provider}")
if err != nil {
t.Fatal(err)
}
var buf = &bytes.Buffer{}
buf.WriteString(`8.45.160.0|8.45.161.255|美国|0|华盛顿|西雅图|Level3
8.45.162.0|8.45.162.255|美国|0|马萨诸塞|0|Level3
8.45.163.0|8.45.164.255|美国|0|俄勒冈|0|Level3
8.45.165.0|8.45.165.255|美国|0|华盛顿|0|Level3
8.45.166.0|8.45.167.255|美国|0|华盛顿|西雅图|Level3
8.45.168.0|8.127.255.255|美国|0|0|0|Level3
8.128.0.0|8.128.3.255|中国|0|上海|上海市|阿里巴巴
8.128.4.0|8.128.255.255|中国|0|0|0|阿里巴巴
8.129.0.0|8.129.255.255|中国|0|广东省|深圳市|阿里云
8.130.0.0|8.130.55.255|中国|0|北京|北京市|阿里云
8.130.56.0|8.131.255.255|中国|0|北京|北京市|阿里巴巴
8.132.0.0|8.133.255.255|中国|0|上海|上海市|阿里巴巴
8.134.0.0|8.134.20.63|中国|0|0|0|阿里云
8.134.20.64|8.134.79.255|中国|0|广东省|深圳市|阿里云
8.134.80.0|8.191.255.255|中国|0|0|0|阿里巴巴
8.192.0.0|8.192.0.255|美国|0|0|0|Level3
8.192.1.0|8.192.1.255|美国|0|马萨诸塞|波士顿|Level3
8.192.2.0|8.207.255.255|美国|0|0|0|Level3
8.208.0.0|8.208.127.255|英国|0|伦敦|伦敦|阿里云
8.208.128.0|8.208.255.255|英国|0|伦敦|伦敦|阿里巴巴
8.209.0.0|8.209.15.255|俄罗斯|0|莫斯科|莫斯科|阿里云
8.209.16.0|8.209.31.255|俄罗斯|0|莫斯科|莫斯科|阿里巴巴
8.209.32.0|8.209.32.15|中国|0|台湾省|台北|阿里云
8.209.32.16|8.209.32.255|中国|0|台湾省|台北|阿里巴巴
8.209.33.0|8.209.34.255|中国|0|台湾省|台北|阿里云
8.209.35.0|8.209.35.255|中国|0|台湾省|台北|阿里巴巴`)
var count int
parser, err := iplibrary.NewReaderParser(buf, &iplibrary.ParserConfig{
Template: template,
EmptyValues: []string{"0"},
Iterator: func(values map[string]string) error {
count++
t.Log(count, values)
return nil
},
})
if err != nil {
t.Fatal(err)
}
err = parser.Parse()
if err != nil {
t.Fatal(err)
}
}

View File

@@ -0,0 +1,44 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary_test
import (
"github.com/TeaOSLab/EdgeCommon/pkg/iplibrary"
"testing"
)
func TestNewParser(t *testing.T) {
template, err := iplibrary.NewTemplate("${ipFrom}|${ipTo}|${country}|${any}|${province}|${city}|${provider}")
if err != nil {
t.Fatal(err)
}
parser, err := iplibrary.NewParser(&iplibrary.ParserConfig{
Template: template,
EmptyValues: []string{"0"},
Iterator: func(values map[string]string) error {
t.Log(values)
return nil
},
})
if err != nil {
t.Fatal(err)
}
parser.Write([]byte(`0.0.0.0|0.255.255.255|0|0|0|内网IP|内网IP
1.0.0.0|1.0.0.255|澳大利亚|0|0|0|0
1.0.1.0|1.0.3.255|中国|0|福建省|福州市|电信
1.0.4.0|1.0.7.255|澳大利亚|0|维多利亚|墨尔本|0
1.0.8.0|1.0.15.255|中国|0|广东省|广州市|电信
1.0.16.0|1.0.31.255|日本|0|0|0|0
1.0.32.0|1.0.63.255|中国|0|广东省|广州市|电信
1.0.64.0|1.0.79.255|日本|0|广岛县|0|0
1.0.80.0|1.0.127.255|日本|0|冈山县|0|0
1.0.128.0|1.0.128.255|泰国|0|清莱府|0|TOT
1.0.129.0|1.0.132.191|泰国|0|曼谷|曼谷|TOT`))
err = parser.Parse()
if err != nil {
t.Fatal(err)
}
}

214
pkg/iplibrary/reader.go Normal file
View File

@@ -0,0 +1,214 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
import (
"bytes"
"encoding/json"
"errors"
"github.com/TeaOSLab/EdgeCommon/pkg/configutils"
"github.com/iwind/TeaGo/types"
"io"
"net"
"sort"
"strings"
)
type Reader struct {
meta *Meta
ipV4Items []*ipItem
ipV6Items []*ipItem
}
func NewReader(reader io.Reader) (*Reader, error) {
var libReader = &Reader{}
err := libReader.load(reader)
if err != nil {
return nil, err
}
return libReader, nil
}
func (this *Reader) load(reader io.Reader) error {
var buf = make([]byte, 1024)
var metaLine = []byte{}
var metaLineFound = false
var dataBuf = []byte{}
for {
n, err := reader.Read(buf)
if n > 0 {
var data = buf[:n]
dataBuf = append(dataBuf, data...)
if metaLineFound {
left, err := this.parse(dataBuf)
if err != nil {
return err
}
dataBuf = left
} else {
var index = bytes.IndexByte(dataBuf, '\n')
if index > 0 {
metaLine = dataBuf[:index]
dataBuf = dataBuf[index+1:]
metaLineFound = true
var meta = &Meta{}
err = json.Unmarshal(metaLine, &meta)
if err != nil {
return err
}
meta.Init()
this.meta = meta
left, err := this.parse(dataBuf)
if err != nil {
return err
}
dataBuf = left
}
}
}
if err != nil {
if err != io.EOF {
return err
}
break
}
}
sort.Slice(this.ipV4Items, func(i, j int) bool {
var from0 = this.ipV4Items[i].ipFrom
var to0 = this.ipV4Items[i].ipTo
var from1 = this.ipV4Items[j].ipFrom
var to1 = this.ipV4Items[j].ipTo
if from0 == from1 {
return to0 < to1
}
return from0 < from1
})
sort.Slice(this.ipV6Items, func(i, j int) bool {
var from0 = this.ipV6Items[i].ipFrom
var to0 = this.ipV6Items[i].ipTo
var from1 = this.ipV6Items[j].ipFrom
var to1 = this.ipV6Items[j].ipTo
if from0 == from1 {
return to0 < to1
}
return from0 < from1
})
return nil
}
func (this *Reader) Lookup(ip net.IP) *QueryResult {
var ipLong = configutils.IP2Long(ip)
var isV4 = configutils.IsIPv4(ip)
var resultItem *ipItem
if isV4 {
sort.Search(len(this.ipV4Items), func(i int) bool {
var item = this.ipV4Items[i]
if item.ipFrom <= ipLong {
if item.ipTo >= ipLong {
resultItem = item
return false
}
return false
}
return true
})
} else {
sort.Search(len(this.ipV6Items), func(i int) bool {
var item = this.ipV6Items[i]
if item.ipFrom <= ipLong {
if item.ipTo >= ipLong {
resultItem = item
return false
}
return false
}
return true
})
}
return &QueryResult{
item: resultItem,
meta: this.meta,
}
}
func (this *Reader) Meta() *Meta {
return this.meta
}
func (this *Reader) IPv4Items() []*ipItem {
return this.ipV4Items
}
func (this *Reader) IPv6Items() []*ipItem {
return this.ipV6Items
}
func (this *Reader) parse(data []byte) (left []byte, err error) {
if len(data) == 0 {
return
}
for {
var index = bytes.IndexByte(data, '\n')
if index >= 0 {
var line = data[:index]
var pieces = strings.Split(string(line), "|")
if len(pieces) != 8 {
return nil, errors.New("invalid ip definition '" + string(line) + "'")
}
var version = pieces[0]
if len(version) == 0 {
version = "4"
}
if version != "4" && version != "6" {
return nil, errors.New("invalid ip version '" + string(line) + "'")
}
var ipFrom uint64
var ipTo uint64
if len(pieces[2]) == 0 {
pieces[2] = pieces[1]
ipFrom = types.Uint64(pieces[1])
ipTo = types.Uint64(pieces[2])
} else {
ipFrom = types.Uint64(pieces[1])
ipTo = types.Uint64(pieces[2]) + ipFrom
}
if version == "4" {
this.ipV4Items = append(this.ipV4Items, &ipItem{
ipFrom: ipFrom,
ipTo: ipTo,
countryId: types.Int64(pieces[3]),
provinceId: types.Int64(pieces[4]),
cityId: types.Int64(pieces[5]),
townId: types.Int64(pieces[6]),
providerId: types.Int64(pieces[7]),
})
} else {
this.ipV6Items = append(this.ipV6Items, &ipItem{
ipFrom: ipFrom,
ipTo: ipTo,
countryId: types.Int64(pieces[3]),
provinceId: types.Int64(pieces[4]),
cityId: types.Int64(pieces[5]),
townId: types.Int64(pieces[6]),
providerId: types.Int64(pieces[7]),
})
}
data = data[index+1:]
} else {
left = data
break
}
}
return
}

View File

@@ -0,0 +1,45 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
import (
"compress/gzip"
"net"
"os"
)
type FileReader struct {
rawReader *Reader
}
func NewFileReader(path string) (*FileReader, error) {
fp, err := os.Open(path)
if err != nil {
return nil, err
}
defer func() {
_ = fp.Close()
}()
gzReader, err := gzip.NewReader(fp)
if err != nil {
return nil, err
}
reader, err := NewReader(gzReader)
if err != nil {
return nil, err
}
return &FileReader{
rawReader: reader,
}, nil
}
func (this *FileReader) Meta() *Meta {
return this.rawReader.meta
}
func (this *FileReader) Lookup(ip net.IP) *QueryResult {
return this.rawReader.Lookup(ip)
}

View File

@@ -0,0 +1,50 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary_test
import (
"encoding/json"
"github.com/TeaOSLab/EdgeCommon/pkg/iplibrary"
"github.com/iwind/TeaGo/maps"
"net"
"testing"
)
func TestNewFileReader(t *testing.T) {
reader, err := iplibrary.NewFileReader("./ip.db")
if err != nil {
t.Fatal(err)
}
for _, ip := range []string{
"127.0.0.1",
"192.168.0.1",
"192.168.0.150",
"8.8.8.8",
"111.197.165.199",
"175.178.206.125",
} {
var result = reader.Lookup(net.ParseIP(ip))
if result.IsOk() {
var data = maps.Map{
"countryId": result.CountryId(),
"countryName": result.CountryName(),
"provinceId": result.ProvinceId(),
"provinceName": result.ProvinceName(),
"cityId": result.CityId(),
"cityName": result.CityName(),
"townId": result.TownId(),
"townName": result.TownName(),
"providerId": result.ProviderId(),
"providerName": result.ProviderName(),
}
dataJSON, err := json.MarshalIndent(data, "", " ")
if err != nil {
t.Fatal(err)
}
t.Log(ip, "=>", string(dataJSON))
} else {
t.Log(ip+":", "not found")
}
}
}

View File

@@ -0,0 +1,97 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
type QueryResult struct {
item *ipItem
meta *Meta
}
func (this *QueryResult) IsOk() bool {
return this.item != nil
}
func (this *QueryResult) CountryId() int64 {
if this.item != nil {
return this.item.countryId
}
return 0
}
func (this *QueryResult) CountryName() string {
if this.item.countryId > 0 {
var country = this.meta.CountryWithId(this.item.countryId)
if country != nil {
return country.Name
}
}
return ""
}
func (this *QueryResult) ProvinceId() int64 {
if this.item != nil {
return this.item.provinceId
}
return 0
}
func (this *QueryResult) ProvinceName() string {
if this.item.provinceId > 0 {
var province = this.meta.ProvinceWithId(this.item.provinceId)
if province != nil {
return province.Name
}
}
return ""
}
func (this *QueryResult) CityId() int64 {
if this.item != nil {
return this.item.cityId
}
return 0
}
func (this *QueryResult) CityName() string {
if this.item.cityId > 0 {
var city = this.meta.CityWithId(this.item.cityId)
if city != nil {
return city.Name
}
}
return ""
}
func (this *QueryResult) TownId() int64 {
if this.item != nil {
return this.item.townId
}
return 0
}
func (this *QueryResult) TownName() string {
if this.item.townId > 0 {
var town = this.meta.TownWithId(this.item.townId)
if town != nil {
return town.Name
}
}
return ""
}
func (this *QueryResult) ProviderId() int64 {
if this.item != nil {
return this.item.providerId
}
return 0
}
func (this *QueryResult) ProviderName() string {
if this.item.providerId > 0 {
var provider = this.meta.ProviderWithId(this.item.providerId)
if provider != nil {
return provider.Name
}
}
return ""
}

View File

@@ -0,0 +1,149 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary_test
import (
"bytes"
"github.com/TeaOSLab/EdgeCommon/pkg/iplibrary"
"github.com/iwind/TeaGo/rands"
"github.com/iwind/TeaGo/types"
timeutil "github.com/iwind/TeaGo/utils/time"
"net"
"runtime"
"testing"
"time"
)
func TestNewReader(t *testing.T) {
var buf = &bytes.Buffer{}
var writer = iplibrary.NewWriter(buf, &iplibrary.Meta{
Author: "GoEdge <https://goedge.cn>",
})
err := writer.WriteMeta()
if err != nil {
t.Fatal(err)
}
err = writer.Write("192.168.1.100", "192.168.1.100", 1, 200, 300, 400, 500)
if err != nil {
t.Fatal(err)
}
err = writer.Write("192.168.2.100", "192.168.3.100", 2, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
err = writer.Write("192.168.3.101", "192.168.3.101", 3, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
err = writer.Write("192.168.0.101", "192.168.0.200", 4, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
err = writer.Write("::1", "::5", 5, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
/**var n = func() string {
return types.String(rands.Int(0, 255))
}
for i := 0; i < 1_000_000; i++ {
err = writer.Write(n()+"."+n()+"."+n()+"."+n(), n()+"."+n()+"."+n()+"."+n(), int64(i)+100, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
}**/
var stat = &runtime.MemStats{}
runtime.ReadMemStats(stat)
reader, err := iplibrary.NewReader(buf)
var stat2 = &runtime.MemStats{}
runtime.ReadMemStats(stat2)
t.Log((stat2.Alloc-stat.Alloc)/1024/1024, "M")
if err != nil {
t.Fatal(err)
}
t.Log("version:", reader.Meta().Version, "author:", reader.Meta().Author, "createdTime:", timeutil.FormatTime("Y-m-d H:i:s", reader.Meta().CreatedAt))
if len(reader.IPv4Items()) < 10 {
t.Log("===")
for _, item := range reader.IPv4Items() {
t.Logf("%+v", item)
}
t.Log("===")
}
if len(reader.IPv6Items()) < 10 {
t.Log("===")
for _, item := range reader.IPv6Items() {
t.Logf("%+v", item)
}
t.Log("===")
}
var before = time.Now()
for _, ip := range []string{
"192.168.0.1",
"192.168.0.150",
"192.168.1.100",
"192.168.2.100",
"192.168.3.50",
"192.168.0.150",
"192.168.4.80",
"::3",
"::8",
} {
var result = reader.Lookup(net.ParseIP(ip))
if result.IsOk() {
t.Log(ip+":", "countryId:", result.CountryId())
} else {
t.Log(ip+":", "not found")
}
}
t.Log(time.Since(before).Seconds()*1000, "ms")
}
func BenchmarkNewReader(b *testing.B) {
runtime.GOMAXPROCS(1)
var buf = &bytes.Buffer{}
var writer = iplibrary.NewWriter(buf, &iplibrary.Meta{
Author: "GoEdge <https://goedge.cn>",
})
err := writer.WriteMeta()
if err != nil {
b.Fatal(err)
}
var n = func() string {
return types.String(rands.Int(0, 255))
}
for i := 0; i < 1_000_000; i++ {
err = writer.Write(n()+"."+n()+"."+n()+"."+n(), n()+"."+n()+"."+n()+"."+n(), int64(i)+100, 201, 301, 401, 501)
if err != nil {
b.Fatal(err)
}
}
reader, err := iplibrary.NewReader(buf)
if err != nil {
b.Fatal(err)
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
var ip = "192.168.1.100"
reader.Lookup(net.ParseIP(ip))
}
}

75
pkg/iplibrary/template.go Normal file
View File

@@ -0,0 +1,75 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
import (
"github.com/iwind/TeaGo/lists"
"regexp"
)
type Template struct {
templateString string
reg *regexp.Regexp
}
func NewTemplate(templateString string) (*Template, error) {
var t = &Template{
templateString: templateString,
}
err := t.init()
if err != nil {
return nil, err
}
return t, nil
}
func (this *Template) init() error {
var template = regexp.QuoteMeta(this.templateString)
var keywordReg = regexp.MustCompile(`\\\$\\{(\w+)\\}`)
template = keywordReg.ReplaceAllStringFunc(template, func(keyword string) string {
var matches = keywordReg.FindStringSubmatch(keyword)
if len(matches) > 1 {
switch matches[1] {
case "ipFrom", "ipTo", "country", "province", "city", "town", "provider":
return "(?P<" + matches[1] + ">.*)"
}
return ".*"
}
return keyword
})
reg, err := regexp.Compile(template)
if err != nil {
return err
}
this.reg = reg
return nil
}
func (this *Template) Extract(text string, emptyValues []string) (values map[string]string, ok bool) {
var matches = this.reg.FindStringSubmatch(text)
if len(matches) == 0 {
return
}
values = map[string]string{}
for index, name := range this.reg.SubexpNames() {
if len(name) == 0 {
continue
}
var v = matches[index]
if name != "ipFrom" && name != "ipTo" && (v == "0" || v == "无" || lists.ContainsString(emptyValues, v)) {
v = ""
}
values[name] = v
}
for _, keyword := range []string{"ipFrom", "ipTo", "country", "province", "city", "town", "provider"} {
_, hasKeyword := values[keyword]
if !hasKeyword {
values[keyword] = ""
}
}
ok = true
return
}

View File

@@ -0,0 +1,25 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary_test
import (
"github.com/TeaOSLab/EdgeCommon/pkg/iplibrary"
"testing"
)
func TestNewTemplate(t *testing.T) {
template, err := iplibrary.NewTemplate("${ipFrom}|${ipTo}|${country}|${any}|${province}|${city}|${provider}")
if err != nil {
t.Fatal(err)
}
for _, s := range []string{
"42.0.32.0|42.0.63.255|中国|0|广东省|广州市|电信",
"42.0.32.0|42.0.63.255|中国|0|广东省|广州市|电信\n123",
"42.0.32.0|42.0.63.255|中国||广东省|广州市|电信",
"42.0.32.0|42.0.63.255|中国|0||广州市|电信",
"42.0.32.0|42.0.63.255|中国|0|广东省|广州市",
} {
values, _ := template.Extract(s, []string{})
t.Log(s, "=>\n", values)
}
}

9
pkg/iplibrary/version.go Normal file
View File

@@ -0,0 +1,9 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
type Version = int
const (
Version1 Version = 1
)

161
pkg/iplibrary/writer.go Normal file
View File

@@ -0,0 +1,161 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
import (
"crypto/md5"
"encoding/json"
"errors"
"fmt"
"github.com/TeaOSLab/EdgeCommon/pkg/configutils"
"github.com/iwind/TeaGo/types"
"hash"
"io"
"net"
"strings"
"time"
)
type hashWriter struct {
rawWriter io.Writer
hash hash.Hash
}
func newHashWriter(writer io.Writer) *hashWriter {
return &hashWriter{
rawWriter: writer,
hash: md5.New(),
}
}
func (this *hashWriter) Write(p []byte) (n int, err error) {
n, err = this.rawWriter.Write(p)
this.hash.Write(p)
return
}
func (this *hashWriter) Sum() string {
return fmt.Sprintf("%x", this.hash.Sum(nil))
}
type Writer struct {
writer *hashWriter
meta *Meta
}
func NewWriter(writer io.Writer, meta *Meta) *Writer {
if meta == nil {
meta = &Meta{}
}
meta.Version = Version1
meta.CreatedAt = time.Now().Unix()
var libWriter = &Writer{
writer: newHashWriter(writer),
meta: meta,
}
return libWriter
}
func (this *Writer) WriteMeta() error {
metaJSON, err := json.Marshal(this.meta)
if err != nil {
return err
}
_, err = this.writer.Write(metaJSON)
if err != nil {
return err
}
_, err = this.writer.Write([]byte("\n"))
return err
}
func (this *Writer) Write(ipFrom string, ipTo string, countryId int64, provinceId int64, cityId int64, townId int64, providerId int64) error {
// validate IP
var fromIP = net.ParseIP(ipFrom)
if fromIP == nil {
return errors.New("invalid 'ipFrom': '" + ipFrom + "'")
}
var fromIsIPv4 = configutils.IsIPv4(fromIP)
var toIP = net.ParseIP(ipTo)
if toIP == nil {
return errors.New("invalid 'ipTo': " + ipTo)
}
var toIsIPv4 = configutils.IsIPv4(toIP)
if fromIsIPv4 != toIsIPv4 {
return errors.New("'ipFrom(" + ipFrom + ")' and 'ipTo(" + ipTo + ")' should have the same IP version")
}
var pieces = []string{}
// 0
if fromIsIPv4 {
pieces = append(pieces, "")
} else {
pieces = append(pieces, "6")
}
// 1
var fromIPLong = configutils.IP2Long(fromIP)
var toIPLong = configutils.IP2Long(toIP)
if toIPLong < fromIPLong {
fromIPLong, toIPLong = toIPLong, fromIPLong
}
pieces = append(pieces, types.String(fromIPLong))
if ipFrom == ipTo {
// 2
pieces = append(pieces, "")
} else {
// 2
pieces = append(pieces, types.String(toIPLong-fromIPLong))
}
// 3
if countryId > 0 {
pieces = append(pieces, types.String(countryId))
} else {
pieces = append(pieces, "")
}
// 4
if provinceId > 0 {
pieces = append(pieces, types.String(provinceId))
} else {
pieces = append(pieces, "")
}
// 5
if cityId > 0 {
pieces = append(pieces, types.String(cityId))
} else {
pieces = append(pieces, "")
}
// 6
if townId > 0 {
pieces = append(pieces, types.String(townId))
} else {
pieces = append(pieces, "")
}
// 7
if providerId > 0 {
pieces = append(pieces, types.String(providerId))
} else {
pieces = append(pieces, "")
}
_, err := this.writer.Write([]byte(strings.Join(pieces, "|")))
if err != nil {
return err
}
_, err = this.writer.Write([]byte("\n"))
return err
}
func (this *Writer) Sum() string {
return this.writer.Sum()
}

View File

@@ -0,0 +1,58 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary
import (
"compress/gzip"
"os"
)
type FileWriter struct {
fp *os.File
gzWriter *gzip.Writer
rawWriter *Writer
}
func NewFileWriter(path string, meta *Meta) (*FileWriter, error) {
fp, err := os.OpenFile(path, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666)
if err != nil {
return nil, err
}
gzWriter, err := gzip.NewWriterLevel(fp, gzip.BestCompression)
if err != nil {
return nil, err
}
var writer = &FileWriter{
fp: fp,
gzWriter: gzWriter,
rawWriter: NewWriter(gzWriter, meta),
}
return writer, nil
}
func (this *FileWriter) WriteMeta() error {
return this.rawWriter.WriteMeta()
}
func (this *FileWriter) Write(ipFrom string, ipTo string, countryId int64, provinceId int64, cityId int64, townId int64, providerId int64) error {
return this.rawWriter.Write(ipFrom, ipTo, countryId, provinceId, cityId, townId, providerId)
}
func (this *FileWriter) Sum() string {
return this.rawWriter.Sum()
}
func (this *FileWriter) Close() error {
err1 := this.gzWriter.Close()
err2 := this.fp.Close()
if err1 != nil {
return err1
}
if err2 != nil {
return err2
}
return nil
}

View File

@@ -0,0 +1,56 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary_test
import (
"github.com/TeaOSLab/EdgeCommon/pkg/iplibrary"
"github.com/iwind/TeaGo/rands"
"github.com/iwind/TeaGo/types"
"testing"
)
func TestNewFileWriter(t *testing.T) {
writer, err := iplibrary.NewFileWriter("./ip.db", &iplibrary.Meta{
Author: "GoEdge",
})
if err != nil {
t.Fatal(err)
}
err = writer.WriteMeta()
if err != nil {
t.Fatal(err)
}
err = writer.Write("192.168.1.100", "192.168.1.100", 100, 200, 300, 400, 500)
if err != nil {
t.Fatal(err)
}
err = writer.Write("192.168.2.100", "192.168.3.100", 101, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
err = writer.Write("192.168.3.101", "192.168.3.101", 101, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
var n = func() string {
return types.String(rands.Int(0, 255))
}
for i := 0; i < 1_000_000; i++ {
err = writer.Write(n()+"."+n()+"."+n()+"."+n(), n()+"."+n()+"."+n()+"."+n(), int64(i)+100, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
}
err = writer.Close()
if err != nil {
t.Fatal(err)
}
t.Log("ok", writer.Sum())
}

View File

@@ -0,0 +1,44 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package iplibrary_test
import (
"bytes"
"github.com/TeaOSLab/EdgeCommon/pkg/iplibrary"
"testing"
)
func TestNewWriter(t *testing.T) {
var buf = &bytes.Buffer{}
var writer = iplibrary.NewWriter(buf, &iplibrary.Meta{
Author: "GoEdge <https://goedge.cn>",
})
err := writer.WriteMeta()
if err != nil {
t.Fatal(err)
}
err = writer.Write("192.168.1.100", "192.168.1.100", 100, 200, 300, 400, 500)
if err != nil {
t.Fatal(err)
}
err = writer.Write("192.168.2.100", "192.168.3.100", 101, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
err = writer.Write("192.168.3.101", "192.168.3.101", 101, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
err = writer.Write("::1", "::2", 101, 201, 301, 401, 501)
if err != nil {
t.Fatal(err)
}
t.Log(buf.String())
t.Log("sum:", writer.Sum())
}

View File

@@ -11,7 +11,7 @@ import (
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
"github.com/iwind/TeaGo/Tea"
"github.com/iwind/TeaGo/maps"
"io/ioutil"
"os"
"reflect"
"strconv"
)
@@ -113,7 +113,7 @@ func SharedNodeConfig() (*NodeConfig, error) {
return sharedNodeConfig, nil
}
data, err := ioutil.ReadFile(Tea.ConfigFile("node.json"))
data, err := os.ReadFile(Tea.ConfigFile("node.json"))
if err != nil {
return &NodeConfig{}, err
}
@@ -403,7 +403,7 @@ func (this *NodeConfig) Save() error {
return err
}
return ioutil.WriteFile(Tea.ConfigFile("node.json"), data, 0777)
return os.WriteFile(Tea.ConfigFile("node.json"), data, 0777)
}
// PaddedId 获取填充后的ID

View File

@@ -0,0 +1,482 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_ip_library_file.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 IPLibraryFile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
FileId int64 `protobuf:"varint,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
IsFinished bool `protobuf:"varint,3,opt,name=isFinished,proto3" json:"isFinished,omitempty"`
CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
CountryNames []string `protobuf:"bytes,5,rep,name=countryNames,proto3" json:"countryNames,omitempty"`
Provinces []*IPLibraryFile_Province `protobuf:"bytes,6,rep,name=provinces,proto3" json:"provinces,omitempty"`
Cities []*IPLibraryFile_City `protobuf:"bytes,7,rep,name=cities,proto3" json:"cities,omitempty"`
Towns []*IPLibraryFile_Town `protobuf:"bytes,8,rep,name=towns,proto3" json:"towns,omitempty"`
ProviderNames []string `protobuf:"bytes,9,rep,name=providerNames,proto3" json:"providerNames,omitempty"`
}
func (x *IPLibraryFile) Reset() {
*x = IPLibraryFile{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_ip_library_file_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IPLibraryFile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IPLibraryFile) ProtoMessage() {}
func (x *IPLibraryFile) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ip_library_file_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 IPLibraryFile.ProtoReflect.Descriptor instead.
func (*IPLibraryFile) Descriptor() ([]byte, []int) {
return file_models_model_ip_library_file_proto_rawDescGZIP(), []int{0}
}
func (x *IPLibraryFile) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *IPLibraryFile) GetFileId() int64 {
if x != nil {
return x.FileId
}
return 0
}
func (x *IPLibraryFile) GetIsFinished() bool {
if x != nil {
return x.IsFinished
}
return false
}
func (x *IPLibraryFile) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *IPLibraryFile) GetCountryNames() []string {
if x != nil {
return x.CountryNames
}
return nil
}
func (x *IPLibraryFile) GetProvinces() []*IPLibraryFile_Province {
if x != nil {
return x.Provinces
}
return nil
}
func (x *IPLibraryFile) GetCities() []*IPLibraryFile_City {
if x != nil {
return x.Cities
}
return nil
}
func (x *IPLibraryFile) GetTowns() []*IPLibraryFile_Town {
if x != nil {
return x.Towns
}
return nil
}
func (x *IPLibraryFile) GetProviderNames() []string {
if x != nil {
return x.ProviderNames
}
return nil
}
type IPLibraryFile_Province struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"`
ProvinceName string `protobuf:"bytes,2,opt,name=provinceName,proto3" json:"provinceName,omitempty"`
}
func (x *IPLibraryFile_Province) Reset() {
*x = IPLibraryFile_Province{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_ip_library_file_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IPLibraryFile_Province) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IPLibraryFile_Province) ProtoMessage() {}
func (x *IPLibraryFile_Province) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ip_library_file_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IPLibraryFile_Province.ProtoReflect.Descriptor instead.
func (*IPLibraryFile_Province) Descriptor() ([]byte, []int) {
return file_models_model_ip_library_file_proto_rawDescGZIP(), []int{0, 0}
}
func (x *IPLibraryFile_Province) GetCountryName() string {
if x != nil {
return x.CountryName
}
return ""
}
func (x *IPLibraryFile_Province) GetProvinceName() string {
if x != nil {
return x.ProvinceName
}
return ""
}
type IPLibraryFile_City struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"`
ProvinceName string `protobuf:"bytes,2,opt,name=provinceName,proto3" json:"provinceName,omitempty"`
CityName string `protobuf:"bytes,3,opt,name=cityName,proto3" json:"cityName,omitempty"`
}
func (x *IPLibraryFile_City) Reset() {
*x = IPLibraryFile_City{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_ip_library_file_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IPLibraryFile_City) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IPLibraryFile_City) ProtoMessage() {}
func (x *IPLibraryFile_City) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ip_library_file_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IPLibraryFile_City.ProtoReflect.Descriptor instead.
func (*IPLibraryFile_City) Descriptor() ([]byte, []int) {
return file_models_model_ip_library_file_proto_rawDescGZIP(), []int{0, 1}
}
func (x *IPLibraryFile_City) GetCountryName() string {
if x != nil {
return x.CountryName
}
return ""
}
func (x *IPLibraryFile_City) GetProvinceName() string {
if x != nil {
return x.ProvinceName
}
return ""
}
func (x *IPLibraryFile_City) GetCityName() string {
if x != nil {
return x.CityName
}
return ""
}
type IPLibraryFile_Town struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"`
ProvinceName string `protobuf:"bytes,2,opt,name=provinceName,proto3" json:"provinceName,omitempty"`
CityName string `protobuf:"bytes,3,opt,name=cityName,proto3" json:"cityName,omitempty"`
TownName string `protobuf:"bytes,4,opt,name=townName,proto3" json:"townName,omitempty"`
}
func (x *IPLibraryFile_Town) Reset() {
*x = IPLibraryFile_Town{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_ip_library_file_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IPLibraryFile_Town) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IPLibraryFile_Town) ProtoMessage() {}
func (x *IPLibraryFile_Town) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ip_library_file_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IPLibraryFile_Town.ProtoReflect.Descriptor instead.
func (*IPLibraryFile_Town) Descriptor() ([]byte, []int) {
return file_models_model_ip_library_file_proto_rawDescGZIP(), []int{0, 2}
}
func (x *IPLibraryFile_Town) GetCountryName() string {
if x != nil {
return x.CountryName
}
return ""
}
func (x *IPLibraryFile_Town) GetProvinceName() string {
if x != nil {
return x.ProvinceName
}
return ""
}
func (x *IPLibraryFile_Town) GetCityName() string {
if x != nil {
return x.CityName
}
return ""
}
func (x *IPLibraryFile_Town) GetTownName() string {
if x != nil {
return x.TownName
}
return ""
}
var File_models_model_ip_library_file_proto protoreflect.FileDescriptor
var file_models_model_ip_library_file_proto_rawDesc = []byte{
0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x69,
0x70, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x9a, 0x05, 0x0a, 0x0d, 0x49, 0x50, 0x4c,
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69,
0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65,
0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64,
0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68,
0x65, 0x64, 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, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x73,
0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e,
0x61, 0x6d, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65,
0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x50, 0x4c,
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x6e, 0x63, 0x65, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x2e,
0x0a, 0x06, 0x63, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16,
0x2e, 0x70, 0x62, 0x2e, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c,
0x65, 0x2e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x06, 0x63, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x2c,
0x0a, 0x05, 0x74, 0x6f, 0x77, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e,
0x70, 0x62, 0x2e, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65,
0x2e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x77, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x0d,
0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x09, 0x20,
0x03, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d,
0x65, 0x73, 0x1a, 0x50, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x20,
0x0a, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65,
0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65,
0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x68, 0x0a, 0x04, 0x43, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22,
0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61,
0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x84,
0x01, 0x0a, 0x04, 0x54, 0x6f, 0x77, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f,
0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f,
0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a,
0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x6f, 0x77,
0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x77,
0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_ip_library_file_proto_rawDescOnce sync.Once
file_models_model_ip_library_file_proto_rawDescData = file_models_model_ip_library_file_proto_rawDesc
)
func file_models_model_ip_library_file_proto_rawDescGZIP() []byte {
file_models_model_ip_library_file_proto_rawDescOnce.Do(func() {
file_models_model_ip_library_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ip_library_file_proto_rawDescData)
})
return file_models_model_ip_library_file_proto_rawDescData
}
var file_models_model_ip_library_file_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_models_model_ip_library_file_proto_goTypes = []interface{}{
(*IPLibraryFile)(nil), // 0: pb.IPLibraryFile
(*IPLibraryFile_Province)(nil), // 1: pb.IPLibraryFile.Province
(*IPLibraryFile_City)(nil), // 2: pb.IPLibraryFile.City
(*IPLibraryFile_Town)(nil), // 3: pb.IPLibraryFile.Town
}
var file_models_model_ip_library_file_proto_depIdxs = []int32{
1, // 0: pb.IPLibraryFile.provinces:type_name -> pb.IPLibraryFile.Province
2, // 1: pb.IPLibraryFile.cities:type_name -> pb.IPLibraryFile.City
3, // 2: pb.IPLibraryFile.towns:type_name -> pb.IPLibraryFile.Town
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_ip_library_file_proto_init() }
func file_models_model_ip_library_file_proto_init() {
if File_models_model_ip_library_file_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_models_model_ip_library_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IPLibraryFile); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_models_model_ip_library_file_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IPLibraryFile_Province); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_models_model_ip_library_file_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IPLibraryFile_City); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_models_model_ip_library_file_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IPLibraryFile_Town); 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_ip_library_file_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_ip_library_file_proto_goTypes,
DependencyIndexes: file_models_model_ip_library_file_proto_depIdxs,
MessageInfos: file_models_model_ip_library_file_proto_msgTypes,
}.Build()
File_models_model_ip_library_file_proto = out.File
file_models_model_ip_library_file_proto_rawDesc = nil
file_models_model_ip_library_file_proto_goTypes = nil
file_models_model_ip_library_file_proto_depIdxs = nil
}

View File

@@ -35,6 +35,9 @@ type NSCluster struct {
IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
InstallDir string `protobuf:"bytes,4,opt,name=installDir,proto3" json:"installDir,omitempty"`
TcpJSON []byte `protobuf:"bytes,5,opt,name=tcpJSON,proto3" json:"tcpJSON,omitempty"`
TlsJSON []byte `protobuf:"bytes,6,opt,name=tlsJSON,proto3" json:"tlsJSON,omitempty"`
UdpJSON []byte `protobuf:"bytes,7,opt,name=udpJSON,proto3" json:"udpJSON,omitempty"`
}
func (x *NSCluster) Reset() {
@@ -97,19 +100,45 @@ func (x *NSCluster) GetInstallDir() string {
return ""
}
func (x *NSCluster) GetTcpJSON() []byte {
if x != nil {
return x.TcpJSON
}
return nil
}
func (x *NSCluster) GetTlsJSON() []byte {
if x != nil {
return x.TlsJSON
}
return nil
}
func (x *NSCluster) GetUdpJSON() []byte {
if x != nil {
return x.UdpJSON
}
return nil
}
var File_models_model_ns_cluster_proto protoreflect.FileDescriptor
var file_models_model_ns_cluster_proto_rawDesc = []byte{
0x0a, 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, 0x12,
0x02, 0x70, 0x62, 0x22, 0x63, 0x0a, 0x09, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64,
0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04,
0x69, 0x73, 0x4f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73, 0x74,
0x61, 0x6c, 0x6c, 0x44, 0x69, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e,
0x73, 0x74, 0x61, 0x6c, 0x6c, 0x44, 0x69, 0x72, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x02, 0x70, 0x62, 0x22, 0xb1, 0x01, 0x0a, 0x09, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65,
0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69,
0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e, 0x73,
0x74, 0x61, 0x6c, 0x6c, 0x44, 0x69, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69,
0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x44, 0x69, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x63, 0x70,
0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x63, 0x70, 0x4a,
0x53, 0x4f, 0x4e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x06,
0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x18, 0x0a,
0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07,
0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (

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

@@ -0,0 +1,204 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_order_method.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 OrderMethod 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"`
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
Secret string `protobuf:"bytes,6,opt,name=secret,proto3" json:"secret,omitempty"`
IsOn bool `protobuf:"varint,7,opt,name=isOn,proto3" json:"isOn,omitempty"`
}
func (x *OrderMethod) Reset() {
*x = OrderMethod{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_order_method_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OrderMethod) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OrderMethod) ProtoMessage() {}
func (x *OrderMethod) ProtoReflect() protoreflect.Message {
mi := &file_models_model_order_method_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 OrderMethod.ProtoReflect.Descriptor instead.
func (*OrderMethod) Descriptor() ([]byte, []int) {
return file_models_model_order_method_proto_rawDescGZIP(), []int{0}
}
func (x *OrderMethod) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *OrderMethod) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *OrderMethod) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
func (x *OrderMethod) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *OrderMethod) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *OrderMethod) GetSecret() string {
if x != nil {
return x.Secret
}
return ""
}
func (x *OrderMethod) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
var File_models_model_order_method_proto protoreflect.FileDescriptor
var file_models_model_order_method_proto_rawDesc = []byte{
0x0a, 0x1f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6f,
0x72, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xa5, 0x01, 0x0a, 0x0b, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d,
0x65, 0x74, 0x68, 0x6f, 0x64, 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, 0x63, 0x6f, 0x64,
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a,
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,
0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72,
0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f,
0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x42, 0x06, 0x5a,
0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_order_method_proto_rawDescOnce sync.Once
file_models_model_order_method_proto_rawDescData = file_models_model_order_method_proto_rawDesc
)
func file_models_model_order_method_proto_rawDescGZIP() []byte {
file_models_model_order_method_proto_rawDescOnce.Do(func() {
file_models_model_order_method_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_order_method_proto_rawDescData)
})
return file_models_model_order_method_proto_rawDescData
}
var file_models_model_order_method_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_order_method_proto_goTypes = []interface{}{
(*OrderMethod)(nil), // 0: pb.OrderMethod
}
var file_models_model_order_method_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_order_method_proto_init() }
func file_models_model_order_method_proto_init() {
if File_models_model_order_method_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_models_model_order_method_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*OrderMethod); 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_order_method_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_order_method_proto_goTypes,
DependencyIndexes: file_models_model_order_method_proto_depIdxs,
MessageInfos: file_models_model_order_method_proto_msgTypes,
}.Build()
File_models_model_order_method_proto = out.File
file_models_model_order_method_proto_rawDesc = nil
file_models_model_order_method_proto_goTypes = nil
file_models_model_order_method_proto_depIdxs = nil
}

View File

@@ -34,6 +34,9 @@ type RegionCity struct {
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"`
RegionProvinceId int64 `protobuf:"varint,4,opt,name=regionProvinceId,proto3" json:"regionProvinceId,omitempty"`
CustomName string `protobuf:"bytes,5,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,6,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
DisplayName string `protobuf:"bytes,7,opt,name=displayName,proto3" json:"displayName,omitempty"`
RegionProvince *RegionProvince `protobuf:"bytes,30,opt,name=regionProvince,proto3" json:"regionProvince,omitempty"`
}
@@ -97,6 +100,27 @@ func (x *RegionCity) GetRegionProvinceId() int64 {
return 0
}
func (x *RegionCity) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *RegionCity) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
func (x *RegionCity) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *RegionCity) GetRegionProvince() *RegionProvince {
if x != nil {
return x.RegionProvince
@@ -111,19 +135,25 @@ var file_models_model_region_city_proto_rawDesc = []byte{
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x02, 0x70, 0x62, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e,
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x67,
0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x02, 0x0a, 0x0a, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 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, 0x14, 0x0a, 0x05, 0x63,
0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65,
0x73, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x3a, 0x0a,
0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18,
0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a,
0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a,
0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03,
0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12,
0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x07,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d,
0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x6e, 0x63, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x42, 0x06, 0x5a,
0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (

View File

@@ -30,10 +30,13 @@ type RegionCountry 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"`
Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"`
Pinyin []string `protobuf:"bytes,4,rep,name=pinyin,proto3" json:"pinyin,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"`
Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"`
Pinyin []string `protobuf:"bytes,4,rep,name=pinyin,proto3" json:"pinyin,omitempty"`
CustomName string `protobuf:"bytes,5,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,6,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
DisplayName string `protobuf:"bytes,7,opt,name=displayName,proto3" json:"displayName,omitempty"`
}
func (x *RegionCountry) Reset() {
@@ -96,19 +99,46 @@ func (x *RegionCountry) GetPinyin() []string {
return nil
}
func (x *RegionCountry) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *RegionCountry) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
func (x *RegionCountry) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
var File_models_model_region_country_proto protoreflect.FileDescriptor
var file_models_model_region_country_proto_rawDesc = []byte{
0x0a, 0x21, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x61, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 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, 0x14, 0x0a, 0x05,
0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x64,
0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, 0x79, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x03,
0x28, 0x09, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x79, 0x69, 0x6e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xc5, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 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, 0x14, 0x0a,
0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f,
0x64, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, 0x79, 0x69, 0x6e, 0x18, 0x04, 0x20,
0x03, 0x28, 0x09, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x79, 0x69, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x63,
0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63,
0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09,
0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x20, 0x0a,
0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42,
0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (

View File

@@ -30,9 +30,12 @@ type RegionProvider 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"`
Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,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"`
Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"`
CustomName string `protobuf:"bytes,4,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,5,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
DisplayName string `protobuf:"bytes,6,opt,name=displayName,proto3" json:"displayName,omitempty"`
}
func (x *RegionProvider) Reset() {
@@ -88,18 +91,45 @@ func (x *RegionProvider) GetCodes() []string {
return nil
}
func (x *RegionProvider) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *RegionProvider) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
func (x *RegionProvider) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
var File_models_model_region_provider_proto protoreflect.FileDescriptor
var file_models_model_region_provider_proto_rawDesc = []byte{
0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x4a, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 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, 0x14,
0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63,
0x6f, 0x64, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xae, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 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,
0x14, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,
0x63, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e,
0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f,
0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43,
0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74,
0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c,
0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69,
0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (

View File

@@ -30,9 +30,13 @@ type RegionProvince 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"`
Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,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"`
Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"`
RegionCountryId int64 `protobuf:"varint,4,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"`
CustomName string `protobuf:"bytes,5,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,6,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
DisplayName string `protobuf:"bytes,7,opt,name=displayName,proto3" json:"displayName,omitempty"`
}
func (x *RegionProvince) Reset() {
@@ -88,18 +92,55 @@ func (x *RegionProvince) GetCodes() []string {
return nil
}
func (x *RegionProvince) GetRegionCountryId() int64 {
if x != nil {
return x.RegionCountryId
}
return 0
}
func (x *RegionProvince) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *RegionProvince) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
func (x *RegionProvince) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
var File_models_model_region_province_proto protoreflect.FileDescriptor
var file_models_model_region_province_proto_rawDesc = []byte{
0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x4a, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 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, 0x14,
0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63,
0x6f, 0x64, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xd8, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 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,
0x14, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,
0x63, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x12,
0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12,
0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x06,
0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65,
0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65,
0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e,
0x61, 0x6d, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (

View File

@@ -0,0 +1,222 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_region_town.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 RegionTown 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"`
Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"`
RegionCityId int64 `protobuf:"varint,4,opt,name=regionCityId,proto3" json:"regionCityId,omitempty"`
CustomName string `protobuf:"bytes,5,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,6,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
DisplayName string `protobuf:"bytes,7,opt,name=displayName,proto3" json:"displayName,omitempty"`
RegionCity *RegionCity `protobuf:"bytes,30,opt,name=regionCity,proto3" json:"regionCity,omitempty"`
}
func (x *RegionTown) Reset() {
*x = RegionTown{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_region_town_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RegionTown) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegionTown) ProtoMessage() {}
func (x *RegionTown) ProtoReflect() protoreflect.Message {
mi := &file_models_model_region_town_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 RegionTown.ProtoReflect.Descriptor instead.
func (*RegionTown) Descriptor() ([]byte, []int) {
return file_models_model_region_town_proto_rawDescGZIP(), []int{0}
}
func (x *RegionTown) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *RegionTown) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *RegionTown) GetCodes() []string {
if x != nil {
return x.Codes
}
return nil
}
func (x *RegionTown) GetRegionCityId() int64 {
if x != nil {
return x.RegionCityId
}
return 0
}
func (x *RegionTown) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *RegionTown) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
func (x *RegionTown) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *RegionTown) GetRegionCity() *RegionCity {
if x != nil {
return x.RegionCity
}
return nil
}
var File_models_model_region_town_proto protoreflect.FileDescriptor
var file_models_model_region_town_proto_rawDesc = []byte{
0x0a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x02, 0x70, 0x62, 0x1a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x69, 0x74, 0x79, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54,
0x6f, 0x77, 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, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73,
0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x22, 0x0a,
0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x04, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49,
0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18,
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d,
0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73,
0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f,
0x64, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61,
0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43,
0x69, 0x74, 0x79, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x69, 0x74, 0x79, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_region_town_proto_rawDescOnce sync.Once
file_models_model_region_town_proto_rawDescData = file_models_model_region_town_proto_rawDesc
)
func file_models_model_region_town_proto_rawDescGZIP() []byte {
file_models_model_region_town_proto_rawDescOnce.Do(func() {
file_models_model_region_town_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_region_town_proto_rawDescData)
})
return file_models_model_region_town_proto_rawDescData
}
var file_models_model_region_town_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_region_town_proto_goTypes = []interface{}{
(*RegionTown)(nil), // 0: pb.RegionTown
(*RegionCity)(nil), // 1: pb.RegionCity
}
var file_models_model_region_town_proto_depIdxs = []int32{
1, // 0: pb.RegionTown.regionCity:type_name -> pb.RegionCity
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_models_model_region_town_proto_init() }
func file_models_model_region_town_proto_init() {
if File_models_model_region_town_proto != nil {
return
}
file_models_model_region_city_proto_init()
if !protoimpl.UnsafeEnabled {
file_models_model_region_town_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegionTown); 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_region_town_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_region_town_proto_goTypes,
DependencyIndexes: file_models_model_region_town_proto_depIdxs,
MessageInfos: file_models_model_region_town_proto_msgTypes,
}.Build()
File_models_model_region_town_proto = out.File
file_models_model_region_town_proto_rawDesc = nil
file_models_model_region_town_proto_goTypes = nil
file_models_model_region_town_proto_depIdxs = nil
}

View File

@@ -0,0 +1,295 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_user_order.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 UserOrder struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
OrderMethodId int64 `protobuf:"varint,5,opt,name=orderMethodId,proto3" json:"orderMethodId,omitempty"`
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
Amount float32 `protobuf:"fixed32,7,opt,name=amount,proto3" json:"amount,omitempty"`
ParamsJSON []byte `protobuf:"bytes,8,opt,name=paramsJSON,proto3" json:"paramsJSON,omitempty"`
CreatedAt int64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
CancelledAt int64 `protobuf:"varint,10,opt,name=cancelledAt,proto3" json:"cancelledAt,omitempty"`
FinishedAt int64 `protobuf:"varint,11,opt,name=finishedAt,proto3" json:"finishedAt,omitempty"`
IsExpired bool `protobuf:"varint,12,opt,name=isExpired,proto3" json:"isExpired,omitempty"`
User *User `protobuf:"bytes,30,opt,name=user,proto3" json:"user,omitempty"`
OrderMethod *OrderMethod `protobuf:"bytes,31,opt,name=orderMethod,proto3" json:"orderMethod,omitempty"`
CanPay bool `protobuf:"varint,32,opt,name=canPay,proto3" json:"canPay,omitempty"` // 是否可以支付
PayURL string `protobuf:"bytes,33,opt,name=payURL,proto3" json:"payURL,omitempty"` // 构造后的支付URL
}
func (x *UserOrder) Reset() {
*x = UserOrder{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_user_order_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserOrder) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserOrder) ProtoMessage() {}
func (x *UserOrder) ProtoReflect() protoreflect.Message {
mi := &file_models_model_user_order_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 UserOrder.ProtoReflect.Descriptor instead.
func (*UserOrder) Descriptor() ([]byte, []int) {
return file_models_model_user_order_proto_rawDescGZIP(), []int{0}
}
func (x *UserOrder) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *UserOrder) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
func (x *UserOrder) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *UserOrder) GetOrderMethodId() int64 {
if x != nil {
return x.OrderMethodId
}
return 0
}
func (x *UserOrder) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *UserOrder) GetAmount() float32 {
if x != nil {
return x.Amount
}
return 0
}
func (x *UserOrder) GetParamsJSON() []byte {
if x != nil {
return x.ParamsJSON
}
return nil
}
func (x *UserOrder) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *UserOrder) GetCancelledAt() int64 {
if x != nil {
return x.CancelledAt
}
return 0
}
func (x *UserOrder) GetFinishedAt() int64 {
if x != nil {
return x.FinishedAt
}
return 0
}
func (x *UserOrder) GetIsExpired() bool {
if x != nil {
return x.IsExpired
}
return false
}
func (x *UserOrder) GetUser() *User {
if x != nil {
return x.User
}
return nil
}
func (x *UserOrder) GetOrderMethod() *OrderMethod {
if x != nil {
return x.OrderMethod
}
return nil
}
func (x *UserOrder) GetCanPay() bool {
if x != nil {
return x.CanPay
}
return false
}
func (x *UserOrder) GetPayURL() string {
if x != nil {
return x.PayURL
}
return ""
}
var File_models_model_user_order_proto protoreflect.FileDescriptor
var file_models_model_user_order_proto_rawDesc = []byte{
0x0a, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75,
0x73, 0x65, 0x72, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x02, 0x70, 0x62, 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, 0x1a, 0x1f, 0x6d, 0x6f,
0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72,
0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc0, 0x03,
0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x75,
0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65,
0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6f,
0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01,
0x28, 0x03, 0x52, 0x0d, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x49,
0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f,
0x75, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e,
0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18,
0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x4a, 0x53, 0x4f,
0x4e, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x09,
0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12,
0x20, 0x0a, 0x0b, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0a,
0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x41,
0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x41, 0x74, 0x18,
0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x41,
0x74, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x0c,
0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12,
0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e,
0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x31, 0x0a,
0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x1f, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74,
0x68, 0x6f, 0x64, 0x52, 0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64,
0x12, 0x16, 0x0a, 0x06, 0x63, 0x61, 0x6e, 0x50, 0x61, 0x79, 0x18, 0x20, 0x20, 0x01, 0x28, 0x08,
0x52, 0x06, 0x63, 0x61, 0x6e, 0x50, 0x61, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x79, 0x55,
0x52, 0x4c, 0x18, 0x21, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x79, 0x55, 0x52, 0x4c,
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_user_order_proto_rawDescOnce sync.Once
file_models_model_user_order_proto_rawDescData = file_models_model_user_order_proto_rawDesc
)
func file_models_model_user_order_proto_rawDescGZIP() []byte {
file_models_model_user_order_proto_rawDescOnce.Do(func() {
file_models_model_user_order_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_user_order_proto_rawDescData)
})
return file_models_model_user_order_proto_rawDescData
}
var file_models_model_user_order_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_user_order_proto_goTypes = []interface{}{
(*UserOrder)(nil), // 0: pb.UserOrder
(*User)(nil), // 1: pb.User
(*OrderMethod)(nil), // 2: pb.OrderMethod
}
var file_models_model_user_order_proto_depIdxs = []int32{
1, // 0: pb.UserOrder.user:type_name -> pb.User
2, // 1: pb.UserOrder.orderMethod:type_name -> pb.OrderMethod
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_models_model_user_order_proto_init() }
func file_models_model_user_order_proto_init() {
if File_models_model_user_order_proto != nil {
return
}
file_models_model_user_proto_init()
file_models_model_order_method_proto_init()
if !protoimpl.UnsafeEnabled {
file_models_model_user_order_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UserOrder); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_models_model_user_order_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_user_order_proto_goTypes,
DependencyIndexes: file_models_model_user_order_proto_depIdxs,
MessageInfos: file_models_model_user_order_proto_msgTypes,
}.Build()
File_models_model_user_order_proto = out.File
file_models_model_user_order_proto_rawDesc = nil
file_models_model_user_order_proto_goTypes = nil
file_models_model_user_order_proto_depIdxs = nil
}

View File

@@ -0,0 +1,265 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_user_ticket.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 UserTicket struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
CategoryId int64 `protobuf:"varint,2,opt,name=categoryId,proto3" json:"categoryId,omitempty"`
UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"`
Subject string `protobuf:"bytes,4,opt,name=subject,proto3" json:"subject,omitempty"`
Body string `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
LastLogAt int64 `protobuf:"varint,8,opt,name=lastLogAt,proto3" json:"lastLogAt,omitempty"`
UserTicketCategory *UserTicketCategory `protobuf:"bytes,30,opt,name=userTicketCategory,proto3" json:"userTicketCategory,omitempty"`
User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"`
LatestUserTicketLog *UserTicketLog `protobuf:"bytes,32,opt,name=latestUserTicketLog,proto3" json:"latestUserTicketLog,omitempty"`
}
func (x *UserTicket) Reset() {
*x = UserTicket{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_user_ticket_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserTicket) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserTicket) ProtoMessage() {}
func (x *UserTicket) ProtoReflect() protoreflect.Message {
mi := &file_models_model_user_ticket_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 UserTicket.ProtoReflect.Descriptor instead.
func (*UserTicket) Descriptor() ([]byte, []int) {
return file_models_model_user_ticket_proto_rawDescGZIP(), []int{0}
}
func (x *UserTicket) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *UserTicket) GetCategoryId() int64 {
if x != nil {
return x.CategoryId
}
return 0
}
func (x *UserTicket) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *UserTicket) GetSubject() string {
if x != nil {
return x.Subject
}
return ""
}
func (x *UserTicket) GetBody() string {
if x != nil {
return x.Body
}
return ""
}
func (x *UserTicket) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *UserTicket) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *UserTicket) GetLastLogAt() int64 {
if x != nil {
return x.LastLogAt
}
return 0
}
func (x *UserTicket) GetUserTicketCategory() *UserTicketCategory {
if x != nil {
return x.UserTicketCategory
}
return nil
}
func (x *UserTicket) GetUser() *User {
if x != nil {
return x.User
}
return nil
}
func (x *UserTicket) GetLatestUserTicketLog() *UserTicketLog {
if x != nil {
return x.LatestUserTicketLog
}
return nil
}
var File_models_model_user_ticket_proto protoreflect.FileDescriptor
var file_models_model_user_ticket_proto_rawDesc = []byte{
0x0a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75,
0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x02, 0x70, 0x62, 0x1a, 0x27, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64,
0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63,
0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 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, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d,
0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74,
0x5f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, 0x03, 0x0a, 0x0a, 0x55,
0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x61, 0x74,
0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63,
0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 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, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01,
0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x62,
0x6f, 0x64, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12,
0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
0x65, 0x64, 0x41, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x67,
0x41, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x4c, 0x6f,
0x67, 0x41, 0x74, 0x12, 0x46, 0x0a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65,
0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x1e, 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, 0x12, 0x1c, 0x0a, 0x04, 0x75,
0x73, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55,
0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x13, 0x6c, 0x61, 0x74,
0x65, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67,
0x18, 0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72,
0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x13, 0x6c, 0x61, 0x74, 0x65, 0x73,
0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x42, 0x06,
0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_user_ticket_proto_rawDescOnce sync.Once
file_models_model_user_ticket_proto_rawDescData = file_models_model_user_ticket_proto_rawDesc
)
func file_models_model_user_ticket_proto_rawDescGZIP() []byte {
file_models_model_user_ticket_proto_rawDescOnce.Do(func() {
file_models_model_user_ticket_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_user_ticket_proto_rawDescData)
})
return file_models_model_user_ticket_proto_rawDescData
}
var file_models_model_user_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_user_ticket_proto_goTypes = []interface{}{
(*UserTicket)(nil), // 0: pb.UserTicket
(*UserTicketCategory)(nil), // 1: pb.UserTicketCategory
(*User)(nil), // 2: pb.User
(*UserTicketLog)(nil), // 3: pb.UserTicketLog
}
var file_models_model_user_ticket_proto_depIdxs = []int32{
1, // 0: pb.UserTicket.userTicketCategory:type_name -> pb.UserTicketCategory
2, // 1: pb.UserTicket.user:type_name -> pb.User
3, // 2: pb.UserTicket.latestUserTicketLog:type_name -> pb.UserTicketLog
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_models_model_user_ticket_proto_init() }
func file_models_model_user_ticket_proto_init() {
if File_models_model_user_ticket_proto != nil {
return
}
file_models_model_user_ticket_category_proto_init()
file_models_model_user_proto_init()
file_models_model_user_ticket_log_proto_init()
if !protoimpl.UnsafeEnabled {
file_models_model_user_ticket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UserTicket); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_models_model_user_ticket_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_user_ticket_proto_goTypes,
DependencyIndexes: file_models_model_user_ticket_proto_depIdxs,
MessageInfos: file_models_model_user_ticket_proto_msgTypes,
}.Build()
File_models_model_user_ticket_proto = out.File
file_models_model_user_ticket_proto_rawDesc = nil
file_models_model_user_ticket_proto_goTypes = nil
file_models_model_user_ticket_proto_depIdxs = nil
}

View File

@@ -0,0 +1,167 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_user_ticket_category.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 UserTicketCategory 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"`
}
func (x *UserTicketCategory) Reset() {
*x = UserTicketCategory{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_user_ticket_category_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserTicketCategory) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserTicketCategory) ProtoMessage() {}
func (x *UserTicketCategory) ProtoReflect() protoreflect.Message {
mi := &file_models_model_user_ticket_category_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 UserTicketCategory.ProtoReflect.Descriptor instead.
func (*UserTicketCategory) Descriptor() ([]byte, []int) {
return file_models_model_user_ticket_category_proto_rawDescGZIP(), []int{0}
}
func (x *UserTicketCategory) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *UserTicketCategory) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *UserTicketCategory) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
var File_models_model_user_ticket_category_proto protoreflect.FileDescriptor
var file_models_model_user_ticket_category_proto_rawDesc = []byte{
0x0a, 0x27, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75,
0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67,
0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x4c, 0x0a,
0x12, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67,
0x6f, 0x72, 0x79, 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, 0x42, 0x06, 0x5a, 0x04, 0x2e,
0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_models_model_user_ticket_category_proto_rawDescOnce sync.Once
file_models_model_user_ticket_category_proto_rawDescData = file_models_model_user_ticket_category_proto_rawDesc
)
func file_models_model_user_ticket_category_proto_rawDescGZIP() []byte {
file_models_model_user_ticket_category_proto_rawDescOnce.Do(func() {
file_models_model_user_ticket_category_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_user_ticket_category_proto_rawDescData)
})
return file_models_model_user_ticket_category_proto_rawDescData
}
var file_models_model_user_ticket_category_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_user_ticket_category_proto_goTypes = []interface{}{
(*UserTicketCategory)(nil), // 0: pb.UserTicketCategory
}
var file_models_model_user_ticket_category_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_user_ticket_category_proto_init() }
func file_models_model_user_ticket_category_proto_init() {
if File_models_model_user_ticket_category_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_models_model_user_ticket_category_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UserTicketCategory); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_models_model_user_ticket_category_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_user_ticket_category_proto_goTypes,
DependencyIndexes: file_models_model_user_ticket_category_proto_depIdxs,
MessageInfos: file_models_model_user_ticket_category_proto_msgTypes,
}.Build()
File_models_model_user_ticket_category_proto = out.File
file_models_model_user_ticket_category_proto_rawDesc = nil
file_models_model_user_ticket_category_proto_goTypes = nil
file_models_model_user_ticket_category_proto_depIdxs = nil
}

View File

@@ -0,0 +1,245 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: models/model_user_ticket_log.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 UserTicketLog struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
AdminId int64 `protobuf:"varint,2,opt,name=adminId,proto3" json:"adminId,omitempty"`
UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"`
TicketId int64 `protobuf:"varint,4,opt,name=ticketId,proto3" json:"ticketId,omitempty"`
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
Comment string `protobuf:"bytes,6,opt,name=comment,proto3" json:"comment,omitempty"`
CreatedAt int64 `protobuf:"varint,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
IsReadonly bool `protobuf:"varint,8,opt,name=isReadonly,proto3" json:"isReadonly,omitempty"`
Admin *Admin `protobuf:"bytes,30,opt,name=admin,proto3" json:"admin,omitempty"`
User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"`
}
func (x *UserTicketLog) Reset() {
*x = UserTicketLog{}
if protoimpl.UnsafeEnabled {
mi := &file_models_model_user_ticket_log_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserTicketLog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserTicketLog) ProtoMessage() {}
func (x *UserTicketLog) ProtoReflect() protoreflect.Message {
mi := &file_models_model_user_ticket_log_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 UserTicketLog.ProtoReflect.Descriptor instead.
func (*UserTicketLog) Descriptor() ([]byte, []int) {
return file_models_model_user_ticket_log_proto_rawDescGZIP(), []int{0}
}
func (x *UserTicketLog) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *UserTicketLog) GetAdminId() int64 {
if x != nil {
return x.AdminId
}
return 0
}
func (x *UserTicketLog) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *UserTicketLog) GetTicketId() int64 {
if x != nil {
return x.TicketId
}
return 0
}
func (x *UserTicketLog) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *UserTicketLog) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
func (x *UserTicketLog) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *UserTicketLog) GetIsReadonly() bool {
if x != nil {
return x.IsReadonly
}
return false
}
func (x *UserTicketLog) GetAdmin() *Admin {
if x != nil {
return x.Admin
}
return nil
}
func (x *UserTicketLog) GetUser() *User {
if x != nil {
return x.User
}
return nil
}
var File_models_model_user_ticket_log_proto protoreflect.FileDescriptor
var file_models_model_user_ticket_log_proto_rawDesc = []byte{
0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75,
0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x18, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 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, 0x9c, 0x02, 0x0a, 0x0d,
0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x0e, 0x0a,
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a,
0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
0x61, 0x64, 0x6d, 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, 0x12,
0x1a, 0x0a, 0x08, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
0x03, 0x52, 0x08, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73,
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61,
0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06,
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a,
0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x69,
0x73, 0x52, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52,
0x0a, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x61,
0x64, 0x6d, 0x69, 0x6e, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e,
0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 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,
}
var (
file_models_model_user_ticket_log_proto_rawDescOnce sync.Once
file_models_model_user_ticket_log_proto_rawDescData = file_models_model_user_ticket_log_proto_rawDesc
)
func file_models_model_user_ticket_log_proto_rawDescGZIP() []byte {
file_models_model_user_ticket_log_proto_rawDescOnce.Do(func() {
file_models_model_user_ticket_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_user_ticket_log_proto_rawDescData)
})
return file_models_model_user_ticket_log_proto_rawDescData
}
var file_models_model_user_ticket_log_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_user_ticket_log_proto_goTypes = []interface{}{
(*UserTicketLog)(nil), // 0: pb.UserTicketLog
(*Admin)(nil), // 1: pb.Admin
(*User)(nil), // 2: pb.User
}
var file_models_model_user_ticket_log_proto_depIdxs = []int32{
1, // 0: pb.UserTicketLog.admin:type_name -> pb.Admin
2, // 1: pb.UserTicketLog.user:type_name -> pb.User
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_models_model_user_ticket_log_proto_init() }
func file_models_model_user_ticket_log_proto_init() {
if File_models_model_user_ticket_log_proto != nil {
return
}
file_models_model_admin_proto_init()
file_models_model_user_proto_init()
if !protoimpl.UnsafeEnabled {
file_models_model_user_ticket_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UserTicketLog); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_models_model_user_ticket_log_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_user_ticket_log_proto_goTypes,
DependencyIndexes: file_models_model_user_ticket_log_proto_depIdxs,
MessageInfos: file_models_model_user_ticket_log_proto_msgTypes,
}.Build()
File_models_model_user_ticket_log_proto = out.File
file_models_model_user_ticket_log_proto_rawDesc = nil
file_models_model_user_ticket_log_proto_goTypes = nil
file_models_model_user_ticket_log_proto_depIdxs = nil
}

View File

@@ -30,14 +30,14 @@ const (
const _ = proto.ProtoPackageIsVersion4
// 计算访问日志策略数量
type CountAllEnabledHTTPAccessLogPoliciesRequest struct {
type CountAllHTTPAccessLogPoliciesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *CountAllEnabledHTTPAccessLogPoliciesRequest) Reset() {
*x = CountAllEnabledHTTPAccessLogPoliciesRequest{}
func (x *CountAllHTTPAccessLogPoliciesRequest) Reset() {
*x = CountAllHTTPAccessLogPoliciesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_http_access_log_policy_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -45,13 +45,13 @@ func (x *CountAllEnabledHTTPAccessLogPoliciesRequest) Reset() {
}
}
func (x *CountAllEnabledHTTPAccessLogPoliciesRequest) String() string {
func (x *CountAllHTTPAccessLogPoliciesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountAllEnabledHTTPAccessLogPoliciesRequest) ProtoMessage() {}
func (*CountAllHTTPAccessLogPoliciesRequest) ProtoMessage() {}
func (x *CountAllEnabledHTTPAccessLogPoliciesRequest) ProtoReflect() protoreflect.Message {
func (x *CountAllHTTPAccessLogPoliciesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_http_access_log_policy_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -63,13 +63,13 @@ func (x *CountAllEnabledHTTPAccessLogPoliciesRequest) ProtoReflect() protoreflec
return mi.MessageOf(x)
}
// Deprecated: Use CountAllEnabledHTTPAccessLogPoliciesRequest.ProtoReflect.Descriptor instead.
func (*CountAllEnabledHTTPAccessLogPoliciesRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use CountAllHTTPAccessLogPoliciesRequest.ProtoReflect.Descriptor instead.
func (*CountAllHTTPAccessLogPoliciesRequest) Descriptor() ([]byte, []int) {
return file_service_http_access_log_policy_proto_rawDescGZIP(), []int{0}
}
// 列出单页访问日志策略
type ListEnabledHTTPAccessLogPoliciesRequest struct {
type ListHTTPAccessLogPoliciesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -78,8 +78,8 @@ type ListEnabledHTTPAccessLogPoliciesRequest struct {
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
}
func (x *ListEnabledHTTPAccessLogPoliciesRequest) Reset() {
*x = ListEnabledHTTPAccessLogPoliciesRequest{}
func (x *ListHTTPAccessLogPoliciesRequest) Reset() {
*x = ListHTTPAccessLogPoliciesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_http_access_log_policy_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -87,13 +87,13 @@ func (x *ListEnabledHTTPAccessLogPoliciesRequest) Reset() {
}
}
func (x *ListEnabledHTTPAccessLogPoliciesRequest) String() string {
func (x *ListHTTPAccessLogPoliciesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEnabledHTTPAccessLogPoliciesRequest) ProtoMessage() {}
func (*ListHTTPAccessLogPoliciesRequest) ProtoMessage() {}
func (x *ListEnabledHTTPAccessLogPoliciesRequest) ProtoReflect() protoreflect.Message {
func (x *ListHTTPAccessLogPoliciesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_http_access_log_policy_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -105,26 +105,26 @@ func (x *ListEnabledHTTPAccessLogPoliciesRequest) ProtoReflect() protoreflect.Me
return mi.MessageOf(x)
}
// Deprecated: Use ListEnabledHTTPAccessLogPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListEnabledHTTPAccessLogPoliciesRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use ListHTTPAccessLogPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListHTTPAccessLogPoliciesRequest) Descriptor() ([]byte, []int) {
return file_service_http_access_log_policy_proto_rawDescGZIP(), []int{1}
}
func (x *ListEnabledHTTPAccessLogPoliciesRequest) GetOffset() int64 {
func (x *ListHTTPAccessLogPoliciesRequest) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
func (x *ListEnabledHTTPAccessLogPoliciesRequest) GetSize() int64 {
func (x *ListHTTPAccessLogPoliciesRequest) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
type ListEnabledHTTPAccessLogPoliciesResponse struct {
type ListHTTPAccessLogPoliciesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -132,8 +132,8 @@ type ListEnabledHTTPAccessLogPoliciesResponse struct {
HttpAccessLogPolicies []*HTTPAccessLogPolicy `protobuf:"bytes,1,rep,name=httpAccessLogPolicies,proto3" json:"httpAccessLogPolicies,omitempty"`
}
func (x *ListEnabledHTTPAccessLogPoliciesResponse) Reset() {
*x = ListEnabledHTTPAccessLogPoliciesResponse{}
func (x *ListHTTPAccessLogPoliciesResponse) Reset() {
*x = ListHTTPAccessLogPoliciesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_http_access_log_policy_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -141,13 +141,13 @@ func (x *ListEnabledHTTPAccessLogPoliciesResponse) Reset() {
}
}
func (x *ListEnabledHTTPAccessLogPoliciesResponse) String() string {
func (x *ListHTTPAccessLogPoliciesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListEnabledHTTPAccessLogPoliciesResponse) ProtoMessage() {}
func (*ListHTTPAccessLogPoliciesResponse) ProtoMessage() {}
func (x *ListEnabledHTTPAccessLogPoliciesResponse) ProtoReflect() protoreflect.Message {
func (x *ListHTTPAccessLogPoliciesResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_http_access_log_policy_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -159,12 +159,12 @@ func (x *ListEnabledHTTPAccessLogPoliciesResponse) ProtoReflect() protoreflect.M
return mi.MessageOf(x)
}
// Deprecated: Use ListEnabledHTTPAccessLogPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListEnabledHTTPAccessLogPoliciesResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use ListHTTPAccessLogPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListHTTPAccessLogPoliciesResponse) Descriptor() ([]byte, []int) {
return file_service_http_access_log_policy_proto_rawDescGZIP(), []int{2}
}
func (x *ListEnabledHTTPAccessLogPoliciesResponse) GetHttpAccessLogPolicies() []*HTTPAccessLogPolicy {
func (x *ListHTTPAccessLogPoliciesResponse) GetHttpAccessLogPolicies() []*HTTPAccessLogPolicy {
if x != nil {
return x.HttpAccessLogPolicies
}
@@ -403,7 +403,7 @@ func (x *UpdateHTTPAccessLogPolicyRequest) GetFirewallOnly() bool {
}
// 查找单个访问日志策略
type FindEnabledHTTPAccessLogPolicyRequest struct {
type FindHTTPAccessLogPolicyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -411,8 +411,8 @@ type FindEnabledHTTPAccessLogPolicyRequest struct {
HttpAccessLogPolicyId int64 `protobuf:"varint,1,opt,name=httpAccessLogPolicyId,proto3" json:"httpAccessLogPolicyId,omitempty"`
}
func (x *FindEnabledHTTPAccessLogPolicyRequest) Reset() {
*x = FindEnabledHTTPAccessLogPolicyRequest{}
func (x *FindHTTPAccessLogPolicyRequest) Reset() {
*x = FindHTTPAccessLogPolicyRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_http_access_log_policy_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -420,13 +420,13 @@ func (x *FindEnabledHTTPAccessLogPolicyRequest) Reset() {
}
}
func (x *FindEnabledHTTPAccessLogPolicyRequest) String() string {
func (x *FindHTTPAccessLogPolicyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledHTTPAccessLogPolicyRequest) ProtoMessage() {}
func (*FindHTTPAccessLogPolicyRequest) ProtoMessage() {}
func (x *FindEnabledHTTPAccessLogPolicyRequest) ProtoReflect() protoreflect.Message {
func (x *FindHTTPAccessLogPolicyRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_http_access_log_policy_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -438,19 +438,19 @@ func (x *FindEnabledHTTPAccessLogPolicyRequest) ProtoReflect() protoreflect.Mess
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledHTTPAccessLogPolicyRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledHTTPAccessLogPolicyRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use FindHTTPAccessLogPolicyRequest.ProtoReflect.Descriptor instead.
func (*FindHTTPAccessLogPolicyRequest) Descriptor() ([]byte, []int) {
return file_service_http_access_log_policy_proto_rawDescGZIP(), []int{6}
}
func (x *FindEnabledHTTPAccessLogPolicyRequest) GetHttpAccessLogPolicyId() int64 {
func (x *FindHTTPAccessLogPolicyRequest) GetHttpAccessLogPolicyId() int64 {
if x != nil {
return x.HttpAccessLogPolicyId
}
return 0
}
type FindEnabledHTTPAccessLogPolicyResponse struct {
type FindHTTPAccessLogPolicyResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -458,8 +458,8 @@ type FindEnabledHTTPAccessLogPolicyResponse struct {
HttpAccessLogPolicy *HTTPAccessLogPolicy `protobuf:"bytes,1,opt,name=httpAccessLogPolicy,proto3" json:"httpAccessLogPolicy,omitempty"`
}
func (x *FindEnabledHTTPAccessLogPolicyResponse) Reset() {
*x = FindEnabledHTTPAccessLogPolicyResponse{}
func (x *FindHTTPAccessLogPolicyResponse) Reset() {
*x = FindHTTPAccessLogPolicyResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_http_access_log_policy_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -467,13 +467,13 @@ func (x *FindEnabledHTTPAccessLogPolicyResponse) Reset() {
}
}
func (x *FindEnabledHTTPAccessLogPolicyResponse) String() string {
func (x *FindHTTPAccessLogPolicyResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledHTTPAccessLogPolicyResponse) ProtoMessage() {}
func (*FindHTTPAccessLogPolicyResponse) ProtoMessage() {}
func (x *FindEnabledHTTPAccessLogPolicyResponse) ProtoReflect() protoreflect.Message {
func (x *FindHTTPAccessLogPolicyResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_http_access_log_policy_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -485,12 +485,12 @@ func (x *FindEnabledHTTPAccessLogPolicyResponse) ProtoReflect() protoreflect.Mes
return mi.MessageOf(x)
}
// Deprecated: Use FindEnabledHTTPAccessLogPolicyResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledHTTPAccessLogPolicyResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use FindHTTPAccessLogPolicyResponse.ProtoReflect.Descriptor instead.
func (*FindHTTPAccessLogPolicyResponse) Descriptor() ([]byte, []int) {
return file_service_http_access_log_policy_proto_rawDescGZIP(), []int{7}
}
func (x *FindEnabledHTTPAccessLogPolicyResponse) GetHttpAccessLogPolicy() *HTTPAccessLogPolicy {
func (x *FindHTTPAccessLogPolicyResponse) GetHttpAccessLogPolicy() *HTTPAccessLogPolicy {
if x != nil {
return x.HttpAccessLogPolicy
}
@@ -613,133 +613,127 @@ var file_service_http_access_log_policy_proto_rawDesc = []byte{
0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x68,
0x74, 0x74, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x2b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73,
0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x22, 0x55, 0x0a, 0x27, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50,
0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16,
0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x79, 0x0a, 0x28, 0x4c, 0x69,
0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63,
0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x15,
0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c,
0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0xca, 0x01, 0x0a, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x24, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c,
0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c,
0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12,
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79,
0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4a, 0x53, 0x4f,
0x4e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f,
0x4e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53,
0x4f, 0x4e, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x05,
0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x22,
0x0a, 0x0c, 0x66, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x06,
0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x4f, 0x6e,
0x6c, 0x79, 0x22, 0x59, 0x0a, 0x21, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65,
0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x22, 0x80, 0x02,
0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65,
0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x34, 0x0a, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 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, 0x20, 0x0a, 0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18,
0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4a, 0x53,
0x4f, 0x4e, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18,
0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e,
0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x06, 0x20, 0x01,
0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x22, 0x0a, 0x0c,
0x66, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x07, 0x20, 0x01,
0x28, 0x08, 0x52, 0x0c, 0x66, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x4f, 0x6e, 0x6c, 0x79,
0x22, 0x5d, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48,
0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69,
0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x15, 0x68, 0x74, 0x74,
0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63,
0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x22,
0x73, 0x0a, 0x26, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54,
0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x13, 0x68, 0x74, 0x74,
0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x54, 0x54, 0x50,
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
0x13, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x22, 0x58, 0x0a, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x48, 0x54,
0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x15, 0x68, 0x74, 0x74, 0x70,
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x22, 0x90,
0x01, 0x0a, 0x1f, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65,
0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x34, 0x0a, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x0d, 0x68, 0x74, 0x74, 0x70,
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x11, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c,
0x6f, 0x67, 0x52, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f,
0x67, 0x32, 0xe4, 0x05, 0x0a, 0x1a, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x6d, 0x0a, 0x24, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54,
0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52,
0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x7d, 0x0a, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54,
0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x69, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f,
0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x20,
0x4c, 0x69, 0x73, 0x74, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f,
0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68,
0x0a, 0x19, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65,
0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, 0x70, 0x62,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73,
0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54,
0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61,
0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x72, 0x0a, 0x21,
0x4c, 0x69, 0x73, 0x74, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f,
0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x4d, 0x0a, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c,
0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
0x22, 0xca, 0x01, 0x0a, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a,
0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x03, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12,
0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x04, 0x20, 0x01,
0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1a, 0x0a,
0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52,
0x08, 0x69, 0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x22, 0x0a, 0x0c, 0x66, 0x69, 0x72,
0x65, 0x77, 0x61, 0x6c, 0x6c, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52,
0x0c, 0x66, 0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x59, 0x0a,
0x21, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73,
0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x34, 0x0a, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x22, 0x80, 0x02, 0x0a, 0x20, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a,
0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x68, 0x74,
0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 0x49, 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, 0x20, 0x0a, 0x0b, 0x6f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c,
0x52, 0x0b, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1c, 0x0a,
0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c,
0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1a, 0x0a, 0x08, 0x69,
0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69,
0x73, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x12, 0x22, 0x0a, 0x0c, 0x66, 0x69, 0x72, 0x65, 0x77,
0x61, 0x6c, 0x6c, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x66,
0x69, 0x72, 0x65, 0x77, 0x61, 0x6c, 0x6c, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x56, 0x0a, 0x1e, 0x46,
0x69, 0x6e, 0x64, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a,
0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f,
0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x68, 0x74,
0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 0x49, 0x64, 0x22, 0x6c, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x54, 0x54, 0x50, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x13, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63,
0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x13, 0x68, 0x74,
0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 0x22, 0x58, 0x0a, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x22, 0x90, 0x01, 0x0a, 0x1f,
0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c,
0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x34, 0x0a, 0x15, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15,
0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c,
0x69, 0x63, 0x79, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x0d, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70,
0x62, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52,
0x0d, 0x68, 0x74, 0x74, 0x70, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x32, 0xac,
0x05, 0x0a, 0x1a, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5f, 0x0a,
0x1d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x28,
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x48, 0x54, 0x54, 0x50,
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68,
0x0a, 0x19, 0x6c, 0x69, 0x73, 0x74, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x62,
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c,
0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x54, 0x54, 0x50, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50,
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f,
0x6c, 0x69, 0x63, 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, 0x77, 0x0a, 0x1e, 0x66,
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63,
0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x29, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54,
0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x19, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x48, 0x54,
0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x48, 0x54, 0x54,
0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73,
0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x51, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50,
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,
0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 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, 0x62, 0x0a, 0x17, 0x66, 0x69, 0x6e, 0x64, 0x48, 0x54, 0x54,
0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 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, 0x77, 0x72, 0x69, 0x74, 0x65,
0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c,
0x69, 0x63, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x48, 0x54,
0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63,
0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x54,
0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63,
0x79, 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,
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x19, 0x64, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65,
0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50,
0x6f, 0x6c, 0x69, 0x63, 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,
0x77, 0x72, 0x69, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c,
0x6f, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x57, 0x72,
0x69, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 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 (
@@ -756,37 +750,37 @@ func file_service_http_access_log_policy_proto_rawDescGZIP() []byte {
var file_service_http_access_log_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_service_http_access_log_policy_proto_goTypes = []interface{}{
(*CountAllEnabledHTTPAccessLogPoliciesRequest)(nil), // 0: pb.CountAllEnabledHTTPAccessLogPoliciesRequest
(*ListEnabledHTTPAccessLogPoliciesRequest)(nil), // 1: pb.ListEnabledHTTPAccessLogPoliciesRequest
(*ListEnabledHTTPAccessLogPoliciesResponse)(nil), // 2: pb.ListEnabledHTTPAccessLogPoliciesResponse
(*CreateHTTPAccessLogPolicyRequest)(nil), // 3: pb.CreateHTTPAccessLogPolicyRequest
(*CreateHTTPAccessLogPolicyResponse)(nil), // 4: pb.CreateHTTPAccessLogPolicyResponse
(*UpdateHTTPAccessLogPolicyRequest)(nil), // 5: pb.UpdateHTTPAccessLogPolicyRequest
(*FindEnabledHTTPAccessLogPolicyRequest)(nil), // 6: pb.FindEnabledHTTPAccessLogPolicyRequest
(*FindEnabledHTTPAccessLogPolicyResponse)(nil), // 7: pb.FindEnabledHTTPAccessLogPolicyResponse
(*DeleteHTTPAccessLogPolicyRequest)(nil), // 8: pb.DeleteHTTPAccessLogPolicyRequest
(*WriteHTTPAccessLogPolicyRequest)(nil), // 9: pb.WriteHTTPAccessLogPolicyRequest
(*HTTPAccessLogPolicy)(nil), // 10: pb.HTTPAccessLogPolicy
(*HTTPAccessLog)(nil), // 11: pb.HTTPAccessLog
(*RPCCountResponse)(nil), // 12: pb.RPCCountResponse
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
(*CountAllHTTPAccessLogPoliciesRequest)(nil), // 0: pb.CountAllHTTPAccessLogPoliciesRequest
(*ListHTTPAccessLogPoliciesRequest)(nil), // 1: pb.ListHTTPAccessLogPoliciesRequest
(*ListHTTPAccessLogPoliciesResponse)(nil), // 2: pb.ListHTTPAccessLogPoliciesResponse
(*CreateHTTPAccessLogPolicyRequest)(nil), // 3: pb.CreateHTTPAccessLogPolicyRequest
(*CreateHTTPAccessLogPolicyResponse)(nil), // 4: pb.CreateHTTPAccessLogPolicyResponse
(*UpdateHTTPAccessLogPolicyRequest)(nil), // 5: pb.UpdateHTTPAccessLogPolicyRequest
(*FindHTTPAccessLogPolicyRequest)(nil), // 6: pb.FindHTTPAccessLogPolicyRequest
(*FindHTTPAccessLogPolicyResponse)(nil), // 7: pb.FindHTTPAccessLogPolicyResponse
(*DeleteHTTPAccessLogPolicyRequest)(nil), // 8: pb.DeleteHTTPAccessLogPolicyRequest
(*WriteHTTPAccessLogPolicyRequest)(nil), // 9: pb.WriteHTTPAccessLogPolicyRequest
(*HTTPAccessLogPolicy)(nil), // 10: pb.HTTPAccessLogPolicy
(*HTTPAccessLog)(nil), // 11: pb.HTTPAccessLog
(*RPCCountResponse)(nil), // 12: pb.RPCCountResponse
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
}
var file_service_http_access_log_policy_proto_depIdxs = []int32{
10, // 0: pb.ListEnabledHTTPAccessLogPoliciesResponse.httpAccessLogPolicies:type_name -> pb.HTTPAccessLogPolicy
10, // 1: pb.FindEnabledHTTPAccessLogPolicyResponse.httpAccessLogPolicy:type_name -> pb.HTTPAccessLogPolicy
10, // 0: pb.ListHTTPAccessLogPoliciesResponse.httpAccessLogPolicies:type_name -> pb.HTTPAccessLogPolicy
10, // 1: pb.FindHTTPAccessLogPolicyResponse.httpAccessLogPolicy:type_name -> pb.HTTPAccessLogPolicy
11, // 2: pb.WriteHTTPAccessLogPolicyRequest.httpAccessLog:type_name -> pb.HTTPAccessLog
0, // 3: pb.HTTPAccessLogPolicyService.countAllEnabledHTTPAccessLogPolicies:input_type -> pb.CountAllEnabledHTTPAccessLogPoliciesRequest
1, // 4: pb.HTTPAccessLogPolicyService.listEnabledHTTPAccessLogPolicies:input_type -> pb.ListEnabledHTTPAccessLogPoliciesRequest
0, // 3: pb.HTTPAccessLogPolicyService.countAllHTTPAccessLogPolicies:input_type -> pb.CountAllHTTPAccessLogPoliciesRequest
1, // 4: pb.HTTPAccessLogPolicyService.listHTTPAccessLogPolicies:input_type -> pb.ListHTTPAccessLogPoliciesRequest
3, // 5: pb.HTTPAccessLogPolicyService.createHTTPAccessLogPolicy:input_type -> pb.CreateHTTPAccessLogPolicyRequest
5, // 6: pb.HTTPAccessLogPolicyService.updateHTTPAccessLogPolicy:input_type -> pb.UpdateHTTPAccessLogPolicyRequest
6, // 7: pb.HTTPAccessLogPolicyService.findEnabledHTTPAccessLogPolicy:input_type -> pb.FindEnabledHTTPAccessLogPolicyRequest
6, // 7: pb.HTTPAccessLogPolicyService.findHTTPAccessLogPolicy:input_type -> pb.FindHTTPAccessLogPolicyRequest
8, // 8: pb.HTTPAccessLogPolicyService.deleteHTTPAccessLogPolicy:input_type -> pb.DeleteHTTPAccessLogPolicyRequest
9, // 9: pb.HTTPAccessLogPolicyService.writeHTTPAccessLogPolicy:input_type -> pb.WriteHTTPAccessLogPolicyRequest
12, // 10: pb.HTTPAccessLogPolicyService.countAllEnabledHTTPAccessLogPolicies:output_type -> pb.RPCCountResponse
2, // 11: pb.HTTPAccessLogPolicyService.listEnabledHTTPAccessLogPolicies:output_type -> pb.ListEnabledHTTPAccessLogPoliciesResponse
12, // 10: pb.HTTPAccessLogPolicyService.countAllHTTPAccessLogPolicies:output_type -> pb.RPCCountResponse
2, // 11: pb.HTTPAccessLogPolicyService.listHTTPAccessLogPolicies:output_type -> pb.ListHTTPAccessLogPoliciesResponse
4, // 12: pb.HTTPAccessLogPolicyService.createHTTPAccessLogPolicy:output_type -> pb.CreateHTTPAccessLogPolicyResponse
13, // 13: pb.HTTPAccessLogPolicyService.updateHTTPAccessLogPolicy:output_type -> pb.RPCSuccess
7, // 14: pb.HTTPAccessLogPolicyService.findEnabledHTTPAccessLogPolicy:output_type -> pb.FindEnabledHTTPAccessLogPolicyResponse
7, // 14: pb.HTTPAccessLogPolicyService.findHTTPAccessLogPolicy:output_type -> pb.FindHTTPAccessLogPolicyResponse
13, // 15: pb.HTTPAccessLogPolicyService.deleteHTTPAccessLogPolicy:output_type -> pb.RPCSuccess
13, // 16: pb.HTTPAccessLogPolicyService.writeHTTPAccessLogPolicy:output_type -> pb.RPCSuccess
10, // [10:17] is the sub-list for method output_type
@@ -806,7 +800,7 @@ func file_service_http_access_log_policy_proto_init() {
file_models_model_http_access_log_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_http_access_log_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CountAllEnabledHTTPAccessLogPoliciesRequest); i {
switch v := v.(*CountAllHTTPAccessLogPoliciesRequest); i {
case 0:
return &v.state
case 1:
@@ -818,7 +812,7 @@ func file_service_http_access_log_policy_proto_init() {
}
}
file_service_http_access_log_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledHTTPAccessLogPoliciesRequest); i {
switch v := v.(*ListHTTPAccessLogPoliciesRequest); i {
case 0:
return &v.state
case 1:
@@ -830,7 +824,7 @@ func file_service_http_access_log_policy_proto_init() {
}
}
file_service_http_access_log_policy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledHTTPAccessLogPoliciesResponse); i {
switch v := v.(*ListHTTPAccessLogPoliciesResponse); i {
case 0:
return &v.state
case 1:
@@ -878,7 +872,7 @@ func file_service_http_access_log_policy_proto_init() {
}
}
file_service_http_access_log_policy_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledHTTPAccessLogPolicyRequest); i {
switch v := v.(*FindHTTPAccessLogPolicyRequest); i {
case 0:
return &v.state
case 1:
@@ -890,7 +884,7 @@ func file_service_http_access_log_policy_proto_init() {
}
}
file_service_http_access_log_policy_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledHTTPAccessLogPolicyResponse); i {
switch v := v.(*FindHTTPAccessLogPolicyResponse); i {
case 0:
return &v.state
case 1:
@@ -959,15 +953,15 @@ const _ = grpc.SupportPackageIsVersion6
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type HTTPAccessLogPolicyServiceClient interface {
// 计算访问日志策略数量
CountAllEnabledHTTPAccessLogPolicies(ctx context.Context, in *CountAllEnabledHTTPAccessLogPoliciesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
CountAllHTTPAccessLogPolicies(ctx context.Context, in *CountAllHTTPAccessLogPoliciesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
// 列出单页访问日志策略
ListEnabledHTTPAccessLogPolicies(ctx context.Context, in *ListEnabledHTTPAccessLogPoliciesRequest, opts ...grpc.CallOption) (*ListEnabledHTTPAccessLogPoliciesResponse, error)
ListHTTPAccessLogPolicies(ctx context.Context, in *ListHTTPAccessLogPoliciesRequest, opts ...grpc.CallOption) (*ListHTTPAccessLogPoliciesResponse, error)
// 创建访问日志策略
CreateHTTPAccessLogPolicy(ctx context.Context, in *CreateHTTPAccessLogPolicyRequest, opts ...grpc.CallOption) (*CreateHTTPAccessLogPolicyResponse, error)
// 修改访问日志策略
UpdateHTTPAccessLogPolicy(ctx context.Context, in *UpdateHTTPAccessLogPolicyRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 查找单个访问日志策略
FindEnabledHTTPAccessLogPolicy(ctx context.Context, in *FindEnabledHTTPAccessLogPolicyRequest, opts ...grpc.CallOption) (*FindEnabledHTTPAccessLogPolicyResponse, error)
FindHTTPAccessLogPolicy(ctx context.Context, in *FindHTTPAccessLogPolicyRequest, opts ...grpc.CallOption) (*FindHTTPAccessLogPolicyResponse, error)
// 删除访问日志策略
DeleteHTTPAccessLogPolicy(ctx context.Context, in *DeleteHTTPAccessLogPolicyRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 测试写入某个访问日志策略
@@ -982,18 +976,18 @@ func NewHTTPAccessLogPolicyServiceClient(cc grpc.ClientConnInterface) HTTPAccess
return &hTTPAccessLogPolicyServiceClient{cc}
}
func (c *hTTPAccessLogPolicyServiceClient) CountAllEnabledHTTPAccessLogPolicies(ctx context.Context, in *CountAllEnabledHTTPAccessLogPoliciesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
func (c *hTTPAccessLogPolicyServiceClient) CountAllHTTPAccessLogPolicies(ctx context.Context, in *CountAllHTTPAccessLogPoliciesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
out := new(RPCCountResponse)
err := c.cc.Invoke(ctx, "/pb.HTTPAccessLogPolicyService/countAllEnabledHTTPAccessLogPolicies", in, out, opts...)
err := c.cc.Invoke(ctx, "/pb.HTTPAccessLogPolicyService/countAllHTTPAccessLogPolicies", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *hTTPAccessLogPolicyServiceClient) ListEnabledHTTPAccessLogPolicies(ctx context.Context, in *ListEnabledHTTPAccessLogPoliciesRequest, opts ...grpc.CallOption) (*ListEnabledHTTPAccessLogPoliciesResponse, error) {
out := new(ListEnabledHTTPAccessLogPoliciesResponse)
err := c.cc.Invoke(ctx, "/pb.HTTPAccessLogPolicyService/listEnabledHTTPAccessLogPolicies", in, out, opts...)
func (c *hTTPAccessLogPolicyServiceClient) ListHTTPAccessLogPolicies(ctx context.Context, in *ListHTTPAccessLogPoliciesRequest, opts ...grpc.CallOption) (*ListHTTPAccessLogPoliciesResponse, error) {
out := new(ListHTTPAccessLogPoliciesResponse)
err := c.cc.Invoke(ctx, "/pb.HTTPAccessLogPolicyService/listHTTPAccessLogPolicies", in, out, opts...)
if err != nil {
return nil, err
}
@@ -1018,9 +1012,9 @@ func (c *hTTPAccessLogPolicyServiceClient) UpdateHTTPAccessLogPolicy(ctx context
return out, nil
}
func (c *hTTPAccessLogPolicyServiceClient) FindEnabledHTTPAccessLogPolicy(ctx context.Context, in *FindEnabledHTTPAccessLogPolicyRequest, opts ...grpc.CallOption) (*FindEnabledHTTPAccessLogPolicyResponse, error) {
out := new(FindEnabledHTTPAccessLogPolicyResponse)
err := c.cc.Invoke(ctx, "/pb.HTTPAccessLogPolicyService/findEnabledHTTPAccessLogPolicy", in, out, opts...)
func (c *hTTPAccessLogPolicyServiceClient) FindHTTPAccessLogPolicy(ctx context.Context, in *FindHTTPAccessLogPolicyRequest, opts ...grpc.CallOption) (*FindHTTPAccessLogPolicyResponse, error) {
out := new(FindHTTPAccessLogPolicyResponse)
err := c.cc.Invoke(ctx, "/pb.HTTPAccessLogPolicyService/findHTTPAccessLogPolicy", in, out, opts...)
if err != nil {
return nil, err
}
@@ -1048,15 +1042,15 @@ func (c *hTTPAccessLogPolicyServiceClient) WriteHTTPAccessLogPolicy(ctx context.
// HTTPAccessLogPolicyServiceServer is the server API for HTTPAccessLogPolicyService service.
type HTTPAccessLogPolicyServiceServer interface {
// 计算访问日志策略数量
CountAllEnabledHTTPAccessLogPolicies(context.Context, *CountAllEnabledHTTPAccessLogPoliciesRequest) (*RPCCountResponse, error)
CountAllHTTPAccessLogPolicies(context.Context, *CountAllHTTPAccessLogPoliciesRequest) (*RPCCountResponse, error)
// 列出单页访问日志策略
ListEnabledHTTPAccessLogPolicies(context.Context, *ListEnabledHTTPAccessLogPoliciesRequest) (*ListEnabledHTTPAccessLogPoliciesResponse, error)
ListHTTPAccessLogPolicies(context.Context, *ListHTTPAccessLogPoliciesRequest) (*ListHTTPAccessLogPoliciesResponse, error)
// 创建访问日志策略
CreateHTTPAccessLogPolicy(context.Context, *CreateHTTPAccessLogPolicyRequest) (*CreateHTTPAccessLogPolicyResponse, error)
// 修改访问日志策略
UpdateHTTPAccessLogPolicy(context.Context, *UpdateHTTPAccessLogPolicyRequest) (*RPCSuccess, error)
// 查找单个访问日志策略
FindEnabledHTTPAccessLogPolicy(context.Context, *FindEnabledHTTPAccessLogPolicyRequest) (*FindEnabledHTTPAccessLogPolicyResponse, error)
FindHTTPAccessLogPolicy(context.Context, *FindHTTPAccessLogPolicyRequest) (*FindHTTPAccessLogPolicyResponse, error)
// 删除访问日志策略
DeleteHTTPAccessLogPolicy(context.Context, *DeleteHTTPAccessLogPolicyRequest) (*RPCSuccess, error)
// 测试写入某个访问日志策略
@@ -1067,11 +1061,11 @@ type HTTPAccessLogPolicyServiceServer interface {
type UnimplementedHTTPAccessLogPolicyServiceServer struct {
}
func (*UnimplementedHTTPAccessLogPolicyServiceServer) CountAllEnabledHTTPAccessLogPolicies(context.Context, *CountAllEnabledHTTPAccessLogPoliciesRequest) (*RPCCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledHTTPAccessLogPolicies not implemented")
func (*UnimplementedHTTPAccessLogPolicyServiceServer) CountAllHTTPAccessLogPolicies(context.Context, *CountAllHTTPAccessLogPoliciesRequest) (*RPCCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CountAllHTTPAccessLogPolicies not implemented")
}
func (*UnimplementedHTTPAccessLogPolicyServiceServer) ListEnabledHTTPAccessLogPolicies(context.Context, *ListEnabledHTTPAccessLogPoliciesRequest) (*ListEnabledHTTPAccessLogPoliciesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListEnabledHTTPAccessLogPolicies not implemented")
func (*UnimplementedHTTPAccessLogPolicyServiceServer) ListHTTPAccessLogPolicies(context.Context, *ListHTTPAccessLogPoliciesRequest) (*ListHTTPAccessLogPoliciesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListHTTPAccessLogPolicies not implemented")
}
func (*UnimplementedHTTPAccessLogPolicyServiceServer) CreateHTTPAccessLogPolicy(context.Context, *CreateHTTPAccessLogPolicyRequest) (*CreateHTTPAccessLogPolicyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateHTTPAccessLogPolicy not implemented")
@@ -1079,8 +1073,8 @@ func (*UnimplementedHTTPAccessLogPolicyServiceServer) CreateHTTPAccessLogPolicy(
func (*UnimplementedHTTPAccessLogPolicyServiceServer) UpdateHTTPAccessLogPolicy(context.Context, *UpdateHTTPAccessLogPolicyRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPAccessLogPolicy not implemented")
}
func (*UnimplementedHTTPAccessLogPolicyServiceServer) FindEnabledHTTPAccessLogPolicy(context.Context, *FindEnabledHTTPAccessLogPolicyRequest) (*FindEnabledHTTPAccessLogPolicyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledHTTPAccessLogPolicy not implemented")
func (*UnimplementedHTTPAccessLogPolicyServiceServer) FindHTTPAccessLogPolicy(context.Context, *FindHTTPAccessLogPolicyRequest) (*FindHTTPAccessLogPolicyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindHTTPAccessLogPolicy not implemented")
}
func (*UnimplementedHTTPAccessLogPolicyServiceServer) DeleteHTTPAccessLogPolicy(context.Context, *DeleteHTTPAccessLogPolicyRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteHTTPAccessLogPolicy not implemented")
@@ -1093,38 +1087,38 @@ func RegisterHTTPAccessLogPolicyServiceServer(s *grpc.Server, srv HTTPAccessLogP
s.RegisterService(&_HTTPAccessLogPolicyService_serviceDesc, srv)
}
func _HTTPAccessLogPolicyService_CountAllEnabledHTTPAccessLogPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountAllEnabledHTTPAccessLogPoliciesRequest)
func _HTTPAccessLogPolicyService_CountAllHTTPAccessLogPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountAllHTTPAccessLogPoliciesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPAccessLogPolicyServiceServer).CountAllEnabledHTTPAccessLogPolicies(ctx, in)
return srv.(HTTPAccessLogPolicyServiceServer).CountAllHTTPAccessLogPolicies(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.HTTPAccessLogPolicyService/CountAllEnabledHTTPAccessLogPolicies",
FullMethod: "/pb.HTTPAccessLogPolicyService/CountAllHTTPAccessLogPolicies",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPAccessLogPolicyServiceServer).CountAllEnabledHTTPAccessLogPolicies(ctx, req.(*CountAllEnabledHTTPAccessLogPoliciesRequest))
return srv.(HTTPAccessLogPolicyServiceServer).CountAllHTTPAccessLogPolicies(ctx, req.(*CountAllHTTPAccessLogPoliciesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _HTTPAccessLogPolicyService_ListEnabledHTTPAccessLogPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListEnabledHTTPAccessLogPoliciesRequest)
func _HTTPAccessLogPolicyService_ListHTTPAccessLogPolicies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListHTTPAccessLogPoliciesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPAccessLogPolicyServiceServer).ListEnabledHTTPAccessLogPolicies(ctx, in)
return srv.(HTTPAccessLogPolicyServiceServer).ListHTTPAccessLogPolicies(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.HTTPAccessLogPolicyService/ListEnabledHTTPAccessLogPolicies",
FullMethod: "/pb.HTTPAccessLogPolicyService/ListHTTPAccessLogPolicies",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPAccessLogPolicyServiceServer).ListEnabledHTTPAccessLogPolicies(ctx, req.(*ListEnabledHTTPAccessLogPoliciesRequest))
return srv.(HTTPAccessLogPolicyServiceServer).ListHTTPAccessLogPolicies(ctx, req.(*ListHTTPAccessLogPoliciesRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -1165,20 +1159,20 @@ func _HTTPAccessLogPolicyService_UpdateHTTPAccessLogPolicy_Handler(srv interface
return interceptor(ctx, in, info, handler)
}
func _HTTPAccessLogPolicyService_FindEnabledHTTPAccessLogPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindEnabledHTTPAccessLogPolicyRequest)
func _HTTPAccessLogPolicyService_FindHTTPAccessLogPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindHTTPAccessLogPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(HTTPAccessLogPolicyServiceServer).FindEnabledHTTPAccessLogPolicy(ctx, in)
return srv.(HTTPAccessLogPolicyServiceServer).FindHTTPAccessLogPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.HTTPAccessLogPolicyService/FindEnabledHTTPAccessLogPolicy",
FullMethod: "/pb.HTTPAccessLogPolicyService/FindHTTPAccessLogPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(HTTPAccessLogPolicyServiceServer).FindEnabledHTTPAccessLogPolicy(ctx, req.(*FindEnabledHTTPAccessLogPolicyRequest))
return srv.(HTTPAccessLogPolicyServiceServer).FindHTTPAccessLogPolicy(ctx, req.(*FindHTTPAccessLogPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -1224,12 +1218,12 @@ var _HTTPAccessLogPolicyService_serviceDesc = grpc.ServiceDesc{
HandlerType: (*HTTPAccessLogPolicyServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "countAllEnabledHTTPAccessLogPolicies",
Handler: _HTTPAccessLogPolicyService_CountAllEnabledHTTPAccessLogPolicies_Handler,
MethodName: "countAllHTTPAccessLogPolicies",
Handler: _HTTPAccessLogPolicyService_CountAllHTTPAccessLogPolicies_Handler,
},
{
MethodName: "listEnabledHTTPAccessLogPolicies",
Handler: _HTTPAccessLogPolicyService_ListEnabledHTTPAccessLogPolicies_Handler,
MethodName: "listHTTPAccessLogPolicies",
Handler: _HTTPAccessLogPolicyService_ListHTTPAccessLogPolicies_Handler,
},
{
MethodName: "createHTTPAccessLogPolicy",
@@ -1240,8 +1234,8 @@ var _HTTPAccessLogPolicyService_serviceDesc = grpc.ServiceDesc{
Handler: _HTTPAccessLogPolicyService_UpdateHTTPAccessLogPolicy_Handler,
},
{
MethodName: "findEnabledHTTPAccessLogPolicy",
Handler: _HTTPAccessLogPolicyService_FindEnabledHTTPAccessLogPolicy_Handler,
MethodName: "findHTTPAccessLogPolicy",
Handler: _HTTPAccessLogPolicyService_FindHTTPAccessLogPolicy_Handler,
},
{
MethodName: "deleteHTTPAccessLogPolicy",

View File

@@ -842,48 +842,50 @@ var file_service_ip_library_proto_rawDesc = []byte{
0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70,
0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d,
0x6d, 0x61, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d,
0x61, 0x72, 0x79, 0x32, 0x80, 0x05, 0x0a, 0x10, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61,
0x61, 0x72, 0x79, 0x32, 0xa3, 0x05, 0x0a, 0x10, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x62,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65,
0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54,
0x79, 0x70, 0x65, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74,
0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68,
0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62,
0x72, 0x61, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x14, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x70,
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c,
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50,
0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 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, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74,
0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61,
0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 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, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69,
0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69,
0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 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, 0x47, 0x0a, 0x0e, 0x6c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49,
0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x6c, 0x6f,
0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x2e,
0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c,
0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 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,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x73, 0x0a, 0x1b, 0x66, 0x69, 0x6e,
0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74,
0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70,
0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5e,
0x0a, 0x14, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c,
0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x85,
0x01, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68,
0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72,
0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 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, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x69, 0x65,
0x73, 0x57, 0x69, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x42, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 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, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x4c, 0x0a, 0x0e, 0x6c, 0x6f,
0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x2e, 0x70,
0x62, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f,
0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x4f, 0x0a, 0x0f, 0x6c, 0x6f, 0x6f, 0x6b,
0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62,
0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x6f,
0x6b, 0x75, 0x70, 0x49, 0x50, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -1155,18 +1157,25 @@ const _ = grpc.SupportPackageIsVersion6
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type IPLibraryServiceClient interface {
// Deprecated: Do not use.
// 创建IP库
CreateIPLibrary(ctx context.Context, in *CreateIPLibraryRequest, opts ...grpc.CallOption) (*CreateIPLibraryResponse, error)
// Deprecated: Do not use.
// 查找最新的IP库
FindLatestIPLibraryWithType(ctx context.Context, in *FindLatestIPLibraryWithTypeRequest, opts ...grpc.CallOption) (*FindLatestIPLibraryWithTypeResponse, error)
// Deprecated: Do not use.
// 查找单个IP库
FindEnabledIPLibrary(ctx context.Context, in *FindEnabledIPLibraryRequest, opts ...grpc.CallOption) (*FindEnabledIPLibraryResponse, error)
// Deprecated: Do not use.
// 列出某个类型的所有IP库
FindAllEnabledIPLibrariesWithType(ctx context.Context, in *FindAllEnabledIPLibrariesWithTypeRequest, opts ...grpc.CallOption) (*FindAllEnabledIPLibrariesWithTypeResponse, error)
// Deprecated: Do not use.
// 删除IP库
DeleteIPLibrary(ctx context.Context, in *DeleteIPLibraryRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// Deprecated: Do not use.
// 查询某个IP信息
LookupIPRegion(ctx context.Context, in *LookupIPRegionRequest, opts ...grpc.CallOption) (*LookupIPRegionResponse, error)
// Deprecated: Do not use.
// 查询一组IP信息
LookupIPRegions(ctx context.Context, in *LookupIPRegionsRequest, opts ...grpc.CallOption) (*LookupIPRegionsResponse, error)
}
@@ -1179,6 +1188,7 @@ func NewIPLibraryServiceClient(cc grpc.ClientConnInterface) IPLibraryServiceClie
return &iPLibraryServiceClient{cc}
}
// Deprecated: Do not use.
func (c *iPLibraryServiceClient) CreateIPLibrary(ctx context.Context, in *CreateIPLibraryRequest, opts ...grpc.CallOption) (*CreateIPLibraryResponse, error) {
out := new(CreateIPLibraryResponse)
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/createIPLibrary", in, out, opts...)
@@ -1188,6 +1198,7 @@ func (c *iPLibraryServiceClient) CreateIPLibrary(ctx context.Context, in *Create
return out, nil
}
// Deprecated: Do not use.
func (c *iPLibraryServiceClient) FindLatestIPLibraryWithType(ctx context.Context, in *FindLatestIPLibraryWithTypeRequest, opts ...grpc.CallOption) (*FindLatestIPLibraryWithTypeResponse, error) {
out := new(FindLatestIPLibraryWithTypeResponse)
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/findLatestIPLibraryWithType", in, out, opts...)
@@ -1197,6 +1208,7 @@ func (c *iPLibraryServiceClient) FindLatestIPLibraryWithType(ctx context.Context
return out, nil
}
// Deprecated: Do not use.
func (c *iPLibraryServiceClient) FindEnabledIPLibrary(ctx context.Context, in *FindEnabledIPLibraryRequest, opts ...grpc.CallOption) (*FindEnabledIPLibraryResponse, error) {
out := new(FindEnabledIPLibraryResponse)
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/findEnabledIPLibrary", in, out, opts...)
@@ -1206,6 +1218,7 @@ func (c *iPLibraryServiceClient) FindEnabledIPLibrary(ctx context.Context, in *F
return out, nil
}
// Deprecated: Do not use.
func (c *iPLibraryServiceClient) FindAllEnabledIPLibrariesWithType(ctx context.Context, in *FindAllEnabledIPLibrariesWithTypeRequest, opts ...grpc.CallOption) (*FindAllEnabledIPLibrariesWithTypeResponse, error) {
out := new(FindAllEnabledIPLibrariesWithTypeResponse)
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/findAllEnabledIPLibrariesWithType", in, out, opts...)
@@ -1215,6 +1228,7 @@ func (c *iPLibraryServiceClient) FindAllEnabledIPLibrariesWithType(ctx context.C
return out, nil
}
// Deprecated: Do not use.
func (c *iPLibraryServiceClient) DeleteIPLibrary(ctx context.Context, in *DeleteIPLibraryRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/deleteIPLibrary", in, out, opts...)
@@ -1224,6 +1238,7 @@ func (c *iPLibraryServiceClient) DeleteIPLibrary(ctx context.Context, in *Delete
return out, nil
}
// Deprecated: Do not use.
func (c *iPLibraryServiceClient) LookupIPRegion(ctx context.Context, in *LookupIPRegionRequest, opts ...grpc.CallOption) (*LookupIPRegionResponse, error) {
out := new(LookupIPRegionResponse)
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/lookupIPRegion", in, out, opts...)
@@ -1233,6 +1248,7 @@ func (c *iPLibraryServiceClient) LookupIPRegion(ctx context.Context, in *LookupI
return out, nil
}
// Deprecated: Do not use.
func (c *iPLibraryServiceClient) LookupIPRegions(ctx context.Context, in *LookupIPRegionsRequest, opts ...grpc.CallOption) (*LookupIPRegionsResponse, error) {
out := new(LookupIPRegionsResponse)
err := c.cc.Invoke(ctx, "/pb.IPLibraryService/lookupIPRegions", in, out, opts...)
@@ -1244,18 +1260,25 @@ func (c *iPLibraryServiceClient) LookupIPRegions(ctx context.Context, in *Lookup
// IPLibraryServiceServer is the server API for IPLibraryService service.
type IPLibraryServiceServer interface {
// Deprecated: Do not use.
// 创建IP库
CreateIPLibrary(context.Context, *CreateIPLibraryRequest) (*CreateIPLibraryResponse, error)
// Deprecated: Do not use.
// 查找最新的IP库
FindLatestIPLibraryWithType(context.Context, *FindLatestIPLibraryWithTypeRequest) (*FindLatestIPLibraryWithTypeResponse, error)
// Deprecated: Do not use.
// 查找单个IP库
FindEnabledIPLibrary(context.Context, *FindEnabledIPLibraryRequest) (*FindEnabledIPLibraryResponse, error)
// Deprecated: Do not use.
// 列出某个类型的所有IP库
FindAllEnabledIPLibrariesWithType(context.Context, *FindAllEnabledIPLibrariesWithTypeRequest) (*FindAllEnabledIPLibrariesWithTypeResponse, error)
// Deprecated: Do not use.
// 删除IP库
DeleteIPLibrary(context.Context, *DeleteIPLibraryRequest) (*RPCSuccess, error)
// Deprecated: Do not use.
// 查询某个IP信息
LookupIPRegion(context.Context, *LookupIPRegionRequest) (*LookupIPRegionResponse, error)
// Deprecated: Do not use.
// 查询一组IP信息
LookupIPRegions(context.Context, *LookupIPRegionsRequest) (*LookupIPRegionsResponse, error)
}

File diff suppressed because it is too large Load Diff

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",

View File

@@ -121,14 +121,16 @@ type ListNSAccessLogsRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RequestId string `protobuf:"bytes,1,opt,name=requestId,proto3" json:"requestId,omitempty"` // 上一页请求ID可选
NsNodeId int64 `protobuf:"varint,2,opt,name=nsNodeId,proto3" json:"nsNodeId,omitempty"` // 节点ID
NsDomainId int64 `protobuf:"varint,3,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` // 域名ID
NsRecordId int64 `protobuf:"varint,4,opt,name=nsRecordId,proto3" json:"nsRecordId,omitempty"` // 记录ID
Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` // 单页条数
Day string `protobuf:"bytes,6,opt,name=day,proto3" json:"day,omitempty"` // 日期格式YYYYMMDD
Reverse bool `protobuf:"varint,7,opt,name=reverse,proto3" json:"reverse,omitempty"` // 是否反向查找,可选
Keyword string `protobuf:"bytes,8,opt,name=keyword,proto3" json:"keyword,omitempty"`
RequestId string `protobuf:"bytes,1,opt,name=requestId,proto3" json:"requestId,omitempty"` // 上一页请求ID可选
NsClusterId int64 `protobuf:"varint,9,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` // 集群
NsNodeId int64 `protobuf:"varint,2,opt,name=nsNodeId,proto3" json:"nsNodeId,omitempty"` // 节点ID
NsDomainId int64 `protobuf:"varint,3,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` // 域名ID
NsRecordId int64 `protobuf:"varint,4,opt,name=nsRecordId,proto3" json:"nsRecordId,omitempty"` // 记录ID
Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` // 单页条数
Day string `protobuf:"bytes,6,opt,name=day,proto3" json:"day,omitempty"` // 日期格式YYYYMMDD
Reverse bool `protobuf:"varint,7,opt,name=reverse,proto3" json:"reverse,omitempty"` // 是否反向查找,可选
Keyword string `protobuf:"bytes,8,opt,name=keyword,proto3" json:"keyword,omitempty"` // 关键词
RecordType string `protobuf:"bytes,10,opt,name=recordType,proto3" json:"recordType,omitempty"` // 记录类型
}
func (x *ListNSAccessLogsRequest) Reset() {
@@ -170,6 +172,13 @@ func (x *ListNSAccessLogsRequest) GetRequestId() string {
return ""
}
func (x *ListNSAccessLogsRequest) GetNsClusterId() int64 {
if x != nil {
return x.NsClusterId
}
return 0
}
func (x *ListNSAccessLogsRequest) GetNsNodeId() int64 {
if x != nil {
return x.NsNodeId
@@ -219,6 +228,13 @@ func (x *ListNSAccessLogsRequest) GetKeyword() string {
return ""
}
func (x *ListNSAccessLogsRequest) GetRecordType() string {
if x != nil {
return x.RecordType
}
return ""
}
type ListNSAccessLogsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -391,56 +407,60 @@ var file_service_ns_access_log_proto_rawDesc = []byte{
0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x0c, 0x6e, 0x73, 0x41, 0x63, 0x63, 0x65, 0x73,
0x73, 0x4c, 0x6f, 0x67, 0x73, 0x22, 0x1c, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e,
0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0xed, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x41, 0x63,
0x6e, 0x73, 0x65, 0x22, 0xaf, 0x02, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x41, 0x63,
0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a,
0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44,
0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e,
0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52,
0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e,
0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a,
0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x10, 0x0a,
0x03, 0x64, 0x61, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12,
0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08,
0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79,
0x77, 0x6f, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77,
0x6f, 0x72, 0x64, 0x22, 0x87, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x41, 0x63,
0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a,
0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01,
0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12,
0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e,
0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e,
0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73,
0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12,
0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x61,
0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01,
0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b,
0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65,
0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x54,
0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x63, 0x6f, 0x72,
0x64, 0x54, 0x79, 0x70, 0x65, 0x22, 0x87, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53,
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x33, 0x0a, 0x0c, 0x6e, 0x73, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f,
0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53,
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x0c, 0x6e, 0x73, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, 0x72, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, 0x72, 0x65, 0x22,
0x36, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c,
0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x4c, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x4e,
0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x31, 0x0a, 0x0b, 0x6e, 0x73, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f,
0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x0b, 0x6e, 0x73, 0x41, 0x63, 0x63, 0x65,
0x73, 0x73, 0x4c, 0x6f, 0x67, 0x32, 0x84, 0x02, 0x0a, 0x12, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65,
0x73, 0x73, 0x4c, 0x6f, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x12,
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f,
0x67, 0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53,
0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x4d, 0x0a, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73,
0x73, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e,
0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x41, 0x63,
0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x33, 0x0a, 0x0c, 0x6e, 0x73, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x41, 0x63,
0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x0c, 0x6e, 0x73, 0x41, 0x63, 0x63, 0x65, 0x73,
0x73, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, 0x72, 0x65, 0x18, 0x03,
0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, 0x72, 0x65, 0x22, 0x36, 0x0a,
0x16, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x49, 0x64, 0x22, 0x4c, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x31, 0x0a, 0x0b, 0x6e, 0x73, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x0b, 0x6e, 0x73, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x4c, 0x6f, 0x67, 0x32, 0x84, 0x02, 0x0a, 0x12, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x4c, 0x6f, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x63, 0x72,
0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73,
0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x41, 0x63,
0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x4d, 0x0a, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c,
0x6f, 0x67, 0x73, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65,
0x73, 0x73, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a,
0x0a, 0x0f, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f,
0x67, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x41, 0x63, 0x63,
0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c,
0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x12, 0x4a, 0x0a, 0x0f, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
0x4c, 0x6f, 0x67, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x41,
0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x41, 0x63, 0x63, 0x65, 0x73,
0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04,
0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (

File 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",

File diff suppressed because it is too large Load Diff

View File

@@ -219,49 +219,464 @@ func (x *FindEnabledRegionCityResponse) GetRegionCity() *RegionCity {
return nil
}
// 查找所有城市
type FindAllRegionCitiesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IncludeRegionProvince bool `protobuf:"varint,1,opt,name=includeRegionProvince,proto3" json:"includeRegionProvince,omitempty"`
}
func (x *FindAllRegionCitiesRequest) Reset() {
*x = FindAllRegionCitiesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_city_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionCitiesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionCitiesRequest) ProtoMessage() {}
func (x *FindAllRegionCitiesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_city_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionCitiesRequest.ProtoReflect.Descriptor instead.
func (*FindAllRegionCitiesRequest) Descriptor() ([]byte, []int) {
return file_service_region_city_proto_rawDescGZIP(), []int{4}
}
func (x *FindAllRegionCitiesRequest) GetIncludeRegionProvince() bool {
if x != nil {
return x.IncludeRegionProvince
}
return false
}
type FindAllRegionCitiesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCities []*RegionCity `protobuf:"bytes,1,rep,name=regionCities,proto3" json:"regionCities,omitempty"`
}
func (x *FindAllRegionCitiesResponse) Reset() {
*x = FindAllRegionCitiesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_city_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionCitiesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionCitiesResponse) ProtoMessage() {}
func (x *FindAllRegionCitiesResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_city_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionCitiesResponse.ProtoReflect.Descriptor instead.
func (*FindAllRegionCitiesResponse) Descriptor() ([]byte, []int) {
return file_service_region_city_proto_rawDescGZIP(), []int{5}
}
func (x *FindAllRegionCitiesResponse) GetRegionCities() []*RegionCity {
if x != nil {
return x.RegionCities
}
return nil
}
// 查找某个省份的所有城市
type FindAllRegionCitiesWithRegionProvinceIdRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionProvinceId int64 `protobuf:"varint,1,opt,name=regionProvinceId,proto3" json:"regionProvinceId,omitempty"`
}
func (x *FindAllRegionCitiesWithRegionProvinceIdRequest) Reset() {
*x = FindAllRegionCitiesWithRegionProvinceIdRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_city_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionCitiesWithRegionProvinceIdRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionCitiesWithRegionProvinceIdRequest) ProtoMessage() {}
func (x *FindAllRegionCitiesWithRegionProvinceIdRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_city_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionCitiesWithRegionProvinceIdRequest.ProtoReflect.Descriptor instead.
func (*FindAllRegionCitiesWithRegionProvinceIdRequest) Descriptor() ([]byte, []int) {
return file_service_region_city_proto_rawDescGZIP(), []int{6}
}
func (x *FindAllRegionCitiesWithRegionProvinceIdRequest) GetRegionProvinceId() int64 {
if x != nil {
return x.RegionProvinceId
}
return 0
}
type FindAllRegionCitiesWithRegionProvinceIdResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCities []*RegionCity `protobuf:"bytes,1,rep,name=regionCities,proto3" json:"regionCities,omitempty"`
}
func (x *FindAllRegionCitiesWithRegionProvinceIdResponse) Reset() {
*x = FindAllRegionCitiesWithRegionProvinceIdResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_city_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionCitiesWithRegionProvinceIdResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionCitiesWithRegionProvinceIdResponse) ProtoMessage() {}
func (x *FindAllRegionCitiesWithRegionProvinceIdResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_city_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionCitiesWithRegionProvinceIdResponse.ProtoReflect.Descriptor instead.
func (*FindAllRegionCitiesWithRegionProvinceIdResponse) Descriptor() ([]byte, []int) {
return file_service_region_city_proto_rawDescGZIP(), []int{7}
}
func (x *FindAllRegionCitiesWithRegionProvinceIdResponse) GetRegionCities() []*RegionCity {
if x != nil {
return x.RegionCities
}
return nil
}
// 查找单个城市信息
type FindRegionCityRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCityId int64 `protobuf:"varint,1,opt,name=regionCityId,proto3" json:"regionCityId,omitempty"`
}
func (x *FindRegionCityRequest) Reset() {
*x = FindRegionCityRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_city_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindRegionCityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionCityRequest) ProtoMessage() {}
func (x *FindRegionCityRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_city_proto_msgTypes[8]
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 FindRegionCityRequest.ProtoReflect.Descriptor instead.
func (*FindRegionCityRequest) Descriptor() ([]byte, []int) {
return file_service_region_city_proto_rawDescGZIP(), []int{8}
}
func (x *FindRegionCityRequest) GetRegionCityId() int64 {
if x != nil {
return x.RegionCityId
}
return 0
}
type FindRegionCityResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCity *RegionCity `protobuf:"bytes,1,opt,name=regionCity,proto3" json:"regionCity,omitempty"`
}
func (x *FindRegionCityResponse) Reset() {
*x = FindRegionCityResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_city_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindRegionCityResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionCityResponse) ProtoMessage() {}
func (x *FindRegionCityResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_city_proto_msgTypes[9]
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 FindRegionCityResponse.ProtoReflect.Descriptor instead.
func (*FindRegionCityResponse) Descriptor() ([]byte, []int) {
return file_service_region_city_proto_rawDescGZIP(), []int{9}
}
func (x *FindRegionCityResponse) GetRegionCity() *RegionCity {
if x != nil {
return x.RegionCity
}
return nil
}
// 修改城市定制信息
type UpdateRegionCityCustomRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCityId int64 `protobuf:"varint,1,opt,name=regionCityId,proto3" json:"regionCityId,omitempty"`
CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
}
func (x *UpdateRegionCityCustomRequest) Reset() {
*x = UpdateRegionCityCustomRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_city_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateRegionCityCustomRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateRegionCityCustomRequest) ProtoMessage() {}
func (x *UpdateRegionCityCustomRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_city_proto_msgTypes[10]
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 UpdateRegionCityCustomRequest.ProtoReflect.Descriptor instead.
func (*UpdateRegionCityCustomRequest) Descriptor() ([]byte, []int) {
return file_service_region_city_proto_rawDescGZIP(), []int{10}
}
func (x *UpdateRegionCityCustomRequest) GetRegionCityId() int64 {
if x != nil {
return x.RegionCityId
}
return 0
}
func (x *UpdateRegionCityCustomRequest) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *UpdateRegionCityCustomRequest) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
var File_service_region_city_proto protoreflect.FileDescriptor
var file_service_region_city_proto_rawDesc = []byte{
0x0a, 0x19, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x5f, 0x63, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a,
0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0x59, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x08, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x58, 0x0a, 0x22, 0x46, 0x69,
0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x59, 0x0a, 0x21, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x32, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69,
0x74, 0x69, 0x65, 0x73, 0x22, 0x42, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69,
0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64,
0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x34, 0x0a, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15,
0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f,
0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x58, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74,
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e,
0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x32, 0xde, 0x01, 0x0a, 0x11, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
0x6b, 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x25, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 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, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69,
0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x15,
0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x69, 0x74, 0x79, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45,
0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0c, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74,
0x79, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22,
0x42, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74,
0x79, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69,
0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x43, 0x69, 0x74, 0x79, 0x22, 0x52, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x34, 0x0a, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x08, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x51, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e,
0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x5c, 0x0a, 0x2e, 0x46,
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69,
0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a,
0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x2f, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73,
0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e,
0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0c,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69,
0x74, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73,
0x22, 0x3b, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69,
0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x48, 0x0a,
0x16, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62,
0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x22, 0x85, 0x01, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x43, 0x75, 0x73, 0x74,
0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1e, 0x0a,
0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a,
0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,
0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x32,
0xeb, 0x04, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x53, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74,
0x69, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74,
0x69, 0x65, 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, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x61, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69,
0x74, 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,
0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x56, 0x0a, 0x13, 0x66, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65,
0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x27, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x32,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x33, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x66, 0x69, 0x6e, 0x64, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46,
0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x43, 0x69, 0x74, 0x79, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79,
0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 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 (
@@ -276,26 +691,45 @@ func file_service_region_city_proto_rawDescGZIP() []byte {
return file_service_region_city_proto_rawDescData
}
var file_service_region_city_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_service_region_city_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_service_region_city_proto_goTypes = []interface{}{
(*FindAllEnabledRegionCitiesRequest)(nil), // 0: pb.FindAllEnabledRegionCitiesRequest
(*FindAllEnabledRegionCitiesResponse)(nil), // 1: pb.FindAllEnabledRegionCitiesResponse
(*FindEnabledRegionCityRequest)(nil), // 2: pb.FindEnabledRegionCityRequest
(*FindEnabledRegionCityResponse)(nil), // 3: pb.FindEnabledRegionCityResponse
(*RegionCity)(nil), // 4: pb.RegionCity
(*FindAllEnabledRegionCitiesRequest)(nil), // 0: pb.FindAllEnabledRegionCitiesRequest
(*FindAllEnabledRegionCitiesResponse)(nil), // 1: pb.FindAllEnabledRegionCitiesResponse
(*FindEnabledRegionCityRequest)(nil), // 2: pb.FindEnabledRegionCityRequest
(*FindEnabledRegionCityResponse)(nil), // 3: pb.FindEnabledRegionCityResponse
(*FindAllRegionCitiesRequest)(nil), // 4: pb.FindAllRegionCitiesRequest
(*FindAllRegionCitiesResponse)(nil), // 5: pb.FindAllRegionCitiesResponse
(*FindAllRegionCitiesWithRegionProvinceIdRequest)(nil), // 6: pb.FindAllRegionCitiesWithRegionProvinceIdRequest
(*FindAllRegionCitiesWithRegionProvinceIdResponse)(nil), // 7: pb.FindAllRegionCitiesWithRegionProvinceIdResponse
(*FindRegionCityRequest)(nil), // 8: pb.FindRegionCityRequest
(*FindRegionCityResponse)(nil), // 9: pb.FindRegionCityResponse
(*UpdateRegionCityCustomRequest)(nil), // 10: pb.UpdateRegionCityCustomRequest
(*RegionCity)(nil), // 11: pb.RegionCity
(*RPCSuccess)(nil), // 12: pb.RPCSuccess
}
var file_service_region_city_proto_depIdxs = []int32{
4, // 0: pb.FindAllEnabledRegionCitiesResponse.regionCities:type_name -> pb.RegionCity
4, // 1: pb.FindEnabledRegionCityResponse.regionCity:type_name -> pb.RegionCity
0, // 2: pb.RegionCityService.findAllEnabledRegionCities:input_type -> pb.FindAllEnabledRegionCitiesRequest
2, // 3: pb.RegionCityService.findEnabledRegionCity:input_type -> pb.FindEnabledRegionCityRequest
1, // 4: pb.RegionCityService.findAllEnabledRegionCities:output_type -> pb.FindAllEnabledRegionCitiesResponse
3, // 5: pb.RegionCityService.findEnabledRegionCity:output_type -> pb.FindEnabledRegionCityResponse
4, // [4:6] is the sub-list for method output_type
2, // [2:4] 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
11, // 0: pb.FindAllEnabledRegionCitiesResponse.regionCities:type_name -> pb.RegionCity
11, // 1: pb.FindEnabledRegionCityResponse.regionCity:type_name -> pb.RegionCity
11, // 2: pb.FindAllRegionCitiesResponse.regionCities:type_name -> pb.RegionCity
11, // 3: pb.FindAllRegionCitiesWithRegionProvinceIdResponse.regionCities:type_name -> pb.RegionCity
11, // 4: pb.FindRegionCityResponse.regionCity:type_name -> pb.RegionCity
0, // 5: pb.RegionCityService.findAllEnabledRegionCities:input_type -> pb.FindAllEnabledRegionCitiesRequest
2, // 6: pb.RegionCityService.findEnabledRegionCity:input_type -> pb.FindEnabledRegionCityRequest
4, // 7: pb.RegionCityService.findAllRegionCities:input_type -> pb.FindAllRegionCitiesRequest
6, // 8: pb.RegionCityService.findAllRegionCitiesWithRegionProvinceId:input_type -> pb.FindAllRegionCitiesWithRegionProvinceIdRequest
8, // 9: pb.RegionCityService.findRegionCity:input_type -> pb.FindRegionCityRequest
10, // 10: pb.RegionCityService.updateRegionCityCustom:input_type -> pb.UpdateRegionCityCustomRequest
1, // 11: pb.RegionCityService.findAllEnabledRegionCities:output_type -> pb.FindAllEnabledRegionCitiesResponse
3, // 12: pb.RegionCityService.findEnabledRegionCity:output_type -> pb.FindEnabledRegionCityResponse
5, // 13: pb.RegionCityService.findAllRegionCities:output_type -> pb.FindAllRegionCitiesResponse
7, // 14: pb.RegionCityService.findAllRegionCitiesWithRegionProvinceId:output_type -> pb.FindAllRegionCitiesWithRegionProvinceIdResponse
9, // 15: pb.RegionCityService.findRegionCity:output_type -> pb.FindRegionCityResponse
12, // 16: pb.RegionCityService.updateRegionCityCustom:output_type -> pb.RPCSuccess
11, // [11:17] is the sub-list for method output_type
5, // [5:11] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_service_region_city_proto_init() }
@@ -304,6 +738,7 @@ func file_service_region_city_proto_init() {
return
}
file_models_model_region_city_proto_init()
file_models_rpc_messages_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_region_city_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledRegionCitiesRequest); i {
@@ -353,6 +788,90 @@ func file_service_region_city_proto_init() {
return nil
}
}
file_service_region_city_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionCitiesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_city_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionCitiesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_city_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionCitiesWithRegionProvinceIdRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_city_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionCitiesWithRegionProvinceIdResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_city_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindRegionCityRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_city_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindRegionCityResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_city_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateRegionCityCustomRequest); 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{
@@ -360,7 +879,7 @@ func file_service_region_city_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_region_city_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumMessages: 11,
NumExtensions: 0,
NumServices: 1,
},
@@ -386,10 +905,20 @@ const _ = grpc.SupportPackageIsVersion6
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RegionCityServiceClient interface {
// Deprecated: Do not use.
// 查找所有城市
FindAllEnabledRegionCities(ctx context.Context, in *FindAllEnabledRegionCitiesRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionCitiesResponse, error)
// Deprecated: Do not use.
// 查找单个城市信息
FindEnabledRegionCity(ctx context.Context, in *FindEnabledRegionCityRequest, opts ...grpc.CallOption) (*FindEnabledRegionCityResponse, error)
// 查找所有城市
FindAllRegionCities(ctx context.Context, in *FindAllRegionCitiesRequest, opts ...grpc.CallOption) (*FindAllRegionCitiesResponse, error)
// 查找某个省份的所有城市
FindAllRegionCitiesWithRegionProvinceId(ctx context.Context, in *FindAllRegionCitiesWithRegionProvinceIdRequest, opts ...grpc.CallOption) (*FindAllRegionCitiesWithRegionProvinceIdResponse, error)
// 查找单个城市信息
FindRegionCity(ctx context.Context, in *FindRegionCityRequest, opts ...grpc.CallOption) (*FindRegionCityResponse, error)
// 修改城市定制信息
UpdateRegionCityCustom(ctx context.Context, in *UpdateRegionCityCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
}
type regionCityServiceClient struct {
@@ -400,6 +929,7 @@ func NewRegionCityServiceClient(cc grpc.ClientConnInterface) RegionCityServiceCl
return &regionCityServiceClient{cc}
}
// Deprecated: Do not use.
func (c *regionCityServiceClient) FindAllEnabledRegionCities(ctx context.Context, in *FindAllEnabledRegionCitiesRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionCitiesResponse, error) {
out := new(FindAllEnabledRegionCitiesResponse)
err := c.cc.Invoke(ctx, "/pb.RegionCityService/findAllEnabledRegionCities", in, out, opts...)
@@ -409,6 +939,7 @@ func (c *regionCityServiceClient) FindAllEnabledRegionCities(ctx context.Context
return out, nil
}
// Deprecated: Do not use.
func (c *regionCityServiceClient) FindEnabledRegionCity(ctx context.Context, in *FindEnabledRegionCityRequest, opts ...grpc.CallOption) (*FindEnabledRegionCityResponse, error) {
out := new(FindEnabledRegionCityResponse)
err := c.cc.Invoke(ctx, "/pb.RegionCityService/findEnabledRegionCity", in, out, opts...)
@@ -418,12 +949,58 @@ func (c *regionCityServiceClient) FindEnabledRegionCity(ctx context.Context, in
return out, nil
}
func (c *regionCityServiceClient) FindAllRegionCities(ctx context.Context, in *FindAllRegionCitiesRequest, opts ...grpc.CallOption) (*FindAllRegionCitiesResponse, error) {
out := new(FindAllRegionCitiesResponse)
err := c.cc.Invoke(ctx, "/pb.RegionCityService/findAllRegionCities", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionCityServiceClient) FindAllRegionCitiesWithRegionProvinceId(ctx context.Context, in *FindAllRegionCitiesWithRegionProvinceIdRequest, opts ...grpc.CallOption) (*FindAllRegionCitiesWithRegionProvinceIdResponse, error) {
out := new(FindAllRegionCitiesWithRegionProvinceIdResponse)
err := c.cc.Invoke(ctx, "/pb.RegionCityService/findAllRegionCitiesWithRegionProvinceId", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionCityServiceClient) FindRegionCity(ctx context.Context, in *FindRegionCityRequest, opts ...grpc.CallOption) (*FindRegionCityResponse, error) {
out := new(FindRegionCityResponse)
err := c.cc.Invoke(ctx, "/pb.RegionCityService/findRegionCity", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionCityServiceClient) UpdateRegionCityCustom(ctx context.Context, in *UpdateRegionCityCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.RegionCityService/updateRegionCityCustom", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RegionCityServiceServer is the server API for RegionCityService service.
type RegionCityServiceServer interface {
// Deprecated: Do not use.
// 查找所有城市
FindAllEnabledRegionCities(context.Context, *FindAllEnabledRegionCitiesRequest) (*FindAllEnabledRegionCitiesResponse, error)
// Deprecated: Do not use.
// 查找单个城市信息
FindEnabledRegionCity(context.Context, *FindEnabledRegionCityRequest) (*FindEnabledRegionCityResponse, error)
// 查找所有城市
FindAllRegionCities(context.Context, *FindAllRegionCitiesRequest) (*FindAllRegionCitiesResponse, error)
// 查找某个省份的所有城市
FindAllRegionCitiesWithRegionProvinceId(context.Context, *FindAllRegionCitiesWithRegionProvinceIdRequest) (*FindAllRegionCitiesWithRegionProvinceIdResponse, error)
// 查找单个城市信息
FindRegionCity(context.Context, *FindRegionCityRequest) (*FindRegionCityResponse, error)
// 修改城市定制信息
UpdateRegionCityCustom(context.Context, *UpdateRegionCityCustomRequest) (*RPCSuccess, error)
}
// UnimplementedRegionCityServiceServer can be embedded to have forward compatible implementations.
@@ -436,6 +1013,18 @@ func (*UnimplementedRegionCityServiceServer) FindAllEnabledRegionCities(context.
func (*UnimplementedRegionCityServiceServer) FindEnabledRegionCity(context.Context, *FindEnabledRegionCityRequest) (*FindEnabledRegionCityResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledRegionCity not implemented")
}
func (*UnimplementedRegionCityServiceServer) FindAllRegionCities(context.Context, *FindAllRegionCitiesRequest) (*FindAllRegionCitiesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionCities not implemented")
}
func (*UnimplementedRegionCityServiceServer) FindAllRegionCitiesWithRegionProvinceId(context.Context, *FindAllRegionCitiesWithRegionProvinceIdRequest) (*FindAllRegionCitiesWithRegionProvinceIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionCitiesWithRegionProvinceId not implemented")
}
func (*UnimplementedRegionCityServiceServer) FindRegionCity(context.Context, *FindRegionCityRequest) (*FindRegionCityResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindRegionCity not implemented")
}
func (*UnimplementedRegionCityServiceServer) UpdateRegionCityCustom(context.Context, *UpdateRegionCityCustomRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateRegionCityCustom not implemented")
}
func RegisterRegionCityServiceServer(s *grpc.Server, srv RegionCityServiceServer) {
s.RegisterService(&_RegionCityService_serviceDesc, srv)
@@ -477,6 +1066,78 @@ func _RegionCityService_FindEnabledRegionCity_Handler(srv interface{}, ctx conte
return interceptor(ctx, in, info, handler)
}
func _RegionCityService_FindAllRegionCities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllRegionCitiesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionCityServiceServer).FindAllRegionCities(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionCityService/FindAllRegionCities",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionCityServiceServer).FindAllRegionCities(ctx, req.(*FindAllRegionCitiesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionCityService_FindAllRegionCitiesWithRegionProvinceId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllRegionCitiesWithRegionProvinceIdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionCityServiceServer).FindAllRegionCitiesWithRegionProvinceId(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionCityService/FindAllRegionCitiesWithRegionProvinceId",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionCityServiceServer).FindAllRegionCitiesWithRegionProvinceId(ctx, req.(*FindAllRegionCitiesWithRegionProvinceIdRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionCityService_FindRegionCity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindRegionCityRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionCityServiceServer).FindRegionCity(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionCityService/FindRegionCity",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionCityServiceServer).FindRegionCity(ctx, req.(*FindRegionCityRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionCityService_UpdateRegionCityCustom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateRegionCityCustomRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionCityServiceServer).UpdateRegionCityCustom(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionCityService/UpdateRegionCityCustom",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionCityServiceServer).UpdateRegionCityCustom(ctx, req.(*UpdateRegionCityCustomRequest))
}
return interceptor(ctx, in, info, handler)
}
var _RegionCityService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.RegionCityService",
HandlerType: (*RegionCityServiceServer)(nil),
@@ -489,6 +1150,22 @@ var _RegionCityService_serviceDesc = grpc.ServiceDesc{
MethodName: "findEnabledRegionCity",
Handler: _RegionCityService_FindEnabledRegionCity_Handler,
},
{
MethodName: "findAllRegionCities",
Handler: _RegionCityService_FindAllRegionCities_Handler,
},
{
MethodName: "findAllRegionCitiesWithRegionProvinceId",
Handler: _RegionCityService_FindAllRegionCitiesWithRegionProvinceId_Handler,
},
{
MethodName: "findRegionCity",
Handler: _RegionCityService_FindRegionCity_Handler,
},
{
MethodName: "updateRegionCityCustom",
Handler: _RegionCityService_UpdateRegionCityCustom_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_region_city.proto",

View File

@@ -29,7 +29,7 @@ const (
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// 查找所有的国家列表
// 查找所有的国家/地区列表
type FindAllEnabledRegionCountriesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -115,7 +115,7 @@ func (x *FindAllEnabledRegionCountriesResponse) GetRegionCountries() []*RegionCo
return nil
}
// 查找单个国家信息
// 查找单个国家/地区信息
type FindEnabledRegionCountryRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -210,6 +210,251 @@ func (x *FindEnabledRegionCountryResponse) GetRegionCountry() *RegionCountry {
return nil
}
// 查找所有的国家/地区列表
type FindAllRegionCountriesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *FindAllRegionCountriesRequest) Reset() {
*x = FindAllRegionCountriesRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_country_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionCountriesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionCountriesRequest) ProtoMessage() {}
func (x *FindAllRegionCountriesRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionCountriesRequest.ProtoReflect.Descriptor instead.
func (*FindAllRegionCountriesRequest) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{4}
}
type FindAllRegionCountriesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCountries []*RegionCountry `protobuf:"bytes,1,rep,name=regionCountries,proto3" json:"regionCountries,omitempty"`
}
func (x *FindAllRegionCountriesResponse) Reset() {
*x = FindAllRegionCountriesResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_country_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionCountriesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionCountriesResponse) ProtoMessage() {}
func (x *FindAllRegionCountriesResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionCountriesResponse.ProtoReflect.Descriptor instead.
func (*FindAllRegionCountriesResponse) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{5}
}
func (x *FindAllRegionCountriesResponse) GetRegionCountries() []*RegionCountry {
if x != nil {
return x.RegionCountries
}
return nil
}
// 查找单个国家/地区信息
type FindRegionCountryRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCountryId int64 `protobuf:"varint,1,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"`
}
func (x *FindRegionCountryRequest) Reset() {
*x = FindRegionCountryRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_country_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindRegionCountryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionCountryRequest) ProtoMessage() {}
func (x *FindRegionCountryRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindRegionCountryRequest.ProtoReflect.Descriptor instead.
func (*FindRegionCountryRequest) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{6}
}
func (x *FindRegionCountryRequest) GetRegionCountryId() int64 {
if x != nil {
return x.RegionCountryId
}
return 0
}
type FindRegionCountryResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCountry *RegionCountry `protobuf:"bytes,1,opt,name=regionCountry,proto3" json:"regionCountry,omitempty"`
}
func (x *FindRegionCountryResponse) Reset() {
*x = FindRegionCountryResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_country_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindRegionCountryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionCountryResponse) ProtoMessage() {}
func (x *FindRegionCountryResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindRegionCountryResponse.ProtoReflect.Descriptor instead.
func (*FindRegionCountryResponse) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{7}
}
func (x *FindRegionCountryResponse) GetRegionCountry() *RegionCountry {
if x != nil {
return x.RegionCountry
}
return nil
}
// 修改国家/地区定制信息
type UpdateRegionCountryCustomRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCountryId int64 `protobuf:"varint,1,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"`
CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
}
func (x *UpdateRegionCountryCustomRequest) Reset() {
*x = UpdateRegionCountryCustomRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_country_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateRegionCountryCustomRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateRegionCountryCustomRequest) ProtoMessage() {}
func (x *UpdateRegionCountryCustomRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_country_proto_msgTypes[8]
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 UpdateRegionCountryCustomRequest.ProtoReflect.Descriptor instead.
func (*UpdateRegionCountryCustomRequest) Descriptor() ([]byte, []int) {
return file_service_region_country_proto_rawDescGZIP(), []int{8}
}
func (x *UpdateRegionCountryCustomRequest) GetRegionCountryId() int64 {
if x != nil {
return x.RegionCountryId
}
return 0
}
func (x *UpdateRegionCountryCustomRequest) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *UpdateRegionCountryCustomRequest) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
var File_service_region_country_proto protoreflect.FileDescriptor
var file_service_region_country_proto_rawDesc = []byte{
@@ -217,43 +462,88 @@ var file_service_region_country_proto_rawDesc = []byte{
0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02,
0x70, 0x62, 0x1a, 0x21, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x64, 0x0a,
0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70,
0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x26, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x64, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x4b,
0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x20, 0x46,
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x37, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x1f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5d, 0x0a, 0x1e, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72,
0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x44, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x22, 0x54,
0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e,
0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x72, 0x79, 0x22, 0x8e, 0x01, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x75, 0x73, 0x74,
0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72,
0x79, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64,
0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d,
0x43, 0x6f, 0x64, 0x65, 0x73, 0x32, 0x83, 0x04, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x79,
0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12,
0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69,
0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46,
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x6a, 0x0a, 0x18, 0x66, 0x69, 0x6e,
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e,
0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12,
0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x11, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x79, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72,
0x69, 0x65, 0x73, 0x22, 0x4b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64,
0x22, 0x5b, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62,
0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x32, 0xf3, 0x01,
0x0a, 0x14, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x74, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18,
0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 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, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1c, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46,
0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61,
0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43,
0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x75,
0x73, 0x74, 0x6f, 0x6d, 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 (
@@ -268,26 +558,40 @@ func file_service_region_country_proto_rawDescGZIP() []byte {
return file_service_region_country_proto_rawDescData
}
var file_service_region_country_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_service_region_country_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_service_region_country_proto_goTypes = []interface{}{
(*FindAllEnabledRegionCountriesRequest)(nil), // 0: pb.FindAllEnabledRegionCountriesRequest
(*FindAllEnabledRegionCountriesResponse)(nil), // 1: pb.FindAllEnabledRegionCountriesResponse
(*FindEnabledRegionCountryRequest)(nil), // 2: pb.FindEnabledRegionCountryRequest
(*FindEnabledRegionCountryResponse)(nil), // 3: pb.FindEnabledRegionCountryResponse
(*RegionCountry)(nil), // 4: pb.RegionCountry
(*FindAllRegionCountriesRequest)(nil), // 4: pb.FindAllRegionCountriesRequest
(*FindAllRegionCountriesResponse)(nil), // 5: pb.FindAllRegionCountriesResponse
(*FindRegionCountryRequest)(nil), // 6: pb.FindRegionCountryRequest
(*FindRegionCountryResponse)(nil), // 7: pb.FindRegionCountryResponse
(*UpdateRegionCountryCustomRequest)(nil), // 8: pb.UpdateRegionCountryCustomRequest
(*RegionCountry)(nil), // 9: pb.RegionCountry
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
}
var file_service_region_country_proto_depIdxs = []int32{
4, // 0: pb.FindAllEnabledRegionCountriesResponse.regionCountries:type_name -> pb.RegionCountry
4, // 1: pb.FindEnabledRegionCountryResponse.regionCountry:type_name -> pb.RegionCountry
0, // 2: pb.RegionCountryService.findAllEnabledRegionCountries:input_type -> pb.FindAllEnabledRegionCountriesRequest
2, // 3: pb.RegionCountryService.findEnabledRegionCountry:input_type -> pb.FindEnabledRegionCountryRequest
1, // 4: pb.RegionCountryService.findAllEnabledRegionCountries:output_type -> pb.FindAllEnabledRegionCountriesResponse
3, // 5: pb.RegionCountryService.findEnabledRegionCountry:output_type -> pb.FindEnabledRegionCountryResponse
4, // [4:6] is the sub-list for method output_type
2, // [2:4] 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
9, // 0: pb.FindAllEnabledRegionCountriesResponse.regionCountries:type_name -> pb.RegionCountry
9, // 1: pb.FindEnabledRegionCountryResponse.regionCountry:type_name -> pb.RegionCountry
9, // 2: pb.FindAllRegionCountriesResponse.regionCountries:type_name -> pb.RegionCountry
9, // 3: pb.FindRegionCountryResponse.regionCountry:type_name -> pb.RegionCountry
0, // 4: pb.RegionCountryService.findAllEnabledRegionCountries:input_type -> pb.FindAllEnabledRegionCountriesRequest
2, // 5: pb.RegionCountryService.findEnabledRegionCountry:input_type -> pb.FindEnabledRegionCountryRequest
4, // 6: pb.RegionCountryService.findAllRegionCountries:input_type -> pb.FindAllRegionCountriesRequest
6, // 7: pb.RegionCountryService.findRegionCountry:input_type -> pb.FindRegionCountryRequest
8, // 8: pb.RegionCountryService.updateRegionCountryCustom:input_type -> pb.UpdateRegionCountryCustomRequest
1, // 9: pb.RegionCountryService.findAllEnabledRegionCountries:output_type -> pb.FindAllEnabledRegionCountriesResponse
3, // 10: pb.RegionCountryService.findEnabledRegionCountry:output_type -> pb.FindEnabledRegionCountryResponse
5, // 11: pb.RegionCountryService.findAllRegionCountries:output_type -> pb.FindAllRegionCountriesResponse
7, // 12: pb.RegionCountryService.findRegionCountry:output_type -> pb.FindRegionCountryResponse
10, // 13: pb.RegionCountryService.updateRegionCountryCustom:output_type -> pb.RPCSuccess
9, // [9:14] is the sub-list for method output_type
4, // [4:9] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_service_region_country_proto_init() }
@@ -296,6 +600,7 @@ func file_service_region_country_proto_init() {
return
}
file_models_model_region_country_proto_init()
file_models_rpc_messages_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_region_country_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledRegionCountriesRequest); i {
@@ -345,6 +650,66 @@ func file_service_region_country_proto_init() {
return nil
}
}
file_service_region_country_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionCountriesRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_country_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionCountriesResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_country_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindRegionCountryRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_country_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindRegionCountryResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_country_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateRegionCountryCustomRequest); 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{
@@ -352,7 +717,7 @@ func file_service_region_country_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_region_country_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
@@ -378,10 +743,18 @@ const _ = grpc.SupportPackageIsVersion6
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RegionCountryServiceClient interface {
// 查找所有的国家列表
// Deprecated: Do not use.
// 查找所有的国家/地区列表
FindAllEnabledRegionCountries(ctx context.Context, in *FindAllEnabledRegionCountriesRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionCountriesResponse, error)
// 查找单个国家信息
// Deprecated: Do not use.
// 查找单个国家/地区信息
FindEnabledRegionCountry(ctx context.Context, in *FindEnabledRegionCountryRequest, opts ...grpc.CallOption) (*FindEnabledRegionCountryResponse, error)
// 查找所有的国家/地区列表
FindAllRegionCountries(ctx context.Context, in *FindAllRegionCountriesRequest, opts ...grpc.CallOption) (*FindAllRegionCountriesResponse, error)
// 查找单个国家/地区信息
FindRegionCountry(ctx context.Context, in *FindRegionCountryRequest, opts ...grpc.CallOption) (*FindRegionCountryResponse, error)
// 修改国家/地区定制信息
UpdateRegionCountryCustom(ctx context.Context, in *UpdateRegionCountryCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
}
type regionCountryServiceClient struct {
@@ -392,6 +765,7 @@ func NewRegionCountryServiceClient(cc grpc.ClientConnInterface) RegionCountrySer
return &regionCountryServiceClient{cc}
}
// Deprecated: Do not use.
func (c *regionCountryServiceClient) FindAllEnabledRegionCountries(ctx context.Context, in *FindAllEnabledRegionCountriesRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionCountriesResponse, error) {
out := new(FindAllEnabledRegionCountriesResponse)
err := c.cc.Invoke(ctx, "/pb.RegionCountryService/findAllEnabledRegionCountries", in, out, opts...)
@@ -401,6 +775,7 @@ func (c *regionCountryServiceClient) FindAllEnabledRegionCountries(ctx context.C
return out, nil
}
// Deprecated: Do not use.
func (c *regionCountryServiceClient) FindEnabledRegionCountry(ctx context.Context, in *FindEnabledRegionCountryRequest, opts ...grpc.CallOption) (*FindEnabledRegionCountryResponse, error) {
out := new(FindEnabledRegionCountryResponse)
err := c.cc.Invoke(ctx, "/pb.RegionCountryService/findEnabledRegionCountry", in, out, opts...)
@@ -410,12 +785,47 @@ func (c *regionCountryServiceClient) FindEnabledRegionCountry(ctx context.Contex
return out, nil
}
func (c *regionCountryServiceClient) FindAllRegionCountries(ctx context.Context, in *FindAllRegionCountriesRequest, opts ...grpc.CallOption) (*FindAllRegionCountriesResponse, error) {
out := new(FindAllRegionCountriesResponse)
err := c.cc.Invoke(ctx, "/pb.RegionCountryService/findAllRegionCountries", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionCountryServiceClient) FindRegionCountry(ctx context.Context, in *FindRegionCountryRequest, opts ...grpc.CallOption) (*FindRegionCountryResponse, error) {
out := new(FindRegionCountryResponse)
err := c.cc.Invoke(ctx, "/pb.RegionCountryService/findRegionCountry", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionCountryServiceClient) UpdateRegionCountryCustom(ctx context.Context, in *UpdateRegionCountryCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.RegionCountryService/updateRegionCountryCustom", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RegionCountryServiceServer is the server API for RegionCountryService service.
type RegionCountryServiceServer interface {
// 查找所有的国家列表
// Deprecated: Do not use.
// 查找所有的国家/地区列表
FindAllEnabledRegionCountries(context.Context, *FindAllEnabledRegionCountriesRequest) (*FindAllEnabledRegionCountriesResponse, error)
// 查找单个国家信息
// Deprecated: Do not use.
// 查找单个国家/地区信息
FindEnabledRegionCountry(context.Context, *FindEnabledRegionCountryRequest) (*FindEnabledRegionCountryResponse, error)
// 查找所有的国家/地区列表
FindAllRegionCountries(context.Context, *FindAllRegionCountriesRequest) (*FindAllRegionCountriesResponse, error)
// 查找单个国家/地区信息
FindRegionCountry(context.Context, *FindRegionCountryRequest) (*FindRegionCountryResponse, error)
// 修改国家/地区定制信息
UpdateRegionCountryCustom(context.Context, *UpdateRegionCountryCustomRequest) (*RPCSuccess, error)
}
// UnimplementedRegionCountryServiceServer can be embedded to have forward compatible implementations.
@@ -428,6 +838,15 @@ func (*UnimplementedRegionCountryServiceServer) FindAllEnabledRegionCountries(co
func (*UnimplementedRegionCountryServiceServer) FindEnabledRegionCountry(context.Context, *FindEnabledRegionCountryRequest) (*FindEnabledRegionCountryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledRegionCountry not implemented")
}
func (*UnimplementedRegionCountryServiceServer) FindAllRegionCountries(context.Context, *FindAllRegionCountriesRequest) (*FindAllRegionCountriesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionCountries not implemented")
}
func (*UnimplementedRegionCountryServiceServer) FindRegionCountry(context.Context, *FindRegionCountryRequest) (*FindRegionCountryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindRegionCountry not implemented")
}
func (*UnimplementedRegionCountryServiceServer) UpdateRegionCountryCustom(context.Context, *UpdateRegionCountryCustomRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateRegionCountryCustom not implemented")
}
func RegisterRegionCountryServiceServer(s *grpc.Server, srv RegionCountryServiceServer) {
s.RegisterService(&_RegionCountryService_serviceDesc, srv)
@@ -469,6 +888,60 @@ func _RegionCountryService_FindEnabledRegionCountry_Handler(srv interface{}, ctx
return interceptor(ctx, in, info, handler)
}
func _RegionCountryService_FindAllRegionCountries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllRegionCountriesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionCountryServiceServer).FindAllRegionCountries(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionCountryService/FindAllRegionCountries",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionCountryServiceServer).FindAllRegionCountries(ctx, req.(*FindAllRegionCountriesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionCountryService_FindRegionCountry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindRegionCountryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionCountryServiceServer).FindRegionCountry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionCountryService/FindRegionCountry",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionCountryServiceServer).FindRegionCountry(ctx, req.(*FindRegionCountryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionCountryService_UpdateRegionCountryCustom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateRegionCountryCustomRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionCountryServiceServer).UpdateRegionCountryCustom(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionCountryService/UpdateRegionCountryCustom",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionCountryServiceServer).UpdateRegionCountryCustom(ctx, req.(*UpdateRegionCountryCustomRequest))
}
return interceptor(ctx, in, info, handler)
}
var _RegionCountryService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.RegionCountryService",
HandlerType: (*RegionCountryServiceServer)(nil),
@@ -481,6 +954,18 @@ var _RegionCountryService_serviceDesc = grpc.ServiceDesc{
MethodName: "findEnabledRegionCountry",
Handler: _RegionCountryService_FindEnabledRegionCountry_Handler,
},
{
MethodName: "findAllRegionCountries",
Handler: _RegionCountryService_FindAllRegionCountries_Handler,
},
{
MethodName: "findRegionCountry",
Handler: _RegionCountryService_FindRegionCountry_Handler,
},
{
MethodName: "updateRegionCountryCustom",
Handler: _RegionCountryService_UpdateRegionCountryCustom_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_region_country.proto",

View File

@@ -210,6 +210,251 @@ func (x *FindEnabledRegionProviderResponse) GetRegionProvider() *RegionProvider
return nil
}
// 查找所有ISP
type FindAllRegionProvidersRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *FindAllRegionProvidersRequest) Reset() {
*x = FindAllRegionProvidersRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_provider_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionProvidersRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionProvidersRequest) ProtoMessage() {}
func (x *FindAllRegionProvidersRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_provider_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionProvidersRequest.ProtoReflect.Descriptor instead.
func (*FindAllRegionProvidersRequest) Descriptor() ([]byte, []int) {
return file_service_region_provider_proto_rawDescGZIP(), []int{4}
}
type FindAllRegionProvidersResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionProviders []*RegionProvider `protobuf:"bytes,1,rep,name=regionProviders,proto3" json:"regionProviders,omitempty"`
}
func (x *FindAllRegionProvidersResponse) Reset() {
*x = FindAllRegionProvidersResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_provider_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionProvidersResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionProvidersResponse) ProtoMessage() {}
func (x *FindAllRegionProvidersResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_provider_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionProvidersResponse.ProtoReflect.Descriptor instead.
func (*FindAllRegionProvidersResponse) Descriptor() ([]byte, []int) {
return file_service_region_provider_proto_rawDescGZIP(), []int{5}
}
func (x *FindAllRegionProvidersResponse) GetRegionProviders() []*RegionProvider {
if x != nil {
return x.RegionProviders
}
return nil
}
// 查找单个ISP信息
type FindRegionProviderRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionProviderId int64 `protobuf:"varint,1,opt,name=regionProviderId,proto3" json:"regionProviderId,omitempty"`
}
func (x *FindRegionProviderRequest) Reset() {
*x = FindRegionProviderRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_provider_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindRegionProviderRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionProviderRequest) ProtoMessage() {}
func (x *FindRegionProviderRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_provider_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindRegionProviderRequest.ProtoReflect.Descriptor instead.
func (*FindRegionProviderRequest) Descriptor() ([]byte, []int) {
return file_service_region_provider_proto_rawDescGZIP(), []int{6}
}
func (x *FindRegionProviderRequest) GetRegionProviderId() int64 {
if x != nil {
return x.RegionProviderId
}
return 0
}
type FindRegionProviderResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionProvider *RegionProvider `protobuf:"bytes,1,opt,name=regionProvider,proto3" json:"regionProvider,omitempty"`
}
func (x *FindRegionProviderResponse) Reset() {
*x = FindRegionProviderResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_provider_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindRegionProviderResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionProviderResponse) ProtoMessage() {}
func (x *FindRegionProviderResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_provider_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindRegionProviderResponse.ProtoReflect.Descriptor instead.
func (*FindRegionProviderResponse) Descriptor() ([]byte, []int) {
return file_service_region_provider_proto_rawDescGZIP(), []int{7}
}
func (x *FindRegionProviderResponse) GetRegionProvider() *RegionProvider {
if x != nil {
return x.RegionProvider
}
return nil
}
// 修改ISP定制信息
type UpdateRegionProviderCustomRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionProviderId int64 `protobuf:"varint,1,opt,name=regionProviderId,proto3" json:"regionProviderId,omitempty"`
CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
}
func (x *UpdateRegionProviderCustomRequest) Reset() {
*x = UpdateRegionProviderCustomRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_provider_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateRegionProviderCustomRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateRegionProviderCustomRequest) ProtoMessage() {}
func (x *UpdateRegionProviderCustomRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_provider_proto_msgTypes[8]
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 UpdateRegionProviderCustomRequest.ProtoReflect.Descriptor instead.
func (*UpdateRegionProviderCustomRequest) Descriptor() ([]byte, []int) {
return file_service_region_provider_proto_rawDescGZIP(), []int{8}
}
func (x *UpdateRegionProviderCustomRequest) GetRegionProviderId() int64 {
if x != nil {
return x.RegionProviderId
}
return 0
}
func (x *UpdateRegionProviderCustomRequest) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *UpdateRegionProviderCustomRequest) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
var File_service_region_provider_proto protoreflect.FileDescriptor
var file_service_region_provider_proto_rawDesc = []byte{
@@ -217,44 +462,90 @@ var file_service_region_provider_proto_rawDesc = []byte{
0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x02, 0x70, 0x62, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f,
0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0x26, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x65, 0x0a, 0x25, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70,
0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72,
0x73, 0x22, 0x4e, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49,
0x64, 0x22, 0x5f, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12,
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12,
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x73, 0x22, 0x47, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x22, 0x58, 0x0a, 0x1a,
0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64,
0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x91, 0x01, 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, 0x74,
0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43,
0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74,
0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75,
0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74,
0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63,
0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x32, 0x8c, 0x04, 0x0a, 0x15, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x12, 0x79, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22,
0x65, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0x4e, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x32, 0xf7, 0x01, 0x0a, 0x15, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x12, 0x74, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x72, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70,
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x45,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x64, 0x65, 0x72, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e,
0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12,
0x6d, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x24, 0x2e, 0x70,
0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5f,
0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x53, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f,
0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x1a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x75, 0x73, 0x74,
0x6f, 0x6d, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x75, 0x73, 0x74,
0x6f, 0x6d, 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 (
@@ -269,26 +560,40 @@ func file_service_region_provider_proto_rawDescGZIP() []byte {
return file_service_region_provider_proto_rawDescData
}
var file_service_region_provider_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_service_region_provider_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_service_region_provider_proto_goTypes = []interface{}{
(*FindAllEnabledRegionProvidersRequest)(nil), // 0: pb.FindAllEnabledRegionProvidersRequest
(*FindAllEnabledRegionProvidersResponse)(nil), // 1: pb.FindAllEnabledRegionProvidersResponse
(*FindEnabledRegionProviderRequest)(nil), // 2: pb.FindEnabledRegionProviderRequest
(*FindEnabledRegionProviderResponse)(nil), // 3: pb.FindEnabledRegionProviderResponse
(*RegionProvider)(nil), // 4: pb.RegionProvider
(*FindAllRegionProvidersRequest)(nil), // 4: pb.FindAllRegionProvidersRequest
(*FindAllRegionProvidersResponse)(nil), // 5: pb.FindAllRegionProvidersResponse
(*FindRegionProviderRequest)(nil), // 6: pb.FindRegionProviderRequest
(*FindRegionProviderResponse)(nil), // 7: pb.FindRegionProviderResponse
(*UpdateRegionProviderCustomRequest)(nil), // 8: pb.UpdateRegionProviderCustomRequest
(*RegionProvider)(nil), // 9: pb.RegionProvider
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
}
var file_service_region_provider_proto_depIdxs = []int32{
4, // 0: pb.FindAllEnabledRegionProvidersResponse.regionProviders:type_name -> pb.RegionProvider
4, // 1: pb.FindEnabledRegionProviderResponse.regionProvider:type_name -> pb.RegionProvider
0, // 2: pb.RegionProviderService.findAllEnabledRegionProviders:input_type -> pb.FindAllEnabledRegionProvidersRequest
2, // 3: pb.RegionProviderService.findEnabledRegionProvider:input_type -> pb.FindEnabledRegionProviderRequest
1, // 4: pb.RegionProviderService.findAllEnabledRegionProviders:output_type -> pb.FindAllEnabledRegionProvidersResponse
3, // 5: pb.RegionProviderService.findEnabledRegionProvider:output_type -> pb.FindEnabledRegionProviderResponse
4, // [4:6] is the sub-list for method output_type
2, // [2:4] 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
9, // 0: pb.FindAllEnabledRegionProvidersResponse.regionProviders:type_name -> pb.RegionProvider
9, // 1: pb.FindEnabledRegionProviderResponse.regionProvider:type_name -> pb.RegionProvider
9, // 2: pb.FindAllRegionProvidersResponse.regionProviders:type_name -> pb.RegionProvider
9, // 3: pb.FindRegionProviderResponse.regionProvider:type_name -> pb.RegionProvider
0, // 4: pb.RegionProviderService.findAllEnabledRegionProviders:input_type -> pb.FindAllEnabledRegionProvidersRequest
2, // 5: pb.RegionProviderService.findEnabledRegionProvider:input_type -> pb.FindEnabledRegionProviderRequest
4, // 6: pb.RegionProviderService.findAllRegionProviders:input_type -> pb.FindAllRegionProvidersRequest
6, // 7: pb.RegionProviderService.findRegionProvider:input_type -> pb.FindRegionProviderRequest
8, // 8: pb.RegionProviderService.updateRegionProviderCustom:input_type -> pb.UpdateRegionProviderCustomRequest
1, // 9: pb.RegionProviderService.findAllEnabledRegionProviders:output_type -> pb.FindAllEnabledRegionProvidersResponse
3, // 10: pb.RegionProviderService.findEnabledRegionProvider:output_type -> pb.FindEnabledRegionProviderResponse
5, // 11: pb.RegionProviderService.findAllRegionProviders:output_type -> pb.FindAllRegionProvidersResponse
7, // 12: pb.RegionProviderService.findRegionProvider:output_type -> pb.FindRegionProviderResponse
10, // 13: pb.RegionProviderService.updateRegionProviderCustom:output_type -> pb.RPCSuccess
9, // [9:14] is the sub-list for method output_type
4, // [4:9] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_service_region_provider_proto_init() }
@@ -297,6 +602,7 @@ func file_service_region_provider_proto_init() {
return
}
file_models_model_region_provider_proto_init()
file_models_rpc_messages_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_region_provider_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledRegionProvidersRequest); i {
@@ -346,6 +652,66 @@ func file_service_region_provider_proto_init() {
return nil
}
}
file_service_region_provider_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionProvidersRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_provider_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionProvidersResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_provider_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindRegionProviderRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_provider_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindRegionProviderResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_provider_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateRegionProviderCustomRequest); 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{
@@ -353,7 +719,7 @@ func file_service_region_provider_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_region_provider_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
@@ -379,10 +745,18 @@ const _ = grpc.SupportPackageIsVersion6
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RegionProviderServiceClient interface {
// Deprecated: Do not use.
// 查找所有ISP
FindAllEnabledRegionProviders(ctx context.Context, in *FindAllEnabledRegionProvidersRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionProvidersResponse, error)
// Deprecated: Do not use.
// 查找单个ISP信息
FindEnabledRegionProvider(ctx context.Context, in *FindEnabledRegionProviderRequest, opts ...grpc.CallOption) (*FindEnabledRegionProviderResponse, error)
// 查找所有ISP
FindAllRegionProviders(ctx context.Context, in *FindAllRegionProvidersRequest, opts ...grpc.CallOption) (*FindAllRegionProvidersResponse, error)
// 查找单个ISP信息
FindRegionProvider(ctx context.Context, in *FindRegionProviderRequest, opts ...grpc.CallOption) (*FindRegionProviderResponse, error)
// 修改ISP定制信息
UpdateRegionProviderCustom(ctx context.Context, in *UpdateRegionProviderCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
}
type regionProviderServiceClient struct {
@@ -393,6 +767,7 @@ func NewRegionProviderServiceClient(cc grpc.ClientConnInterface) RegionProviderS
return &regionProviderServiceClient{cc}
}
// Deprecated: Do not use.
func (c *regionProviderServiceClient) FindAllEnabledRegionProviders(ctx context.Context, in *FindAllEnabledRegionProvidersRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionProvidersResponse, error) {
out := new(FindAllEnabledRegionProvidersResponse)
err := c.cc.Invoke(ctx, "/pb.RegionProviderService/findAllEnabledRegionProviders", in, out, opts...)
@@ -402,6 +777,7 @@ func (c *regionProviderServiceClient) FindAllEnabledRegionProviders(ctx context.
return out, nil
}
// Deprecated: Do not use.
func (c *regionProviderServiceClient) FindEnabledRegionProvider(ctx context.Context, in *FindEnabledRegionProviderRequest, opts ...grpc.CallOption) (*FindEnabledRegionProviderResponse, error) {
out := new(FindEnabledRegionProviderResponse)
err := c.cc.Invoke(ctx, "/pb.RegionProviderService/findEnabledRegionProvider", in, out, opts...)
@@ -411,12 +787,47 @@ func (c *regionProviderServiceClient) FindEnabledRegionProvider(ctx context.Cont
return out, nil
}
func (c *regionProviderServiceClient) FindAllRegionProviders(ctx context.Context, in *FindAllRegionProvidersRequest, opts ...grpc.CallOption) (*FindAllRegionProvidersResponse, error) {
out := new(FindAllRegionProvidersResponse)
err := c.cc.Invoke(ctx, "/pb.RegionProviderService/findAllRegionProviders", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionProviderServiceClient) FindRegionProvider(ctx context.Context, in *FindRegionProviderRequest, opts ...grpc.CallOption) (*FindRegionProviderResponse, error) {
out := new(FindRegionProviderResponse)
err := c.cc.Invoke(ctx, "/pb.RegionProviderService/findRegionProvider", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionProviderServiceClient) UpdateRegionProviderCustom(ctx context.Context, in *UpdateRegionProviderCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.RegionProviderService/updateRegionProviderCustom", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RegionProviderServiceServer is the server API for RegionProviderService service.
type RegionProviderServiceServer interface {
// Deprecated: Do not use.
// 查找所有ISP
FindAllEnabledRegionProviders(context.Context, *FindAllEnabledRegionProvidersRequest) (*FindAllEnabledRegionProvidersResponse, error)
// Deprecated: Do not use.
// 查找单个ISP信息
FindEnabledRegionProvider(context.Context, *FindEnabledRegionProviderRequest) (*FindEnabledRegionProviderResponse, error)
// 查找所有ISP
FindAllRegionProviders(context.Context, *FindAllRegionProvidersRequest) (*FindAllRegionProvidersResponse, error)
// 查找单个ISP信息
FindRegionProvider(context.Context, *FindRegionProviderRequest) (*FindRegionProviderResponse, error)
// 修改ISP定制信息
UpdateRegionProviderCustom(context.Context, *UpdateRegionProviderCustomRequest) (*RPCSuccess, error)
}
// UnimplementedRegionProviderServiceServer can be embedded to have forward compatible implementations.
@@ -429,6 +840,15 @@ func (*UnimplementedRegionProviderServiceServer) FindAllEnabledRegionProviders(c
func (*UnimplementedRegionProviderServiceServer) FindEnabledRegionProvider(context.Context, *FindEnabledRegionProviderRequest) (*FindEnabledRegionProviderResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledRegionProvider not implemented")
}
func (*UnimplementedRegionProviderServiceServer) FindAllRegionProviders(context.Context, *FindAllRegionProvidersRequest) (*FindAllRegionProvidersResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionProviders not implemented")
}
func (*UnimplementedRegionProviderServiceServer) FindRegionProvider(context.Context, *FindRegionProviderRequest) (*FindRegionProviderResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindRegionProvider not implemented")
}
func (*UnimplementedRegionProviderServiceServer) UpdateRegionProviderCustom(context.Context, *UpdateRegionProviderCustomRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateRegionProviderCustom not implemented")
}
func RegisterRegionProviderServiceServer(s *grpc.Server, srv RegionProviderServiceServer) {
s.RegisterService(&_RegionProviderService_serviceDesc, srv)
@@ -470,6 +890,60 @@ func _RegionProviderService_FindEnabledRegionProvider_Handler(srv interface{}, c
return interceptor(ctx, in, info, handler)
}
func _RegionProviderService_FindAllRegionProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllRegionProvidersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionProviderServiceServer).FindAllRegionProviders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionProviderService/FindAllRegionProviders",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionProviderServiceServer).FindAllRegionProviders(ctx, req.(*FindAllRegionProvidersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionProviderService_FindRegionProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindRegionProviderRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionProviderServiceServer).FindRegionProvider(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionProviderService/FindRegionProvider",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionProviderServiceServer).FindRegionProvider(ctx, req.(*FindRegionProviderRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionProviderService_UpdateRegionProviderCustom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateRegionProviderCustomRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionProviderServiceServer).UpdateRegionProviderCustom(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionProviderService/UpdateRegionProviderCustom",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionProviderServiceServer).UpdateRegionProviderCustom(ctx, req.(*UpdateRegionProviderCustomRequest))
}
return interceptor(ctx, in, info, handler)
}
var _RegionProviderService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.RegionProviderService",
HandlerType: (*RegionProviderServiceServer)(nil),
@@ -482,6 +956,18 @@ var _RegionProviderService_serviceDesc = grpc.ServiceDesc{
MethodName: "findEnabledRegionProvider",
Handler: _RegionProviderService_FindEnabledRegionProvider_Handler,
},
{
MethodName: "findAllRegionProviders",
Handler: _RegionProviderService_FindAllRegionProviders_Handler,
},
{
MethodName: "findRegionProvider",
Handler: _RegionProviderService_FindRegionProvider_Handler,
},
{
MethodName: "updateRegionProviderCustom",
Handler: _RegionProviderService_UpdateRegionProviderCustom_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_region_provider.proto",

View File

@@ -219,6 +219,260 @@ func (x *FindEnabledRegionProvinceResponse) GetRegionProvince() *RegionProvince
return nil
}
// 查找所有省份
type FindAllRegionProvincesWithRegionCountryIdRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCountryId int64 `protobuf:"varint,1,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"`
}
func (x *FindAllRegionProvincesWithRegionCountryIdRequest) Reset() {
*x = FindAllRegionProvincesWithRegionCountryIdRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_province_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionProvincesWithRegionCountryIdRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionProvincesWithRegionCountryIdRequest) ProtoMessage() {}
func (x *FindAllRegionProvincesWithRegionCountryIdRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_province_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionProvincesWithRegionCountryIdRequest.ProtoReflect.Descriptor instead.
func (*FindAllRegionProvincesWithRegionCountryIdRequest) Descriptor() ([]byte, []int) {
return file_service_region_province_proto_rawDescGZIP(), []int{4}
}
func (x *FindAllRegionProvincesWithRegionCountryIdRequest) GetRegionCountryId() int64 {
if x != nil {
return x.RegionCountryId
}
return 0
}
type FindAllRegionProvincesWithRegionCountryIdResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionProvinces []*RegionProvince `protobuf:"bytes,1,rep,name=regionProvinces,proto3" json:"regionProvinces,omitempty"`
}
func (x *FindAllRegionProvincesWithRegionCountryIdResponse) Reset() {
*x = FindAllRegionProvincesWithRegionCountryIdResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_province_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionProvincesWithRegionCountryIdResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionProvincesWithRegionCountryIdResponse) ProtoMessage() {}
func (x *FindAllRegionProvincesWithRegionCountryIdResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_province_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionProvincesWithRegionCountryIdResponse.ProtoReflect.Descriptor instead.
func (*FindAllRegionProvincesWithRegionCountryIdResponse) Descriptor() ([]byte, []int) {
return file_service_region_province_proto_rawDescGZIP(), []int{5}
}
func (x *FindAllRegionProvincesWithRegionCountryIdResponse) GetRegionProvinces() []*RegionProvince {
if x != nil {
return x.RegionProvinces
}
return nil
}
// 查找单个省份信息
type FindRegionProvinceRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionProvinceId int64 `protobuf:"varint,1,opt,name=regionProvinceId,proto3" json:"regionProvinceId,omitempty"`
}
func (x *FindRegionProvinceRequest) Reset() {
*x = FindRegionProvinceRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_province_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindRegionProvinceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionProvinceRequest) ProtoMessage() {}
func (x *FindRegionProvinceRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_province_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindRegionProvinceRequest.ProtoReflect.Descriptor instead.
func (*FindRegionProvinceRequest) Descriptor() ([]byte, []int) {
return file_service_region_province_proto_rawDescGZIP(), []int{6}
}
func (x *FindRegionProvinceRequest) GetRegionProvinceId() int64 {
if x != nil {
return x.RegionProvinceId
}
return 0
}
type FindRegionProvinceResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionProvince *RegionProvince `protobuf:"bytes,1,opt,name=regionProvince,proto3" json:"regionProvince,omitempty"`
}
func (x *FindRegionProvinceResponse) Reset() {
*x = FindRegionProvinceResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_province_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindRegionProvinceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionProvinceResponse) ProtoMessage() {}
func (x *FindRegionProvinceResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_province_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindRegionProvinceResponse.ProtoReflect.Descriptor instead.
func (*FindRegionProvinceResponse) Descriptor() ([]byte, []int) {
return file_service_region_province_proto_rawDescGZIP(), []int{7}
}
func (x *FindRegionProvinceResponse) GetRegionProvince() *RegionProvince {
if x != nil {
return x.RegionProvince
}
return nil
}
// 修改省份定制信息
type UpdateRegionProvinceCustomRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionProvinceId int64 `protobuf:"varint,1,opt,name=regionProvinceId,proto3" json:"regionProvinceId,omitempty"`
CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
}
func (x *UpdateRegionProvinceCustomRequest) Reset() {
*x = UpdateRegionProvinceCustomRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_province_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateRegionProvinceCustomRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateRegionProvinceCustomRequest) ProtoMessage() {}
func (x *UpdateRegionProvinceCustomRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_province_proto_msgTypes[8]
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 UpdateRegionProvinceCustomRequest.ProtoReflect.Descriptor instead.
func (*UpdateRegionProvinceCustomRequest) Descriptor() ([]byte, []int) {
return file_service_region_province_proto_rawDescGZIP(), []int{8}
}
func (x *UpdateRegionProvinceCustomRequest) GetRegionProvinceId() int64 {
if x != nil {
return x.RegionProvinceId
}
return 0
}
func (x *UpdateRegionProvinceCustomRequest) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *UpdateRegionProvinceCustomRequest) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
var File_service_region_province_proto protoreflect.FileDescriptor
var file_service_region_province_proto_rawDesc = []byte{
@@ -226,50 +480,105 @@ var file_service_region_province_proto_rawDesc = []byte{
0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x02, 0x70, 0x62, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5d, 0x0a, 0x31, 0x46, 0x69, 0x6e, 0x64, 0x41,
0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e,
0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x22, 0x72, 0x0a, 0x32, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x20, 0x46, 0x69,
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a,
0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x21, 0x46, 0x69,
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x3a, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x32, 0x9f, 0x02, 0x0a, 0x15,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x53, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x9b, 0x01, 0x0a, 0x2a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x79, 0x49, 0x64, 0x12, 0x35, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f,
0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0x5d, 0x0a, 0x31, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e,
0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49,
0x64, 0x22, 0x72, 0x0a, 0x32, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63,
0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e,
0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e,
0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x5c, 0x0a, 0x30, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73,
0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72,
0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x72, 0x79, 0x49, 0x64, 0x22, 0x71, 0x0a, 0x31, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69,
0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49,
0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x47, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64,
0x22, 0x58, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72,
0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a,
0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x21, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x6e, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e,
0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a,
0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b,
0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x32, 0xee,
0x04, 0x0a, 0x15, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63,
0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x2a, 0x66, 0x69, 0x6e,
0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x12, 0x35, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c,
0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65,
0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f,
0x76, 0x69, 0x6e, 0x63, 0x65, 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, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x6d, 0x0a, 0x19, 0x66,
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50,
0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x98, 0x01, 0x0a, 0x29, 0x66,
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76,
0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x12, 0x34, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35,
0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x70, 0x62,
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69,
0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e,
0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e,
0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x1a, 0x75, 0x70,
0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e,
0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e,
0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 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 (
@@ -284,26 +593,40 @@ func file_service_region_province_proto_rawDescGZIP() []byte {
return file_service_region_province_proto_rawDescData
}
var file_service_region_province_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_service_region_province_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_service_region_province_proto_goTypes = []interface{}{
(*FindAllEnabledRegionProvincesWithCountryIdRequest)(nil), // 0: pb.FindAllEnabledRegionProvincesWithCountryIdRequest
(*FindAllEnabledRegionProvincesWithCountryIdResponse)(nil), // 1: pb.FindAllEnabledRegionProvincesWithCountryIdResponse
(*FindEnabledRegionProvinceRequest)(nil), // 2: pb.FindEnabledRegionProvinceRequest
(*FindEnabledRegionProvinceResponse)(nil), // 3: pb.FindEnabledRegionProvinceResponse
(*RegionProvince)(nil), // 4: pb.RegionProvince
(*FindAllRegionProvincesWithRegionCountryIdRequest)(nil), // 4: pb.FindAllRegionProvincesWithRegionCountryIdRequest
(*FindAllRegionProvincesWithRegionCountryIdResponse)(nil), // 5: pb.FindAllRegionProvincesWithRegionCountryIdResponse
(*FindRegionProvinceRequest)(nil), // 6: pb.FindRegionProvinceRequest
(*FindRegionProvinceResponse)(nil), // 7: pb.FindRegionProvinceResponse
(*UpdateRegionProvinceCustomRequest)(nil), // 8: pb.UpdateRegionProvinceCustomRequest
(*RegionProvince)(nil), // 9: pb.RegionProvince
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
}
var file_service_region_province_proto_depIdxs = []int32{
4, // 0: pb.FindAllEnabledRegionProvincesWithCountryIdResponse.regionProvinces:type_name -> pb.RegionProvince
4, // 1: pb.FindEnabledRegionProvinceResponse.regionProvince:type_name -> pb.RegionProvince
0, // 2: pb.RegionProvinceService.findAllEnabledRegionProvincesWithCountryId:input_type -> pb.FindAllEnabledRegionProvincesWithCountryIdRequest
2, // 3: pb.RegionProvinceService.findEnabledRegionProvince:input_type -> pb.FindEnabledRegionProvinceRequest
1, // 4: pb.RegionProvinceService.findAllEnabledRegionProvincesWithCountryId:output_type -> pb.FindAllEnabledRegionProvincesWithCountryIdResponse
3, // 5: pb.RegionProvinceService.findEnabledRegionProvince:output_type -> pb.FindEnabledRegionProvinceResponse
4, // [4:6] is the sub-list for method output_type
2, // [2:4] 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
9, // 0: pb.FindAllEnabledRegionProvincesWithCountryIdResponse.regionProvinces:type_name -> pb.RegionProvince
9, // 1: pb.FindEnabledRegionProvinceResponse.regionProvince:type_name -> pb.RegionProvince
9, // 2: pb.FindAllRegionProvincesWithRegionCountryIdResponse.regionProvinces:type_name -> pb.RegionProvince
9, // 3: pb.FindRegionProvinceResponse.regionProvince:type_name -> pb.RegionProvince
0, // 4: pb.RegionProvinceService.findAllEnabledRegionProvincesWithCountryId:input_type -> pb.FindAllEnabledRegionProvincesWithCountryIdRequest
2, // 5: pb.RegionProvinceService.findEnabledRegionProvince:input_type -> pb.FindEnabledRegionProvinceRequest
4, // 6: pb.RegionProvinceService.findAllRegionProvincesWithRegionCountryId:input_type -> pb.FindAllRegionProvincesWithRegionCountryIdRequest
6, // 7: pb.RegionProvinceService.findRegionProvince:input_type -> pb.FindRegionProvinceRequest
8, // 8: pb.RegionProvinceService.updateRegionProvinceCustom:input_type -> pb.UpdateRegionProvinceCustomRequest
1, // 9: pb.RegionProvinceService.findAllEnabledRegionProvincesWithCountryId:output_type -> pb.FindAllEnabledRegionProvincesWithCountryIdResponse
3, // 10: pb.RegionProvinceService.findEnabledRegionProvince:output_type -> pb.FindEnabledRegionProvinceResponse
5, // 11: pb.RegionProvinceService.findAllRegionProvincesWithRegionCountryId:output_type -> pb.FindAllRegionProvincesWithRegionCountryIdResponse
7, // 12: pb.RegionProvinceService.findRegionProvince:output_type -> pb.FindRegionProvinceResponse
10, // 13: pb.RegionProvinceService.updateRegionProvinceCustom:output_type -> pb.RPCSuccess
9, // [9:14] is the sub-list for method output_type
4, // [4:9] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_service_region_province_proto_init() }
@@ -312,6 +635,7 @@ func file_service_region_province_proto_init() {
return
}
file_models_model_region_province_proto_init()
file_models_rpc_messages_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_region_province_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllEnabledRegionProvincesWithCountryIdRequest); i {
@@ -361,6 +685,66 @@ func file_service_region_province_proto_init() {
return nil
}
}
file_service_region_province_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionProvincesWithRegionCountryIdRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_province_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionProvincesWithRegionCountryIdResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_province_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindRegionProvinceRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_province_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindRegionProvinceResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_province_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateRegionProvinceCustomRequest); 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{
@@ -368,7 +752,7 @@ func file_service_region_province_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_region_province_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumMessages: 9,
NumExtensions: 0,
NumServices: 1,
},
@@ -394,10 +778,18 @@ const _ = grpc.SupportPackageIsVersion6
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RegionProvinceServiceClient interface {
// Deprecated: Do not use.
// 查找所有省份
FindAllEnabledRegionProvincesWithCountryId(ctx context.Context, in *FindAllEnabledRegionProvincesWithCountryIdRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionProvincesWithCountryIdResponse, error)
// Deprecated: Do not use.
// 查找单个省份信息
FindEnabledRegionProvince(ctx context.Context, in *FindEnabledRegionProvinceRequest, opts ...grpc.CallOption) (*FindEnabledRegionProvinceResponse, error)
// 查找所有省份
FindAllRegionProvincesWithRegionCountryId(ctx context.Context, in *FindAllRegionProvincesWithRegionCountryIdRequest, opts ...grpc.CallOption) (*FindAllRegionProvincesWithRegionCountryIdResponse, error)
// 查找单个省份信息
FindRegionProvince(ctx context.Context, in *FindRegionProvinceRequest, opts ...grpc.CallOption) (*FindRegionProvinceResponse, error)
// 修改国家/地区定制信息
UpdateRegionProvinceCustom(ctx context.Context, in *UpdateRegionProvinceCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
}
type regionProvinceServiceClient struct {
@@ -408,6 +800,7 @@ func NewRegionProvinceServiceClient(cc grpc.ClientConnInterface) RegionProvinceS
return &regionProvinceServiceClient{cc}
}
// Deprecated: Do not use.
func (c *regionProvinceServiceClient) FindAllEnabledRegionProvincesWithCountryId(ctx context.Context, in *FindAllEnabledRegionProvincesWithCountryIdRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionProvincesWithCountryIdResponse, error) {
out := new(FindAllEnabledRegionProvincesWithCountryIdResponse)
err := c.cc.Invoke(ctx, "/pb.RegionProvinceService/findAllEnabledRegionProvincesWithCountryId", in, out, opts...)
@@ -417,6 +810,7 @@ func (c *regionProvinceServiceClient) FindAllEnabledRegionProvincesWithCountryId
return out, nil
}
// Deprecated: Do not use.
func (c *regionProvinceServiceClient) FindEnabledRegionProvince(ctx context.Context, in *FindEnabledRegionProvinceRequest, opts ...grpc.CallOption) (*FindEnabledRegionProvinceResponse, error) {
out := new(FindEnabledRegionProvinceResponse)
err := c.cc.Invoke(ctx, "/pb.RegionProvinceService/findEnabledRegionProvince", in, out, opts...)
@@ -426,12 +820,47 @@ func (c *regionProvinceServiceClient) FindEnabledRegionProvince(ctx context.Cont
return out, nil
}
func (c *regionProvinceServiceClient) FindAllRegionProvincesWithRegionCountryId(ctx context.Context, in *FindAllRegionProvincesWithRegionCountryIdRequest, opts ...grpc.CallOption) (*FindAllRegionProvincesWithRegionCountryIdResponse, error) {
out := new(FindAllRegionProvincesWithRegionCountryIdResponse)
err := c.cc.Invoke(ctx, "/pb.RegionProvinceService/findAllRegionProvincesWithRegionCountryId", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionProvinceServiceClient) FindRegionProvince(ctx context.Context, in *FindRegionProvinceRequest, opts ...grpc.CallOption) (*FindRegionProvinceResponse, error) {
out := new(FindRegionProvinceResponse)
err := c.cc.Invoke(ctx, "/pb.RegionProvinceService/findRegionProvince", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionProvinceServiceClient) UpdateRegionProvinceCustom(ctx context.Context, in *UpdateRegionProvinceCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.RegionProvinceService/updateRegionProvinceCustom", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RegionProvinceServiceServer is the server API for RegionProvinceService service.
type RegionProvinceServiceServer interface {
// Deprecated: Do not use.
// 查找所有省份
FindAllEnabledRegionProvincesWithCountryId(context.Context, *FindAllEnabledRegionProvincesWithCountryIdRequest) (*FindAllEnabledRegionProvincesWithCountryIdResponse, error)
// Deprecated: Do not use.
// 查找单个省份信息
FindEnabledRegionProvince(context.Context, *FindEnabledRegionProvinceRequest) (*FindEnabledRegionProvinceResponse, error)
// 查找所有省份
FindAllRegionProvincesWithRegionCountryId(context.Context, *FindAllRegionProvincesWithRegionCountryIdRequest) (*FindAllRegionProvincesWithRegionCountryIdResponse, error)
// 查找单个省份信息
FindRegionProvince(context.Context, *FindRegionProvinceRequest) (*FindRegionProvinceResponse, error)
// 修改国家/地区定制信息
UpdateRegionProvinceCustom(context.Context, *UpdateRegionProvinceCustomRequest) (*RPCSuccess, error)
}
// UnimplementedRegionProvinceServiceServer can be embedded to have forward compatible implementations.
@@ -444,6 +873,15 @@ func (*UnimplementedRegionProvinceServiceServer) FindAllEnabledRegionProvincesWi
func (*UnimplementedRegionProvinceServiceServer) FindEnabledRegionProvince(context.Context, *FindEnabledRegionProvinceRequest) (*FindEnabledRegionProvinceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledRegionProvince not implemented")
}
func (*UnimplementedRegionProvinceServiceServer) FindAllRegionProvincesWithRegionCountryId(context.Context, *FindAllRegionProvincesWithRegionCountryIdRequest) (*FindAllRegionProvincesWithRegionCountryIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionProvincesWithRegionCountryId not implemented")
}
func (*UnimplementedRegionProvinceServiceServer) FindRegionProvince(context.Context, *FindRegionProvinceRequest) (*FindRegionProvinceResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindRegionProvince not implemented")
}
func (*UnimplementedRegionProvinceServiceServer) UpdateRegionProvinceCustom(context.Context, *UpdateRegionProvinceCustomRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateRegionProvinceCustom not implemented")
}
func RegisterRegionProvinceServiceServer(s *grpc.Server, srv RegionProvinceServiceServer) {
s.RegisterService(&_RegionProvinceService_serviceDesc, srv)
@@ -485,6 +923,60 @@ func _RegionProvinceService_FindEnabledRegionProvince_Handler(srv interface{}, c
return interceptor(ctx, in, info, handler)
}
func _RegionProvinceService_FindAllRegionProvincesWithRegionCountryId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllRegionProvincesWithRegionCountryIdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionProvinceServiceServer).FindAllRegionProvincesWithRegionCountryId(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionProvinceService/FindAllRegionProvincesWithRegionCountryId",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionProvinceServiceServer).FindAllRegionProvincesWithRegionCountryId(ctx, req.(*FindAllRegionProvincesWithRegionCountryIdRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionProvinceService_FindRegionProvince_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindRegionProvinceRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionProvinceServiceServer).FindRegionProvince(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionProvinceService/FindRegionProvince",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionProvinceServiceServer).FindRegionProvince(ctx, req.(*FindRegionProvinceRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionProvinceService_UpdateRegionProvinceCustom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateRegionProvinceCustomRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionProvinceServiceServer).UpdateRegionProvinceCustom(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionProvinceService/UpdateRegionProvinceCustom",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionProvinceServiceServer).UpdateRegionProvinceCustom(ctx, req.(*UpdateRegionProvinceCustomRequest))
}
return interceptor(ctx, in, info, handler)
}
var _RegionProvinceService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.RegionProvinceService",
HandlerType: (*RegionProvinceServiceServer)(nil),
@@ -497,6 +989,18 @@ var _RegionProvinceService_serviceDesc = grpc.ServiceDesc{
MethodName: "findEnabledRegionProvince",
Handler: _RegionProvinceService_FindEnabledRegionProvince_Handler,
},
{
MethodName: "findAllRegionProvincesWithRegionCountryId",
Handler: _RegionProvinceService_FindAllRegionProvincesWithRegionCountryId_Handler,
},
{
MethodName: "findRegionProvince",
Handler: _RegionProvinceService_FindRegionProvince_Handler,
},
{
MethodName: "updateRegionProvinceCustom",
Handler: _RegionProvinceService_UpdateRegionProvinceCustom_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_region_province.proto",

View File

@@ -0,0 +1,805 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: service_region_town.proto
package pb
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// 查找所有区县
type FindAllRegionTownsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IncludeRegionCity bool `protobuf:"varint,1,opt,name=includeRegionCity,proto3" json:"includeRegionCity,omitempty"`
}
func (x *FindAllRegionTownsRequest) Reset() {
*x = FindAllRegionTownsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_town_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionTownsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionTownsRequest) ProtoMessage() {}
func (x *FindAllRegionTownsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_town_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 FindAllRegionTownsRequest.ProtoReflect.Descriptor instead.
func (*FindAllRegionTownsRequest) Descriptor() ([]byte, []int) {
return file_service_region_town_proto_rawDescGZIP(), []int{0}
}
func (x *FindAllRegionTownsRequest) GetIncludeRegionCity() bool {
if x != nil {
return x.IncludeRegionCity
}
return false
}
type FindAllRegionTownsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionTowns []*RegionTown `protobuf:"bytes,1,rep,name=regionTowns,proto3" json:"regionTowns,omitempty"`
}
func (x *FindAllRegionTownsResponse) Reset() {
*x = FindAllRegionTownsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_town_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionTownsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionTownsResponse) ProtoMessage() {}
func (x *FindAllRegionTownsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_town_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionTownsResponse.ProtoReflect.Descriptor instead.
func (*FindAllRegionTownsResponse) Descriptor() ([]byte, []int) {
return file_service_region_town_proto_rawDescGZIP(), []int{1}
}
func (x *FindAllRegionTownsResponse) GetRegionTowns() []*RegionTown {
if x != nil {
return x.RegionTowns
}
return nil
}
// 查找某个城市的所有区县
type FindAllRegionTownsWithRegionCityIdRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionCityId int64 `protobuf:"varint,1,opt,name=regionCityId,proto3" json:"regionCityId,omitempty"`
}
func (x *FindAllRegionTownsWithRegionCityIdRequest) Reset() {
*x = FindAllRegionTownsWithRegionCityIdRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_town_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionTownsWithRegionCityIdRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionTownsWithRegionCityIdRequest) ProtoMessage() {}
func (x *FindAllRegionTownsWithRegionCityIdRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_town_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionTownsWithRegionCityIdRequest.ProtoReflect.Descriptor instead.
func (*FindAllRegionTownsWithRegionCityIdRequest) Descriptor() ([]byte, []int) {
return file_service_region_town_proto_rawDescGZIP(), []int{2}
}
func (x *FindAllRegionTownsWithRegionCityIdRequest) GetRegionCityId() int64 {
if x != nil {
return x.RegionCityId
}
return 0
}
type FindAllRegionTownsWithRegionCityIdResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionTowns []*RegionTown `protobuf:"bytes,1,rep,name=regionTowns,proto3" json:"regionTowns,omitempty"`
}
func (x *FindAllRegionTownsWithRegionCityIdResponse) Reset() {
*x = FindAllRegionTownsWithRegionCityIdResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_town_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindAllRegionTownsWithRegionCityIdResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindAllRegionTownsWithRegionCityIdResponse) ProtoMessage() {}
func (x *FindAllRegionTownsWithRegionCityIdResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_town_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindAllRegionTownsWithRegionCityIdResponse.ProtoReflect.Descriptor instead.
func (*FindAllRegionTownsWithRegionCityIdResponse) Descriptor() ([]byte, []int) {
return file_service_region_town_proto_rawDescGZIP(), []int{3}
}
func (x *FindAllRegionTownsWithRegionCityIdResponse) GetRegionTowns() []*RegionTown {
if x != nil {
return x.RegionTowns
}
return nil
}
// 查找单个区县信息
type FindRegionTownRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionTownId int64 `protobuf:"varint,1,opt,name=regionTownId,proto3" json:"regionTownId,omitempty"`
}
func (x *FindRegionTownRequest) Reset() {
*x = FindRegionTownRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_town_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindRegionTownRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionTownRequest) ProtoMessage() {}
func (x *FindRegionTownRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_town_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindRegionTownRequest.ProtoReflect.Descriptor instead.
func (*FindRegionTownRequest) Descriptor() ([]byte, []int) {
return file_service_region_town_proto_rawDescGZIP(), []int{4}
}
func (x *FindRegionTownRequest) GetRegionTownId() int64 {
if x != nil {
return x.RegionTownId
}
return 0
}
type FindRegionTownResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionTown *RegionTown `protobuf:"bytes,1,opt,name=regionTown,proto3" json:"regionTown,omitempty"`
}
func (x *FindRegionTownResponse) Reset() {
*x = FindRegionTownResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_town_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindRegionTownResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindRegionTownResponse) ProtoMessage() {}
func (x *FindRegionTownResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_region_town_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindRegionTownResponse.ProtoReflect.Descriptor instead.
func (*FindRegionTownResponse) Descriptor() ([]byte, []int) {
return file_service_region_town_proto_rawDescGZIP(), []int{5}
}
func (x *FindRegionTownResponse) GetRegionTown() *RegionTown {
if x != nil {
return x.RegionTown
}
return nil
}
// 修改区县定制信息
type UpdateRegionTownCustomRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RegionTownId int64 `protobuf:"varint,1,opt,name=regionTownId,proto3" json:"regionTownId,omitempty"`
CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"`
CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"`
}
func (x *UpdateRegionTownCustomRequest) Reset() {
*x = UpdateRegionTownCustomRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_region_town_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateRegionTownCustomRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateRegionTownCustomRequest) ProtoMessage() {}
func (x *UpdateRegionTownCustomRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_region_town_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateRegionTownCustomRequest.ProtoReflect.Descriptor instead.
func (*UpdateRegionTownCustomRequest) Descriptor() ([]byte, []int) {
return file_service_region_town_proto_rawDescGZIP(), []int{6}
}
func (x *UpdateRegionTownCustomRequest) GetRegionTownId() int64 {
if x != nil {
return x.RegionTownId
}
return 0
}
func (x *UpdateRegionTownCustomRequest) GetCustomName() string {
if x != nil {
return x.CustomName
}
return ""
}
func (x *UpdateRegionTownCustomRequest) GetCustomCodes() []string {
if x != nil {
return x.CustomCodes
}
return nil
}
var File_service_region_town_proto protoreflect.FileDescriptor
var file_service_region_town_proto_rawDesc = []byte{
0x0a, 0x19, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x5f, 0x74, 0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a,
0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x49, 0x0a, 0x19, 0x46, 0x69,
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75,
0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01,
0x28, 0x08, 0x52, 0x11, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x69, 0x74, 0x79, 0x22, 0x4e, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77,
0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x54, 0x6f, 0x77, 0x6e, 0x73, 0x22, 0x4f, 0x0a, 0x29, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x5e, 0x0a, 0x2a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c,
0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f,
0x77, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x0b, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x22, 0x3b, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77,
0x6e, 0x49, 0x64, 0x22, 0x48, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a,
0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77,
0x6e, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x22, 0x85, 0x01,
0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f,
0x77, 0x6e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77,
0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e,
0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64,
0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d,
0x43, 0x6f, 0x64, 0x65, 0x73, 0x32, 0x84, 0x03, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x54, 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x66,
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e,
0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x83, 0x01, 0x0a, 0x22, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57,
0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x73, 0x57, 0x69,
0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54,
0x6f, 0x77, 0x6e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x77, 0x6e, 0x43,
0x75, 0x73, 0x74, 0x6f, 0x6d, 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 (
file_service_region_town_proto_rawDescOnce sync.Once
file_service_region_town_proto_rawDescData = file_service_region_town_proto_rawDesc
)
func file_service_region_town_proto_rawDescGZIP() []byte {
file_service_region_town_proto_rawDescOnce.Do(func() {
file_service_region_town_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_region_town_proto_rawDescData)
})
return file_service_region_town_proto_rawDescData
}
var file_service_region_town_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_service_region_town_proto_goTypes = []interface{}{
(*FindAllRegionTownsRequest)(nil), // 0: pb.FindAllRegionTownsRequest
(*FindAllRegionTownsResponse)(nil), // 1: pb.FindAllRegionTownsResponse
(*FindAllRegionTownsWithRegionCityIdRequest)(nil), // 2: pb.FindAllRegionTownsWithRegionCityIdRequest
(*FindAllRegionTownsWithRegionCityIdResponse)(nil), // 3: pb.FindAllRegionTownsWithRegionCityIdResponse
(*FindRegionTownRequest)(nil), // 4: pb.FindRegionTownRequest
(*FindRegionTownResponse)(nil), // 5: pb.FindRegionTownResponse
(*UpdateRegionTownCustomRequest)(nil), // 6: pb.UpdateRegionTownCustomRequest
(*RegionTown)(nil), // 7: pb.RegionTown
(*RPCSuccess)(nil), // 8: pb.RPCSuccess
}
var file_service_region_town_proto_depIdxs = []int32{
7, // 0: pb.FindAllRegionTownsResponse.regionTowns:type_name -> pb.RegionTown
7, // 1: pb.FindAllRegionTownsWithRegionCityIdResponse.regionTowns:type_name -> pb.RegionTown
7, // 2: pb.FindRegionTownResponse.regionTown:type_name -> pb.RegionTown
0, // 3: pb.RegionTownService.findAllRegionTowns:input_type -> pb.FindAllRegionTownsRequest
2, // 4: pb.RegionTownService.findAllRegionTownsWithRegionCityId:input_type -> pb.FindAllRegionTownsWithRegionCityIdRequest
4, // 5: pb.RegionTownService.findRegionTown:input_type -> pb.FindRegionTownRequest
6, // 6: pb.RegionTownService.updateRegionTownCustom:input_type -> pb.UpdateRegionTownCustomRequest
1, // 7: pb.RegionTownService.findAllRegionTowns:output_type -> pb.FindAllRegionTownsResponse
3, // 8: pb.RegionTownService.findAllRegionTownsWithRegionCityId:output_type -> pb.FindAllRegionTownsWithRegionCityIdResponse
5, // 9: pb.RegionTownService.findRegionTown:output_type -> pb.FindRegionTownResponse
8, // 10: pb.RegionTownService.updateRegionTownCustom:output_type -> pb.RPCSuccess
7, // [7:11] is the sub-list for method output_type
3, // [3:7] 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_service_region_town_proto_init() }
func file_service_region_town_proto_init() {
if File_service_region_town_proto != nil {
return
}
file_models_model_region_town_proto_init()
file_models_rpc_messages_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_region_town_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionTownsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_town_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionTownsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_town_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionTownsWithRegionCityIdRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_town_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindAllRegionTownsWithRegionCityIdResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_town_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindRegionTownRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_town_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindRegionTownResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_region_town_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateRegionTownCustomRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_region_town_proto_rawDesc,
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_region_town_proto_goTypes,
DependencyIndexes: file_service_region_town_proto_depIdxs,
MessageInfos: file_service_region_town_proto_msgTypes,
}.Build()
File_service_region_town_proto = out.File
file_service_region_town_proto_rawDesc = nil
file_service_region_town_proto_goTypes = nil
file_service_region_town_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// RegionTownServiceClient is the client API for RegionTownService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RegionTownServiceClient interface {
// 查找所有区县
FindAllRegionTowns(ctx context.Context, in *FindAllRegionTownsRequest, opts ...grpc.CallOption) (*FindAllRegionTownsResponse, error)
// 查找某个城市的所有区县
FindAllRegionTownsWithRegionCityId(ctx context.Context, in *FindAllRegionTownsWithRegionCityIdRequest, opts ...grpc.CallOption) (*FindAllRegionTownsWithRegionCityIdResponse, error)
// 查找单个区县信息
FindRegionTown(ctx context.Context, in *FindRegionTownRequest, opts ...grpc.CallOption) (*FindRegionTownResponse, error)
// 修改区县定制信息
UpdateRegionTownCustom(ctx context.Context, in *UpdateRegionTownCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
}
type regionTownServiceClient struct {
cc grpc.ClientConnInterface
}
func NewRegionTownServiceClient(cc grpc.ClientConnInterface) RegionTownServiceClient {
return &regionTownServiceClient{cc}
}
func (c *regionTownServiceClient) FindAllRegionTowns(ctx context.Context, in *FindAllRegionTownsRequest, opts ...grpc.CallOption) (*FindAllRegionTownsResponse, error) {
out := new(FindAllRegionTownsResponse)
err := c.cc.Invoke(ctx, "/pb.RegionTownService/findAllRegionTowns", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionTownServiceClient) FindAllRegionTownsWithRegionCityId(ctx context.Context, in *FindAllRegionTownsWithRegionCityIdRequest, opts ...grpc.CallOption) (*FindAllRegionTownsWithRegionCityIdResponse, error) {
out := new(FindAllRegionTownsWithRegionCityIdResponse)
err := c.cc.Invoke(ctx, "/pb.RegionTownService/findAllRegionTownsWithRegionCityId", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionTownServiceClient) FindRegionTown(ctx context.Context, in *FindRegionTownRequest, opts ...grpc.CallOption) (*FindRegionTownResponse, error) {
out := new(FindRegionTownResponse)
err := c.cc.Invoke(ctx, "/pb.RegionTownService/findRegionTown", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *regionTownServiceClient) UpdateRegionTownCustom(ctx context.Context, in *UpdateRegionTownCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.RegionTownService/updateRegionTownCustom", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// RegionTownServiceServer is the server API for RegionTownService service.
type RegionTownServiceServer interface {
// 查找所有区县
FindAllRegionTowns(context.Context, *FindAllRegionTownsRequest) (*FindAllRegionTownsResponse, error)
// 查找某个城市的所有区县
FindAllRegionTownsWithRegionCityId(context.Context, *FindAllRegionTownsWithRegionCityIdRequest) (*FindAllRegionTownsWithRegionCityIdResponse, error)
// 查找单个区县信息
FindRegionTown(context.Context, *FindRegionTownRequest) (*FindRegionTownResponse, error)
// 修改区县定制信息
UpdateRegionTownCustom(context.Context, *UpdateRegionTownCustomRequest) (*RPCSuccess, error)
}
// UnimplementedRegionTownServiceServer can be embedded to have forward compatible implementations.
type UnimplementedRegionTownServiceServer struct {
}
func (*UnimplementedRegionTownServiceServer) FindAllRegionTowns(context.Context, *FindAllRegionTownsRequest) (*FindAllRegionTownsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionTowns not implemented")
}
func (*UnimplementedRegionTownServiceServer) FindAllRegionTownsWithRegionCityId(context.Context, *FindAllRegionTownsWithRegionCityIdRequest) (*FindAllRegionTownsWithRegionCityIdResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionTownsWithRegionCityId not implemented")
}
func (*UnimplementedRegionTownServiceServer) FindRegionTown(context.Context, *FindRegionTownRequest) (*FindRegionTownResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindRegionTown not implemented")
}
func (*UnimplementedRegionTownServiceServer) UpdateRegionTownCustom(context.Context, *UpdateRegionTownCustomRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateRegionTownCustom not implemented")
}
func RegisterRegionTownServiceServer(s *grpc.Server, srv RegionTownServiceServer) {
s.RegisterService(&_RegionTownService_serviceDesc, srv)
}
func _RegionTownService_FindAllRegionTowns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllRegionTownsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionTownServiceServer).FindAllRegionTowns(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionTownService/FindAllRegionTowns",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionTownServiceServer).FindAllRegionTowns(ctx, req.(*FindAllRegionTownsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionTownService_FindAllRegionTownsWithRegionCityId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindAllRegionTownsWithRegionCityIdRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionTownServiceServer).FindAllRegionTownsWithRegionCityId(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionTownService/FindAllRegionTownsWithRegionCityId",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionTownServiceServer).FindAllRegionTownsWithRegionCityId(ctx, req.(*FindAllRegionTownsWithRegionCityIdRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionTownService_FindRegionTown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindRegionTownRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionTownServiceServer).FindRegionTown(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionTownService/FindRegionTown",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionTownServiceServer).FindRegionTown(ctx, req.(*FindRegionTownRequest))
}
return interceptor(ctx, in, info, handler)
}
func _RegionTownService_UpdateRegionTownCustom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateRegionTownCustomRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(RegionTownServiceServer).UpdateRegionTownCustom(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.RegionTownService/UpdateRegionTownCustom",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(RegionTownServiceServer).UpdateRegionTownCustom(ctx, req.(*UpdateRegionTownCustomRequest))
}
return interceptor(ctx, in, info, handler)
}
var _RegionTownService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.RegionTownService",
HandlerType: (*RegionTownServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "findAllRegionTowns",
Handler: _RegionTownService_FindAllRegionTowns_Handler,
},
{
MethodName: "findAllRegionTownsWithRegionCityId",
Handler: _RegionTownService_FindAllRegionTownsWithRegionCityId_Handler,
},
{
MethodName: "findRegionTown",
Handler: _RegionTownService_FindRegionTown_Handler,
},
{
MethodName: "updateRegionTownCustom",
Handler: _RegionTownService_UpdateRegionTownCustom_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_region_town.proto",
}

View File

@@ -77,6 +77,117 @@ func (x *UploadServerBandwidthStatsRequest) GetServerBandwidthStats() []*ServerB
return nil
}
// 获取服务的峰值带宽
type FindServerBandwidthStatsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` // 服务ID
Month string `protobuf:"bytes,2,opt,name=month,proto3" json:"month,omitempty"` // YYYYMMmonth和day二选一
Day string `protobuf:"bytes,3,opt,name=day,proto3" json:"day,omitempty"` // YYYYMMDD
}
func (x *FindServerBandwidthStatsRequest) Reset() {
*x = FindServerBandwidthStatsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_bandwidth_stat_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindServerBandwidthStatsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindServerBandwidthStatsRequest) ProtoMessage() {}
func (x *FindServerBandwidthStatsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_server_bandwidth_stat_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindServerBandwidthStatsRequest.ProtoReflect.Descriptor instead.
func (*FindServerBandwidthStatsRequest) Descriptor() ([]byte, []int) {
return file_service_server_bandwidth_stat_proto_rawDescGZIP(), []int{1}
}
func (x *FindServerBandwidthStatsRequest) GetServerId() int64 {
if x != nil {
return x.ServerId
}
return 0
}
func (x *FindServerBandwidthStatsRequest) GetMonth() string {
if x != nil {
return x.Month
}
return ""
}
func (x *FindServerBandwidthStatsRequest) GetDay() string {
if x != nil {
return x.Day
}
return ""
}
type FindServerBandwidthStatsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerBandwidthStats []*ServerBandwidthStat `protobuf:"bytes,1,rep,name=serverBandwidthStats,proto3" json:"serverBandwidthStats,omitempty"`
}
func (x *FindServerBandwidthStatsResponse) Reset() {
*x = FindServerBandwidthStatsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_server_bandwidth_stat_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindServerBandwidthStatsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindServerBandwidthStatsResponse) ProtoMessage() {}
func (x *FindServerBandwidthStatsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_server_bandwidth_stat_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FindServerBandwidthStatsResponse.ProtoReflect.Descriptor instead.
func (*FindServerBandwidthStatsResponse) Descriptor() ([]byte, []int) {
return file_service_server_bandwidth_stat_proto_rawDescGZIP(), []int{2}
}
func (x *FindServerBandwidthStatsResponse) GetServerBandwidthStats() []*ServerBandwidthStat {
if x != nil {
return x.ServerBandwidthStats
}
return nil
}
var File_service_server_bandwidth_stat_proto protoreflect.FileDescriptor
var file_service_server_bandwidth_stat_proto_rawDesc = []byte{
@@ -94,14 +205,34 @@ var file_service_server_bandwidth_stat_proto_rawDesc = []byte{
0x0b, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e,
0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x52, 0x14, 0x73, 0x65, 0x72, 0x76,
0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73,
0x32, 0x71, 0x0a, 0x1a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69,
0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x53,
0x0a, 0x1a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61,
0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x70,
0x62, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61,
0x22, 0x65, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61,
0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 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,
0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12,
0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x64, 0x61, 0x79, 0x22, 0x6f, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74,
0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x14, 0x73,
0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74,
0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74,
0x61, 0x74, 0x52, 0x14, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69,
0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x32, 0xd8, 0x01, 0x0a, 0x1a, 0x53, 0x65, 0x72,
0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74,
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x1a, 0x75, 0x70, 0x6c, 0x6f, 0x61,
0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68,
0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61,
0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68,
0x53, 0x74, 0x61, 0x74, 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,
0x66, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69,
0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74,
0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e,
0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e,
0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 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,
}
@@ -117,21 +248,26 @@ func file_service_server_bandwidth_stat_proto_rawDescGZIP() []byte {
return file_service_server_bandwidth_stat_proto_rawDescData
}
var file_service_server_bandwidth_stat_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_service_server_bandwidth_stat_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_service_server_bandwidth_stat_proto_goTypes = []interface{}{
(*UploadServerBandwidthStatsRequest)(nil), // 0: pb.UploadServerBandwidthStatsRequest
(*ServerBandwidthStat)(nil), // 1: pb.ServerBandwidthStat
(*RPCSuccess)(nil), // 2: pb.RPCSuccess
(*FindServerBandwidthStatsRequest)(nil), // 1: pb.FindServerBandwidthStatsRequest
(*FindServerBandwidthStatsResponse)(nil), // 2: pb.FindServerBandwidthStatsResponse
(*ServerBandwidthStat)(nil), // 3: pb.ServerBandwidthStat
(*RPCSuccess)(nil), // 4: pb.RPCSuccess
}
var file_service_server_bandwidth_stat_proto_depIdxs = []int32{
1, // 0: pb.UploadServerBandwidthStatsRequest.serverBandwidthStats:type_name -> pb.ServerBandwidthStat
0, // 1: pb.ServerBandwidthStatService.uploadServerBandwidthStats:input_type -> pb.UploadServerBandwidthStatsRequest
2, // 2: pb.ServerBandwidthStatService.uploadServerBandwidthStats:output_type -> pb.RPCSuccess
2, // [2:3] is the sub-list for method output_type
1, // [1:2] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
3, // 0: pb.UploadServerBandwidthStatsRequest.serverBandwidthStats:type_name -> pb.ServerBandwidthStat
3, // 1: pb.FindServerBandwidthStatsResponse.serverBandwidthStats:type_name -> pb.ServerBandwidthStat
0, // 2: pb.ServerBandwidthStatService.uploadServerBandwidthStats:input_type -> pb.UploadServerBandwidthStatsRequest
1, // 3: pb.ServerBandwidthStatService.findServerBandwidthStats:input_type -> pb.FindServerBandwidthStatsRequest
4, // 4: pb.ServerBandwidthStatService.uploadServerBandwidthStats:output_type -> pb.RPCSuccess
2, // 5: pb.ServerBandwidthStatService.findServerBandwidthStats:output_type -> pb.FindServerBandwidthStatsResponse
4, // [4:6] is the sub-list for method output_type
2, // [2:4] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_service_server_bandwidth_stat_proto_init() }
@@ -154,6 +290,30 @@ func file_service_server_bandwidth_stat_proto_init() {
return nil
}
}
file_service_server_bandwidth_stat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindServerBandwidthStatsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_server_bandwidth_stat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindServerBandwidthStatsResponse); 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{
@@ -161,7 +321,7 @@ func file_service_server_bandwidth_stat_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_server_bandwidth_stat_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumMessages: 3,
NumExtensions: 0,
NumServices: 1,
},
@@ -189,6 +349,8 @@ const _ = grpc.SupportPackageIsVersion6
type ServerBandwidthStatServiceClient interface {
// 上传带宽统计
UploadServerBandwidthStats(ctx context.Context, in *UploadServerBandwidthStatsRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 获取服务的峰值带宽
FindServerBandwidthStats(ctx context.Context, in *FindServerBandwidthStatsRequest, opts ...grpc.CallOption) (*FindServerBandwidthStatsResponse, error)
}
type serverBandwidthStatServiceClient struct {
@@ -208,10 +370,21 @@ func (c *serverBandwidthStatServiceClient) UploadServerBandwidthStats(ctx contex
return out, nil
}
func (c *serverBandwidthStatServiceClient) FindServerBandwidthStats(ctx context.Context, in *FindServerBandwidthStatsRequest, opts ...grpc.CallOption) (*FindServerBandwidthStatsResponse, error) {
out := new(FindServerBandwidthStatsResponse)
err := c.cc.Invoke(ctx, "/pb.ServerBandwidthStatService/findServerBandwidthStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ServerBandwidthStatServiceServer is the server API for ServerBandwidthStatService service.
type ServerBandwidthStatServiceServer interface {
// 上传带宽统计
UploadServerBandwidthStats(context.Context, *UploadServerBandwidthStatsRequest) (*RPCSuccess, error)
// 获取服务的峰值带宽
FindServerBandwidthStats(context.Context, *FindServerBandwidthStatsRequest) (*FindServerBandwidthStatsResponse, error)
}
// UnimplementedServerBandwidthStatServiceServer can be embedded to have forward compatible implementations.
@@ -221,6 +394,9 @@ type UnimplementedServerBandwidthStatServiceServer struct {
func (*UnimplementedServerBandwidthStatServiceServer) UploadServerBandwidthStats(context.Context, *UploadServerBandwidthStatsRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UploadServerBandwidthStats not implemented")
}
func (*UnimplementedServerBandwidthStatServiceServer) FindServerBandwidthStats(context.Context, *FindServerBandwidthStatsRequest) (*FindServerBandwidthStatsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindServerBandwidthStats not implemented")
}
func RegisterServerBandwidthStatServiceServer(s *grpc.Server, srv ServerBandwidthStatServiceServer) {
s.RegisterService(&_ServerBandwidthStatService_serviceDesc, srv)
@@ -244,6 +420,24 @@ func _ServerBandwidthStatService_UploadServerBandwidthStats_Handler(srv interfac
return interceptor(ctx, in, info, handler)
}
func _ServerBandwidthStatService_FindServerBandwidthStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindServerBandwidthStatsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ServerBandwidthStatServiceServer).FindServerBandwidthStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.ServerBandwidthStatService/FindServerBandwidthStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ServerBandwidthStatServiceServer).FindServerBandwidthStats(ctx, req.(*FindServerBandwidthStatsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _ServerBandwidthStatService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.ServerBandwidthStatService",
HandlerType: (*ServerBandwidthStatServiceServer)(nil),
@@ -252,6 +446,10 @@ var _ServerBandwidthStatService_serviceDesc = grpc.ServiceDesc{
MethodName: "uploadServerBandwidthStats",
Handler: _ServerBandwidthStatService_UploadServerBandwidthStats_Handler,
},
{
MethodName: "findServerBandwidthStats",
Handler: _ServerBandwidthStatService_FindServerBandwidthStats_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_server_bandwidth_stat.proto",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,753 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.19.4
// source: service_user_ticket_log.proto
package pb
import (
context "context"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// 创建日志
type CreateUserTicketLogRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserTicketId int64 `protobuf:"varint,1,opt,name=userTicketId,proto3" json:"userTicketId,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
}
func (x *CreateUserTicketLogRequest) Reset() {
*x = CreateUserTicketLogRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_ticket_log_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateUserTicketLogRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateUserTicketLogRequest) ProtoMessage() {}
func (x *CreateUserTicketLogRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_ticket_log_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 CreateUserTicketLogRequest.ProtoReflect.Descriptor instead.
func (*CreateUserTicketLogRequest) Descriptor() ([]byte, []int) {
return file_service_user_ticket_log_proto_rawDescGZIP(), []int{0}
}
func (x *CreateUserTicketLogRequest) GetUserTicketId() int64 {
if x != nil {
return x.UserTicketId
}
return 0
}
func (x *CreateUserTicketLogRequest) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *CreateUserTicketLogRequest) GetComment() string {
if x != nil {
return x.Comment
}
return ""
}
type CreateUserTicketLogResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserTicketLogId int64 `protobuf:"varint,1,opt,name=userTicketLogId,proto3" json:"userTicketLogId,omitempty"`
}
func (x *CreateUserTicketLogResponse) Reset() {
*x = CreateUserTicketLogResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_ticket_log_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateUserTicketLogResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateUserTicketLogResponse) ProtoMessage() {}
func (x *CreateUserTicketLogResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_user_ticket_log_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreateUserTicketLogResponse.ProtoReflect.Descriptor instead.
func (*CreateUserTicketLogResponse) Descriptor() ([]byte, []int) {
return file_service_user_ticket_log_proto_rawDescGZIP(), []int{1}
}
func (x *CreateUserTicketLogResponse) GetUserTicketLogId() int64 {
if x != nil {
return x.UserTicketLogId
}
return 0
}
// 删除日志
type DeleteUserTicketLogRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserTicketLogId int64 `protobuf:"varint,1,opt,name=userTicketLogId,proto3" json:"userTicketLogId,omitempty"`
}
func (x *DeleteUserTicketLogRequest) Reset() {
*x = DeleteUserTicketLogRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_ticket_log_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteUserTicketLogRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteUserTicketLogRequest) ProtoMessage() {}
func (x *DeleteUserTicketLogRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_ticket_log_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteUserTicketLogRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserTicketLogRequest) Descriptor() ([]byte, []int) {
return file_service_user_ticket_log_proto_rawDescGZIP(), []int{2}
}
func (x *DeleteUserTicketLogRequest) GetUserTicketLogId() int64 {
if x != nil {
return x.UserTicketLogId
}
return 0
}
// 查询日志数量
type CountUserTicketLogsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserTicketId int64 `protobuf:"varint,1,opt,name=userTicketId,proto3" json:"userTicketId,omitempty"`
}
func (x *CountUserTicketLogsRequest) Reset() {
*x = CountUserTicketLogsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_ticket_log_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CountUserTicketLogsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountUserTicketLogsRequest) ProtoMessage() {}
func (x *CountUserTicketLogsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_ticket_log_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CountUserTicketLogsRequest.ProtoReflect.Descriptor instead.
func (*CountUserTicketLogsRequest) Descriptor() ([]byte, []int) {
return file_service_user_ticket_log_proto_rawDescGZIP(), []int{3}
}
func (x *CountUserTicketLogsRequest) GetUserTicketId() int64 {
if x != nil {
return x.UserTicketId
}
return 0
}
// 列出单页日志
type ListUserTicketLogsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserTicketId int64 `protobuf:"varint,1,opt,name=userTicketId,proto3" json:"userTicketId,omitempty"`
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
}
func (x *ListUserTicketLogsRequest) Reset() {
*x = ListUserTicketLogsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_ticket_log_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListUserTicketLogsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListUserTicketLogsRequest) ProtoMessage() {}
func (x *ListUserTicketLogsRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_ticket_log_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListUserTicketLogsRequest.ProtoReflect.Descriptor instead.
func (*ListUserTicketLogsRequest) Descriptor() ([]byte, []int) {
return file_service_user_ticket_log_proto_rawDescGZIP(), []int{4}
}
func (x *ListUserTicketLogsRequest) GetUserTicketId() int64 {
if x != nil {
return x.UserTicketId
}
return 0
}
func (x *ListUserTicketLogsRequest) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
func (x *ListUserTicketLogsRequest) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
type ListUserTicketLogsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserTicketLogs []*UserTicketLog `protobuf:"bytes,1,rep,name=userTicketLogs,proto3" json:"userTicketLogs,omitempty"`
}
func (x *ListUserTicketLogsResponse) Reset() {
*x = ListUserTicketLogsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_ticket_log_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListUserTicketLogsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListUserTicketLogsResponse) ProtoMessage() {}
func (x *ListUserTicketLogsResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_user_ticket_log_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListUserTicketLogsResponse.ProtoReflect.Descriptor instead.
func (*ListUserTicketLogsResponse) Descriptor() ([]byte, []int) {
return file_service_user_ticket_log_proto_rawDescGZIP(), []int{5}
}
func (x *ListUserTicketLogsResponse) GetUserTicketLogs() []*UserTicketLog {
if x != nil {
return x.UserTicketLogs
}
return nil
}
var File_service_user_ticket_log_proto protoreflect.FileDescriptor
var file_service_user_ticket_log_proto_rawDesc = []byte{
0x0a, 0x1d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74,
0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x02, 0x70, 0x62, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65,
0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x6c, 0x6f,
0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f,
0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0x72, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x22, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b,
0x65, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07,
0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x47, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63,
0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x49, 0x64, 0x22,
0x46, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63,
0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a,
0x0f, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x49, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b,
0x65, 0x74, 0x4c, 0x6f, 0x67, 0x49, 0x64, 0x22, 0x40, 0x0a, 0x1a, 0x43, 0x6f, 0x75, 0x6e, 0x74,
0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63,
0x6b, 0x65, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x75, 0x73, 0x65,
0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x22, 0x6b, 0x0a, 0x19, 0x4c, 0x69, 0x73,
0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69,
0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x75, 0x73,
0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66,
0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73,
0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x57, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73,
0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b,
0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70,
0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x52,
0x0e, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x32,
0xd7, 0x02, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f,
0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x12,
0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54,
0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54,
0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x45, 0x0a, 0x13, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69,
0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c,
0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43,
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4b, 0x0a, 0x13, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x1e,
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63,
0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 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, 0x53, 0x0a, 0x12, 0x6c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72,
0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e,
0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f,
0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x4c,
0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x6f, 0x67,
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_service_user_ticket_log_proto_rawDescOnce sync.Once
file_service_user_ticket_log_proto_rawDescData = file_service_user_ticket_log_proto_rawDesc
)
func file_service_user_ticket_log_proto_rawDescGZIP() []byte {
file_service_user_ticket_log_proto_rawDescOnce.Do(func() {
file_service_user_ticket_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_user_ticket_log_proto_rawDescData)
})
return file_service_user_ticket_log_proto_rawDescData
}
var file_service_user_ticket_log_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_service_user_ticket_log_proto_goTypes = []interface{}{
(*CreateUserTicketLogRequest)(nil), // 0: pb.CreateUserTicketLogRequest
(*CreateUserTicketLogResponse)(nil), // 1: pb.CreateUserTicketLogResponse
(*DeleteUserTicketLogRequest)(nil), // 2: pb.DeleteUserTicketLogRequest
(*CountUserTicketLogsRequest)(nil), // 3: pb.CountUserTicketLogsRequest
(*ListUserTicketLogsRequest)(nil), // 4: pb.ListUserTicketLogsRequest
(*ListUserTicketLogsResponse)(nil), // 5: pb.ListUserTicketLogsResponse
(*UserTicketLog)(nil), // 6: pb.UserTicketLog
(*RPCSuccess)(nil), // 7: pb.RPCSuccess
(*RPCCountResponse)(nil), // 8: pb.RPCCountResponse
}
var file_service_user_ticket_log_proto_depIdxs = []int32{
6, // 0: pb.ListUserTicketLogsResponse.userTicketLogs:type_name -> pb.UserTicketLog
0, // 1: pb.UserTicketLogService.createUserTicketLog:input_type -> pb.CreateUserTicketLogRequest
2, // 2: pb.UserTicketLogService.deleteUserTicketLog:input_type -> pb.DeleteUserTicketLogRequest
3, // 3: pb.UserTicketLogService.countUserTicketLogs:input_type -> pb.CountUserTicketLogsRequest
4, // 4: pb.UserTicketLogService.listUserTicketLogs:input_type -> pb.ListUserTicketLogsRequest
1, // 5: pb.UserTicketLogService.createUserTicketLog:output_type -> pb.CreateUserTicketLogResponse
7, // 6: pb.UserTicketLogService.deleteUserTicketLog:output_type -> pb.RPCSuccess
8, // 7: pb.UserTicketLogService.countUserTicketLogs:output_type -> pb.RPCCountResponse
5, // 8: pb.UserTicketLogService.listUserTicketLogs:output_type -> pb.ListUserTicketLogsResponse
5, // [5:9] is the sub-list for method output_type
1, // [1:5] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_service_user_ticket_log_proto_init() }
func file_service_user_ticket_log_proto_init() {
if File_service_user_ticket_log_proto != nil {
return
}
file_models_model_user_ticket_log_proto_init()
file_models_rpc_messages_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_user_ticket_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateUserTicketLogRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_user_ticket_log_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateUserTicketLogResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_user_ticket_log_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteUserTicketLogRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_user_ticket_log_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CountUserTicketLogsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_user_ticket_log_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListUserTicketLogsRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_user_ticket_log_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListUserTicketLogsResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_user_ticket_log_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_user_ticket_log_proto_goTypes,
DependencyIndexes: file_service_user_ticket_log_proto_depIdxs,
MessageInfos: file_service_user_ticket_log_proto_msgTypes,
}.Build()
File_service_user_ticket_log_proto = out.File
file_service_user_ticket_log_proto_rawDesc = nil
file_service_user_ticket_log_proto_goTypes = nil
file_service_user_ticket_log_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// UserTicketLogServiceClient is the client API for UserTicketLogService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type UserTicketLogServiceClient interface {
// 创建日志
CreateUserTicketLog(ctx context.Context, in *CreateUserTicketLogRequest, opts ...grpc.CallOption) (*CreateUserTicketLogResponse, error)
// 删除日志
DeleteUserTicketLog(ctx context.Context, in *DeleteUserTicketLogRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 查询日志数量
CountUserTicketLogs(ctx context.Context, in *CountUserTicketLogsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
// 列出单页日志
ListUserTicketLogs(ctx context.Context, in *ListUserTicketLogsRequest, opts ...grpc.CallOption) (*ListUserTicketLogsResponse, error)
}
type userTicketLogServiceClient struct {
cc grpc.ClientConnInterface
}
func NewUserTicketLogServiceClient(cc grpc.ClientConnInterface) UserTicketLogServiceClient {
return &userTicketLogServiceClient{cc}
}
func (c *userTicketLogServiceClient) CreateUserTicketLog(ctx context.Context, in *CreateUserTicketLogRequest, opts ...grpc.CallOption) (*CreateUserTicketLogResponse, error) {
out := new(CreateUserTicketLogResponse)
err := c.cc.Invoke(ctx, "/pb.UserTicketLogService/createUserTicketLog", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userTicketLogServiceClient) DeleteUserTicketLog(ctx context.Context, in *DeleteUserTicketLogRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.UserTicketLogService/deleteUserTicketLog", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userTicketLogServiceClient) CountUserTicketLogs(ctx context.Context, in *CountUserTicketLogsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
out := new(RPCCountResponse)
err := c.cc.Invoke(ctx, "/pb.UserTicketLogService/countUserTicketLogs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userTicketLogServiceClient) ListUserTicketLogs(ctx context.Context, in *ListUserTicketLogsRequest, opts ...grpc.CallOption) (*ListUserTicketLogsResponse, error) {
out := new(ListUserTicketLogsResponse)
err := c.cc.Invoke(ctx, "/pb.UserTicketLogService/listUserTicketLogs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// UserTicketLogServiceServer is the server API for UserTicketLogService service.
type UserTicketLogServiceServer interface {
// 创建日志
CreateUserTicketLog(context.Context, *CreateUserTicketLogRequest) (*CreateUserTicketLogResponse, error)
// 删除日志
DeleteUserTicketLog(context.Context, *DeleteUserTicketLogRequest) (*RPCSuccess, error)
// 查询日志数量
CountUserTicketLogs(context.Context, *CountUserTicketLogsRequest) (*RPCCountResponse, error)
// 列出单页日志
ListUserTicketLogs(context.Context, *ListUserTicketLogsRequest) (*ListUserTicketLogsResponse, error)
}
// UnimplementedUserTicketLogServiceServer can be embedded to have forward compatible implementations.
type UnimplementedUserTicketLogServiceServer struct {
}
func (*UnimplementedUserTicketLogServiceServer) CreateUserTicketLog(context.Context, *CreateUserTicketLogRequest) (*CreateUserTicketLogResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateUserTicketLog not implemented")
}
func (*UnimplementedUserTicketLogServiceServer) DeleteUserTicketLog(context.Context, *DeleteUserTicketLogRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteUserTicketLog not implemented")
}
func (*UnimplementedUserTicketLogServiceServer) CountUserTicketLogs(context.Context, *CountUserTicketLogsRequest) (*RPCCountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CountUserTicketLogs not implemented")
}
func (*UnimplementedUserTicketLogServiceServer) ListUserTicketLogs(context.Context, *ListUserTicketLogsRequest) (*ListUserTicketLogsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListUserTicketLogs not implemented")
}
func RegisterUserTicketLogServiceServer(s *grpc.Server, srv UserTicketLogServiceServer) {
s.RegisterService(&_UserTicketLogService_serviceDesc, srv)
}
func _UserTicketLogService_CreateUserTicketLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateUserTicketLogRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserTicketLogServiceServer).CreateUserTicketLog(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserTicketLogService/CreateUserTicketLog",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserTicketLogServiceServer).CreateUserTicketLog(ctx, req.(*CreateUserTicketLogRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserTicketLogService_DeleteUserTicketLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteUserTicketLogRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserTicketLogServiceServer).DeleteUserTicketLog(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserTicketLogService/DeleteUserTicketLog",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserTicketLogServiceServer).DeleteUserTicketLog(ctx, req.(*DeleteUserTicketLogRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserTicketLogService_CountUserTicketLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CountUserTicketLogsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserTicketLogServiceServer).CountUserTicketLogs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserTicketLogService/CountUserTicketLogs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserTicketLogServiceServer).CountUserTicketLogs(ctx, req.(*CountUserTicketLogsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserTicketLogService_ListUserTicketLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListUserTicketLogsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserTicketLogServiceServer).ListUserTicketLogs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserTicketLogService/ListUserTicketLogs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserTicketLogServiceServer).ListUserTicketLogs(ctx, req.(*ListUserTicketLogsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _UserTicketLogService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.UserTicketLogService",
HandlerType: (*UserTicketLogServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "createUserTicketLog",
Handler: _UserTicketLogService_CreateUserTicketLog_Handler,
},
{
MethodName: "deleteUserTicketLog",
Handler: _UserTicketLogService_DeleteUserTicketLog_Handler,
},
{
MethodName: "countUserTicketLogs",
Handler: _UserTicketLogService_CountUserTicketLogs_Handler,
},
{
MethodName: "listUserTicketLogs",
Handler: _UserTicketLogService_ListUserTicketLogs_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "service_user_ticket_log.proto",
}

View File

@@ -0,0 +1,34 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
message IPLibraryFile {
int64 id = 1;
int64 fileId = 2;
bool isFinished = 3;
int64 createdAt = 4;
repeated string countryNames = 5;
repeated Province provinces = 6;
repeated City cities = 7;
repeated Town towns = 8;
repeated string providerNames = 9;
message Province {
string countryName = 1;
string provinceName = 2;
}
message City {
string countryName = 1;
string provinceName = 2;
string cityName = 3;
}
message Town {
string countryName = 1;
string provinceName = 2;
string cityName = 3;
string townName = 4;
}
}

View File

@@ -9,4 +9,7 @@ message NSCluster {
bool isOn = 2;
string name = 3;
string installDir = 4;
bytes tcpJSON = 5;
bytes tlsJSON = 6;
bytes udpJSON = 7;
}

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

@@ -0,0 +1,15 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 订单支付方式
message OrderMethod {
int64 id = 1;
string name = 2;
string code = 3;
string description = 4;
string url = 5;
string secret = 6;
bool isOn = 7;
}

View File

@@ -10,6 +10,9 @@ message RegionCity {
string name = 2;
repeated string codes = 3;
int64 regionProvinceId = 4;
string customName = 5;
repeated string customCodes = 6;
string displayName = 7;
RegionProvince regionProvince = 30;
}

View File

@@ -8,4 +8,7 @@ message RegionCountry {
string name = 2;
repeated string codes = 3;
repeated string pinyin = 4;
string customName = 5;
repeated string customCodes = 6;
string displayName = 7;
}

View File

@@ -7,4 +7,7 @@ message RegionProvider {
int64 id = 1;
string name = 2;
repeated string codes = 3;
string customName = 4;
repeated string customCodes = 5;
string displayName = 6;
}

View File

@@ -7,4 +7,8 @@ message RegionProvince {
int64 id = 1;
string name = 2;
repeated string codes = 3;
int64 regionCountryId = 4;
string customName = 5;
repeated string customCodes = 6;
string displayName = 7;
}

View File

@@ -0,0 +1,18 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_region_city.proto";
message RegionTown {
int64 id = 1;
string name = 2;
repeated string codes = 3;
int64 regionCityId = 4;
string customName = 5;
repeated string customCodes = 6;
string displayName = 7;
RegionCity regionCity = 30;
}

View File

@@ -0,0 +1,28 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_user.proto";
import "models/model_order_method.proto";
// 用户订单
message UserOrder {
int64 userId = 2;
string code = 3;
string type = 4;
int64 orderMethodId = 5;
string status = 6;
float amount = 7;
bytes paramsJSON = 8;
int64 createdAt = 9;
int64 cancelledAt = 10;
int64 finishedAt = 11;
bool isExpired = 12;
User user = 30;
OrderMethod orderMethod = 31;
bool canPay = 32; // 是否可以支付
string payURL = 33; // 构造后的支付URL
}

View File

@@ -0,0 +1,24 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_user_ticket_category.proto";
import "models/model_user.proto";
import "models/model_user_ticket_log.proto";
// 工单
message UserTicket {
int64 id = 1;
int64 categoryId = 2;
int64 userId = 3;
string subject = 4;
string body = 5;
string status = 6;
int64 createdAt = 7;
int64 lastLogAt = 8;
UserTicketCategory userTicketCategory = 30;
User user = 31;
UserTicketLog latestUserTicketLog = 32;
}

View File

@@ -0,0 +1,11 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
// 工单分类
message UserTicketCategory {
int64 id = 1;
string name = 2;
bool isOn = 3;
}

View File

@@ -0,0 +1,22 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_admin.proto";
import "models/model_user.proto";
// 工单日志
message UserTicketLog {
int64 id = 1;
int64 adminId = 2;
int64 userId = 3;
int64 ticketId = 4;
string status = 5;
string comment = 6;
int64 createdAt = 7;
bool isReadonly = 8;
Admin admin = 30;
User user = 31;
}

View File

@@ -10,10 +10,10 @@ import "models/model_http_access_log.proto";
// 访问日志策略服务
service HTTPAccessLogPolicyService {
// 计算访问日志策略数量
rpc countAllEnabledHTTPAccessLogPolicies (CountAllEnabledHTTPAccessLogPoliciesRequest) returns (RPCCountResponse);
rpc countAllHTTPAccessLogPolicies (CountAllHTTPAccessLogPoliciesRequest) returns (RPCCountResponse);
// 列出单页访问日志策略
rpc listEnabledHTTPAccessLogPolicies (ListEnabledHTTPAccessLogPoliciesRequest) returns (ListEnabledHTTPAccessLogPoliciesResponse);
rpc listHTTPAccessLogPolicies (ListHTTPAccessLogPoliciesRequest) returns (ListHTTPAccessLogPoliciesResponse);
// 创建访问日志策略
rpc createHTTPAccessLogPolicy (CreateHTTPAccessLogPolicyRequest) returns (CreateHTTPAccessLogPolicyResponse);
@@ -22,7 +22,7 @@ service HTTPAccessLogPolicyService {
rpc updateHTTPAccessLogPolicy (UpdateHTTPAccessLogPolicyRequest) returns (RPCSuccess);
// 查找单个访问日志策略
rpc findEnabledHTTPAccessLogPolicy (FindEnabledHTTPAccessLogPolicyRequest) returns (FindEnabledHTTPAccessLogPolicyResponse);
rpc findHTTPAccessLogPolicy (FindHTTPAccessLogPolicyRequest) returns (FindHTTPAccessLogPolicyResponse);
// 删除访问日志策略
rpc deleteHTTPAccessLogPolicy (DeleteHTTPAccessLogPolicyRequest) returns (RPCSuccess);
@@ -32,17 +32,17 @@ service HTTPAccessLogPolicyService {
}
// 计算访问日志策略数量
message CountAllEnabledHTTPAccessLogPoliciesRequest {
message CountAllHTTPAccessLogPoliciesRequest {
}
// 列出单页访问日志策略
message ListEnabledHTTPAccessLogPoliciesRequest {
message ListHTTPAccessLogPoliciesRequest {
int64 offset = 1;
int64 size = 2;
}
message ListEnabledHTTPAccessLogPoliciesResponse {
message ListHTTPAccessLogPoliciesResponse {
repeated HTTPAccessLogPolicy httpAccessLogPolicies = 1;
}
@@ -72,11 +72,11 @@ message UpdateHTTPAccessLogPolicyRequest {
}
// 查找单个访问日志策略
message FindEnabledHTTPAccessLogPolicyRequest {
message FindHTTPAccessLogPolicyRequest {
int64 httpAccessLogPolicyId = 1;
}
message FindEnabledHTTPAccessLogPolicyResponse {
message FindHTTPAccessLogPolicyResponse {
HTTPAccessLogPolicy httpAccessLogPolicy = 1;
}

View File

@@ -9,25 +9,39 @@ import "models/model_ip_library.proto";
// IP库
service IPLibraryService {
// 创建IP库
rpc createIPLibrary (CreateIPLibraryRequest) returns (CreateIPLibraryResponse);
rpc createIPLibrary (CreateIPLibraryRequest) returns (CreateIPLibraryResponse) {
option deprecated = true;
};
// 查找最新的IP库
rpc findLatestIPLibraryWithType (FindLatestIPLibraryWithTypeRequest) returns (FindLatestIPLibraryWithTypeResponse);
rpc findLatestIPLibraryWithType (FindLatestIPLibraryWithTypeRequest) returns (FindLatestIPLibraryWithTypeResponse) {
option deprecated = true;
};
// 查找单个IP库
rpc findEnabledIPLibrary (FindEnabledIPLibraryRequest) returns (FindEnabledIPLibraryResponse);
rpc findEnabledIPLibrary (FindEnabledIPLibraryRequest) returns (FindEnabledIPLibraryResponse) {
option deprecated = true;
};
// 列出某个类型的所有IP库
rpc findAllEnabledIPLibrariesWithType (FindAllEnabledIPLibrariesWithTypeRequest) returns (FindAllEnabledIPLibrariesWithTypeResponse);
rpc findAllEnabledIPLibrariesWithType (FindAllEnabledIPLibrariesWithTypeRequest) returns (FindAllEnabledIPLibrariesWithTypeResponse) {
option deprecated = true;
};
// 删除IP库
rpc deleteIPLibrary (DeleteIPLibraryRequest) returns (RPCSuccess);
rpc deleteIPLibrary (DeleteIPLibraryRequest) returns (RPCSuccess) {
option deprecated = true;
};
// 查询某个IP信息
rpc lookupIPRegion (LookupIPRegionRequest) returns (LookupIPRegionResponse);
rpc lookupIPRegion (LookupIPRegionRequest) returns (LookupIPRegionResponse) {
option deprecated = true;
};
// 查询一组IP信息
rpc lookupIPRegions (LookupIPRegionsRequest) returns (LookupIPRegionsResponse);
rpc lookupIPRegions (LookupIPRegionsRequest) returns (LookupIPRegionsResponse) {
option deprecated = true;
};
}
// 创建IP库

View File

@@ -0,0 +1,158 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/rpc_messages.proto";
import "models/model_ip_library_file.proto";
import "models/model_region_country.proto";
import "models/model_region_province.proto";
import "models/model_region_city.proto";
import "models/model_region_town.proto";
import "models/model_region_provider.proto";
// IP库文件管理
service IPLibraryFileService {
// 查找所有未完成的IP库文件
rpc findAllUnfinishedIPLibraryFiles(FindAllUnfinishedIPLibraryFilesRequest) returns (FindAllUnfinishedIPLibraryFilesResponse);
// 查找单个IP库文件
rpc findIPLibraryFile(FindIPLibraryFileRequest) returns (FindIPLibraryFileResponse);
// 创建IP库文件
rpc createIPLibraryFile(CreateIPLibraryFileRequest) returns (CreateIPLibraryFileResponse);
// 检查国家/地区
rpc checkCountriesWithIPLibraryFileId(CheckCountriesWithIPLibraryFileIdRequest) returns (CheckCountriesWithIPLibraryFileIdResponse);
// 检查省份/州
rpc checkProvincesWithIPLibraryFileId(CheckProvincesWithIPLibraryFileIdRequest) returns (CheckProvincesWithIPLibraryFileIdResponse);
// 检查城市/市
rpc checkCitiesWithIPLibraryFileId(CheckCitiesWithIPLibraryFileIdRequest) returns (CheckCitiesWithIPLibraryFileIdResponse);
// 检查区县
rpc checkTownsWithIPLibraryFileId(CheckTownsWithIPLibraryFileIdRequest) returns (CheckTownsWithIPLibraryFileIdResponse);
// 检查ISP运营商
rpc checkProvidersWithIPLibraryFileId(CheckProvidersWithIPLibraryFileIdRequest) returns (CheckProvidersWithIPLibraryFileIdResponse);
// 生成IP库文件
rpc generateIPLibraryFile(GenerateIPLibraryFileRequest) returns (RPCSuccess);
}
// 查找所有未完成的IP库文件
message FindAllUnfinishedIPLibraryFilesRequest {
}
message FindAllUnfinishedIPLibraryFilesResponse {
repeated IPLibraryFile ipLibraryFiles = 1;
}
// 查找单个IP库文件
message FindIPLibraryFileRequest {
int64 ipLibraryFileId = 1;
}
message FindIPLibraryFileResponse {
IPLibraryFile ipLibraryFile = 1;
}
// 创建IP库文件
message CreateIPLibraryFileRequest {
string template = 1;
repeated string emptyValues = 2;
int64 fileId = 3;
bytes countriesJSON = 4;
bytes provincesJSON = 5;
bytes citiesJSON = 6;
bytes townsJSON = 7;
bytes providersJSON = 8;
}
message CreateIPLibraryFileResponse {
int64 ipLibraryFileId = 1;
}
// 检查国家/地区
message CheckCountriesWithIPLibraryFileIdRequest {
int64 ipLibraryFileId = 1;
}
message CheckCountriesWithIPLibraryFileIdResponse {
repeated MissingCountry missingCountries = 1;
message MissingCountry {
string countryName = 1;
repeated RegionCountry similarCountries = 2;
}
}
// 检查省份/州
message CheckProvincesWithIPLibraryFileIdRequest{
int64 ipLibraryFileId = 1;
}
message CheckProvincesWithIPLibraryFileIdResponse {
repeated MissingProvince missingProvinces = 1;
message MissingProvince {
string countryName = 1;
string provinceName = 2;
repeated RegionProvince similarProvinces = 3;
}
}
// 检查城市/市
message CheckCitiesWithIPLibraryFileIdRequest{
int64 ipLibraryFileId = 1;
}
message CheckCitiesWithIPLibraryFileIdResponse {
repeated MissingCity missingCities = 1;
message MissingCity {
string countryName = 1;
string provinceName = 2;
string cityName = 3;
repeated RegionCity similarCities = 4;
}
}
// 检查区县
message CheckTownsWithIPLibraryFileIdRequest {
int64 ipLibraryFileId = 1;
}
message CheckTownsWithIPLibraryFileIdResponse {
repeated MissingTown missingTowns = 1;
message MissingTown {
string countryName = 1;
string provinceName = 2;
string cityName = 3;
string townName = 4;
repeated RegionTown similarTowns = 5;
}
}
// 检查ISP运营商
message CheckProvidersWithIPLibraryFileIdRequest{
int64 ipLibraryFileId = 1;
}
message CheckProvidersWithIPLibraryFileIdResponse {
repeated MissingProvider missingProviders = 1;
message MissingProvider {
string providerName = 1;
repeated RegionProvider similarProviders = 2;
}
}
// 生成IP库文件
message GenerateIPLibraryFileRequest {
int64 ipLibraryFileId = 1;
}

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

@@ -29,13 +29,15 @@ message CreateNSAccessLogsResponse {
// 列出往前的单页访问日志
message ListNSAccessLogsRequest {
string requestId = 1; // 上一页请求ID可选
int64 nsClusterId = 9; // 集群
int64 nsNodeId = 2; // 节点ID
int64 nsDomainId = 3; // 域名ID
int64 nsRecordId = 4; // 记录ID
int64 size = 5; // 单页条数
string day = 6; // 日期格式YYYYMMDD
bool reverse = 7; // 是否反向查找,可选
string keyword = 8;
string keyword = 8; // 关键词
string recordType = 10; // 记录类型
}
message ListNSAccessLogsResponse {

View File

@@ -24,22 +24,43 @@ 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);
// 读取递归DNS配置
rpc findNSClusterRecursionConfig(FindNSClusterRecursionConfigRequest) returns (FindNSClusterRecursionConfigResponse);
// 查找集群的TCP设置
rpc findNSClusterTCPConfig(FindNSClusterTCPConfigRequest) returns (FindNSClusterTCPConfigResponse);
// 修改集群的TCP设置
rpc updateNSClusterTCP (UpdateNSClusterTCPRequest) returns (RPCSuccess);
// 查找集群的TLS设置
rpc findNSClusterTLSConfig(FindNSClusterTLSConfigRequest) returns (FindNSClusterTLSConfigResponse);
// 修改集群的TLS设置
rpc updateNSClusterTLS (UpdateNSClusterTLSRequest) returns (RPCSuccess);
// 查找集群的UDP设置
rpc findNSClusterUDPConfig(FindNSClusterUDPConfigRequest) returns (FindNSClusterUDPConfigResponse);
// 修改集群的UDP设置
rpc updateNSClusterUDP (UpdateNSClusterUDPRequest) returns (RPCSuccess);
// 计算使用某个SSL证书的集群数量
rpc countAllNSClustersWithSSLCertId (CountAllNSClustersWithSSLCertIdRequest) returns (RPCCountResponse);
}
// 创建集群
@@ -80,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;
}
@@ -124,4 +145,54 @@ message FindNSClusterRecursionConfigRequest {
message FindNSClusterRecursionConfigResponse {
bytes recursionJSON = 1;
}
// 查找集群的TCP设置
message FindNSClusterTCPConfigRequest {
int64 nsClusterId = 1;
}
message FindNSClusterTCPConfigResponse {
bytes tcpJSON = 1;
}
// 查找集群的TLS设置
message FindNSClusterTLSConfigRequest {
int64 nsClusterId = 1;
}
message FindNSClusterTLSConfigResponse {
bytes tlsJSON = 1;
}
// 查找集群的UDP设置
message FindNSClusterUDPConfigRequest {
int64 nsClusterId = 1;
}
message FindNSClusterUDPConfigResponse {
bytes udpJSON = 1;
}
// 修改集群的TCP设置
message UpdateNSClusterTCPRequest {
int64 nsClusterId = 1;
bytes tcpJSON = 2;
}
// 修改集群的TLS设置
message UpdateNSClusterTLSRequest {
int64 nsClusterId = 1;
bytes tlsJSON = 2;
}
// 修改集群的UDP设置
message UpdateNSClusterUDPRequest {
int64 nsClusterId = 1;
bytes udpJSON = 2;
}
// 计算使用某个SSL证书的集群数量
message CountAllNSClustersWithSSLCertIdRequest {
int64 sslCertId = 1;
}

View File

@@ -8,51 +8,74 @@ import "models/rpc_messages.proto";
// 域名相关服务
service NSDomainService {
// 创建域名
// 创建单个域名
rpc createNSDomain (CreateNSDomainRequest) returns (CreateNSDomainResponse);
// 批量创建域名
rpc createNSDomains(CreateNSDomainsRequest) returns (CreateNSDomainsResponse);
// 修改域名
rpc updateNSDomain (UpdateNSDomainRequest) returns (RPCSuccess);
// 删除域名
rpc deleteNSDomain (DeleteNSDomainRequest) returns (RPCSuccess);
// 批量删除域名
rpc deleteNSDomains(DeleteNSDomainsRequest) 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;
}
@@ -61,32 +84,39 @@ message DeleteNSDomainRequest {
int64 nsDomainId = 1;
}
// 批量删除域名
message DeleteNSDomainsRequest {
repeated string names = 1;
}
// 查找单个域名
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 +131,11 @@ message ListNSDomainsAfterVersionResponse {
}
// 查找TSIG配置
message FindEnabledNSDomainTSIGRequest {
message FindNSDomainTSIGRequest {
int64 nsDomainId = 1;
}
message FindEnabledNSDomainTSIGResponse {
message FindNSDomainTSIGResponse {
bytes tsigJSON = 1;
}
@@ -113,4 +143,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,24 @@ service NSRecordService {
// 创建记录
rpc createNSRecord (CreateNSRecordRequest) returns (CreateNSRecordResponse);
// 批量创建记录
rpc createNSRecords(CreateNSRecordsRequest) returns (CreateNSRecordsResponse);
// 为一组域名批量创建记录
rpc createNSRecordsWithDomainNames(CreateNSRecordsWithDomainNamesRequest) returns (RPCSuccess);
// 批量修改一组域名的一组记录
rpc updateNSRecordsWithDomainNames(UpdateNSRecordsWithDomainNamesRequest) returns (RPCSuccess);
// 批量删除一组域名的一组记录
rpc deleteNSRecordsWithDomainNames(DeleteNSRecordsWithDomainNamesRequest) returns (RPCSuccess);
// 批量一组域名的一组记录启用状态
rpc updateNSRecordsIsOnWithDomainNames(UpdateNSRecordsIsOnWithDomainNamesRequest) returns (RPCSuccess);
// 导入域名解析
rpc importNSRecords(ImportNSRecordsRequest) returns (RPCSuccess);
// 修改记录
rpc updateNSRecord (UpdateNSRecordRequest) returns (RPCSuccess);
@@ -18,13 +36,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 +64,74 @@ 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 CreateNSRecordsWithDomainNamesRequest {
repeated string nsDomainNames = 1;
bytes recordsJSON = 2;
bool removeOld = 3;
bool removeAll = 4;
}
// 批量修改一组域名的一组记录
message UpdateNSRecordsWithDomainNamesRequest {
repeated string nsDomainNames = 1;
string searchName = 2;
string searchValue = 3;
string searchType = 4;
repeated string searchNSRouteCodes = 5;
string newName = 6;
string newValue = 7;
string newType = 8;
repeated string newNSRouteCodes = 9;
}
// 批量删除一组域名的一组记录
message DeleteNSRecordsWithDomainNamesRequest {
repeated string nsDomainNames = 1;
string searchName = 2;
string searchValue = 3;
string searchType = 4;
repeated string searchNSRouteCodes = 5;
}
// 批量一组域名的一组记录启用状态
message UpdateNSRecordsIsOnWithDomainNamesRequest {
repeated string nsDomainNames = 1;
string searchName = 2;
string searchValue = 3;
string searchType = 4;
repeated string searchNSRouteCodes = 5;
bool isOn = 6;
}
// 导入域名解析
message ImportNSRecordsRequest {
repeated Record nsRecords = 1;
message Record {
string nsDomainName = 1;
string name = 2;
string type = 3;
string value = 4;
int32 ttl = 5;
}
}
// 修改记录
message UpdateNSRecordRequest {
int64 nsRecordId = 1;
@@ -65,7 +151,7 @@ message DeleteNSRecordRequest {
}
// 计算记录数量
message CountAllEnabledNSRecordsRequest {
message CountAllNSRecordsRequest {
int64 nsDomainId = 1;
string type = 2;
int64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替
@@ -74,7 +160,7 @@ message CountAllEnabledNSRecordsRequest {
}
// 读取单页记录
message ListEnabledNSRecordsRequest {
message ListNSRecordsRequest {
int64 nsDomainId = 1;
string type = 2;
int64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替
@@ -84,16 +170,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

@@ -0,0 +1,94 @@
syntax = "proto3";
option go_package = "./pb";
package pb;
import "models/model_order_method.proto";
import "models/rpc_messages.proto";
// 订单支付方式相关服务
service OrderMethodService {
// 创建支付方式
rpc createOrderMethod(CreateOrderMethodRequest) returns (CreateOrderMethodResponse);
// 修改支付方式
rpc updateOrderMethod(UpdateOrderMethodRequest) returns (RPCSuccess);
// 删除支付方式
rpc deleteOrderMethod(DeleteOrderMethodRequest) returns (RPCSuccess);
// 查找单个支付方式
rpc findEnabledOrderMethod(FindEnabledOrderMethodRequest) returns (FindEnabledOrderMethodResponse);
// 根据代号查找支付方式
rpc findEnabledOrderMethodWithCode(FindEnabledOrderMethodWithCodeRequest) returns (FindEnabledOrderMethodWithCodeResponse);
// 查找所有支付方式
rpc findAllEnabledOrderMethods(FindAllEnabledOrderMethodsRequest) returns (FindAllEnabledOrderMethodsResponse);
// 查找所有已启用的支付方式
rpc findAllAvailableOrderMethods(FindAllAvailableOrderMethodsRequest) returns (FindAllAvailableOrderMethodsResponse);
}
// 创建支付方式
message CreateOrderMethodRequest {
string name = 1;
string code = 2;
string description = 3;
string url = 4;
}
message CreateOrderMethodResponse {
int64 orderMethodId = 1;
}
// 修改支付方式
message UpdateOrderMethodRequest {
int64 orderMethodId = 1;
string name = 2;
string code = 3;
string description = 4;
string url = 5;
bool isOn = 6;
}
// 删除支付方式
message DeleteOrderMethodRequest {
int64 orderMethodId = 1;
}
// 查找单个支付方式
message FindEnabledOrderMethodRequest {
int64 orderMethodId = 1;
}
message FindEnabledOrderMethodResponse {
OrderMethod orderMethod = 1;
}
// 根据代号查找支付方式
message FindEnabledOrderMethodWithCodeRequest {
string code = 1;
}
message FindEnabledOrderMethodWithCodeResponse {
OrderMethod orderMethod = 1;
}
// 查找所有支付方式
message FindAllEnabledOrderMethodsRequest {
}
message FindAllEnabledOrderMethodsResponse {
repeated OrderMethod orderMethods = 1;
}
// 查找所有已启用的支付方式
message FindAllAvailableOrderMethodsRequest {
}
message FindAllAvailableOrderMethodsResponse {
repeated OrderMethod orderMethods = 1;
}

View File

@@ -4,14 +4,31 @@ option go_package = "./pb";
package pb;
import "models/model_region_city.proto";
import "models/rpc_messages.proto";
// 城市相关服务
service RegionCityService {
// 查找所有城市
rpc findAllEnabledRegionCities (FindAllEnabledRegionCitiesRequest) returns (FindAllEnabledRegionCitiesResponse);
rpc findAllEnabledRegionCities (FindAllEnabledRegionCitiesRequest) returns (FindAllEnabledRegionCitiesResponse) {
option deprecated = true;
};
// 查找单个城市信息
rpc findEnabledRegionCity (FindEnabledRegionCityRequest) returns (FindEnabledRegionCityResponse);
rpc findEnabledRegionCity (FindEnabledRegionCityRequest) returns (FindEnabledRegionCityResponse) {
option deprecated = true;
};
// 查找所有城市
rpc findAllRegionCities (FindAllRegionCitiesRequest) returns (FindAllRegionCitiesResponse);
// 查找某个省份的所有城市
rpc findAllRegionCitiesWithRegionProvinceId(FindAllRegionCitiesWithRegionProvinceIdRequest) returns (FindAllRegionCitiesWithRegionProvinceIdResponse);
// 查找单个城市信息
rpc findRegionCity (FindRegionCityRequest) returns (FindRegionCityResponse);
// 修改城市定制信息
rpc updateRegionCityCustom(UpdateRegionCityCustomRequest) returns (RPCSuccess);
}
// 查找所有城市
@@ -31,3 +48,37 @@ message FindEnabledRegionCityRequest {
message FindEnabledRegionCityResponse {
RegionCity regionCity = 1;
}
// 查找所有城市
message FindAllRegionCitiesRequest {
bool includeRegionProvince = 1;
}
message FindAllRegionCitiesResponse {
repeated RegionCity regionCities = 1;
}
// 查找某个省份的所有城市
message FindAllRegionCitiesWithRegionProvinceIdRequest {
int64 regionProvinceId = 1;
}
message FindAllRegionCitiesWithRegionProvinceIdResponse {
repeated RegionCity regionCities = 1;
}
// 查找单个城市信息
message FindRegionCityRequest {
int64 regionCityId = 1;
}
message FindRegionCityResponse {
RegionCity regionCity = 1;
}
// 修改城市定制信息
message UpdateRegionCityCustomRequest {
int64 regionCityId = 1;
string customName = 2;
repeated string customCodes = 3;
}

View File

@@ -4,17 +4,31 @@ option go_package = "./pb";
package pb;
import "models/model_region_country.proto";
import "models/rpc_messages.proto";
// 国家相关服务
service RegionCountryService {
// 查找所有的国家列表
rpc findAllEnabledRegionCountries (FindAllEnabledRegionCountriesRequest) returns (FindAllEnabledRegionCountriesResponse);
// 查找所有的国家/地区列表
rpc findAllEnabledRegionCountries (FindAllEnabledRegionCountriesRequest) returns (FindAllEnabledRegionCountriesResponse) {
option deprecated = true;
};
// 查找单个国家信息
rpc findEnabledRegionCountry (FindEnabledRegionCountryRequest) returns (FindEnabledRegionCountryResponse);
// 查找单个国家/地区信息
rpc findEnabledRegionCountry (FindEnabledRegionCountryRequest) returns (FindEnabledRegionCountryResponse) {
option deprecated = true;
};
// 查找所有的国家/地区列表
rpc findAllRegionCountries (FindAllRegionCountriesRequest) returns (FindAllRegionCountriesResponse);
// 查找单个国家/地区信息
rpc findRegionCountry (FindRegionCountryRequest) returns (FindRegionCountryResponse);
// 修改国家/地区定制信息
rpc updateRegionCountryCustom(UpdateRegionCountryCustomRequest) returns (RPCSuccess);
}
// 查找所有的国家列表
// 查找所有的国家/地区列表
message FindAllEnabledRegionCountriesRequest {
}
@@ -23,11 +37,36 @@ message FindAllEnabledRegionCountriesResponse {
repeated RegionCountry regionCountries = 1;
}
// 查找单个国家信息
// 查找单个国家/地区信息
message FindEnabledRegionCountryRequest {
int64 regionCountryId = 1;
}
message FindEnabledRegionCountryResponse {
RegionCountry regionCountry = 1;
}
// 查找所有的国家/地区列表
message FindAllRegionCountriesRequest {
}
message FindAllRegionCountriesResponse {
repeated RegionCountry regionCountries = 1;
}
// 查找单个国家/地区信息
message FindRegionCountryRequest {
int64 regionCountryId = 1;
}
message FindRegionCountryResponse {
RegionCountry regionCountry = 1;
}
// 修改国家/地区定制信息
message UpdateRegionCountryCustomRequest {
int64 regionCountryId = 1;
string customName = 2;
repeated string customCodes = 3;
}

View File

@@ -4,14 +4,28 @@ option go_package = "./pb";
package pb;
import "models/model_region_provider.proto";
import "models/rpc_messages.proto";
// ISP相关服务
service RegionProviderService {
// 查找所有ISP
rpc findAllEnabledRegionProviders (FindAllEnabledRegionProvidersRequest) returns (FindAllEnabledRegionProvidersResponse);
rpc findAllEnabledRegionProviders (FindAllEnabledRegionProvidersRequest) returns (FindAllEnabledRegionProvidersResponse) {
option deprecated = true;
};
// 查找单个ISP信息
rpc findEnabledRegionProvider (FindEnabledRegionProviderRequest) returns (FindEnabledRegionProviderResponse);
rpc findEnabledRegionProvider (FindEnabledRegionProviderRequest) returns (FindEnabledRegionProviderResponse) {
option deprecated = true;
};
// 查找所有ISP
rpc findAllRegionProviders (FindAllRegionProvidersRequest) returns (FindAllRegionProvidersResponse);
// 查找单个ISP信息
rpc findRegionProvider (FindRegionProviderRequest) returns (FindRegionProviderResponse);
// 修改ISP定制信息
rpc updateRegionProviderCustom(UpdateRegionProviderCustomRequest) returns (RPCSuccess);
}
// 查找所有ISP
@@ -31,3 +45,28 @@ message FindEnabledRegionProviderRequest {
message FindEnabledRegionProviderResponse {
RegionProvider regionProvider = 1;
}
// 查找所有ISP
message FindAllRegionProvidersRequest {
}
message FindAllRegionProvidersResponse {
repeated RegionProvider regionProviders = 1;
}
// 查找单个ISP信息
message FindRegionProviderRequest {
int64 regionProviderId = 1;
}
message FindRegionProviderResponse {
RegionProvider regionProvider = 1;
}
// 修改ISP定制信息
message UpdateRegionProviderCustomRequest {
int64 regionProviderId = 1;
string customName = 2;
repeated string customCodes = 3;
}

Some files were not shown because too many files have changed in this diff Show More