From b7075114adad4c20be7f302bdad6bf217990c1fd Mon Sep 17 00:00:00 2001 From: icey-yu <119291641+icey-yu@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:52:28 +0800 Subject: [PATCH] fix: update protoc gen && gen proto (#626) * fix: gen && proto * fix: gen && proto --- go.mod | 25 +- go.sum | 46 +- internal/rpc/admin/start.go | 1 + internal/rpc/chat/start.go | 1 + pkg/protocol/admin/admin.pb.go | 5413 ++++------------------ pkg/protocol/admin/admin.proto | 14 - pkg/protocol/admin/admin_grpc.pb.go | 2083 +++++++++ pkg/protocol/chat/chat.pb.go | 2342 ++-------- pkg/protocol/chat/chat_grpc.pb.go | 943 ++++ pkg/protocol/common/common.pb.go | 259 +- pkg/protocol/common/common.proto | 14 - pkg/protocol/gen.cmd | 19 +- pkg/protocol/gen.sh | 30 +- pkg/protocol/sdkws/sdkws.proto | 14 - pkg/protocol/wrapperspb/wrapperspb.proto | 14 - 15 files changed, 4464 insertions(+), 6754 deletions(-) create mode 100644 pkg/protocol/admin/admin_grpc.pb.go create mode 100644 pkg/protocol/chat/chat_grpc.pb.go diff --git a/go.mod b/go.mod index 2056f006..23ab44d5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/openimsdk/chat -go 1.22.0 +go 1.22.7 toolchain go1.23.2 @@ -11,7 +11,7 @@ require ( github.com/google/uuid v1.6.0 github.com/jinzhu/copier v0.4.0 // indirect github.com/pkg/errors v0.9.1 // indirect - google.golang.org/grpc v1.62.1 + google.golang.org/grpc v1.68.0 google.golang.org/protobuf v1.34.2 gopkg.in/yaml.v3 v3.0.1 // indirect gorm.io/gorm v1.25.8 @@ -47,7 +47,7 @@ require ( github.com/alibabacloud-go/tea-xml v1.1.2 // indirect github.com/aliyun/credentials-go v1.1.2 // indirect github.com/bytedance/sonic v1.9.1 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect github.com/clbanning/mxj/v2 v2.5.6 // indirect github.com/coreos/go-semver v0.3.0 // indirect @@ -123,18 +123,17 @@ require ( go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.27.0 // indirect golang.org/x/arch v0.3.0 // indirect - golang.org/x/crypto v0.24.0 // indirect + golang.org/x/crypto v0.27.0 // indirect golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect - golang.org/x/net v0.26.0 // indirect - golang.org/x/oauth2 v0.21.0 // indirect - golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.21.0 // indirect - golang.org/x/term v0.21.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/net v0.29.0 // indirect + golang.org/x/oauth2 v0.23.0 // indirect + golang.org/x/sync v0.8.0 // indirect + golang.org/x/sys v0.25.0 // indirect + golang.org/x/term v0.24.0 // indirect + golang.org/x/text v0.18.0 // indirect golang.org/x/time v0.5.0 // indirect - google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/go.sum b/go.sum index 76ba8f3a..b5b8a5c1 100644 --- a/go.sum +++ b/go.sum @@ -37,8 +37,8 @@ github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0 github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM= github.com/bytedance/sonic v1.9.1 h1:6iJ6NqdoxCDr6mbY8h18oSO+cShGSMRGCEo7F2h0x8s= github.com/bytedance/sonic v1.9.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U= -github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= -github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams= github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk= @@ -380,8 +380,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= -golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= +golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= +golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 h1:LfspQV/FYTatPTr/3HzIcmiUFH7PGP+OQ6mgDYo3yuQ= golang.org/x/exp v0.0.0-20240222234643-814bf88cf225/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc= golang.org/x/image v0.11.0/go.mod h1:bglhjqbqVuEb9e9+eNR45Jfu7D+T4Qan+NhQk8Ck2P8= @@ -403,18 +403,18 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= -golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= -golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= -golang.org/x/oauth2 v0.21.0 h1:tsimM75w1tF/uws5rbeHzIWxEqElMehnc+iW793zsZs= -golang.org/x/oauth2 v0.21.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= +golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= +golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= +golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -431,8 +431,8 @@ golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= -golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= +golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= @@ -440,8 +440,8 @@ golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.21.0 h1:WVXCp+/EBEHOj53Rvu+7KiT/iElMrO8ACK16SMZ3jaA= -golang.org/x/term v0.21.0/go.mod h1:ooXLefLobQVslOqselCNF4SxFAaoS6KujMbsGzSDmX0= +golang.org/x/term v0.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM= +golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -452,8 +452,8 @@ golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= +golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -470,14 +470,12 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 h1:KAeGQVN3M9nD0/bQXnr/ClcEMJ968gUXJQ9pwfSynuQ= -google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80/go.mod h1:cc8bqMqtv9gMOr0zHg2Vzff5ULhhL2IXP4sbcn32Dro= -google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 h1:Lj5rbfG876hIAYFjqiJnPHfhXbv+nzTWfm04Fg/XSVU= -google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80/go.mod h1:4jWUdICTdgc3Ibxmr8nAJiiLHwQBY0UI0XZcEMaFKaA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 h1:NnYq6UN9ReLM9/Y01KWNOWyI5xQ9kbIms5GGJVwS/Yc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= -google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk= -google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= +google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 h1:hjSy6tcFQZ171igDaN5QHOw2n6vx40juYbC/x67CEhc= +google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:qpvKtACPCQhAdu3PyQgV4l3LMXZEtft7y8QcarRsp9I= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 h1:pPJltXNxVzT4pK9yD8vR9X75DaWYYmLGMsEvBfFQZzQ= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= +google.golang.org/grpc v1.68.0 h1:aHQeeJbo8zAkAa3pRzrVjZlbz6uSfeOXlJNQM0RAbz0= +google.golang.org/grpc v1.68.0/go.mod h1:fmSPC5AsjSBCK54MyHRx48kpOti1/jRfOlwEWywNjWA= google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc h1:2gGKlE2+asNV9m7xrywl36YYNnBG5ZQ0r/BOOxqPpmk= diff --git a/internal/rpc/admin/start.go b/internal/rpc/admin/start.go index feba1ca9..9faf1bb1 100644 --- a/internal/rpc/admin/start.go +++ b/internal/rpc/admin/start.go @@ -73,6 +73,7 @@ func Start(ctx context.Context, config *Config, client discovery.SvcDiscoveryReg } type adminServer struct { + adminpb.UnimplementedAdminServer Database database.AdminDatabaseInterface Chat *chatClient.ChatClient Token *tokenverify.Token diff --git a/internal/rpc/chat/start.go b/internal/rpc/chat/start.go index 5a867cae..bab5bb00 100644 --- a/internal/rpc/chat/start.go +++ b/internal/rpc/chat/start.go @@ -74,6 +74,7 @@ func Start(ctx context.Context, config *Config, client discovery.SvcDiscoveryReg } type chatSvr struct { + chat.UnimplementedChatServer Database database.ChatDatabaseInterface Admin *chatClient.AdminClient SMS sms.SMS diff --git a/pkg/protocol/admin/admin.pb.go b/pkg/protocol/admin/admin.pb.go index 309326fb..00a23127 100644 --- a/pkg/protocol/admin/admin.pb.go +++ b/pkg/protocol/admin/admin.pb.go @@ -1,33 +1,15 @@ -// Copyright © 2023 OpenIM open source community. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.0 +// protoc-gen-go v1.36.1 +// protoc v5.29.0 // source: admin/admin.proto package admin import ( - context "context" common "github.com/openimsdk/chat/pkg/protocol/common" sdkws "github.com/openimsdk/protocol/sdkws" wrapperspb "github.com/openimsdk/protocol/wrapperspb" - 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" @@ -43,21 +25,18 @@ const ( // login type LoginReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password"` unknownFields protoimpl.UnknownFields - - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password"` + sizeCache protoimpl.SizeCache } func (x *LoginReq) Reset() { *x = LoginReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LoginReq) String() string { @@ -68,7 +47,7 @@ func (*LoginReq) ProtoMessage() {} func (x *LoginReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -98,25 +77,22 @@ func (x *LoginReq) GetPassword() string { } type LoginResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AdminAccount string `protobuf:"bytes,1,opt,name=adminAccount,proto3" json:"adminAccount"` + AdminToken string `protobuf:"bytes,2,opt,name=adminToken,proto3" json:"adminToken"` + Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname"` + FaceURL string `protobuf:"bytes,4,opt,name=faceURL,proto3" json:"faceURL"` + Level int32 `protobuf:"varint,5,opt,name=level,proto3" json:"level"` + AdminUserID string `protobuf:"bytes,6,opt,name=adminUserID,proto3" json:"adminUserID"` unknownFields protoimpl.UnknownFields - - AdminAccount string `protobuf:"bytes,1,opt,name=adminAccount,proto3" json:"adminAccount"` - AdminToken string `protobuf:"bytes,2,opt,name=adminToken,proto3" json:"adminToken"` - Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname"` - FaceURL string `protobuf:"bytes,4,opt,name=faceURL,proto3" json:"faceURL"` - Level int32 `protobuf:"varint,5,opt,name=level,proto3" json:"level"` - AdminUserID string `protobuf:"bytes,6,opt,name=adminUserID,proto3" json:"adminUserID"` + sizeCache protoimpl.SizeCache } func (x *LoginResp) Reset() { *x = LoginResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LoginResp) String() string { @@ -127,7 +103,7 @@ func (*LoginResp) ProtoMessage() {} func (x *LoginResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -185,23 +161,20 @@ func (x *LoginResp) GetAdminUserID() string { } type AddAdminAccountReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password"` + FaceURL string `protobuf:"bytes,3,opt,name=faceURL,proto3" json:"faceURL"` + Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname"` unknownFields protoimpl.UnknownFields - - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password"` - FaceURL string `protobuf:"bytes,3,opt,name=faceURL,proto3" json:"faceURL"` - Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname"` + sizeCache protoimpl.SizeCache } func (x *AddAdminAccountReq) Reset() { *x = AddAdminAccountReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddAdminAccountReq) String() string { @@ -212,7 +185,7 @@ func (*AddAdminAccountReq) ProtoMessage() {} func (x *AddAdminAccountReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -256,18 +229,16 @@ func (x *AddAdminAccountReq) GetNickname() string { } type AddAdminAccountResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddAdminAccountResp) Reset() { *x = AddAdminAccountResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddAdminAccountResp) String() string { @@ -278,7 +249,7 @@ func (*AddAdminAccountResp) ProtoMessage() {} func (x *AddAdminAccountResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -294,24 +265,21 @@ func (*AddAdminAccountResp) Descriptor() ([]byte, []int) { } type AdminUpdateInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Account *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` + Password *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=password,proto3" json:"password"` + FaceURL *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=faceURL,proto3" json:"faceURL"` + Nickname *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname"` + Level *wrapperspb.Int32Value `protobuf:"bytes,6,opt,name=level,proto3" json:"level"` unknownFields protoimpl.UnknownFields - - Account *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` - Password *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=password,proto3" json:"password"` - FaceURL *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=faceURL,proto3" json:"faceURL"` - Nickname *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname"` - Level *wrapperspb.Int32Value `protobuf:"bytes,6,opt,name=level,proto3" json:"level"` + sizeCache protoimpl.SizeCache } func (x *AdminUpdateInfoReq) Reset() { *x = AdminUpdateInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AdminUpdateInfoReq) String() string { @@ -322,7 +290,7 @@ func (*AdminUpdateInfoReq) ProtoMessage() {} func (x *AdminUpdateInfoReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -373,22 +341,19 @@ func (x *AdminUpdateInfoReq) GetLevel() *wrapperspb.Int32Value { } type AdminUpdateInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` + FaceURL string `protobuf:"bytes,3,opt,name=faceURL,proto3" json:"faceURL"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` - FaceURL string `protobuf:"bytes,3,opt,name=faceURL,proto3" json:"faceURL"` + sizeCache protoimpl.SizeCache } func (x *AdminUpdateInfoResp) Reset() { *x = AdminUpdateInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AdminUpdateInfoResp) String() string { @@ -399,7 +364,7 @@ func (*AdminUpdateInfoResp) ProtoMessage() {} func (x *AdminUpdateInfoResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -436,20 +401,17 @@ func (x *AdminUpdateInfoResp) GetFaceURL() string { } type ChangePasswordReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password"` unknownFields protoimpl.UnknownFields - - Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password"` + sizeCache protoimpl.SizeCache } func (x *ChangePasswordReq) Reset() { *x = ChangePasswordReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangePasswordReq) String() string { @@ -460,7 +422,7 @@ func (*ChangePasswordReq) ProtoMessage() {} func (x *ChangePasswordReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -483,18 +445,16 @@ func (x *ChangePasswordReq) GetPassword() string { } type ChangePasswordResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangePasswordResp) Reset() { *x = ChangePasswordResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangePasswordResp) String() string { @@ -505,7 +465,7 @@ func (*ChangePasswordResp) ProtoMessage() {} func (x *ChangePasswordResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -521,18 +481,16 @@ func (*ChangePasswordResp) Descriptor() ([]byte, []int) { } type GetAdminInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAdminInfoReq) Reset() { *x = GetAdminInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAdminInfoReq) String() string { @@ -543,7 +501,7 @@ func (*GetAdminInfoReq) ProtoMessage() {} func (x *GetAdminInfoReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -559,22 +517,19 @@ func (*GetAdminInfoReq) Descriptor() ([]byte, []int) { } type ChangeAdminPasswordReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - CurrentPassword string `protobuf:"bytes,2,opt,name=currentPassword,proto3" json:"currentPassword"` - NewPassword string `protobuf:"bytes,3,opt,name=newPassword,proto3" json:"newPassword"` + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + CurrentPassword string `protobuf:"bytes,2,opt,name=currentPassword,proto3" json:"currentPassword"` + NewPassword string `protobuf:"bytes,3,opt,name=newPassword,proto3" json:"newPassword"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangeAdminPasswordReq) Reset() { *x = ChangeAdminPasswordReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangeAdminPasswordReq) String() string { @@ -585,7 +540,7 @@ func (*ChangeAdminPasswordReq) ProtoMessage() {} func (x *ChangeAdminPasswordReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -622,18 +577,16 @@ func (x *ChangeAdminPasswordReq) GetNewPassword() string { } type ChangeAdminPasswordResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangeAdminPasswordResp) Reset() { *x = ChangeAdminPasswordResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangeAdminPasswordResp) String() string { @@ -644,7 +597,7 @@ func (*ChangeAdminPasswordResp) ProtoMessage() {} func (x *ChangeAdminPasswordResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -660,20 +613,17 @@ func (*ChangeAdminPasswordResp) Descriptor() ([]byte, []int) { } type DelAdminAccountReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *DelAdminAccountReq) Reset() { *x = DelAdminAccountReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelAdminAccountReq) String() string { @@ -684,7 +634,7 @@ func (*DelAdminAccountReq) ProtoMessage() {} func (x *DelAdminAccountReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -707,18 +657,16 @@ func (x *DelAdminAccountReq) GetUserIDs() []string { } type DelAdminAccountResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DelAdminAccountResp) Reset() { *x = DelAdminAccountResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelAdminAccountResp) String() string { @@ -729,7 +677,7 @@ func (*DelAdminAccountResp) ProtoMessage() {} func (x *DelAdminAccountResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -745,20 +693,17 @@ func (*DelAdminAccountResp) Descriptor() ([]byte, []int) { } type SearchAdminAccountReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` unknownFields protoimpl.UnknownFields - - Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` + sizeCache protoimpl.SizeCache } func (x *SearchAdminAccountReq) Reset() { *x = SearchAdminAccountReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchAdminAccountReq) String() string { @@ -769,7 +714,7 @@ func (*SearchAdminAccountReq) ProtoMessage() {} func (x *SearchAdminAccountReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -792,21 +737,18 @@ func (x *SearchAdminAccountReq) GetPagination() *sdkws.RequestPagination { } type SearchAdminAccountResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + AdminAccounts []*GetAdminInfoResp `protobuf:"bytes,2,rep,name=adminAccounts,proto3" json:"adminAccounts"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - AdminAccounts []*GetAdminInfoResp `protobuf:"bytes,2,rep,name=adminAccounts,proto3" json:"adminAccounts"` + sizeCache protoimpl.SizeCache } func (x *SearchAdminAccountResp) Reset() { *x = SearchAdminAccountResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchAdminAccountResp) String() string { @@ -817,7 +759,7 @@ func (*SearchAdminAccountResp) ProtoMessage() {} func (x *SearchAdminAccountResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -847,26 +789,23 @@ func (x *SearchAdminAccountResp) GetAdminAccounts() []*GetAdminInfoResp { } type GetAdminInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account"` + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password"` + FaceURL string `protobuf:"bytes,4,opt,name=faceURL,proto3" json:"faceURL"` + Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname"` + UserID string `protobuf:"bytes,6,opt,name=userID,proto3" json:"userID"` + Level int32 `protobuf:"varint,7,opt,name=level,proto3" json:"level"` + CreateTime int64 `protobuf:"varint,8,opt,name=createTime,proto3" json:"createTime"` unknownFields protoimpl.UnknownFields - - Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account"` - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password"` - FaceURL string `protobuf:"bytes,4,opt,name=faceURL,proto3" json:"faceURL"` - Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname"` - UserID string `protobuf:"bytes,6,opt,name=userID,proto3" json:"userID"` - Level int32 `protobuf:"varint,7,opt,name=level,proto3" json:"level"` - CreateTime int64 `protobuf:"varint,8,opt,name=createTime,proto3" json:"createTime"` + sizeCache protoimpl.SizeCache } func (x *GetAdminInfoResp) Reset() { *x = GetAdminInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAdminInfoResp) String() string { @@ -877,7 +816,7 @@ func (*GetAdminInfoResp) ProtoMessage() {} func (x *GetAdminInfoResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -942,20 +881,17 @@ func (x *GetAdminInfoResp) GetCreateTime() int64 { } type AddDefaultFriendReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *AddDefaultFriendReq) Reset() { *x = AddDefaultFriendReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddDefaultFriendReq) String() string { @@ -966,7 +902,7 @@ func (*AddDefaultFriendReq) ProtoMessage() {} func (x *AddDefaultFriendReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -989,18 +925,16 @@ func (x *AddDefaultFriendReq) GetUserIDs() []string { } type AddDefaultFriendResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddDefaultFriendResp) Reset() { *x = AddDefaultFriendResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddDefaultFriendResp) String() string { @@ -1011,7 +945,7 @@ func (*AddDefaultFriendResp) ProtoMessage() {} func (x *AddDefaultFriendResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1027,20 +961,17 @@ func (*AddDefaultFriendResp) Descriptor() ([]byte, []int) { } type DelDefaultFriendReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *DelDefaultFriendReq) Reset() { *x = DelDefaultFriendReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelDefaultFriendReq) String() string { @@ -1051,7 +982,7 @@ func (*DelDefaultFriendReq) ProtoMessage() {} func (x *DelDefaultFriendReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1074,18 +1005,16 @@ func (x *DelDefaultFriendReq) GetUserIDs() []string { } type DelDefaultFriendResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DelDefaultFriendResp) Reset() { *x = DelDefaultFriendResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelDefaultFriendResp) String() string { @@ -1096,7 +1025,7 @@ func (*DelDefaultFriendResp) ProtoMessage() {} func (x *DelDefaultFriendResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1112,18 +1041,16 @@ func (*DelDefaultFriendResp) Descriptor() ([]byte, []int) { } type FindDefaultFriendReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FindDefaultFriendReq) Reset() { *x = FindDefaultFriendReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindDefaultFriendReq) String() string { @@ -1134,7 +1061,7 @@ func (*FindDefaultFriendReq) ProtoMessage() {} func (x *FindDefaultFriendReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1150,20 +1077,17 @@ func (*FindDefaultFriendReq) Descriptor() ([]byte, []int) { } type FindDefaultFriendResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *FindDefaultFriendResp) Reset() { *x = FindDefaultFriendResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindDefaultFriendResp) String() string { @@ -1174,7 +1098,7 @@ func (*FindDefaultFriendResp) ProtoMessage() {} func (x *FindDefaultFriendResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1197,21 +1121,18 @@ func (x *FindDefaultFriendResp) GetUserIDs() []string { } type SearchDefaultFriendReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` unknownFields protoimpl.UnknownFields - - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` + sizeCache protoimpl.SizeCache } func (x *SearchDefaultFriendReq) Reset() { *x = SearchDefaultFriendReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchDefaultFriendReq) String() string { @@ -1222,7 +1143,7 @@ func (*SearchDefaultFriendReq) ProtoMessage() {} func (x *SearchDefaultFriendReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1252,22 +1173,19 @@ func (x *SearchDefaultFriendReq) GetPagination() *sdkws.RequestPagination { } type DefaultFriendAttribute struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime"` + User *common.UserPublicInfo `protobuf:"bytes,3,opt,name=user,proto3" json:"user"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime"` - User *common.UserPublicInfo `protobuf:"bytes,3,opt,name=user,proto3" json:"user"` + sizeCache protoimpl.SizeCache } func (x *DefaultFriendAttribute) Reset() { *x = DefaultFriendAttribute{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DefaultFriendAttribute) String() string { @@ -1278,7 +1196,7 @@ func (*DefaultFriendAttribute) ProtoMessage() {} func (x *DefaultFriendAttribute) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1315,21 +1233,18 @@ func (x *DefaultFriendAttribute) GetUser() *common.UserPublicInfo { } type SearchDefaultFriendResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Users []*DefaultFriendAttribute `protobuf:"bytes,2,rep,name=users,proto3" json:"users"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - Users []*DefaultFriendAttribute `protobuf:"bytes,2,rep,name=users,proto3" json:"users"` + sizeCache protoimpl.SizeCache } func (x *SearchDefaultFriendResp) Reset() { *x = SearchDefaultFriendResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchDefaultFriendResp) String() string { @@ -1340,7 +1255,7 @@ func (*SearchDefaultFriendResp) ProtoMessage() {} func (x *SearchDefaultFriendResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1370,20 +1285,17 @@ func (x *SearchDefaultFriendResp) GetUsers() []*DefaultFriendAttribute { } type AddDefaultGroupReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + GroupIDs []string `protobuf:"bytes,1,rep,name=groupIDs,proto3" json:"groupIDs"` unknownFields protoimpl.UnknownFields - - GroupIDs []string `protobuf:"bytes,1,rep,name=groupIDs,proto3" json:"groupIDs"` + sizeCache protoimpl.SizeCache } func (x *AddDefaultGroupReq) Reset() { *x = AddDefaultGroupReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddDefaultGroupReq) String() string { @@ -1394,7 +1306,7 @@ func (*AddDefaultGroupReq) ProtoMessage() {} func (x *AddDefaultGroupReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1417,18 +1329,16 @@ func (x *AddDefaultGroupReq) GetGroupIDs() []string { } type AddDefaultGroupResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddDefaultGroupResp) Reset() { *x = AddDefaultGroupResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddDefaultGroupResp) String() string { @@ -1439,7 +1349,7 @@ func (*AddDefaultGroupResp) ProtoMessage() {} func (x *AddDefaultGroupResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1455,20 +1365,17 @@ func (*AddDefaultGroupResp) Descriptor() ([]byte, []int) { } type DelDefaultGroupReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + GroupIDs []string `protobuf:"bytes,1,rep,name=groupIDs,proto3" json:"groupIDs"` unknownFields protoimpl.UnknownFields - - GroupIDs []string `protobuf:"bytes,1,rep,name=groupIDs,proto3" json:"groupIDs"` + sizeCache protoimpl.SizeCache } func (x *DelDefaultGroupReq) Reset() { *x = DelDefaultGroupReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelDefaultGroupReq) String() string { @@ -1479,7 +1386,7 @@ func (*DelDefaultGroupReq) ProtoMessage() {} func (x *DelDefaultGroupReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1502,18 +1409,16 @@ func (x *DelDefaultGroupReq) GetGroupIDs() []string { } type DelDefaultGroupResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DelDefaultGroupResp) Reset() { *x = DelDefaultGroupResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelDefaultGroupResp) String() string { @@ -1524,7 +1429,7 @@ func (*DelDefaultGroupResp) ProtoMessage() {} func (x *DelDefaultGroupResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1540,18 +1445,16 @@ func (*DelDefaultGroupResp) Descriptor() ([]byte, []int) { } type FindDefaultGroupReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FindDefaultGroupReq) Reset() { *x = FindDefaultGroupReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindDefaultGroupReq) String() string { @@ -1562,7 +1465,7 @@ func (*FindDefaultGroupReq) ProtoMessage() {} func (x *FindDefaultGroupReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1578,20 +1481,17 @@ func (*FindDefaultGroupReq) Descriptor() ([]byte, []int) { } type FindDefaultGroupResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + GroupIDs []string `protobuf:"bytes,1,rep,name=groupIDs,proto3" json:"groupIDs"` unknownFields protoimpl.UnknownFields - - GroupIDs []string `protobuf:"bytes,1,rep,name=groupIDs,proto3" json:"groupIDs"` + sizeCache protoimpl.SizeCache } func (x *FindDefaultGroupResp) Reset() { *x = FindDefaultGroupResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindDefaultGroupResp) String() string { @@ -1602,7 +1502,7 @@ func (*FindDefaultGroupResp) ProtoMessage() {} func (x *FindDefaultGroupResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1625,21 +1525,18 @@ func (x *FindDefaultGroupResp) GetGroupIDs() []string { } type SearchDefaultGroupReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` unknownFields protoimpl.UnknownFields - - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` + sizeCache protoimpl.SizeCache } func (x *SearchDefaultGroupReq) Reset() { *x = SearchDefaultGroupReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchDefaultGroupReq) String() string { @@ -1650,7 +1547,7 @@ func (*SearchDefaultGroupReq) ProtoMessage() {} func (x *SearchDefaultGroupReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1680,22 +1577,19 @@ func (x *SearchDefaultGroupReq) GetPagination() *sdkws.RequestPagination { } type GroupAttribute struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + GroupID string `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID"` + CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime"` + Group *sdkws.GroupInfo `protobuf:"bytes,3,opt,name=group,proto3" json:"group"` unknownFields protoimpl.UnknownFields - - GroupID string `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID"` - CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime"` - Group *sdkws.GroupInfo `protobuf:"bytes,3,opt,name=group,proto3" json:"group"` + sizeCache protoimpl.SizeCache } func (x *GroupAttribute) Reset() { *x = GroupAttribute{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GroupAttribute) String() string { @@ -1706,7 +1600,7 @@ func (*GroupAttribute) ProtoMessage() {} func (x *GroupAttribute) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1743,21 +1637,18 @@ func (x *GroupAttribute) GetGroup() *sdkws.GroupInfo { } type SearchDefaultGroupResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + GroupIDs []string `protobuf:"bytes,2,rep,name=groupIDs,proto3" json:"groupIDs"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - GroupIDs []string `protobuf:"bytes,2,rep,name=groupIDs,proto3" json:"groupIDs"` + sizeCache protoimpl.SizeCache } func (x *SearchDefaultGroupResp) Reset() { *x = SearchDefaultGroupResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchDefaultGroupResp) String() string { @@ -1768,7 +1659,7 @@ func (*SearchDefaultGroupResp) ProtoMessage() {} func (x *SearchDefaultGroupResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1798,20 +1689,17 @@ func (x *SearchDefaultGroupResp) GetGroupIDs() []string { } type AddInvitationCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Codes []string `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes"` unknownFields protoimpl.UnknownFields - - Codes []string `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes"` + sizeCache protoimpl.SizeCache } func (x *AddInvitationCodeReq) Reset() { *x = AddInvitationCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddInvitationCodeReq) String() string { @@ -1822,7 +1710,7 @@ func (*AddInvitationCodeReq) ProtoMessage() {} func (x *AddInvitationCodeReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1845,18 +1733,16 @@ func (x *AddInvitationCodeReq) GetCodes() []string { } type AddInvitationCodeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddInvitationCodeResp) Reset() { *x = AddInvitationCodeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddInvitationCodeResp) String() string { @@ -1867,7 +1753,7 @@ func (*AddInvitationCodeResp) ProtoMessage() {} func (x *AddInvitationCodeResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1883,22 +1769,19 @@ func (*AddInvitationCodeResp) Descriptor() ([]byte, []int) { } type GenInvitationCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Len int32 `protobuf:"varint,1,opt,name=len,proto3" json:"len"` + Num int32 `protobuf:"varint,2,opt,name=num,proto3" json:"num"` + Chars string `protobuf:"bytes,3,opt,name=chars,proto3" json:"chars"` unknownFields protoimpl.UnknownFields - - Len int32 `protobuf:"varint,1,opt,name=len,proto3" json:"len"` - Num int32 `protobuf:"varint,2,opt,name=num,proto3" json:"num"` - Chars string `protobuf:"bytes,3,opt,name=chars,proto3" json:"chars"` + sizeCache protoimpl.SizeCache } func (x *GenInvitationCodeReq) Reset() { *x = GenInvitationCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenInvitationCodeReq) String() string { @@ -1909,7 +1792,7 @@ func (*GenInvitationCodeReq) ProtoMessage() {} func (x *GenInvitationCodeReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1946,18 +1829,16 @@ func (x *GenInvitationCodeReq) GetChars() string { } type GenInvitationCodeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GenInvitationCodeResp) Reset() { *x = GenInvitationCodeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenInvitationCodeResp) String() string { @@ -1968,7 +1849,7 @@ func (*GenInvitationCodeResp) ProtoMessage() {} func (x *GenInvitationCodeResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1984,20 +1865,17 @@ func (*GenInvitationCodeResp) Descriptor() ([]byte, []int) { } type FindInvitationCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Codes []string `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes"` unknownFields protoimpl.UnknownFields - - Codes []string `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes"` + sizeCache protoimpl.SizeCache } func (x *FindInvitationCodeReq) Reset() { *x = FindInvitationCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindInvitationCodeReq) String() string { @@ -2008,7 +1886,7 @@ func (*FindInvitationCodeReq) ProtoMessage() {} func (x *FindInvitationCodeReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2031,20 +1909,17 @@ func (x *FindInvitationCodeReq) GetCodes() []string { } type FindInvitationCodeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Codes []*InvitationRegister `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes"` unknownFields protoimpl.UnknownFields - - Codes []*InvitationRegister `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes"` + sizeCache protoimpl.SizeCache } func (x *FindInvitationCodeResp) Reset() { *x = FindInvitationCodeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindInvitationCodeResp) String() string { @@ -2055,7 +1930,7 @@ func (*FindInvitationCodeResp) ProtoMessage() {} func (x *FindInvitationCodeResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2078,21 +1953,18 @@ func (x *FindInvitationCodeResp) GetCodes() []*InvitationRegister { } type UseInvitationCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code"` + UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID"` unknownFields protoimpl.UnknownFields - - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code"` - UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID"` + sizeCache protoimpl.SizeCache } func (x *UseInvitationCodeReq) Reset() { *x = UseInvitationCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UseInvitationCodeReq) String() string { @@ -2103,7 +1975,7 @@ func (*UseInvitationCodeReq) ProtoMessage() {} func (x *UseInvitationCodeReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2133,18 +2005,16 @@ func (x *UseInvitationCodeReq) GetUserID() string { } type UseInvitationCodeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UseInvitationCodeResp) Reset() { *x = UseInvitationCodeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UseInvitationCodeResp) String() string { @@ -2155,7 +2025,7 @@ func (*UseInvitationCodeResp) ProtoMessage() {} func (x *UseInvitationCodeResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2171,20 +2041,17 @@ func (*UseInvitationCodeResp) Descriptor() ([]byte, []int) { } type DelInvitationCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Codes []string `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes"` unknownFields protoimpl.UnknownFields - - Codes []string `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes"` + sizeCache protoimpl.SizeCache } func (x *DelInvitationCodeReq) Reset() { *x = DelInvitationCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelInvitationCodeReq) String() string { @@ -2195,7 +2062,7 @@ func (*DelInvitationCodeReq) ProtoMessage() {} func (x *DelInvitationCodeReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2218,18 +2085,16 @@ func (x *DelInvitationCodeReq) GetCodes() []string { } type DelInvitationCodeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DelInvitationCodeResp) Reset() { *x = DelInvitationCodeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelInvitationCodeResp) String() string { @@ -2240,7 +2105,7 @@ func (*DelInvitationCodeResp) ProtoMessage() {} func (x *DelInvitationCodeResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2256,23 +2121,20 @@ func (*DelInvitationCodeResp) Descriptor() ([]byte, []int) { } type InvitationRegister struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` InvitationCode string `protobuf:"bytes,1,opt,name=invitationCode,proto3" json:"invitationCode"` CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime"` UsedUserID string `protobuf:"bytes,3,opt,name=usedUserID,proto3" json:"usedUserID"` UsedUser *common.UserPublicInfo `protobuf:"bytes,4,opt,name=usedUser,proto3" json:"usedUser"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InvitationRegister) Reset() { *x = InvitationRegister{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvitationRegister) String() string { @@ -2283,7 +2145,7 @@ func (*InvitationRegister) ProtoMessage() {} func (x *InvitationRegister) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2327,24 +2189,21 @@ func (x *InvitationRegister) GetUsedUser() *common.UserPublicInfo { } type SearchInvitationCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status"` + UserIDs []string `protobuf:"bytes,2,rep,name=userIDs,proto3" json:"userIDs"` + Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes"` + Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination"` unknownFields protoimpl.UnknownFields - - Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status"` - UserIDs []string `protobuf:"bytes,2,rep,name=userIDs,proto3" json:"userIDs"` - Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes"` - Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination"` + sizeCache protoimpl.SizeCache } func (x *SearchInvitationCodeReq) Reset() { *x = SearchInvitationCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchInvitationCodeReq) String() string { @@ -2355,7 +2214,7 @@ func (*SearchInvitationCodeReq) ProtoMessage() {} func (x *SearchInvitationCodeReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2406,21 +2265,18 @@ func (x *SearchInvitationCodeReq) GetPagination() *sdkws.RequestPagination { } type SearchInvitationCodeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + List []*InvitationRegister `protobuf:"bytes,2,rep,name=list,proto3" json:"list"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - List []*InvitationRegister `protobuf:"bytes,2,rep,name=list,proto3" json:"list"` + sizeCache protoimpl.SizeCache } func (x *SearchInvitationCodeResp) Reset() { *x = SearchInvitationCodeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchInvitationCodeResp) String() string { @@ -2431,7 +2287,7 @@ func (*SearchInvitationCodeResp) ProtoMessage() {} func (x *SearchInvitationCodeResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2461,21 +2317,18 @@ func (x *SearchInvitationCodeResp) GetList() []*InvitationRegister { } type SearchUserIPLimitLoginReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` unknownFields protoimpl.UnknownFields - - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` + sizeCache protoimpl.SizeCache } func (x *SearchUserIPLimitLoginReq) Reset() { *x = SearchUserIPLimitLoginReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchUserIPLimitLoginReq) String() string { @@ -2486,7 +2339,7 @@ func (*SearchUserIPLimitLoginReq) ProtoMessage() {} func (x *SearchUserIPLimitLoginReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2516,23 +2369,20 @@ func (x *SearchUserIPLimitLoginReq) GetPagination() *sdkws.RequestPagination { } type LimitUserLoginIP struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip"` + CreateTime int64 `protobuf:"varint,3,opt,name=createTime,proto3" json:"createTime"` + User *common.UserPublicInfo `protobuf:"bytes,4,opt,name=user,proto3" json:"user"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip"` - CreateTime int64 `protobuf:"varint,3,opt,name=createTime,proto3" json:"createTime"` - User *common.UserPublicInfo `protobuf:"bytes,4,opt,name=user,proto3" json:"user"` + sizeCache protoimpl.SizeCache } func (x *LimitUserLoginIP) Reset() { *x = LimitUserLoginIP{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LimitUserLoginIP) String() string { @@ -2543,7 +2393,7 @@ func (*LimitUserLoginIP) ProtoMessage() {} func (x *LimitUserLoginIP) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2587,21 +2437,18 @@ func (x *LimitUserLoginIP) GetUser() *common.UserPublicInfo { } type SearchUserIPLimitLoginResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Limits []*LimitUserLoginIP `protobuf:"bytes,2,rep,name=limits,proto3" json:"limits"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - Limits []*LimitUserLoginIP `protobuf:"bytes,2,rep,name=limits,proto3" json:"limits"` + sizeCache protoimpl.SizeCache } func (x *SearchUserIPLimitLoginResp) Reset() { *x = SearchUserIPLimitLoginResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchUserIPLimitLoginResp) String() string { @@ -2612,7 +2459,7 @@ func (*SearchUserIPLimitLoginResp) ProtoMessage() {} func (x *SearchUserIPLimitLoginResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2642,21 +2489,18 @@ func (x *SearchUserIPLimitLoginResp) GetLimits() []*LimitUserLoginIP { } type UserIPLimitLogin struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip"` + sizeCache protoimpl.SizeCache } func (x *UserIPLimitLogin) Reset() { *x = UserIPLimitLogin{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserIPLimitLogin) String() string { @@ -2667,7 +2511,7 @@ func (*UserIPLimitLogin) ProtoMessage() {} func (x *UserIPLimitLogin) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2697,20 +2541,17 @@ func (x *UserIPLimitLogin) GetIp() string { } type AddUserIPLimitLoginReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Limits []*UserIPLimitLogin `protobuf:"bytes,1,rep,name=limits,proto3" json:"limits"` unknownFields protoimpl.UnknownFields - - Limits []*UserIPLimitLogin `protobuf:"bytes,1,rep,name=limits,proto3" json:"limits"` + sizeCache protoimpl.SizeCache } func (x *AddUserIPLimitLoginReq) Reset() { *x = AddUserIPLimitLoginReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddUserIPLimitLoginReq) String() string { @@ -2721,7 +2562,7 @@ func (*AddUserIPLimitLoginReq) ProtoMessage() {} func (x *AddUserIPLimitLoginReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2744,18 +2585,16 @@ func (x *AddUserIPLimitLoginReq) GetLimits() []*UserIPLimitLogin { } type AddUserIPLimitLoginResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddUserIPLimitLoginResp) Reset() { *x = AddUserIPLimitLoginResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddUserIPLimitLoginResp) String() string { @@ -2766,7 +2605,7 @@ func (*AddUserIPLimitLoginResp) ProtoMessage() {} func (x *AddUserIPLimitLoginResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2782,20 +2621,17 @@ func (*AddUserIPLimitLoginResp) Descriptor() ([]byte, []int) { } type DelUserIPLimitLoginReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Limits []*UserIPLimitLogin `protobuf:"bytes,1,rep,name=limits,proto3" json:"limits"` unknownFields protoimpl.UnknownFields - - Limits []*UserIPLimitLogin `protobuf:"bytes,1,rep,name=limits,proto3" json:"limits"` + sizeCache protoimpl.SizeCache } func (x *DelUserIPLimitLoginReq) Reset() { *x = DelUserIPLimitLoginReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelUserIPLimitLoginReq) String() string { @@ -2806,7 +2642,7 @@ func (*DelUserIPLimitLoginReq) ProtoMessage() {} func (x *DelUserIPLimitLoginReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2829,18 +2665,16 @@ func (x *DelUserIPLimitLoginReq) GetLimits() []*UserIPLimitLogin { } type DelUserIPLimitLoginResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DelUserIPLimitLoginResp) Reset() { *x = DelUserIPLimitLoginResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelUserIPLimitLoginResp) String() string { @@ -2851,7 +2685,7 @@ func (*DelUserIPLimitLoginResp) ProtoMessage() {} func (x *DelUserIPLimitLoginResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2867,23 +2701,20 @@ func (*DelUserIPLimitLoginResp) Descriptor() ([]byte, []int) { } type IPForbidden struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"` + LimitRegister bool `protobuf:"varint,2,opt,name=limitRegister,proto3" json:"limitRegister"` + LimitLogin bool `protobuf:"varint,3,opt,name=limitLogin,proto3" json:"limitLogin"` + CreateTime int64 `protobuf:"varint,4,opt,name=createTime,proto3" json:"createTime"` unknownFields protoimpl.UnknownFields - - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"` - LimitRegister bool `protobuf:"varint,2,opt,name=limitRegister,proto3" json:"limitRegister"` - LimitLogin bool `protobuf:"varint,3,opt,name=limitLogin,proto3" json:"limitLogin"` - CreateTime int64 `protobuf:"varint,4,opt,name=createTime,proto3" json:"createTime"` + sizeCache protoimpl.SizeCache } func (x *IPForbidden) Reset() { *x = IPForbidden{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IPForbidden) String() string { @@ -2894,7 +2725,7 @@ func (*IPForbidden) ProtoMessage() {} func (x *IPForbidden) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2938,22 +2769,19 @@ func (x *IPForbidden) GetCreateTime() int64 { } type IPForbiddenAdd struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"` + LimitRegister bool `protobuf:"varint,2,opt,name=limitRegister,proto3" json:"limitRegister"` + LimitLogin bool `protobuf:"varint,3,opt,name=limitLogin,proto3" json:"limitLogin"` unknownFields protoimpl.UnknownFields - - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"` - LimitRegister bool `protobuf:"varint,2,opt,name=limitRegister,proto3" json:"limitRegister"` - LimitLogin bool `protobuf:"varint,3,opt,name=limitLogin,proto3" json:"limitLogin"` + sizeCache protoimpl.SizeCache } func (x *IPForbiddenAdd) Reset() { *x = IPForbiddenAdd{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IPForbiddenAdd) String() string { @@ -2964,7 +2792,7 @@ func (*IPForbiddenAdd) ProtoMessage() {} func (x *IPForbiddenAdd) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3001,22 +2829,19 @@ func (x *IPForbiddenAdd) GetLimitLogin() bool { } type SearchIPForbiddenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` + Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination"` unknownFields protoimpl.UnknownFields - - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` - Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination"` + sizeCache protoimpl.SizeCache } func (x *SearchIPForbiddenReq) Reset() { *x = SearchIPForbiddenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchIPForbiddenReq) String() string { @@ -3027,7 +2852,7 @@ func (*SearchIPForbiddenReq) ProtoMessage() {} func (x *SearchIPForbiddenReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3064,21 +2889,18 @@ func (x *SearchIPForbiddenReq) GetPagination() *sdkws.RequestPagination { } type SearchIPForbiddenResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Forbiddens []*IPForbidden `protobuf:"bytes,2,rep,name=forbiddens,proto3" json:"forbiddens"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - Forbiddens []*IPForbidden `protobuf:"bytes,2,rep,name=forbiddens,proto3" json:"forbiddens"` + sizeCache protoimpl.SizeCache } func (x *SearchIPForbiddenResp) Reset() { *x = SearchIPForbiddenResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchIPForbiddenResp) String() string { @@ -3089,7 +2911,7 @@ func (*SearchIPForbiddenResp) ProtoMessage() {} func (x *SearchIPForbiddenResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3119,20 +2941,17 @@ func (x *SearchIPForbiddenResp) GetForbiddens() []*IPForbidden { } type AddIPForbiddenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Forbiddens []*IPForbiddenAdd `protobuf:"bytes,1,rep,name=forbiddens,proto3" json:"forbiddens"` unknownFields protoimpl.UnknownFields - - Forbiddens []*IPForbiddenAdd `protobuf:"bytes,1,rep,name=forbiddens,proto3" json:"forbiddens"` + sizeCache protoimpl.SizeCache } func (x *AddIPForbiddenReq) Reset() { *x = AddIPForbiddenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddIPForbiddenReq) String() string { @@ -3143,7 +2962,7 @@ func (*AddIPForbiddenReq) ProtoMessage() {} func (x *AddIPForbiddenReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3166,18 +2985,16 @@ func (x *AddIPForbiddenReq) GetForbiddens() []*IPForbiddenAdd { } type AddIPForbiddenResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddIPForbiddenResp) Reset() { *x = AddIPForbiddenResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddIPForbiddenResp) String() string { @@ -3188,7 +3005,7 @@ func (*AddIPForbiddenResp) ProtoMessage() {} func (x *AddIPForbiddenResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3204,20 +3021,17 @@ func (*AddIPForbiddenResp) Descriptor() ([]byte, []int) { } type DelIPForbiddenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ips []string `protobuf:"bytes,1,rep,name=ips,proto3" json:"ips"` unknownFields protoimpl.UnknownFields - - Ips []string `protobuf:"bytes,1,rep,name=ips,proto3" json:"ips"` + sizeCache protoimpl.SizeCache } func (x *DelIPForbiddenReq) Reset() { *x = DelIPForbiddenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelIPForbiddenReq) String() string { @@ -3228,7 +3042,7 @@ func (*DelIPForbiddenReq) ProtoMessage() {} func (x *DelIPForbiddenReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3251,18 +3065,16 @@ func (x *DelIPForbiddenReq) GetIps() []string { } type DelIPForbiddenResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DelIPForbiddenResp) Reset() { *x = DelIPForbiddenResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelIPForbiddenResp) String() string { @@ -3273,7 +3085,7 @@ func (*DelIPForbiddenResp) ProtoMessage() {} func (x *DelIPForbiddenResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3290,20 +3102,17 @@ func (*DelIPForbiddenResp) Descriptor() ([]byte, []int) { // ################### User Limit ################### type CheckRegisterForbiddenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"` unknownFields protoimpl.UnknownFields - - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"` + sizeCache protoimpl.SizeCache } func (x *CheckRegisterForbiddenReq) Reset() { *x = CheckRegisterForbiddenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CheckRegisterForbiddenReq) String() string { @@ -3314,7 +3123,7 @@ func (*CheckRegisterForbiddenReq) ProtoMessage() {} func (x *CheckRegisterForbiddenReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3337,18 +3146,16 @@ func (x *CheckRegisterForbiddenReq) GetIp() string { } type CheckRegisterForbiddenResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CheckRegisterForbiddenResp) Reset() { *x = CheckRegisterForbiddenResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CheckRegisterForbiddenResp) String() string { @@ -3359,7 +3166,7 @@ func (*CheckRegisterForbiddenResp) ProtoMessage() {} func (x *CheckRegisterForbiddenResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3375,21 +3182,18 @@ func (*CheckRegisterForbiddenResp) Descriptor() ([]byte, []int) { } type CheckLoginForbiddenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"` + UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID"` unknownFields protoimpl.UnknownFields - - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"` - UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID"` + sizeCache protoimpl.SizeCache } func (x *CheckLoginForbiddenReq) Reset() { *x = CheckLoginForbiddenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CheckLoginForbiddenReq) String() string { @@ -3400,7 +3204,7 @@ func (*CheckLoginForbiddenReq) ProtoMessage() {} func (x *CheckLoginForbiddenReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3430,18 +3234,16 @@ func (x *CheckLoginForbiddenReq) GetUserID() string { } type CheckLoginForbiddenResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CheckLoginForbiddenResp) Reset() { *x = CheckLoginForbiddenResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CheckLoginForbiddenResp) String() string { @@ -3452,7 +3254,7 @@ func (*CheckLoginForbiddenResp) ProtoMessage() {} func (x *CheckLoginForbiddenResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3469,21 +3271,18 @@ func (*CheckLoginForbiddenResp) Descriptor() ([]byte, []int) { // ################### login out ################### type CancellationUserReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason"` + sizeCache protoimpl.SizeCache } func (x *CancellationUserReq) Reset() { *x = CancellationUserReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CancellationUserReq) String() string { @@ -3494,7 +3293,7 @@ func (*CancellationUserReq) ProtoMessage() {} func (x *CancellationUserReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3524,18 +3323,16 @@ func (x *CancellationUserReq) GetReason() string { } type CancellationUserResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CancellationUserResp) Reset() { *x = CancellationUserResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CancellationUserResp) String() string { @@ -3546,7 +3343,7 @@ func (*CancellationUserResp) ProtoMessage() {} func (x *CancellationUserResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3563,21 +3360,18 @@ func (*CancellationUserResp) Descriptor() ([]byte, []int) { // ################### Block User, Unblock User ################### type BlockUserReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason"` + sizeCache protoimpl.SizeCache } func (x *BlockUserReq) Reset() { *x = BlockUserReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockUserReq) String() string { @@ -3588,7 +3382,7 @@ func (*BlockUserReq) ProtoMessage() {} func (x *BlockUserReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3618,18 +3412,16 @@ func (x *BlockUserReq) GetReason() string { } type BlockUserResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BlockUserResp) Reset() { *x = BlockUserResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockUserResp) String() string { @@ -3640,7 +3432,7 @@ func (*BlockUserResp) ProtoMessage() {} func (x *BlockUserResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3656,20 +3448,17 @@ func (*BlockUserResp) Descriptor() ([]byte, []int) { } type UnblockUserReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *UnblockUserReq) Reset() { *x = UnblockUserReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnblockUserReq) String() string { @@ -3680,7 +3469,7 @@ func (*UnblockUserReq) ProtoMessage() {} func (x *UnblockUserReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3703,18 +3492,16 @@ func (x *UnblockUserReq) GetUserIDs() []string { } type UnblockUserResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UnblockUserResp) Reset() { *x = UnblockUserResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnblockUserResp) String() string { @@ -3725,7 +3512,7 @@ func (*UnblockUserResp) ProtoMessage() {} func (x *UnblockUserResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3741,21 +3528,18 @@ func (*UnblockUserResp) Descriptor() ([]byte, []int) { } type SearchBlockUserReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` unknownFields protoimpl.UnknownFields - - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` + sizeCache protoimpl.SizeCache } func (x *SearchBlockUserReq) Reset() { *x = SearchBlockUserReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchBlockUserReq) String() string { @@ -3766,7 +3550,7 @@ func (*SearchBlockUserReq) ProtoMessage() {} func (x *SearchBlockUserReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3796,30 +3580,27 @@ func (x *SearchBlockUserReq) GetPagination() *sdkws.RequestPagination { } type BlockUserInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account"` + PhoneNumber string `protobuf:"bytes,3,opt,name=phoneNumber,proto3" json:"phoneNumber"` + AreaCode string `protobuf:"bytes,4,opt,name=areaCode,proto3" json:"areaCode"` + Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email"` + Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname"` + FaceURL string `protobuf:"bytes,7,opt,name=faceURL,proto3" json:"faceURL"` + Gender int32 `protobuf:"varint,8,opt,name=gender,proto3" json:"gender"` + Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason"` + OpUserID string `protobuf:"bytes,10,opt,name=opUserID,proto3" json:"opUserID"` + CreateTime int64 `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account"` - PhoneNumber string `protobuf:"bytes,3,opt,name=phoneNumber,proto3" json:"phoneNumber"` - AreaCode string `protobuf:"bytes,4,opt,name=areaCode,proto3" json:"areaCode"` - Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email"` - Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname"` - FaceURL string `protobuf:"bytes,7,opt,name=faceURL,proto3" json:"faceURL"` - Gender int32 `protobuf:"varint,8,opt,name=gender,proto3" json:"gender"` - Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason"` - OpUserID string `protobuf:"bytes,10,opt,name=opUserID,proto3" json:"opUserID"` - CreateTime int64 `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime"` + sizeCache protoimpl.SizeCache } func (x *BlockUserInfo) Reset() { *x = BlockUserInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockUserInfo) String() string { @@ -3830,7 +3611,7 @@ func (*BlockUserInfo) ProtoMessage() {} func (x *BlockUserInfo) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[74] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3923,21 +3704,18 @@ func (x *BlockUserInfo) GetCreateTime() int64 { } type SearchBlockUserResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Users []*BlockUserInfo `protobuf:"bytes,2,rep,name=users,proto3" json:"users"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - Users []*BlockUserInfo `protobuf:"bytes,2,rep,name=users,proto3" json:"users"` + sizeCache protoimpl.SizeCache } func (x *SearchBlockUserResp) Reset() { *x = SearchBlockUserResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchBlockUserResp) String() string { @@ -3948,7 +3726,7 @@ func (*SearchBlockUserResp) ProtoMessage() {} func (x *SearchBlockUserResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[75] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3978,20 +3756,17 @@ func (x *SearchBlockUserResp) GetUsers() []*BlockUserInfo { } type FindUserBlockInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *FindUserBlockInfoReq) Reset() { *x = FindUserBlockInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindUserBlockInfoReq) String() string { @@ -4002,7 +3777,7 @@ func (*FindUserBlockInfoReq) ProtoMessage() {} func (x *FindUserBlockInfoReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[76] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4025,23 +3800,20 @@ func (x *FindUserBlockInfoReq) GetUserIDs() []string { } type BlockInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason"` + OpUserID string `protobuf:"bytes,3,opt,name=opUserID,proto3" json:"opUserID"` + CreateTime int64 `protobuf:"varint,4,opt,name=createTime,proto3" json:"createTime"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason"` - OpUserID string `protobuf:"bytes,3,opt,name=opUserID,proto3" json:"opUserID"` - CreateTime int64 `protobuf:"varint,4,opt,name=createTime,proto3" json:"createTime"` + sizeCache protoimpl.SizeCache } func (x *BlockInfo) Reset() { *x = BlockInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BlockInfo) String() string { @@ -4052,7 +3824,7 @@ func (*BlockInfo) ProtoMessage() {} func (x *BlockInfo) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[77] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4096,20 +3868,17 @@ func (x *BlockInfo) GetCreateTime() int64 { } type FindUserBlockInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Blocks []*BlockInfo `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks"` unknownFields protoimpl.UnknownFields - - Blocks []*BlockInfo `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks"` + sizeCache protoimpl.SizeCache } func (x *FindUserBlockInfoResp) Reset() { *x = FindUserBlockInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindUserBlockInfoResp) String() string { @@ -4120,7 +3889,7 @@ func (*FindUserBlockInfoResp) ProtoMessage() {} func (x *FindUserBlockInfoResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[78] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4143,21 +3912,18 @@ func (x *FindUserBlockInfoResp) GetBlocks() []*BlockInfo { } type CreateTokenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + UserType int32 `protobuf:"varint,32,opt,name=userType,proto3" json:"userType"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - UserType int32 `protobuf:"varint,32,opt,name=userType,proto3" json:"userType"` + sizeCache protoimpl.SizeCache } func (x *CreateTokenReq) Reset() { *x = CreateTokenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateTokenReq) String() string { @@ -4168,7 +3934,7 @@ func (*CreateTokenReq) ProtoMessage() {} func (x *CreateTokenReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[79] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4198,20 +3964,17 @@ func (x *CreateTokenReq) GetUserType() int32 { } type CreateTokenResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` unknownFields protoimpl.UnknownFields - - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` + sizeCache protoimpl.SizeCache } func (x *CreateTokenResp) Reset() { *x = CreateTokenResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateTokenResp) String() string { @@ -4222,7 +3985,7 @@ func (*CreateTokenResp) ProtoMessage() {} func (x *CreateTokenResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[80] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4245,20 +4008,17 @@ func (x *CreateTokenResp) GetToken() string { } type ParseTokenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` unknownFields protoimpl.UnknownFields - - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"` + sizeCache protoimpl.SizeCache } func (x *ParseTokenReq) Reset() { *x = ParseTokenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ParseTokenReq) String() string { @@ -4269,7 +4029,7 @@ func (*ParseTokenReq) ProtoMessage() {} func (x *ParseTokenReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[81] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4292,22 +4052,19 @@ func (x *ParseTokenReq) GetToken() string { } type ParseTokenResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - UserType int32 `protobuf:"varint,2,opt,name=userType,proto3" json:"userType"` - ExpireTimeSeconds int64 `protobuf:"varint,3,opt,name=expireTimeSeconds,proto3" json:"expireTimeSeconds"` + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + UserType int32 `protobuf:"varint,2,opt,name=userType,proto3" json:"userType"` + ExpireTimeSeconds int64 `protobuf:"varint,3,opt,name=expireTimeSeconds,proto3" json:"expireTimeSeconds"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ParseTokenResp) Reset() { *x = ParseTokenResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ParseTokenResp) String() string { @@ -4318,7 +4075,7 @@ func (*ParseTokenResp) ProtoMessage() {} func (x *ParseTokenResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[82] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4355,20 +4112,17 @@ func (x *ParseTokenResp) GetExpireTimeSeconds() int64 { } type InvalidateTokenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + sizeCache protoimpl.SizeCache } func (x *InvalidateTokenReq) Reset() { *x = InvalidateTokenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvalidateTokenReq) String() string { @@ -4379,7 +4133,7 @@ func (*InvalidateTokenReq) ProtoMessage() {} func (x *InvalidateTokenReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[83] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4402,18 +4156,16 @@ func (x *InvalidateTokenReq) GetUserID() string { } type InvalidateTokenResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InvalidateTokenResp) Reset() { *x = InvalidateTokenResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InvalidateTokenResp) String() string { @@ -4424,7 +4176,7 @@ func (*InvalidateTokenResp) ProtoMessage() {} func (x *InvalidateTokenResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[84] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4440,30 +4192,27 @@ func (*InvalidateTokenResp) Descriptor() ([]byte, []int) { } type AddAppletReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` + AppID string `protobuf:"bytes,3,opt,name=appID,proto3" json:"appID"` + Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon"` + Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url"` + Md5 string `protobuf:"bytes,6,opt,name=md5,proto3" json:"md5"` + Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size"` + Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version"` + Priority uint32 `protobuf:"varint,9,opt,name=priority,proto3" json:"priority"` + Status uint32 `protobuf:"varint,10,opt,name=status,proto3" json:"status"` + CreateTime int64 `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` - AppID string `protobuf:"bytes,3,opt,name=appID,proto3" json:"appID"` - Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon"` - Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url"` - Md5 string `protobuf:"bytes,6,opt,name=md5,proto3" json:"md5"` - Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size"` - Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version"` - Priority uint32 `protobuf:"varint,9,opt,name=priority,proto3" json:"priority"` - Status uint32 `protobuf:"varint,10,opt,name=status,proto3" json:"status"` - CreateTime int64 `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime"` + sizeCache protoimpl.SizeCache } func (x *AddAppletReq) Reset() { *x = AddAppletReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[85] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddAppletReq) String() string { @@ -4474,7 +4223,7 @@ func (*AddAppletReq) ProtoMessage() {} func (x *AddAppletReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[85] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4567,18 +4316,16 @@ func (x *AddAppletReq) GetCreateTime() int64 { } type AddAppletResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddAppletResp) Reset() { *x = AddAppletResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[86] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddAppletResp) String() string { @@ -4589,7 +4336,7 @@ func (*AddAppletResp) ProtoMessage() {} func (x *AddAppletResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[86] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4605,20 +4352,17 @@ func (*AddAppletResp) Descriptor() ([]byte, []int) { } type DelAppletReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AppletIds []string `protobuf:"bytes,1,rep,name=appletIds,proto3" json:"appletIds"` unknownFields protoimpl.UnknownFields - - AppletIds []string `protobuf:"bytes,1,rep,name=appletIds,proto3" json:"appletIds"` + sizeCache protoimpl.SizeCache } func (x *DelAppletReq) Reset() { *x = DelAppletReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[87] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelAppletReq) String() string { @@ -4629,7 +4373,7 @@ func (*DelAppletReq) ProtoMessage() {} func (x *DelAppletReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[87] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4652,18 +4396,16 @@ func (x *DelAppletReq) GetAppletIds() []string { } type DelAppletResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DelAppletResp) Reset() { *x = DelAppletResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[88] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelAppletResp) String() string { @@ -4674,7 +4416,7 @@ func (*DelAppletResp) ProtoMessage() {} func (x *DelAppletResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[88] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4690,30 +4432,27 @@ func (*DelAppletResp) Descriptor() ([]byte, []int) { } type UpdateAppletReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` + Name *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` + AppID *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=appID,proto3" json:"appID"` + Icon *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon"` + Url *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=url,proto3" json:"url"` + Md5 *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=md5,proto3" json:"md5"` + Size *wrapperspb.Int64Value `protobuf:"bytes,7,opt,name=size,proto3" json:"size"` + Version *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=version,proto3" json:"version"` + Priority *wrapperspb.UInt32Value `protobuf:"bytes,9,opt,name=priority,proto3" json:"priority"` + Status *wrapperspb.UInt32Value `protobuf:"bytes,10,opt,name=status,proto3" json:"status"` + CreateTime *wrapperspb.Int64Value `protobuf:"bytes,11,opt,name=createTime,proto3" json:"createTime"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` - Name *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` - AppID *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=appID,proto3" json:"appID"` - Icon *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon"` - Url *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=url,proto3" json:"url"` - Md5 *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=md5,proto3" json:"md5"` - Size *wrapperspb.Int64Value `protobuf:"bytes,7,opt,name=size,proto3" json:"size"` - Version *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=version,proto3" json:"version"` - Priority *wrapperspb.UInt32Value `protobuf:"bytes,9,opt,name=priority,proto3" json:"priority"` - Status *wrapperspb.UInt32Value `protobuf:"bytes,10,opt,name=status,proto3" json:"status"` - CreateTime *wrapperspb.Int64Value `protobuf:"bytes,11,opt,name=createTime,proto3" json:"createTime"` + sizeCache protoimpl.SizeCache } func (x *UpdateAppletReq) Reset() { *x = UpdateAppletReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[89] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[89] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateAppletReq) String() string { @@ -4724,7 +4463,7 @@ func (*UpdateAppletReq) ProtoMessage() {} func (x *UpdateAppletReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[89] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4817,18 +4556,16 @@ func (x *UpdateAppletReq) GetCreateTime() *wrapperspb.Int64Value { } type UpdateAppletResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateAppletResp) Reset() { *x = UpdateAppletResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[90] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateAppletResp) String() string { @@ -4839,7 +4576,7 @@ func (*UpdateAppletResp) ProtoMessage() {} func (x *UpdateAppletResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[90] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4855,18 +4592,16 @@ func (*UpdateAppletResp) Descriptor() ([]byte, []int) { } type FindAppletReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FindAppletReq) Reset() { *x = FindAppletReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[91] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindAppletReq) String() string { @@ -4877,7 +4612,7 @@ func (*FindAppletReq) ProtoMessage() {} func (x *FindAppletReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[91] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4893,20 +4628,17 @@ func (*FindAppletReq) Descriptor() ([]byte, []int) { } type FindAppletResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Applets []*common.AppletInfo `protobuf:"bytes,1,rep,name=applets,proto3" json:"applets"` unknownFields protoimpl.UnknownFields - - Applets []*common.AppletInfo `protobuf:"bytes,1,rep,name=applets,proto3" json:"applets"` + sizeCache protoimpl.SizeCache } func (x *FindAppletResp) Reset() { *x = FindAppletResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[92] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindAppletResp) String() string { @@ -4917,7 +4649,7 @@ func (*FindAppletResp) ProtoMessage() {} func (x *FindAppletResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[92] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4940,21 +4672,18 @@ func (x *FindAppletResp) GetApplets() []*common.AppletInfo { } type SearchAppletReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` unknownFields protoimpl.UnknownFields - - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` + sizeCache protoimpl.SizeCache } func (x *SearchAppletReq) Reset() { *x = SearchAppletReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[93] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchAppletReq) String() string { @@ -4965,7 +4694,7 @@ func (*SearchAppletReq) ProtoMessage() {} func (x *SearchAppletReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[93] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4995,21 +4724,18 @@ func (x *SearchAppletReq) GetPagination() *sdkws.RequestPagination { } type SearchAppletResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Applets []*common.AppletInfo `protobuf:"bytes,2,rep,name=applets,proto3" json:"applets"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - Applets []*common.AppletInfo `protobuf:"bytes,2,rep,name=applets,proto3" json:"applets"` + sizeCache protoimpl.SizeCache } func (x *SearchAppletResp) Reset() { *x = SearchAppletResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[94] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchAppletResp) String() string { @@ -5020,7 +4746,7 @@ func (*SearchAppletResp) ProtoMessage() {} func (x *SearchAppletResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[94] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5050,20 +4776,17 @@ func (x *SearchAppletResp) GetApplets() []*common.AppletInfo { } type SetClientConfigReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *SetClientConfigReq) Reset() { *x = SetClientConfigReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[95] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetClientConfigReq) String() string { @@ -5074,7 +4797,7 @@ func (*SetClientConfigReq) ProtoMessage() {} func (x *SetClientConfigReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[95] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5097,18 +4820,16 @@ func (x *SetClientConfigReq) GetConfig() map[string]string { } type SetClientConfigResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetClientConfigResp) Reset() { *x = SetClientConfigResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[96] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[96] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetClientConfigResp) String() string { @@ -5119,7 +4840,7 @@ func (*SetClientConfigResp) ProtoMessage() {} func (x *SetClientConfigResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[96] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5135,20 +4856,17 @@ func (*SetClientConfigResp) Descriptor() ([]byte, []int) { } type DelClientConfigReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys"` unknownFields protoimpl.UnknownFields - - Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys"` + sizeCache protoimpl.SizeCache } func (x *DelClientConfigReq) Reset() { *x = DelClientConfigReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[97] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelClientConfigReq) String() string { @@ -5159,7 +4877,7 @@ func (*DelClientConfigReq) ProtoMessage() {} func (x *DelClientConfigReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[97] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5182,18 +4900,16 @@ func (x *DelClientConfigReq) GetKeys() []string { } type DelClientConfigResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DelClientConfigResp) Reset() { *x = DelClientConfigResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[98] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelClientConfigResp) String() string { @@ -5204,7 +4920,7 @@ func (*DelClientConfigResp) ProtoMessage() {} func (x *DelClientConfigResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[98] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5220,18 +4936,16 @@ func (*DelClientConfigResp) Descriptor() ([]byte, []int) { } type GetClientConfigReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetClientConfigReq) Reset() { *x = GetClientConfigReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[99] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[99] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClientConfigReq) String() string { @@ -5242,7 +4956,7 @@ func (*GetClientConfigReq) ProtoMessage() {} func (x *GetClientConfigReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[99] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5258,20 +4972,17 @@ func (*GetClientConfigReq) Descriptor() ([]byte, []int) { } type GetClientConfigResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *GetClientConfigResp) Reset() { *x = GetClientConfigResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[100] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetClientConfigResp) String() string { @@ -5282,7 +4993,7 @@ func (*GetClientConfigResp) ProtoMessage() {} func (x *GetClientConfigResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[100] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5305,20 +5016,17 @@ func (x *GetClientConfigResp) GetConfig() map[string]string { } type GetUserTokenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + sizeCache protoimpl.SizeCache } func (x *GetUserTokenReq) Reset() { *x = GetUserTokenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[101] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[101] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetUserTokenReq) String() string { @@ -5329,7 +5037,7 @@ func (*GetUserTokenReq) ProtoMessage() {} func (x *GetUserTokenReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[101] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5352,20 +5060,17 @@ func (x *GetUserTokenReq) GetUserID() string { } type GetUserTokenResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TokensMap map[string]int32 `protobuf:"bytes,1,rep,name=tokensMap,proto3" json:"tokensMap" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - TokensMap map[string]int32 `protobuf:"bytes,1,rep,name=tokensMap,proto3" json:"tokensMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *GetUserTokenResp) Reset() { *x = GetUserTokenResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[102] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[102] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetUserTokenResp) String() string { @@ -5376,7 +5081,7 @@ func (*GetUserTokenResp) ProtoMessage() {} func (x *GetUserTokenResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[102] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5399,28 +5104,25 @@ func (x *GetUserTokenResp) GetTokensMap() map[string]int32 { } type ApplicationVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` + Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version"` + Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url"` + Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text"` + Force bool `protobuf:"varint,6,opt,name=force,proto3" json:"force"` + Latest bool `protobuf:"varint,7,opt,name=latest,proto3" json:"latest"` + Hot bool `protobuf:"varint,8,opt,name=hot,proto3" json:"hot"` + CreateTime int64 `protobuf:"varint,9,opt,name=createTime,proto3" json:"createTime"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` - Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"` - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version"` - Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url"` - Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text"` - Force bool `protobuf:"varint,6,opt,name=force,proto3" json:"force"` - Latest bool `protobuf:"varint,7,opt,name=latest,proto3" json:"latest"` - Hot bool `protobuf:"varint,8,opt,name=hot,proto3" json:"hot"` - CreateTime int64 `protobuf:"varint,9,opt,name=createTime,proto3" json:"createTime"` + sizeCache protoimpl.SizeCache } func (x *ApplicationVersion) Reset() { *x = ApplicationVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[103] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[103] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ApplicationVersion) String() string { @@ -5431,7 +5133,7 @@ func (*ApplicationVersion) ProtoMessage() {} func (x *ApplicationVersion) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[103] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5510,21 +5212,18 @@ func (x *ApplicationVersion) GetCreateTime() int64 { } type LatestApplicationVersionReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version"` unknownFields protoimpl.UnknownFields - - Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"` - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version"` + sizeCache protoimpl.SizeCache } func (x *LatestApplicationVersionReq) Reset() { *x = LatestApplicationVersionReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[104] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[104] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestApplicationVersionReq) String() string { @@ -5535,7 +5234,7 @@ func (*LatestApplicationVersionReq) ProtoMessage() {} func (x *LatestApplicationVersionReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[104] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5565,20 +5264,17 @@ func (x *LatestApplicationVersionReq) GetVersion() string { } type LatestApplicationVersionResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Version *ApplicationVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version"` unknownFields protoimpl.UnknownFields - - Version *ApplicationVersion `protobuf:"bytes,1,opt,name=version,proto3" json:"version"` + sizeCache protoimpl.SizeCache } func (x *LatestApplicationVersionResp) Reset() { *x = LatestApplicationVersionResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[105] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LatestApplicationVersionResp) String() string { @@ -5589,7 +5285,7 @@ func (*LatestApplicationVersionResp) ProtoMessage() {} func (x *LatestApplicationVersionResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[105] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5612,26 +5308,23 @@ func (x *LatestApplicationVersionResp) GetVersion() *ApplicationVersion { } type AddApplicationVersionReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version"` + Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url"` + Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text"` + Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force"` + Latest bool `protobuf:"varint,6,opt,name=latest,proto3" json:"latest"` + Hot bool `protobuf:"varint,7,opt,name=hot,proto3" json:"hot"` unknownFields protoimpl.UnknownFields - - Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url"` - Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text"` - Force bool `protobuf:"varint,5,opt,name=force,proto3" json:"force"` - Latest bool `protobuf:"varint,6,opt,name=latest,proto3" json:"latest"` - Hot bool `protobuf:"varint,7,opt,name=hot,proto3" json:"hot"` + sizeCache protoimpl.SizeCache } func (x *AddApplicationVersionReq) Reset() { *x = AddApplicationVersionReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[106] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddApplicationVersionReq) String() string { @@ -5642,7 +5335,7 @@ func (*AddApplicationVersionReq) ProtoMessage() {} func (x *AddApplicationVersionReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[106] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5707,18 +5400,16 @@ func (x *AddApplicationVersionReq) GetHot() bool { } type AddApplicationVersionResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddApplicationVersionResp) Reset() { *x = AddApplicationVersionResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[107] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[107] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddApplicationVersionResp) String() string { @@ -5729,7 +5420,7 @@ func (*AddApplicationVersionResp) ProtoMessage() {} func (x *AddApplicationVersionResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[107] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5745,27 +5436,24 @@ func (*AddApplicationVersionResp) Descriptor() ([]byte, []int) { } type UpdateApplicationVersionReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` + Platform *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"` + Version *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version"` + Url *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=url,proto3" json:"url"` + Text *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=text,proto3" json:"text"` + Force *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=force,proto3" json:"force"` + Latest *wrapperspb.BoolValue `protobuf:"bytes,7,opt,name=latest,proto3" json:"latest"` + Hot *wrapperspb.BoolValue `protobuf:"bytes,8,opt,name=hot,proto3" json:"hot"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` - Platform *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"` - Version *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=version,proto3" json:"version"` - Url *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=url,proto3" json:"url"` - Text *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=text,proto3" json:"text"` - Force *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=force,proto3" json:"force"` - Latest *wrapperspb.BoolValue `protobuf:"bytes,7,opt,name=latest,proto3" json:"latest"` - Hot *wrapperspb.BoolValue `protobuf:"bytes,8,opt,name=hot,proto3" json:"hot"` + sizeCache protoimpl.SizeCache } func (x *UpdateApplicationVersionReq) Reset() { *x = UpdateApplicationVersionReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[108] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[108] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateApplicationVersionReq) String() string { @@ -5776,7 +5464,7 @@ func (*UpdateApplicationVersionReq) ProtoMessage() {} func (x *UpdateApplicationVersionReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[108] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5848,18 +5536,16 @@ func (x *UpdateApplicationVersionReq) GetHot() *wrapperspb.BoolValue { } type UpdateApplicationVersionResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateApplicationVersionResp) Reset() { *x = UpdateApplicationVersionResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[109] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[109] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateApplicationVersionResp) String() string { @@ -5870,7 +5556,7 @@ func (*UpdateApplicationVersionResp) ProtoMessage() {} func (x *UpdateApplicationVersionResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[109] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5886,20 +5572,17 @@ func (*UpdateApplicationVersionResp) Descriptor() ([]byte, []int) { } type DeleteApplicationVersionReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id"` unknownFields protoimpl.UnknownFields - - Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id"` + sizeCache protoimpl.SizeCache } func (x *DeleteApplicationVersionReq) Reset() { *x = DeleteApplicationVersionReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[110] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[110] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteApplicationVersionReq) String() string { @@ -5910,7 +5593,7 @@ func (*DeleteApplicationVersionReq) ProtoMessage() {} func (x *DeleteApplicationVersionReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[110] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5933,18 +5616,16 @@ func (x *DeleteApplicationVersionReq) GetId() []string { } type DeleteApplicationVersionResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteApplicationVersionResp) Reset() { *x = DeleteApplicationVersionResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[111] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[111] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteApplicationVersionResp) String() string { @@ -5955,7 +5636,7 @@ func (*DeleteApplicationVersionResp) ProtoMessage() {} func (x *DeleteApplicationVersionResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[111] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5971,21 +5652,18 @@ func (*DeleteApplicationVersionResp) Descriptor() ([]byte, []int) { } type PageApplicationVersionReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Platform []string `protobuf:"bytes,1,rep,name=platform,proto3" json:"platform"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` unknownFields protoimpl.UnknownFields - - Platform []string `protobuf:"bytes,1,rep,name=platform,proto3" json:"platform"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` + sizeCache protoimpl.SizeCache } func (x *PageApplicationVersionReq) Reset() { *x = PageApplicationVersionReq{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[112] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[112] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PageApplicationVersionReq) String() string { @@ -5996,7 +5674,7 @@ func (*PageApplicationVersionReq) ProtoMessage() {} func (x *PageApplicationVersionReq) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[112] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6026,21 +5704,18 @@ func (x *PageApplicationVersionReq) GetPagination() *sdkws.RequestPagination { } type PageApplicationVersionResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Versions []*ApplicationVersion `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions"` unknownFields protoimpl.UnknownFields - - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - Versions []*ApplicationVersion `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions"` + sizeCache protoimpl.SizeCache } func (x *PageApplicationVersionResp) Reset() { *x = PageApplicationVersionResp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_admin_proto_msgTypes[113] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_admin_admin_proto_msgTypes[113] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PageApplicationVersionResp) String() string { @@ -6051,7 +5726,7 @@ func (*PageApplicationVersionResp) ProtoMessage() {} func (x *PageApplicationVersionResp) ProtoReflect() protoreflect.Message { mi := &file_admin_admin_proto_msgTypes[113] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7007,7 +6682,7 @@ func file_admin_admin_proto_rawDescGZIP() []byte { } var file_admin_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 117) -var file_admin_admin_proto_goTypes = []interface{}{ +var file_admin_admin_proto_goTypes = []any{ (*LoginReq)(nil), // 0: openim.admin.LoginReq (*LoginResp)(nil), // 1: openim.admin.LoginResp (*AddAdminAccountReq)(nil), // 2: openim.admin.AddAdminAccountReq @@ -7305,1376 +6980,6 @@ func file_admin_admin_proto_init() { if File_admin_admin_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_admin_admin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoginReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoginResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddAdminAccountReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddAdminAccountResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdminUpdateInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AdminUpdateInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangePasswordReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangePasswordResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAdminInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeAdminPasswordReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeAdminPasswordResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelAdminAccountReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelAdminAccountResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchAdminAccountReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchAdminAccountResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAdminInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddDefaultFriendReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddDefaultFriendResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelDefaultFriendReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelDefaultFriendResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindDefaultFriendReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindDefaultFriendResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchDefaultFriendReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultFriendAttribute); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchDefaultFriendResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddDefaultGroupReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddDefaultGroupResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelDefaultGroupReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelDefaultGroupResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindDefaultGroupReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindDefaultGroupResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchDefaultGroupReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupAttribute); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchDefaultGroupResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddInvitationCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddInvitationCodeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenInvitationCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenInvitationCodeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindInvitationCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindInvitationCodeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UseInvitationCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UseInvitationCodeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelInvitationCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelInvitationCodeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvitationRegister); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchInvitationCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchInvitationCodeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchUserIPLimitLoginReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LimitUserLoginIP); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchUserIPLimitLoginResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserIPLimitLogin); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddUserIPLimitLoginReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddUserIPLimitLoginResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelUserIPLimitLoginReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelUserIPLimitLoginResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IPForbidden); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IPForbiddenAdd); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchIPForbiddenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchIPForbiddenResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddIPForbiddenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddIPForbiddenResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelIPForbiddenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelIPForbiddenResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckRegisterForbiddenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckRegisterForbiddenResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckLoginForbiddenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckLoginForbiddenResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancellationUserReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancellationUserResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockUserReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockUserResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnblockUserReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnblockUserResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchBlockUserReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockUserInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchBlockUserResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUserBlockInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlockInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUserBlockInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTokenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTokenResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParseTokenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParseTokenResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidateTokenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidateTokenResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddAppletReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddAppletResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelAppletReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelAppletResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateAppletReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateAppletResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAppletReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAppletResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchAppletReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchAppletResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetClientConfigReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetClientConfigResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelClientConfigReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelClientConfigResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClientConfigReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetClientConfigResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserTokenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserTokenResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplicationVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestApplicationVersionReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LatestApplicationVersionResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddApplicationVersionReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddApplicationVersionResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateApplicationVersionReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateApplicationVersionResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteApplicationVersionReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteApplicationVersionResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PageApplicationVersionReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_admin_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PageApplicationVersionResp); 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{ @@ -8694,1943 +6999,3 @@ func file_admin_admin_proto_init() { file_admin_admin_proto_goTypes = nil file_admin_admin_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 - -// AdminClient is the client API for Admin service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AdminClient interface { - // Login - Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) - ChangePassword(ctx context.Context, in *ChangePasswordReq, opts ...grpc.CallOption) (*ChangePasswordResp, error) - AdminUpdateInfo(ctx context.Context, in *AdminUpdateInfoReq, opts ...grpc.CallOption) (*AdminUpdateInfoResp, error) - // Get administrator information - GetAdminInfo(ctx context.Context, in *GetAdminInfoReq, opts ...grpc.CallOption) (*GetAdminInfoResp, error) - AddAdminAccount(ctx context.Context, in *AddAdminAccountReq, opts ...grpc.CallOption) (*AddAdminAccountResp, error) - ChangeAdminPassword(ctx context.Context, in *ChangeAdminPasswordReq, opts ...grpc.CallOption) (*ChangeAdminPasswordResp, error) - DelAdminAccount(ctx context.Context, in *DelAdminAccountReq, opts ...grpc.CallOption) (*DelAdminAccountResp, error) - SearchAdminAccount(ctx context.Context, in *SearchAdminAccountReq, opts ...grpc.CallOption) (*SearchAdminAccountResp, error) - // Add Remove Get default friend list on registration - AddDefaultFriend(ctx context.Context, in *AddDefaultFriendReq, opts ...grpc.CallOption) (*AddDefaultFriendResp, error) - DelDefaultFriend(ctx context.Context, in *DelDefaultFriendReq, opts ...grpc.CallOption) (*DelDefaultFriendResp, error) - FindDefaultFriend(ctx context.Context, in *FindDefaultFriendReq, opts ...grpc.CallOption) (*FindDefaultFriendResp, error) - SearchDefaultFriend(ctx context.Context, in *SearchDefaultFriendReq, opts ...grpc.CallOption) (*SearchDefaultFriendResp, error) - AddDefaultGroup(ctx context.Context, in *AddDefaultGroupReq, opts ...grpc.CallOption) (*AddDefaultGroupResp, error) - DelDefaultGroup(ctx context.Context, in *DelDefaultGroupReq, opts ...grpc.CallOption) (*DelDefaultGroupResp, error) - FindDefaultGroup(ctx context.Context, in *FindDefaultGroupReq, opts ...grpc.CallOption) (*FindDefaultGroupResp, error) - SearchDefaultGroup(ctx context.Context, in *SearchDefaultGroupReq, opts ...grpc.CallOption) (*SearchDefaultGroupResp, error) - // Invitation Code Generate Query Get - AddInvitationCode(ctx context.Context, in *AddInvitationCodeReq, opts ...grpc.CallOption) (*AddInvitationCodeResp, error) - GenInvitationCode(ctx context.Context, in *GenInvitationCodeReq, opts ...grpc.CallOption) (*GenInvitationCodeResp, error) - FindInvitationCode(ctx context.Context, in *FindInvitationCodeReq, opts ...grpc.CallOption) (*FindInvitationCodeResp, error) - UseInvitationCode(ctx context.Context, in *UseInvitationCodeReq, opts ...grpc.CallOption) (*UseInvitationCodeResp, error) - DelInvitationCode(ctx context.Context, in *DelInvitationCodeReq, opts ...grpc.CallOption) (*DelInvitationCodeResp, error) - SearchInvitationCode(ctx context.Context, in *SearchInvitationCodeReq, opts ...grpc.CallOption) (*SearchInvitationCodeResp, error) - // User login ip limit Query Add Remove - SearchUserIPLimitLogin(ctx context.Context, in *SearchUserIPLimitLoginReq, opts ...grpc.CallOption) (*SearchUserIPLimitLoginResp, error) - AddUserIPLimitLogin(ctx context.Context, in *AddUserIPLimitLoginReq, opts ...grpc.CallOption) (*AddUserIPLimitLoginResp, error) - DelUserIPLimitLogin(ctx context.Context, in *DelUserIPLimitLoginReq, opts ...grpc.CallOption) (*DelUserIPLimitLoginResp, error) - // Prohibit users from registering at certain ip Query Add Remove - SearchIPForbidden(ctx context.Context, in *SearchIPForbiddenReq, opts ...grpc.CallOption) (*SearchIPForbiddenResp, error) - AddIPForbidden(ctx context.Context, in *AddIPForbiddenReq, opts ...grpc.CallOption) (*AddIPForbiddenResp, error) - DelIPForbidden(ctx context.Context, in *DelIPForbiddenReq, opts ...grpc.CallOption) (*DelIPForbiddenResp, error) - // User Management Related Add Block/Unblock Pull - CancellationUser(ctx context.Context, in *CancellationUserReq, opts ...grpc.CallOption) (*CancellationUserResp, error) - BlockUser(ctx context.Context, in *BlockUserReq, opts ...grpc.CallOption) (*BlockUserResp, error) - UnblockUser(ctx context.Context, in *UnblockUserReq, opts ...grpc.CallOption) (*UnblockUserResp, error) - SearchBlockUser(ctx context.Context, in *SearchBlockUserReq, opts ...grpc.CallOption) (*SearchBlockUserResp, error) - FindUserBlockInfo(ctx context.Context, in *FindUserBlockInfoReq, opts ...grpc.CallOption) (*FindUserBlockInfoResp, error) - CheckRegisterForbidden(ctx context.Context, in *CheckRegisterForbiddenReq, opts ...grpc.CallOption) (*CheckRegisterForbiddenResp, error) - CheckLoginForbidden(ctx context.Context, in *CheckLoginForbiddenReq, opts ...grpc.CallOption) (*CheckLoginForbiddenResp, error) - // create token - CreateToken(ctx context.Context, in *CreateTokenReq, opts ...grpc.CallOption) (*CreateTokenResp, error) - // parse token - ParseToken(ctx context.Context, in *ParseTokenReq, opts ...grpc.CallOption) (*ParseTokenResp, error) - // app - AddApplet(ctx context.Context, in *AddAppletReq, opts ...grpc.CallOption) (*AddAppletResp, error) - DelApplet(ctx context.Context, in *DelAppletReq, opts ...grpc.CallOption) (*DelAppletResp, error) - UpdateApplet(ctx context.Context, in *UpdateAppletReq, opts ...grpc.CallOption) (*UpdateAppletResp, error) - FindApplet(ctx context.Context, in *FindAppletReq, opts ...grpc.CallOption) (*FindAppletResp, error) - SearchApplet(ctx context.Context, in *SearchAppletReq, opts ...grpc.CallOption) (*SearchAppletResp, error) - // Client Configuration - GetClientConfig(ctx context.Context, in *GetClientConfigReq, opts ...grpc.CallOption) (*GetClientConfigResp, error) - SetClientConfig(ctx context.Context, in *SetClientConfigReq, opts ...grpc.CallOption) (*SetClientConfigResp, error) - DelClientConfig(ctx context.Context, in *DelClientConfigReq, opts ...grpc.CallOption) (*DelClientConfigResp, error) - GetUserToken(ctx context.Context, in *GetUserTokenReq, opts ...grpc.CallOption) (*GetUserTokenResp, error) - // invalidate token - InvalidateToken(ctx context.Context, in *InvalidateTokenReq, opts ...grpc.CallOption) (*InvalidateTokenResp, error) - LatestApplicationVersion(ctx context.Context, in *LatestApplicationVersionReq, opts ...grpc.CallOption) (*LatestApplicationVersionResp, error) - AddApplicationVersion(ctx context.Context, in *AddApplicationVersionReq, opts ...grpc.CallOption) (*AddApplicationVersionResp, error) - UpdateApplicationVersion(ctx context.Context, in *UpdateApplicationVersionReq, opts ...grpc.CallOption) (*UpdateApplicationVersionResp, error) - DeleteApplicationVersion(ctx context.Context, in *DeleteApplicationVersionReq, opts ...grpc.CallOption) (*DeleteApplicationVersionResp, error) - PageApplicationVersion(ctx context.Context, in *PageApplicationVersionReq, opts ...grpc.CallOption) (*PageApplicationVersionResp, error) -} - -type adminClient struct { - cc grpc.ClientConnInterface -} - -func NewAdminClient(cc grpc.ClientConnInterface) AdminClient { - return &adminClient{cc} -} - -func (c *adminClient) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) { - out := new(LoginResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/Login", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) ChangePassword(ctx context.Context, in *ChangePasswordReq, opts ...grpc.CallOption) (*ChangePasswordResp, error) { - out := new(ChangePasswordResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/ChangePassword", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) AdminUpdateInfo(ctx context.Context, in *AdminUpdateInfoReq, opts ...grpc.CallOption) (*AdminUpdateInfoResp, error) { - out := new(AdminUpdateInfoResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/AdminUpdateInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) GetAdminInfo(ctx context.Context, in *GetAdminInfoReq, opts ...grpc.CallOption) (*GetAdminInfoResp, error) { - out := new(GetAdminInfoResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/GetAdminInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) AddAdminAccount(ctx context.Context, in *AddAdminAccountReq, opts ...grpc.CallOption) (*AddAdminAccountResp, error) { - out := new(AddAdminAccountResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/AddAdminAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) ChangeAdminPassword(ctx context.Context, in *ChangeAdminPasswordReq, opts ...grpc.CallOption) (*ChangeAdminPasswordResp, error) { - out := new(ChangeAdminPasswordResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/ChangeAdminPassword", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) DelAdminAccount(ctx context.Context, in *DelAdminAccountReq, opts ...grpc.CallOption) (*DelAdminAccountResp, error) { - out := new(DelAdminAccountResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/DelAdminAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) SearchAdminAccount(ctx context.Context, in *SearchAdminAccountReq, opts ...grpc.CallOption) (*SearchAdminAccountResp, error) { - out := new(SearchAdminAccountResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/SearchAdminAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) AddDefaultFriend(ctx context.Context, in *AddDefaultFriendReq, opts ...grpc.CallOption) (*AddDefaultFriendResp, error) { - out := new(AddDefaultFriendResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/AddDefaultFriend", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) DelDefaultFriend(ctx context.Context, in *DelDefaultFriendReq, opts ...grpc.CallOption) (*DelDefaultFriendResp, error) { - out := new(DelDefaultFriendResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/DelDefaultFriend", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) FindDefaultFriend(ctx context.Context, in *FindDefaultFriendReq, opts ...grpc.CallOption) (*FindDefaultFriendResp, error) { - out := new(FindDefaultFriendResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/FindDefaultFriend", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) SearchDefaultFriend(ctx context.Context, in *SearchDefaultFriendReq, opts ...grpc.CallOption) (*SearchDefaultFriendResp, error) { - out := new(SearchDefaultFriendResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/SearchDefaultFriend", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) AddDefaultGroup(ctx context.Context, in *AddDefaultGroupReq, opts ...grpc.CallOption) (*AddDefaultGroupResp, error) { - out := new(AddDefaultGroupResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/AddDefaultGroup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) DelDefaultGroup(ctx context.Context, in *DelDefaultGroupReq, opts ...grpc.CallOption) (*DelDefaultGroupResp, error) { - out := new(DelDefaultGroupResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/DelDefaultGroup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) FindDefaultGroup(ctx context.Context, in *FindDefaultGroupReq, opts ...grpc.CallOption) (*FindDefaultGroupResp, error) { - out := new(FindDefaultGroupResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/FindDefaultGroup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) SearchDefaultGroup(ctx context.Context, in *SearchDefaultGroupReq, opts ...grpc.CallOption) (*SearchDefaultGroupResp, error) { - out := new(SearchDefaultGroupResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/SearchDefaultGroup", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) AddInvitationCode(ctx context.Context, in *AddInvitationCodeReq, opts ...grpc.CallOption) (*AddInvitationCodeResp, error) { - out := new(AddInvitationCodeResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/AddInvitationCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) GenInvitationCode(ctx context.Context, in *GenInvitationCodeReq, opts ...grpc.CallOption) (*GenInvitationCodeResp, error) { - out := new(GenInvitationCodeResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/GenInvitationCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) FindInvitationCode(ctx context.Context, in *FindInvitationCodeReq, opts ...grpc.CallOption) (*FindInvitationCodeResp, error) { - out := new(FindInvitationCodeResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/FindInvitationCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) UseInvitationCode(ctx context.Context, in *UseInvitationCodeReq, opts ...grpc.CallOption) (*UseInvitationCodeResp, error) { - out := new(UseInvitationCodeResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/UseInvitationCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) DelInvitationCode(ctx context.Context, in *DelInvitationCodeReq, opts ...grpc.CallOption) (*DelInvitationCodeResp, error) { - out := new(DelInvitationCodeResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/DelInvitationCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) SearchInvitationCode(ctx context.Context, in *SearchInvitationCodeReq, opts ...grpc.CallOption) (*SearchInvitationCodeResp, error) { - out := new(SearchInvitationCodeResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/SearchInvitationCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) SearchUserIPLimitLogin(ctx context.Context, in *SearchUserIPLimitLoginReq, opts ...grpc.CallOption) (*SearchUserIPLimitLoginResp, error) { - out := new(SearchUserIPLimitLoginResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/SearchUserIPLimitLogin", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) AddUserIPLimitLogin(ctx context.Context, in *AddUserIPLimitLoginReq, opts ...grpc.CallOption) (*AddUserIPLimitLoginResp, error) { - out := new(AddUserIPLimitLoginResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/AddUserIPLimitLogin", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) DelUserIPLimitLogin(ctx context.Context, in *DelUserIPLimitLoginReq, opts ...grpc.CallOption) (*DelUserIPLimitLoginResp, error) { - out := new(DelUserIPLimitLoginResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/DelUserIPLimitLogin", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) SearchIPForbidden(ctx context.Context, in *SearchIPForbiddenReq, opts ...grpc.CallOption) (*SearchIPForbiddenResp, error) { - out := new(SearchIPForbiddenResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/SearchIPForbidden", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) AddIPForbidden(ctx context.Context, in *AddIPForbiddenReq, opts ...grpc.CallOption) (*AddIPForbiddenResp, error) { - out := new(AddIPForbiddenResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/AddIPForbidden", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) DelIPForbidden(ctx context.Context, in *DelIPForbiddenReq, opts ...grpc.CallOption) (*DelIPForbiddenResp, error) { - out := new(DelIPForbiddenResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/DelIPForbidden", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) CancellationUser(ctx context.Context, in *CancellationUserReq, opts ...grpc.CallOption) (*CancellationUserResp, error) { - out := new(CancellationUserResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/CancellationUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) BlockUser(ctx context.Context, in *BlockUserReq, opts ...grpc.CallOption) (*BlockUserResp, error) { - out := new(BlockUserResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/BlockUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) UnblockUser(ctx context.Context, in *UnblockUserReq, opts ...grpc.CallOption) (*UnblockUserResp, error) { - out := new(UnblockUserResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/UnblockUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) SearchBlockUser(ctx context.Context, in *SearchBlockUserReq, opts ...grpc.CallOption) (*SearchBlockUserResp, error) { - out := new(SearchBlockUserResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/SearchBlockUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) FindUserBlockInfo(ctx context.Context, in *FindUserBlockInfoReq, opts ...grpc.CallOption) (*FindUserBlockInfoResp, error) { - out := new(FindUserBlockInfoResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/FindUserBlockInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) CheckRegisterForbidden(ctx context.Context, in *CheckRegisterForbiddenReq, opts ...grpc.CallOption) (*CheckRegisterForbiddenResp, error) { - out := new(CheckRegisterForbiddenResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/CheckRegisterForbidden", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) CheckLoginForbidden(ctx context.Context, in *CheckLoginForbiddenReq, opts ...grpc.CallOption) (*CheckLoginForbiddenResp, error) { - out := new(CheckLoginForbiddenResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/CheckLoginForbidden", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) CreateToken(ctx context.Context, in *CreateTokenReq, opts ...grpc.CallOption) (*CreateTokenResp, error) { - out := new(CreateTokenResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/CreateToken", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) ParseToken(ctx context.Context, in *ParseTokenReq, opts ...grpc.CallOption) (*ParseTokenResp, error) { - out := new(ParseTokenResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/ParseToken", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) AddApplet(ctx context.Context, in *AddAppletReq, opts ...grpc.CallOption) (*AddAppletResp, error) { - out := new(AddAppletResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/AddApplet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) DelApplet(ctx context.Context, in *DelAppletReq, opts ...grpc.CallOption) (*DelAppletResp, error) { - out := new(DelAppletResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/DelApplet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) UpdateApplet(ctx context.Context, in *UpdateAppletReq, opts ...grpc.CallOption) (*UpdateAppletResp, error) { - out := new(UpdateAppletResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/UpdateApplet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) FindApplet(ctx context.Context, in *FindAppletReq, opts ...grpc.CallOption) (*FindAppletResp, error) { - out := new(FindAppletResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/FindApplet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) SearchApplet(ctx context.Context, in *SearchAppletReq, opts ...grpc.CallOption) (*SearchAppletResp, error) { - out := new(SearchAppletResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/SearchApplet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) GetClientConfig(ctx context.Context, in *GetClientConfigReq, opts ...grpc.CallOption) (*GetClientConfigResp, error) { - out := new(GetClientConfigResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/GetClientConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) SetClientConfig(ctx context.Context, in *SetClientConfigReq, opts ...grpc.CallOption) (*SetClientConfigResp, error) { - out := new(SetClientConfigResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/SetClientConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) DelClientConfig(ctx context.Context, in *DelClientConfigReq, opts ...grpc.CallOption) (*DelClientConfigResp, error) { - out := new(DelClientConfigResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/DelClientConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) GetUserToken(ctx context.Context, in *GetUserTokenReq, opts ...grpc.CallOption) (*GetUserTokenResp, error) { - out := new(GetUserTokenResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/GetUserToken", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) InvalidateToken(ctx context.Context, in *InvalidateTokenReq, opts ...grpc.CallOption) (*InvalidateTokenResp, error) { - out := new(InvalidateTokenResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/InvalidateToken", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) LatestApplicationVersion(ctx context.Context, in *LatestApplicationVersionReq, opts ...grpc.CallOption) (*LatestApplicationVersionResp, error) { - out := new(LatestApplicationVersionResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/LatestApplicationVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) AddApplicationVersion(ctx context.Context, in *AddApplicationVersionReq, opts ...grpc.CallOption) (*AddApplicationVersionResp, error) { - out := new(AddApplicationVersionResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/AddApplicationVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) UpdateApplicationVersion(ctx context.Context, in *UpdateApplicationVersionReq, opts ...grpc.CallOption) (*UpdateApplicationVersionResp, error) { - out := new(UpdateApplicationVersionResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/UpdateApplicationVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) DeleteApplicationVersion(ctx context.Context, in *DeleteApplicationVersionReq, opts ...grpc.CallOption) (*DeleteApplicationVersionResp, error) { - out := new(DeleteApplicationVersionResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/DeleteApplicationVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminClient) PageApplicationVersion(ctx context.Context, in *PageApplicationVersionReq, opts ...grpc.CallOption) (*PageApplicationVersionResp, error) { - out := new(PageApplicationVersionResp) - err := c.cc.Invoke(ctx, "/openim.admin.admin/PageApplicationVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AdminServer is the server API for Admin service. -type AdminServer interface { - // Login - Login(context.Context, *LoginReq) (*LoginResp, error) - ChangePassword(context.Context, *ChangePasswordReq) (*ChangePasswordResp, error) - AdminUpdateInfo(context.Context, *AdminUpdateInfoReq) (*AdminUpdateInfoResp, error) - // Get administrator information - GetAdminInfo(context.Context, *GetAdminInfoReq) (*GetAdminInfoResp, error) - AddAdminAccount(context.Context, *AddAdminAccountReq) (*AddAdminAccountResp, error) - ChangeAdminPassword(context.Context, *ChangeAdminPasswordReq) (*ChangeAdminPasswordResp, error) - DelAdminAccount(context.Context, *DelAdminAccountReq) (*DelAdminAccountResp, error) - SearchAdminAccount(context.Context, *SearchAdminAccountReq) (*SearchAdminAccountResp, error) - // Add Remove Get default friend list on registration - AddDefaultFriend(context.Context, *AddDefaultFriendReq) (*AddDefaultFriendResp, error) - DelDefaultFriend(context.Context, *DelDefaultFriendReq) (*DelDefaultFriendResp, error) - FindDefaultFriend(context.Context, *FindDefaultFriendReq) (*FindDefaultFriendResp, error) - SearchDefaultFriend(context.Context, *SearchDefaultFriendReq) (*SearchDefaultFriendResp, error) - AddDefaultGroup(context.Context, *AddDefaultGroupReq) (*AddDefaultGroupResp, error) - DelDefaultGroup(context.Context, *DelDefaultGroupReq) (*DelDefaultGroupResp, error) - FindDefaultGroup(context.Context, *FindDefaultGroupReq) (*FindDefaultGroupResp, error) - SearchDefaultGroup(context.Context, *SearchDefaultGroupReq) (*SearchDefaultGroupResp, error) - // Invitation Code Generate Query Get - AddInvitationCode(context.Context, *AddInvitationCodeReq) (*AddInvitationCodeResp, error) - GenInvitationCode(context.Context, *GenInvitationCodeReq) (*GenInvitationCodeResp, error) - FindInvitationCode(context.Context, *FindInvitationCodeReq) (*FindInvitationCodeResp, error) - UseInvitationCode(context.Context, *UseInvitationCodeReq) (*UseInvitationCodeResp, error) - DelInvitationCode(context.Context, *DelInvitationCodeReq) (*DelInvitationCodeResp, error) - SearchInvitationCode(context.Context, *SearchInvitationCodeReq) (*SearchInvitationCodeResp, error) - // User login ip limit Query Add Remove - SearchUserIPLimitLogin(context.Context, *SearchUserIPLimitLoginReq) (*SearchUserIPLimitLoginResp, error) - AddUserIPLimitLogin(context.Context, *AddUserIPLimitLoginReq) (*AddUserIPLimitLoginResp, error) - DelUserIPLimitLogin(context.Context, *DelUserIPLimitLoginReq) (*DelUserIPLimitLoginResp, error) - // Prohibit users from registering at certain ip Query Add Remove - SearchIPForbidden(context.Context, *SearchIPForbiddenReq) (*SearchIPForbiddenResp, error) - AddIPForbidden(context.Context, *AddIPForbiddenReq) (*AddIPForbiddenResp, error) - DelIPForbidden(context.Context, *DelIPForbiddenReq) (*DelIPForbiddenResp, error) - // User Management Related Add Block/Unblock Pull - CancellationUser(context.Context, *CancellationUserReq) (*CancellationUserResp, error) - BlockUser(context.Context, *BlockUserReq) (*BlockUserResp, error) - UnblockUser(context.Context, *UnblockUserReq) (*UnblockUserResp, error) - SearchBlockUser(context.Context, *SearchBlockUserReq) (*SearchBlockUserResp, error) - FindUserBlockInfo(context.Context, *FindUserBlockInfoReq) (*FindUserBlockInfoResp, error) - CheckRegisterForbidden(context.Context, *CheckRegisterForbiddenReq) (*CheckRegisterForbiddenResp, error) - CheckLoginForbidden(context.Context, *CheckLoginForbiddenReq) (*CheckLoginForbiddenResp, error) - // create token - CreateToken(context.Context, *CreateTokenReq) (*CreateTokenResp, error) - // parse token - ParseToken(context.Context, *ParseTokenReq) (*ParseTokenResp, error) - // app - AddApplet(context.Context, *AddAppletReq) (*AddAppletResp, error) - DelApplet(context.Context, *DelAppletReq) (*DelAppletResp, error) - UpdateApplet(context.Context, *UpdateAppletReq) (*UpdateAppletResp, error) - FindApplet(context.Context, *FindAppletReq) (*FindAppletResp, error) - SearchApplet(context.Context, *SearchAppletReq) (*SearchAppletResp, error) - // Client Configuration - GetClientConfig(context.Context, *GetClientConfigReq) (*GetClientConfigResp, error) - SetClientConfig(context.Context, *SetClientConfigReq) (*SetClientConfigResp, error) - DelClientConfig(context.Context, *DelClientConfigReq) (*DelClientConfigResp, error) - GetUserToken(context.Context, *GetUserTokenReq) (*GetUserTokenResp, error) - // invalidate token - InvalidateToken(context.Context, *InvalidateTokenReq) (*InvalidateTokenResp, error) - LatestApplicationVersion(context.Context, *LatestApplicationVersionReq) (*LatestApplicationVersionResp, error) - AddApplicationVersion(context.Context, *AddApplicationVersionReq) (*AddApplicationVersionResp, error) - UpdateApplicationVersion(context.Context, *UpdateApplicationVersionReq) (*UpdateApplicationVersionResp, error) - DeleteApplicationVersion(context.Context, *DeleteApplicationVersionReq) (*DeleteApplicationVersionResp, error) - PageApplicationVersion(context.Context, *PageApplicationVersionReq) (*PageApplicationVersionResp, error) -} - -// UnimplementedAdminServer can be embedded to have forward compatible implementations. -type UnimplementedAdminServer struct { -} - -func (*UnimplementedAdminServer) Login(context.Context, *LoginReq) (*LoginResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") -} -func (*UnimplementedAdminServer) ChangePassword(context.Context, *ChangePasswordReq) (*ChangePasswordResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented") -} -func (*UnimplementedAdminServer) AdminUpdateInfo(context.Context, *AdminUpdateInfoReq) (*AdminUpdateInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateInfo not implemented") -} -func (*UnimplementedAdminServer) GetAdminInfo(context.Context, *GetAdminInfoReq) (*GetAdminInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAdminInfo not implemented") -} -func (*UnimplementedAdminServer) AddAdminAccount(context.Context, *AddAdminAccountReq) (*AddAdminAccountResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddAdminAccount not implemented") -} -func (*UnimplementedAdminServer) ChangeAdminPassword(context.Context, *ChangeAdminPasswordReq) (*ChangeAdminPasswordResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeAdminPassword not implemented") -} -func (*UnimplementedAdminServer) DelAdminAccount(context.Context, *DelAdminAccountReq) (*DelAdminAccountResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelAdminAccount not implemented") -} -func (*UnimplementedAdminServer) SearchAdminAccount(context.Context, *SearchAdminAccountReq) (*SearchAdminAccountResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchAdminAccount not implemented") -} -func (*UnimplementedAdminServer) AddDefaultFriend(context.Context, *AddDefaultFriendReq) (*AddDefaultFriendResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddDefaultFriend not implemented") -} -func (*UnimplementedAdminServer) DelDefaultFriend(context.Context, *DelDefaultFriendReq) (*DelDefaultFriendResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelDefaultFriend not implemented") -} -func (*UnimplementedAdminServer) FindDefaultFriend(context.Context, *FindDefaultFriendReq) (*FindDefaultFriendResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindDefaultFriend not implemented") -} -func (*UnimplementedAdminServer) SearchDefaultFriend(context.Context, *SearchDefaultFriendReq) (*SearchDefaultFriendResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchDefaultFriend not implemented") -} -func (*UnimplementedAdminServer) AddDefaultGroup(context.Context, *AddDefaultGroupReq) (*AddDefaultGroupResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddDefaultGroup not implemented") -} -func (*UnimplementedAdminServer) DelDefaultGroup(context.Context, *DelDefaultGroupReq) (*DelDefaultGroupResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelDefaultGroup not implemented") -} -func (*UnimplementedAdminServer) FindDefaultGroup(context.Context, *FindDefaultGroupReq) (*FindDefaultGroupResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindDefaultGroup not implemented") -} -func (*UnimplementedAdminServer) SearchDefaultGroup(context.Context, *SearchDefaultGroupReq) (*SearchDefaultGroupResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchDefaultGroup not implemented") -} -func (*UnimplementedAdminServer) AddInvitationCode(context.Context, *AddInvitationCodeReq) (*AddInvitationCodeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddInvitationCode not implemented") -} -func (*UnimplementedAdminServer) GenInvitationCode(context.Context, *GenInvitationCodeReq) (*GenInvitationCodeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GenInvitationCode not implemented") -} -func (*UnimplementedAdminServer) FindInvitationCode(context.Context, *FindInvitationCodeReq) (*FindInvitationCodeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindInvitationCode not implemented") -} -func (*UnimplementedAdminServer) UseInvitationCode(context.Context, *UseInvitationCodeReq) (*UseInvitationCodeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UseInvitationCode not implemented") -} -func (*UnimplementedAdminServer) DelInvitationCode(context.Context, *DelInvitationCodeReq) (*DelInvitationCodeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelInvitationCode not implemented") -} -func (*UnimplementedAdminServer) SearchInvitationCode(context.Context, *SearchInvitationCodeReq) (*SearchInvitationCodeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchInvitationCode not implemented") -} -func (*UnimplementedAdminServer) SearchUserIPLimitLogin(context.Context, *SearchUserIPLimitLoginReq) (*SearchUserIPLimitLoginResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchUserIPLimitLogin not implemented") -} -func (*UnimplementedAdminServer) AddUserIPLimitLogin(context.Context, *AddUserIPLimitLoginReq) (*AddUserIPLimitLoginResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddUserIPLimitLogin not implemented") -} -func (*UnimplementedAdminServer) DelUserIPLimitLogin(context.Context, *DelUserIPLimitLoginReq) (*DelUserIPLimitLoginResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelUserIPLimitLogin not implemented") -} -func (*UnimplementedAdminServer) SearchIPForbidden(context.Context, *SearchIPForbiddenReq) (*SearchIPForbiddenResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchIPForbidden not implemented") -} -func (*UnimplementedAdminServer) AddIPForbidden(context.Context, *AddIPForbiddenReq) (*AddIPForbiddenResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddIPForbidden not implemented") -} -func (*UnimplementedAdminServer) DelIPForbidden(context.Context, *DelIPForbiddenReq) (*DelIPForbiddenResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelIPForbidden not implemented") -} -func (*UnimplementedAdminServer) CancellationUser(context.Context, *CancellationUserReq) (*CancellationUserResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method CancellationUser not implemented") -} -func (*UnimplementedAdminServer) BlockUser(context.Context, *BlockUserReq) (*BlockUserResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method BlockUser not implemented") -} -func (*UnimplementedAdminServer) UnblockUser(context.Context, *UnblockUserReq) (*UnblockUserResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UnblockUser not implemented") -} -func (*UnimplementedAdminServer) SearchBlockUser(context.Context, *SearchBlockUserReq) (*SearchBlockUserResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchBlockUser not implemented") -} -func (*UnimplementedAdminServer) FindUserBlockInfo(context.Context, *FindUserBlockInfoReq) (*FindUserBlockInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindUserBlockInfo not implemented") -} -func (*UnimplementedAdminServer) CheckRegisterForbidden(context.Context, *CheckRegisterForbiddenReq) (*CheckRegisterForbiddenResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckRegisterForbidden not implemented") -} -func (*UnimplementedAdminServer) CheckLoginForbidden(context.Context, *CheckLoginForbiddenReq) (*CheckLoginForbiddenResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckLoginForbidden not implemented") -} -func (*UnimplementedAdminServer) CreateToken(context.Context, *CreateTokenReq) (*CreateTokenResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateToken not implemented") -} -func (*UnimplementedAdminServer) ParseToken(context.Context, *ParseTokenReq) (*ParseTokenResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ParseToken not implemented") -} -func (*UnimplementedAdminServer) AddApplet(context.Context, *AddAppletReq) (*AddAppletResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddApplet not implemented") -} -func (*UnimplementedAdminServer) DelApplet(context.Context, *DelAppletReq) (*DelAppletResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelApplet not implemented") -} -func (*UnimplementedAdminServer) UpdateApplet(context.Context, *UpdateAppletReq) (*UpdateAppletResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateApplet not implemented") -} -func (*UnimplementedAdminServer) FindApplet(context.Context, *FindAppletReq) (*FindAppletResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindApplet not implemented") -} -func (*UnimplementedAdminServer) SearchApplet(context.Context, *SearchAppletReq) (*SearchAppletResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchApplet not implemented") -} -func (*UnimplementedAdminServer) GetClientConfig(context.Context, *GetClientConfigReq) (*GetClientConfigResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetClientConfig not implemented") -} -func (*UnimplementedAdminServer) SetClientConfig(context.Context, *SetClientConfigReq) (*SetClientConfigResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetClientConfig not implemented") -} -func (*UnimplementedAdminServer) DelClientConfig(context.Context, *DelClientConfigReq) (*DelClientConfigResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelClientConfig not implemented") -} -func (*UnimplementedAdminServer) GetUserToken(context.Context, *GetUserTokenReq) (*GetUserTokenResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserToken not implemented") -} -func (*UnimplementedAdminServer) InvalidateToken(context.Context, *InvalidateTokenReq) (*InvalidateTokenResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method InvalidateToken not implemented") -} -func (*UnimplementedAdminServer) LatestApplicationVersion(context.Context, *LatestApplicationVersionReq) (*LatestApplicationVersionResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method LatestApplicationVersion not implemented") -} -func (*UnimplementedAdminServer) AddApplicationVersion(context.Context, *AddApplicationVersionReq) (*AddApplicationVersionResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddApplicationVersion not implemented") -} -func (*UnimplementedAdminServer) UpdateApplicationVersion(context.Context, *UpdateApplicationVersionReq) (*UpdateApplicationVersionResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateApplicationVersion not implemented") -} -func (*UnimplementedAdminServer) DeleteApplicationVersion(context.Context, *DeleteApplicationVersionReq) (*DeleteApplicationVersionResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteApplicationVersion not implemented") -} -func (*UnimplementedAdminServer) PageApplicationVersion(context.Context, *PageApplicationVersionReq) (*PageApplicationVersionResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method PageApplicationVersion not implemented") -} - -func RegisterAdminServer(s *grpc.Server, srv AdminServer) { - s.RegisterService(&_Admin_serviceDesc, srv) -} - -func _Admin_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoginReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).Login(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/Login", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).Login(ctx, req.(*LoginReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangePasswordReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).ChangePassword(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/ChangePassword", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).ChangePassword(ctx, req.(*ChangePasswordReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_AdminUpdateInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AdminUpdateInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).AdminUpdateInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/AdminUpdateInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).AdminUpdateInfo(ctx, req.(*AdminUpdateInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_GetAdminInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAdminInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).GetAdminInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/GetAdminInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).GetAdminInfo(ctx, req.(*GetAdminInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_AddAdminAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddAdminAccountReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).AddAdminAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/AddAdminAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).AddAdminAccount(ctx, req.(*AddAdminAccountReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_ChangeAdminPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeAdminPasswordReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).ChangeAdminPassword(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/ChangeAdminPassword", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).ChangeAdminPassword(ctx, req.(*ChangeAdminPasswordReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_DelAdminAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelAdminAccountReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).DelAdminAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/DelAdminAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).DelAdminAccount(ctx, req.(*DelAdminAccountReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_SearchAdminAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchAdminAccountReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).SearchAdminAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/SearchAdminAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).SearchAdminAccount(ctx, req.(*SearchAdminAccountReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_AddDefaultFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddDefaultFriendReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).AddDefaultFriend(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/AddDefaultFriend", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).AddDefaultFriend(ctx, req.(*AddDefaultFriendReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_DelDefaultFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelDefaultFriendReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).DelDefaultFriend(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/DelDefaultFriend", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).DelDefaultFriend(ctx, req.(*DelDefaultFriendReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_FindDefaultFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindDefaultFriendReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).FindDefaultFriend(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/FindDefaultFriend", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).FindDefaultFriend(ctx, req.(*FindDefaultFriendReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_SearchDefaultFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchDefaultFriendReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).SearchDefaultFriend(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/SearchDefaultFriend", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).SearchDefaultFriend(ctx, req.(*SearchDefaultFriendReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_AddDefaultGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddDefaultGroupReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).AddDefaultGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/AddDefaultGroup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).AddDefaultGroup(ctx, req.(*AddDefaultGroupReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_DelDefaultGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelDefaultGroupReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).DelDefaultGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/DelDefaultGroup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).DelDefaultGroup(ctx, req.(*DelDefaultGroupReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_FindDefaultGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindDefaultGroupReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).FindDefaultGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/FindDefaultGroup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).FindDefaultGroup(ctx, req.(*FindDefaultGroupReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_SearchDefaultGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchDefaultGroupReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).SearchDefaultGroup(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/SearchDefaultGroup", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).SearchDefaultGroup(ctx, req.(*SearchDefaultGroupReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_AddInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddInvitationCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).AddInvitationCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/AddInvitationCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).AddInvitationCode(ctx, req.(*AddInvitationCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_GenInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GenInvitationCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).GenInvitationCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/GenInvitationCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).GenInvitationCode(ctx, req.(*GenInvitationCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_FindInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindInvitationCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).FindInvitationCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/FindInvitationCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).FindInvitationCode(ctx, req.(*FindInvitationCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_UseInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UseInvitationCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).UseInvitationCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/UseInvitationCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).UseInvitationCode(ctx, req.(*UseInvitationCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_DelInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelInvitationCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).DelInvitationCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/DelInvitationCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).DelInvitationCode(ctx, req.(*DelInvitationCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_SearchInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchInvitationCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).SearchInvitationCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/SearchInvitationCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).SearchInvitationCode(ctx, req.(*SearchInvitationCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_SearchUserIPLimitLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchUserIPLimitLoginReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).SearchUserIPLimitLogin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/SearchUserIPLimitLogin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).SearchUserIPLimitLogin(ctx, req.(*SearchUserIPLimitLoginReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_AddUserIPLimitLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddUserIPLimitLoginReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).AddUserIPLimitLogin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/AddUserIPLimitLogin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).AddUserIPLimitLogin(ctx, req.(*AddUserIPLimitLoginReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_DelUserIPLimitLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelUserIPLimitLoginReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).DelUserIPLimitLogin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/DelUserIPLimitLogin", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).DelUserIPLimitLogin(ctx, req.(*DelUserIPLimitLoginReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_SearchIPForbidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchIPForbiddenReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).SearchIPForbidden(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/SearchIPForbidden", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).SearchIPForbidden(ctx, req.(*SearchIPForbiddenReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_AddIPForbidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddIPForbiddenReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).AddIPForbidden(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/AddIPForbidden", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).AddIPForbidden(ctx, req.(*AddIPForbiddenReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_DelIPForbidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelIPForbiddenReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).DelIPForbidden(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/DelIPForbidden", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).DelIPForbidden(ctx, req.(*DelIPForbiddenReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_CancellationUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CancellationUserReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).CancellationUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/CancellationUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).CancellationUser(ctx, req.(*CancellationUserReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_BlockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BlockUserReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).BlockUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/BlockUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).BlockUser(ctx, req.(*BlockUserReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_UnblockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UnblockUserReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).UnblockUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/UnblockUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).UnblockUser(ctx, req.(*UnblockUserReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_SearchBlockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchBlockUserReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).SearchBlockUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/SearchBlockUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).SearchBlockUser(ctx, req.(*SearchBlockUserReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_FindUserBlockInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindUserBlockInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).FindUserBlockInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/FindUserBlockInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).FindUserBlockInfo(ctx, req.(*FindUserBlockInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_CheckRegisterForbidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CheckRegisterForbiddenReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).CheckRegisterForbidden(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/CheckRegisterForbidden", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).CheckRegisterForbidden(ctx, req.(*CheckRegisterForbiddenReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_CheckLoginForbidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CheckLoginForbiddenReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).CheckLoginForbidden(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/CheckLoginForbidden", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).CheckLoginForbidden(ctx, req.(*CheckLoginForbiddenReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_CreateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateTokenReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).CreateToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/CreateToken", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).CreateToken(ctx, req.(*CreateTokenReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ParseTokenReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).ParseToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/ParseToken", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).ParseToken(ctx, req.(*ParseTokenReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_AddApplet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddAppletReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).AddApplet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/AddApplet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).AddApplet(ctx, req.(*AddAppletReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_DelApplet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelAppletReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).DelApplet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/DelApplet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).DelApplet(ctx, req.(*DelAppletReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_UpdateApplet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateAppletReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).UpdateApplet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/UpdateApplet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).UpdateApplet(ctx, req.(*UpdateAppletReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_FindApplet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindAppletReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).FindApplet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/FindApplet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).FindApplet(ctx, req.(*FindAppletReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_SearchApplet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchAppletReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).SearchApplet(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/SearchApplet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).SearchApplet(ctx, req.(*SearchAppletReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_GetClientConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetClientConfigReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).GetClientConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/GetClientConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).GetClientConfig(ctx, req.(*GetClientConfigReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_SetClientConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetClientConfigReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).SetClientConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/SetClientConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).SetClientConfig(ctx, req.(*SetClientConfigReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_DelClientConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelClientConfigReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).DelClientConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/DelClientConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).DelClientConfig(ctx, req.(*DelClientConfigReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_GetUserToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserTokenReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).GetUserToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/GetUserToken", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).GetUserToken(ctx, req.(*GetUserTokenReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_InvalidateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvalidateTokenReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).InvalidateToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/InvalidateToken", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).InvalidateToken(ctx, req.(*InvalidateTokenReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_LatestApplicationVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LatestApplicationVersionReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).LatestApplicationVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/LatestApplicationVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).LatestApplicationVersion(ctx, req.(*LatestApplicationVersionReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_AddApplicationVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddApplicationVersionReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).AddApplicationVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/AddApplicationVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).AddApplicationVersion(ctx, req.(*AddApplicationVersionReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_UpdateApplicationVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateApplicationVersionReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).UpdateApplicationVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/UpdateApplicationVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).UpdateApplicationVersion(ctx, req.(*UpdateApplicationVersionReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_DeleteApplicationVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteApplicationVersionReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).DeleteApplicationVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/DeleteApplicationVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).DeleteApplicationVersion(ctx, req.(*DeleteApplicationVersionReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Admin_PageApplicationVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PageApplicationVersionReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServer).PageApplicationVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.admin.admin/PageApplicationVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServer).PageApplicationVersion(ctx, req.(*PageApplicationVersionReq)) - } - return interceptor(ctx, in, info, handler) -} - -var _Admin_serviceDesc = grpc.ServiceDesc{ - ServiceName: "openim.admin.admin", - HandlerType: (*AdminServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Login", - Handler: _Admin_Login_Handler, - }, - { - MethodName: "ChangePassword", - Handler: _Admin_ChangePassword_Handler, - }, - { - MethodName: "AdminUpdateInfo", - Handler: _Admin_AdminUpdateInfo_Handler, - }, - { - MethodName: "GetAdminInfo", - Handler: _Admin_GetAdminInfo_Handler, - }, - { - MethodName: "AddAdminAccount", - Handler: _Admin_AddAdminAccount_Handler, - }, - { - MethodName: "ChangeAdminPassword", - Handler: _Admin_ChangeAdminPassword_Handler, - }, - { - MethodName: "DelAdminAccount", - Handler: _Admin_DelAdminAccount_Handler, - }, - { - MethodName: "SearchAdminAccount", - Handler: _Admin_SearchAdminAccount_Handler, - }, - { - MethodName: "AddDefaultFriend", - Handler: _Admin_AddDefaultFriend_Handler, - }, - { - MethodName: "DelDefaultFriend", - Handler: _Admin_DelDefaultFriend_Handler, - }, - { - MethodName: "FindDefaultFriend", - Handler: _Admin_FindDefaultFriend_Handler, - }, - { - MethodName: "SearchDefaultFriend", - Handler: _Admin_SearchDefaultFriend_Handler, - }, - { - MethodName: "AddDefaultGroup", - Handler: _Admin_AddDefaultGroup_Handler, - }, - { - MethodName: "DelDefaultGroup", - Handler: _Admin_DelDefaultGroup_Handler, - }, - { - MethodName: "FindDefaultGroup", - Handler: _Admin_FindDefaultGroup_Handler, - }, - { - MethodName: "SearchDefaultGroup", - Handler: _Admin_SearchDefaultGroup_Handler, - }, - { - MethodName: "AddInvitationCode", - Handler: _Admin_AddInvitationCode_Handler, - }, - { - MethodName: "GenInvitationCode", - Handler: _Admin_GenInvitationCode_Handler, - }, - { - MethodName: "FindInvitationCode", - Handler: _Admin_FindInvitationCode_Handler, - }, - { - MethodName: "UseInvitationCode", - Handler: _Admin_UseInvitationCode_Handler, - }, - { - MethodName: "DelInvitationCode", - Handler: _Admin_DelInvitationCode_Handler, - }, - { - MethodName: "SearchInvitationCode", - Handler: _Admin_SearchInvitationCode_Handler, - }, - { - MethodName: "SearchUserIPLimitLogin", - Handler: _Admin_SearchUserIPLimitLogin_Handler, - }, - { - MethodName: "AddUserIPLimitLogin", - Handler: _Admin_AddUserIPLimitLogin_Handler, - }, - { - MethodName: "DelUserIPLimitLogin", - Handler: _Admin_DelUserIPLimitLogin_Handler, - }, - { - MethodName: "SearchIPForbidden", - Handler: _Admin_SearchIPForbidden_Handler, - }, - { - MethodName: "AddIPForbidden", - Handler: _Admin_AddIPForbidden_Handler, - }, - { - MethodName: "DelIPForbidden", - Handler: _Admin_DelIPForbidden_Handler, - }, - { - MethodName: "CancellationUser", - Handler: _Admin_CancellationUser_Handler, - }, - { - MethodName: "BlockUser", - Handler: _Admin_BlockUser_Handler, - }, - { - MethodName: "UnblockUser", - Handler: _Admin_UnblockUser_Handler, - }, - { - MethodName: "SearchBlockUser", - Handler: _Admin_SearchBlockUser_Handler, - }, - { - MethodName: "FindUserBlockInfo", - Handler: _Admin_FindUserBlockInfo_Handler, - }, - { - MethodName: "CheckRegisterForbidden", - Handler: _Admin_CheckRegisterForbidden_Handler, - }, - { - MethodName: "CheckLoginForbidden", - Handler: _Admin_CheckLoginForbidden_Handler, - }, - { - MethodName: "CreateToken", - Handler: _Admin_CreateToken_Handler, - }, - { - MethodName: "ParseToken", - Handler: _Admin_ParseToken_Handler, - }, - { - MethodName: "AddApplet", - Handler: _Admin_AddApplet_Handler, - }, - { - MethodName: "DelApplet", - Handler: _Admin_DelApplet_Handler, - }, - { - MethodName: "UpdateApplet", - Handler: _Admin_UpdateApplet_Handler, - }, - { - MethodName: "FindApplet", - Handler: _Admin_FindApplet_Handler, - }, - { - MethodName: "SearchApplet", - Handler: _Admin_SearchApplet_Handler, - }, - { - MethodName: "GetClientConfig", - Handler: _Admin_GetClientConfig_Handler, - }, - { - MethodName: "SetClientConfig", - Handler: _Admin_SetClientConfig_Handler, - }, - { - MethodName: "DelClientConfig", - Handler: _Admin_DelClientConfig_Handler, - }, - { - MethodName: "GetUserToken", - Handler: _Admin_GetUserToken_Handler, - }, - { - MethodName: "InvalidateToken", - Handler: _Admin_InvalidateToken_Handler, - }, - { - MethodName: "LatestApplicationVersion", - Handler: _Admin_LatestApplicationVersion_Handler, - }, - { - MethodName: "AddApplicationVersion", - Handler: _Admin_AddApplicationVersion_Handler, - }, - { - MethodName: "UpdateApplicationVersion", - Handler: _Admin_UpdateApplicationVersion_Handler, - }, - { - MethodName: "DeleteApplicationVersion", - Handler: _Admin_DeleteApplicationVersion_Handler, - }, - { - MethodName: "PageApplicationVersion", - Handler: _Admin_PageApplicationVersion_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "admin/admin.proto", -} diff --git a/pkg/protocol/admin/admin.proto b/pkg/protocol/admin/admin.proto index 86063aa0..aaed2d41 100644 --- a/pkg/protocol/admin/admin.proto +++ b/pkg/protocol/admin/admin.proto @@ -1,17 +1,3 @@ -// Copyright © 2023 OpenIM open source community. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - syntax = "proto3"; package openim.admin; diff --git a/pkg/protocol/admin/admin_grpc.pb.go b/pkg/protocol/admin/admin_grpc.pb.go new file mode 100644 index 00000000..44b40bb0 --- /dev/null +++ b/pkg/protocol/admin/admin_grpc.pb.go @@ -0,0 +1,2083 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.0 +// source: admin/admin.proto + +package admin + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Admin_Login_FullMethodName = "/openim.admin.admin/Login" + Admin_ChangePassword_FullMethodName = "/openim.admin.admin/ChangePassword" + Admin_AdminUpdateInfo_FullMethodName = "/openim.admin.admin/AdminUpdateInfo" + Admin_GetAdminInfo_FullMethodName = "/openim.admin.admin/GetAdminInfo" + Admin_AddAdminAccount_FullMethodName = "/openim.admin.admin/AddAdminAccount" + Admin_ChangeAdminPassword_FullMethodName = "/openim.admin.admin/ChangeAdminPassword" + Admin_DelAdminAccount_FullMethodName = "/openim.admin.admin/DelAdminAccount" + Admin_SearchAdminAccount_FullMethodName = "/openim.admin.admin/SearchAdminAccount" + Admin_AddDefaultFriend_FullMethodName = "/openim.admin.admin/AddDefaultFriend" + Admin_DelDefaultFriend_FullMethodName = "/openim.admin.admin/DelDefaultFriend" + Admin_FindDefaultFriend_FullMethodName = "/openim.admin.admin/FindDefaultFriend" + Admin_SearchDefaultFriend_FullMethodName = "/openim.admin.admin/SearchDefaultFriend" + Admin_AddDefaultGroup_FullMethodName = "/openim.admin.admin/AddDefaultGroup" + Admin_DelDefaultGroup_FullMethodName = "/openim.admin.admin/DelDefaultGroup" + Admin_FindDefaultGroup_FullMethodName = "/openim.admin.admin/FindDefaultGroup" + Admin_SearchDefaultGroup_FullMethodName = "/openim.admin.admin/SearchDefaultGroup" + Admin_AddInvitationCode_FullMethodName = "/openim.admin.admin/AddInvitationCode" + Admin_GenInvitationCode_FullMethodName = "/openim.admin.admin/GenInvitationCode" + Admin_FindInvitationCode_FullMethodName = "/openim.admin.admin/FindInvitationCode" + Admin_UseInvitationCode_FullMethodName = "/openim.admin.admin/UseInvitationCode" + Admin_DelInvitationCode_FullMethodName = "/openim.admin.admin/DelInvitationCode" + Admin_SearchInvitationCode_FullMethodName = "/openim.admin.admin/SearchInvitationCode" + Admin_SearchUserIPLimitLogin_FullMethodName = "/openim.admin.admin/SearchUserIPLimitLogin" + Admin_AddUserIPLimitLogin_FullMethodName = "/openim.admin.admin/AddUserIPLimitLogin" + Admin_DelUserIPLimitLogin_FullMethodName = "/openim.admin.admin/DelUserIPLimitLogin" + Admin_SearchIPForbidden_FullMethodName = "/openim.admin.admin/SearchIPForbidden" + Admin_AddIPForbidden_FullMethodName = "/openim.admin.admin/AddIPForbidden" + Admin_DelIPForbidden_FullMethodName = "/openim.admin.admin/DelIPForbidden" + Admin_CancellationUser_FullMethodName = "/openim.admin.admin/CancellationUser" + Admin_BlockUser_FullMethodName = "/openim.admin.admin/BlockUser" + Admin_UnblockUser_FullMethodName = "/openim.admin.admin/UnblockUser" + Admin_SearchBlockUser_FullMethodName = "/openim.admin.admin/SearchBlockUser" + Admin_FindUserBlockInfo_FullMethodName = "/openim.admin.admin/FindUserBlockInfo" + Admin_CheckRegisterForbidden_FullMethodName = "/openim.admin.admin/CheckRegisterForbidden" + Admin_CheckLoginForbidden_FullMethodName = "/openim.admin.admin/CheckLoginForbidden" + Admin_CreateToken_FullMethodName = "/openim.admin.admin/CreateToken" + Admin_ParseToken_FullMethodName = "/openim.admin.admin/ParseToken" + Admin_AddApplet_FullMethodName = "/openim.admin.admin/AddApplet" + Admin_DelApplet_FullMethodName = "/openim.admin.admin/DelApplet" + Admin_UpdateApplet_FullMethodName = "/openim.admin.admin/UpdateApplet" + Admin_FindApplet_FullMethodName = "/openim.admin.admin/FindApplet" + Admin_SearchApplet_FullMethodName = "/openim.admin.admin/SearchApplet" + Admin_GetClientConfig_FullMethodName = "/openim.admin.admin/GetClientConfig" + Admin_SetClientConfig_FullMethodName = "/openim.admin.admin/SetClientConfig" + Admin_DelClientConfig_FullMethodName = "/openim.admin.admin/DelClientConfig" + Admin_GetUserToken_FullMethodName = "/openim.admin.admin/GetUserToken" + Admin_InvalidateToken_FullMethodName = "/openim.admin.admin/InvalidateToken" + Admin_LatestApplicationVersion_FullMethodName = "/openim.admin.admin/LatestApplicationVersion" + Admin_AddApplicationVersion_FullMethodName = "/openim.admin.admin/AddApplicationVersion" + Admin_UpdateApplicationVersion_FullMethodName = "/openim.admin.admin/UpdateApplicationVersion" + Admin_DeleteApplicationVersion_FullMethodName = "/openim.admin.admin/DeleteApplicationVersion" + Admin_PageApplicationVersion_FullMethodName = "/openim.admin.admin/PageApplicationVersion" +) + +// AdminClient is the client API for Admin service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AdminClient interface { + // Login + Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) + ChangePassword(ctx context.Context, in *ChangePasswordReq, opts ...grpc.CallOption) (*ChangePasswordResp, error) + AdminUpdateInfo(ctx context.Context, in *AdminUpdateInfoReq, opts ...grpc.CallOption) (*AdminUpdateInfoResp, error) + // Get administrator information + GetAdminInfo(ctx context.Context, in *GetAdminInfoReq, opts ...grpc.CallOption) (*GetAdminInfoResp, error) + AddAdminAccount(ctx context.Context, in *AddAdminAccountReq, opts ...grpc.CallOption) (*AddAdminAccountResp, error) + ChangeAdminPassword(ctx context.Context, in *ChangeAdminPasswordReq, opts ...grpc.CallOption) (*ChangeAdminPasswordResp, error) + DelAdminAccount(ctx context.Context, in *DelAdminAccountReq, opts ...grpc.CallOption) (*DelAdminAccountResp, error) + SearchAdminAccount(ctx context.Context, in *SearchAdminAccountReq, opts ...grpc.CallOption) (*SearchAdminAccountResp, error) + // Add Remove Get default friend list on registration + AddDefaultFriend(ctx context.Context, in *AddDefaultFriendReq, opts ...grpc.CallOption) (*AddDefaultFriendResp, error) + DelDefaultFriend(ctx context.Context, in *DelDefaultFriendReq, opts ...grpc.CallOption) (*DelDefaultFriendResp, error) + FindDefaultFriend(ctx context.Context, in *FindDefaultFriendReq, opts ...grpc.CallOption) (*FindDefaultFriendResp, error) + SearchDefaultFriend(ctx context.Context, in *SearchDefaultFriendReq, opts ...grpc.CallOption) (*SearchDefaultFriendResp, error) + AddDefaultGroup(ctx context.Context, in *AddDefaultGroupReq, opts ...grpc.CallOption) (*AddDefaultGroupResp, error) + DelDefaultGroup(ctx context.Context, in *DelDefaultGroupReq, opts ...grpc.CallOption) (*DelDefaultGroupResp, error) + FindDefaultGroup(ctx context.Context, in *FindDefaultGroupReq, opts ...grpc.CallOption) (*FindDefaultGroupResp, error) + SearchDefaultGroup(ctx context.Context, in *SearchDefaultGroupReq, opts ...grpc.CallOption) (*SearchDefaultGroupResp, error) + // Invitation Code Generate Query Get + AddInvitationCode(ctx context.Context, in *AddInvitationCodeReq, opts ...grpc.CallOption) (*AddInvitationCodeResp, error) + GenInvitationCode(ctx context.Context, in *GenInvitationCodeReq, opts ...grpc.CallOption) (*GenInvitationCodeResp, error) + FindInvitationCode(ctx context.Context, in *FindInvitationCodeReq, opts ...grpc.CallOption) (*FindInvitationCodeResp, error) + UseInvitationCode(ctx context.Context, in *UseInvitationCodeReq, opts ...grpc.CallOption) (*UseInvitationCodeResp, error) + DelInvitationCode(ctx context.Context, in *DelInvitationCodeReq, opts ...grpc.CallOption) (*DelInvitationCodeResp, error) + SearchInvitationCode(ctx context.Context, in *SearchInvitationCodeReq, opts ...grpc.CallOption) (*SearchInvitationCodeResp, error) + // User login ip limit Query Add Remove + SearchUserIPLimitLogin(ctx context.Context, in *SearchUserIPLimitLoginReq, opts ...grpc.CallOption) (*SearchUserIPLimitLoginResp, error) + AddUserIPLimitLogin(ctx context.Context, in *AddUserIPLimitLoginReq, opts ...grpc.CallOption) (*AddUserIPLimitLoginResp, error) + DelUserIPLimitLogin(ctx context.Context, in *DelUserIPLimitLoginReq, opts ...grpc.CallOption) (*DelUserIPLimitLoginResp, error) + // Prohibit users from registering at certain ip Query Add Remove + SearchIPForbidden(ctx context.Context, in *SearchIPForbiddenReq, opts ...grpc.CallOption) (*SearchIPForbiddenResp, error) + AddIPForbidden(ctx context.Context, in *AddIPForbiddenReq, opts ...grpc.CallOption) (*AddIPForbiddenResp, error) + DelIPForbidden(ctx context.Context, in *DelIPForbiddenReq, opts ...grpc.CallOption) (*DelIPForbiddenResp, error) + // User Management Related Add Block/Unblock Pull + CancellationUser(ctx context.Context, in *CancellationUserReq, opts ...grpc.CallOption) (*CancellationUserResp, error) + BlockUser(ctx context.Context, in *BlockUserReq, opts ...grpc.CallOption) (*BlockUserResp, error) + UnblockUser(ctx context.Context, in *UnblockUserReq, opts ...grpc.CallOption) (*UnblockUserResp, error) + SearchBlockUser(ctx context.Context, in *SearchBlockUserReq, opts ...grpc.CallOption) (*SearchBlockUserResp, error) + FindUserBlockInfo(ctx context.Context, in *FindUserBlockInfoReq, opts ...grpc.CallOption) (*FindUserBlockInfoResp, error) + CheckRegisterForbidden(ctx context.Context, in *CheckRegisterForbiddenReq, opts ...grpc.CallOption) (*CheckRegisterForbiddenResp, error) + CheckLoginForbidden(ctx context.Context, in *CheckLoginForbiddenReq, opts ...grpc.CallOption) (*CheckLoginForbiddenResp, error) + // create token + CreateToken(ctx context.Context, in *CreateTokenReq, opts ...grpc.CallOption) (*CreateTokenResp, error) + // parse token + ParseToken(ctx context.Context, in *ParseTokenReq, opts ...grpc.CallOption) (*ParseTokenResp, error) + // app + AddApplet(ctx context.Context, in *AddAppletReq, opts ...grpc.CallOption) (*AddAppletResp, error) + DelApplet(ctx context.Context, in *DelAppletReq, opts ...grpc.CallOption) (*DelAppletResp, error) + UpdateApplet(ctx context.Context, in *UpdateAppletReq, opts ...grpc.CallOption) (*UpdateAppletResp, error) + FindApplet(ctx context.Context, in *FindAppletReq, opts ...grpc.CallOption) (*FindAppletResp, error) + SearchApplet(ctx context.Context, in *SearchAppletReq, opts ...grpc.CallOption) (*SearchAppletResp, error) + // Client Configuration + GetClientConfig(ctx context.Context, in *GetClientConfigReq, opts ...grpc.CallOption) (*GetClientConfigResp, error) + SetClientConfig(ctx context.Context, in *SetClientConfigReq, opts ...grpc.CallOption) (*SetClientConfigResp, error) + DelClientConfig(ctx context.Context, in *DelClientConfigReq, opts ...grpc.CallOption) (*DelClientConfigResp, error) + GetUserToken(ctx context.Context, in *GetUserTokenReq, opts ...grpc.CallOption) (*GetUserTokenResp, error) + // invalidate token + InvalidateToken(ctx context.Context, in *InvalidateTokenReq, opts ...grpc.CallOption) (*InvalidateTokenResp, error) + LatestApplicationVersion(ctx context.Context, in *LatestApplicationVersionReq, opts ...grpc.CallOption) (*LatestApplicationVersionResp, error) + AddApplicationVersion(ctx context.Context, in *AddApplicationVersionReq, opts ...grpc.CallOption) (*AddApplicationVersionResp, error) + UpdateApplicationVersion(ctx context.Context, in *UpdateApplicationVersionReq, opts ...grpc.CallOption) (*UpdateApplicationVersionResp, error) + DeleteApplicationVersion(ctx context.Context, in *DeleteApplicationVersionReq, opts ...grpc.CallOption) (*DeleteApplicationVersionResp, error) + PageApplicationVersion(ctx context.Context, in *PageApplicationVersionReq, opts ...grpc.CallOption) (*PageApplicationVersionResp, error) +} + +type adminClient struct { + cc grpc.ClientConnInterface +} + +func NewAdminClient(cc grpc.ClientConnInterface) AdminClient { + return &adminClient{cc} +} + +func (c *adminClient) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LoginResp) + err := c.cc.Invoke(ctx, Admin_Login_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) ChangePassword(ctx context.Context, in *ChangePasswordReq, opts ...grpc.CallOption) (*ChangePasswordResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ChangePasswordResp) + err := c.cc.Invoke(ctx, Admin_ChangePassword_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) AdminUpdateInfo(ctx context.Context, in *AdminUpdateInfoReq, opts ...grpc.CallOption) (*AdminUpdateInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AdminUpdateInfoResp) + err := c.cc.Invoke(ctx, Admin_AdminUpdateInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) GetAdminInfo(ctx context.Context, in *GetAdminInfoReq, opts ...grpc.CallOption) (*GetAdminInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetAdminInfoResp) + err := c.cc.Invoke(ctx, Admin_GetAdminInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) AddAdminAccount(ctx context.Context, in *AddAdminAccountReq, opts ...grpc.CallOption) (*AddAdminAccountResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AddAdminAccountResp) + err := c.cc.Invoke(ctx, Admin_AddAdminAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) ChangeAdminPassword(ctx context.Context, in *ChangeAdminPasswordReq, opts ...grpc.CallOption) (*ChangeAdminPasswordResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ChangeAdminPasswordResp) + err := c.cc.Invoke(ctx, Admin_ChangeAdminPassword_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) DelAdminAccount(ctx context.Context, in *DelAdminAccountReq, opts ...grpc.CallOption) (*DelAdminAccountResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DelAdminAccountResp) + err := c.cc.Invoke(ctx, Admin_DelAdminAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) SearchAdminAccount(ctx context.Context, in *SearchAdminAccountReq, opts ...grpc.CallOption) (*SearchAdminAccountResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchAdminAccountResp) + err := c.cc.Invoke(ctx, Admin_SearchAdminAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) AddDefaultFriend(ctx context.Context, in *AddDefaultFriendReq, opts ...grpc.CallOption) (*AddDefaultFriendResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AddDefaultFriendResp) + err := c.cc.Invoke(ctx, Admin_AddDefaultFriend_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) DelDefaultFriend(ctx context.Context, in *DelDefaultFriendReq, opts ...grpc.CallOption) (*DelDefaultFriendResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DelDefaultFriendResp) + err := c.cc.Invoke(ctx, Admin_DelDefaultFriend_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) FindDefaultFriend(ctx context.Context, in *FindDefaultFriendReq, opts ...grpc.CallOption) (*FindDefaultFriendResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(FindDefaultFriendResp) + err := c.cc.Invoke(ctx, Admin_FindDefaultFriend_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) SearchDefaultFriend(ctx context.Context, in *SearchDefaultFriendReq, opts ...grpc.CallOption) (*SearchDefaultFriendResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchDefaultFriendResp) + err := c.cc.Invoke(ctx, Admin_SearchDefaultFriend_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) AddDefaultGroup(ctx context.Context, in *AddDefaultGroupReq, opts ...grpc.CallOption) (*AddDefaultGroupResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AddDefaultGroupResp) + err := c.cc.Invoke(ctx, Admin_AddDefaultGroup_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) DelDefaultGroup(ctx context.Context, in *DelDefaultGroupReq, opts ...grpc.CallOption) (*DelDefaultGroupResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DelDefaultGroupResp) + err := c.cc.Invoke(ctx, Admin_DelDefaultGroup_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) FindDefaultGroup(ctx context.Context, in *FindDefaultGroupReq, opts ...grpc.CallOption) (*FindDefaultGroupResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(FindDefaultGroupResp) + err := c.cc.Invoke(ctx, Admin_FindDefaultGroup_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) SearchDefaultGroup(ctx context.Context, in *SearchDefaultGroupReq, opts ...grpc.CallOption) (*SearchDefaultGroupResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchDefaultGroupResp) + err := c.cc.Invoke(ctx, Admin_SearchDefaultGroup_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) AddInvitationCode(ctx context.Context, in *AddInvitationCodeReq, opts ...grpc.CallOption) (*AddInvitationCodeResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AddInvitationCodeResp) + err := c.cc.Invoke(ctx, Admin_AddInvitationCode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) GenInvitationCode(ctx context.Context, in *GenInvitationCodeReq, opts ...grpc.CallOption) (*GenInvitationCodeResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GenInvitationCodeResp) + err := c.cc.Invoke(ctx, Admin_GenInvitationCode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) FindInvitationCode(ctx context.Context, in *FindInvitationCodeReq, opts ...grpc.CallOption) (*FindInvitationCodeResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(FindInvitationCodeResp) + err := c.cc.Invoke(ctx, Admin_FindInvitationCode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) UseInvitationCode(ctx context.Context, in *UseInvitationCodeReq, opts ...grpc.CallOption) (*UseInvitationCodeResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UseInvitationCodeResp) + err := c.cc.Invoke(ctx, Admin_UseInvitationCode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) DelInvitationCode(ctx context.Context, in *DelInvitationCodeReq, opts ...grpc.CallOption) (*DelInvitationCodeResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DelInvitationCodeResp) + err := c.cc.Invoke(ctx, Admin_DelInvitationCode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) SearchInvitationCode(ctx context.Context, in *SearchInvitationCodeReq, opts ...grpc.CallOption) (*SearchInvitationCodeResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchInvitationCodeResp) + err := c.cc.Invoke(ctx, Admin_SearchInvitationCode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) SearchUserIPLimitLogin(ctx context.Context, in *SearchUserIPLimitLoginReq, opts ...grpc.CallOption) (*SearchUserIPLimitLoginResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchUserIPLimitLoginResp) + err := c.cc.Invoke(ctx, Admin_SearchUserIPLimitLogin_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) AddUserIPLimitLogin(ctx context.Context, in *AddUserIPLimitLoginReq, opts ...grpc.CallOption) (*AddUserIPLimitLoginResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AddUserIPLimitLoginResp) + err := c.cc.Invoke(ctx, Admin_AddUserIPLimitLogin_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) DelUserIPLimitLogin(ctx context.Context, in *DelUserIPLimitLoginReq, opts ...grpc.CallOption) (*DelUserIPLimitLoginResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DelUserIPLimitLoginResp) + err := c.cc.Invoke(ctx, Admin_DelUserIPLimitLogin_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) SearchIPForbidden(ctx context.Context, in *SearchIPForbiddenReq, opts ...grpc.CallOption) (*SearchIPForbiddenResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchIPForbiddenResp) + err := c.cc.Invoke(ctx, Admin_SearchIPForbidden_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) AddIPForbidden(ctx context.Context, in *AddIPForbiddenReq, opts ...grpc.CallOption) (*AddIPForbiddenResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AddIPForbiddenResp) + err := c.cc.Invoke(ctx, Admin_AddIPForbidden_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) DelIPForbidden(ctx context.Context, in *DelIPForbiddenReq, opts ...grpc.CallOption) (*DelIPForbiddenResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DelIPForbiddenResp) + err := c.cc.Invoke(ctx, Admin_DelIPForbidden_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) CancellationUser(ctx context.Context, in *CancellationUserReq, opts ...grpc.CallOption) (*CancellationUserResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CancellationUserResp) + err := c.cc.Invoke(ctx, Admin_CancellationUser_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) BlockUser(ctx context.Context, in *BlockUserReq, opts ...grpc.CallOption) (*BlockUserResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(BlockUserResp) + err := c.cc.Invoke(ctx, Admin_BlockUser_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) UnblockUser(ctx context.Context, in *UnblockUserReq, opts ...grpc.CallOption) (*UnblockUserResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UnblockUserResp) + err := c.cc.Invoke(ctx, Admin_UnblockUser_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) SearchBlockUser(ctx context.Context, in *SearchBlockUserReq, opts ...grpc.CallOption) (*SearchBlockUserResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchBlockUserResp) + err := c.cc.Invoke(ctx, Admin_SearchBlockUser_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) FindUserBlockInfo(ctx context.Context, in *FindUserBlockInfoReq, opts ...grpc.CallOption) (*FindUserBlockInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(FindUserBlockInfoResp) + err := c.cc.Invoke(ctx, Admin_FindUserBlockInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) CheckRegisterForbidden(ctx context.Context, in *CheckRegisterForbiddenReq, opts ...grpc.CallOption) (*CheckRegisterForbiddenResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CheckRegisterForbiddenResp) + err := c.cc.Invoke(ctx, Admin_CheckRegisterForbidden_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) CheckLoginForbidden(ctx context.Context, in *CheckLoginForbiddenReq, opts ...grpc.CallOption) (*CheckLoginForbiddenResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CheckLoginForbiddenResp) + err := c.cc.Invoke(ctx, Admin_CheckLoginForbidden_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) CreateToken(ctx context.Context, in *CreateTokenReq, opts ...grpc.CallOption) (*CreateTokenResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CreateTokenResp) + err := c.cc.Invoke(ctx, Admin_CreateToken_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) ParseToken(ctx context.Context, in *ParseTokenReq, opts ...grpc.CallOption) (*ParseTokenResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ParseTokenResp) + err := c.cc.Invoke(ctx, Admin_ParseToken_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) AddApplet(ctx context.Context, in *AddAppletReq, opts ...grpc.CallOption) (*AddAppletResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AddAppletResp) + err := c.cc.Invoke(ctx, Admin_AddApplet_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) DelApplet(ctx context.Context, in *DelAppletReq, opts ...grpc.CallOption) (*DelAppletResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DelAppletResp) + err := c.cc.Invoke(ctx, Admin_DelApplet_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) UpdateApplet(ctx context.Context, in *UpdateAppletReq, opts ...grpc.CallOption) (*UpdateAppletResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateAppletResp) + err := c.cc.Invoke(ctx, Admin_UpdateApplet_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) FindApplet(ctx context.Context, in *FindAppletReq, opts ...grpc.CallOption) (*FindAppletResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(FindAppletResp) + err := c.cc.Invoke(ctx, Admin_FindApplet_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) SearchApplet(ctx context.Context, in *SearchAppletReq, opts ...grpc.CallOption) (*SearchAppletResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchAppletResp) + err := c.cc.Invoke(ctx, Admin_SearchApplet_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) GetClientConfig(ctx context.Context, in *GetClientConfigReq, opts ...grpc.CallOption) (*GetClientConfigResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetClientConfigResp) + err := c.cc.Invoke(ctx, Admin_GetClientConfig_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) SetClientConfig(ctx context.Context, in *SetClientConfigReq, opts ...grpc.CallOption) (*SetClientConfigResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetClientConfigResp) + err := c.cc.Invoke(ctx, Admin_SetClientConfig_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) DelClientConfig(ctx context.Context, in *DelClientConfigReq, opts ...grpc.CallOption) (*DelClientConfigResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DelClientConfigResp) + err := c.cc.Invoke(ctx, Admin_DelClientConfig_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) GetUserToken(ctx context.Context, in *GetUserTokenReq, opts ...grpc.CallOption) (*GetUserTokenResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetUserTokenResp) + err := c.cc.Invoke(ctx, Admin_GetUserToken_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) InvalidateToken(ctx context.Context, in *InvalidateTokenReq, opts ...grpc.CallOption) (*InvalidateTokenResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(InvalidateTokenResp) + err := c.cc.Invoke(ctx, Admin_InvalidateToken_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) LatestApplicationVersion(ctx context.Context, in *LatestApplicationVersionReq, opts ...grpc.CallOption) (*LatestApplicationVersionResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LatestApplicationVersionResp) + err := c.cc.Invoke(ctx, Admin_LatestApplicationVersion_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) AddApplicationVersion(ctx context.Context, in *AddApplicationVersionReq, opts ...grpc.CallOption) (*AddApplicationVersionResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AddApplicationVersionResp) + err := c.cc.Invoke(ctx, Admin_AddApplicationVersion_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) UpdateApplicationVersion(ctx context.Context, in *UpdateApplicationVersionReq, opts ...grpc.CallOption) (*UpdateApplicationVersionResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateApplicationVersionResp) + err := c.cc.Invoke(ctx, Admin_UpdateApplicationVersion_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) DeleteApplicationVersion(ctx context.Context, in *DeleteApplicationVersionReq, opts ...grpc.CallOption) (*DeleteApplicationVersionResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DeleteApplicationVersionResp) + err := c.cc.Invoke(ctx, Admin_DeleteApplicationVersion_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminClient) PageApplicationVersion(ctx context.Context, in *PageApplicationVersionReq, opts ...grpc.CallOption) (*PageApplicationVersionResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PageApplicationVersionResp) + err := c.cc.Invoke(ctx, Admin_PageApplicationVersion_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AdminServer is the server API for Admin service. +// All implementations must embed UnimplementedAdminServer +// for forward compatibility. +type AdminServer interface { + // Login + Login(context.Context, *LoginReq) (*LoginResp, error) + ChangePassword(context.Context, *ChangePasswordReq) (*ChangePasswordResp, error) + AdminUpdateInfo(context.Context, *AdminUpdateInfoReq) (*AdminUpdateInfoResp, error) + // Get administrator information + GetAdminInfo(context.Context, *GetAdminInfoReq) (*GetAdminInfoResp, error) + AddAdminAccount(context.Context, *AddAdminAccountReq) (*AddAdminAccountResp, error) + ChangeAdminPassword(context.Context, *ChangeAdminPasswordReq) (*ChangeAdminPasswordResp, error) + DelAdminAccount(context.Context, *DelAdminAccountReq) (*DelAdminAccountResp, error) + SearchAdminAccount(context.Context, *SearchAdminAccountReq) (*SearchAdminAccountResp, error) + // Add Remove Get default friend list on registration + AddDefaultFriend(context.Context, *AddDefaultFriendReq) (*AddDefaultFriendResp, error) + DelDefaultFriend(context.Context, *DelDefaultFriendReq) (*DelDefaultFriendResp, error) + FindDefaultFriend(context.Context, *FindDefaultFriendReq) (*FindDefaultFriendResp, error) + SearchDefaultFriend(context.Context, *SearchDefaultFriendReq) (*SearchDefaultFriendResp, error) + AddDefaultGroup(context.Context, *AddDefaultGroupReq) (*AddDefaultGroupResp, error) + DelDefaultGroup(context.Context, *DelDefaultGroupReq) (*DelDefaultGroupResp, error) + FindDefaultGroup(context.Context, *FindDefaultGroupReq) (*FindDefaultGroupResp, error) + SearchDefaultGroup(context.Context, *SearchDefaultGroupReq) (*SearchDefaultGroupResp, error) + // Invitation Code Generate Query Get + AddInvitationCode(context.Context, *AddInvitationCodeReq) (*AddInvitationCodeResp, error) + GenInvitationCode(context.Context, *GenInvitationCodeReq) (*GenInvitationCodeResp, error) + FindInvitationCode(context.Context, *FindInvitationCodeReq) (*FindInvitationCodeResp, error) + UseInvitationCode(context.Context, *UseInvitationCodeReq) (*UseInvitationCodeResp, error) + DelInvitationCode(context.Context, *DelInvitationCodeReq) (*DelInvitationCodeResp, error) + SearchInvitationCode(context.Context, *SearchInvitationCodeReq) (*SearchInvitationCodeResp, error) + // User login ip limit Query Add Remove + SearchUserIPLimitLogin(context.Context, *SearchUserIPLimitLoginReq) (*SearchUserIPLimitLoginResp, error) + AddUserIPLimitLogin(context.Context, *AddUserIPLimitLoginReq) (*AddUserIPLimitLoginResp, error) + DelUserIPLimitLogin(context.Context, *DelUserIPLimitLoginReq) (*DelUserIPLimitLoginResp, error) + // Prohibit users from registering at certain ip Query Add Remove + SearchIPForbidden(context.Context, *SearchIPForbiddenReq) (*SearchIPForbiddenResp, error) + AddIPForbidden(context.Context, *AddIPForbiddenReq) (*AddIPForbiddenResp, error) + DelIPForbidden(context.Context, *DelIPForbiddenReq) (*DelIPForbiddenResp, error) + // User Management Related Add Block/Unblock Pull + CancellationUser(context.Context, *CancellationUserReq) (*CancellationUserResp, error) + BlockUser(context.Context, *BlockUserReq) (*BlockUserResp, error) + UnblockUser(context.Context, *UnblockUserReq) (*UnblockUserResp, error) + SearchBlockUser(context.Context, *SearchBlockUserReq) (*SearchBlockUserResp, error) + FindUserBlockInfo(context.Context, *FindUserBlockInfoReq) (*FindUserBlockInfoResp, error) + CheckRegisterForbidden(context.Context, *CheckRegisterForbiddenReq) (*CheckRegisterForbiddenResp, error) + CheckLoginForbidden(context.Context, *CheckLoginForbiddenReq) (*CheckLoginForbiddenResp, error) + // create token + CreateToken(context.Context, *CreateTokenReq) (*CreateTokenResp, error) + // parse token + ParseToken(context.Context, *ParseTokenReq) (*ParseTokenResp, error) + // app + AddApplet(context.Context, *AddAppletReq) (*AddAppletResp, error) + DelApplet(context.Context, *DelAppletReq) (*DelAppletResp, error) + UpdateApplet(context.Context, *UpdateAppletReq) (*UpdateAppletResp, error) + FindApplet(context.Context, *FindAppletReq) (*FindAppletResp, error) + SearchApplet(context.Context, *SearchAppletReq) (*SearchAppletResp, error) + // Client Configuration + GetClientConfig(context.Context, *GetClientConfigReq) (*GetClientConfigResp, error) + SetClientConfig(context.Context, *SetClientConfigReq) (*SetClientConfigResp, error) + DelClientConfig(context.Context, *DelClientConfigReq) (*DelClientConfigResp, error) + GetUserToken(context.Context, *GetUserTokenReq) (*GetUserTokenResp, error) + // invalidate token + InvalidateToken(context.Context, *InvalidateTokenReq) (*InvalidateTokenResp, error) + LatestApplicationVersion(context.Context, *LatestApplicationVersionReq) (*LatestApplicationVersionResp, error) + AddApplicationVersion(context.Context, *AddApplicationVersionReq) (*AddApplicationVersionResp, error) + UpdateApplicationVersion(context.Context, *UpdateApplicationVersionReq) (*UpdateApplicationVersionResp, error) + DeleteApplicationVersion(context.Context, *DeleteApplicationVersionReq) (*DeleteApplicationVersionResp, error) + PageApplicationVersion(context.Context, *PageApplicationVersionReq) (*PageApplicationVersionResp, error) + mustEmbedUnimplementedAdminServer() +} + +// UnimplementedAdminServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAdminServer struct{} + +func (UnimplementedAdminServer) Login(context.Context, *LoginReq) (*LoginResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") +} +func (UnimplementedAdminServer) ChangePassword(context.Context, *ChangePasswordReq) (*ChangePasswordResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented") +} +func (UnimplementedAdminServer) AdminUpdateInfo(context.Context, *AdminUpdateInfoReq) (*AdminUpdateInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AdminUpdateInfo not implemented") +} +func (UnimplementedAdminServer) GetAdminInfo(context.Context, *GetAdminInfoReq) (*GetAdminInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAdminInfo not implemented") +} +func (UnimplementedAdminServer) AddAdminAccount(context.Context, *AddAdminAccountReq) (*AddAdminAccountResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddAdminAccount not implemented") +} +func (UnimplementedAdminServer) ChangeAdminPassword(context.Context, *ChangeAdminPasswordReq) (*ChangeAdminPasswordResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangeAdminPassword not implemented") +} +func (UnimplementedAdminServer) DelAdminAccount(context.Context, *DelAdminAccountReq) (*DelAdminAccountResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelAdminAccount not implemented") +} +func (UnimplementedAdminServer) SearchAdminAccount(context.Context, *SearchAdminAccountReq) (*SearchAdminAccountResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchAdminAccount not implemented") +} +func (UnimplementedAdminServer) AddDefaultFriend(context.Context, *AddDefaultFriendReq) (*AddDefaultFriendResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddDefaultFriend not implemented") +} +func (UnimplementedAdminServer) DelDefaultFriend(context.Context, *DelDefaultFriendReq) (*DelDefaultFriendResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelDefaultFriend not implemented") +} +func (UnimplementedAdminServer) FindDefaultFriend(context.Context, *FindDefaultFriendReq) (*FindDefaultFriendResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindDefaultFriend not implemented") +} +func (UnimplementedAdminServer) SearchDefaultFriend(context.Context, *SearchDefaultFriendReq) (*SearchDefaultFriendResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchDefaultFriend not implemented") +} +func (UnimplementedAdminServer) AddDefaultGroup(context.Context, *AddDefaultGroupReq) (*AddDefaultGroupResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddDefaultGroup not implemented") +} +func (UnimplementedAdminServer) DelDefaultGroup(context.Context, *DelDefaultGroupReq) (*DelDefaultGroupResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelDefaultGroup not implemented") +} +func (UnimplementedAdminServer) FindDefaultGroup(context.Context, *FindDefaultGroupReq) (*FindDefaultGroupResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindDefaultGroup not implemented") +} +func (UnimplementedAdminServer) SearchDefaultGroup(context.Context, *SearchDefaultGroupReq) (*SearchDefaultGroupResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchDefaultGroup not implemented") +} +func (UnimplementedAdminServer) AddInvitationCode(context.Context, *AddInvitationCodeReq) (*AddInvitationCodeResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddInvitationCode not implemented") +} +func (UnimplementedAdminServer) GenInvitationCode(context.Context, *GenInvitationCodeReq) (*GenInvitationCodeResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GenInvitationCode not implemented") +} +func (UnimplementedAdminServer) FindInvitationCode(context.Context, *FindInvitationCodeReq) (*FindInvitationCodeResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindInvitationCode not implemented") +} +func (UnimplementedAdminServer) UseInvitationCode(context.Context, *UseInvitationCodeReq) (*UseInvitationCodeResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UseInvitationCode not implemented") +} +func (UnimplementedAdminServer) DelInvitationCode(context.Context, *DelInvitationCodeReq) (*DelInvitationCodeResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelInvitationCode not implemented") +} +func (UnimplementedAdminServer) SearchInvitationCode(context.Context, *SearchInvitationCodeReq) (*SearchInvitationCodeResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchInvitationCode not implemented") +} +func (UnimplementedAdminServer) SearchUserIPLimitLogin(context.Context, *SearchUserIPLimitLoginReq) (*SearchUserIPLimitLoginResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchUserIPLimitLogin not implemented") +} +func (UnimplementedAdminServer) AddUserIPLimitLogin(context.Context, *AddUserIPLimitLoginReq) (*AddUserIPLimitLoginResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddUserIPLimitLogin not implemented") +} +func (UnimplementedAdminServer) DelUserIPLimitLogin(context.Context, *DelUserIPLimitLoginReq) (*DelUserIPLimitLoginResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelUserIPLimitLogin not implemented") +} +func (UnimplementedAdminServer) SearchIPForbidden(context.Context, *SearchIPForbiddenReq) (*SearchIPForbiddenResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchIPForbidden not implemented") +} +func (UnimplementedAdminServer) AddIPForbidden(context.Context, *AddIPForbiddenReq) (*AddIPForbiddenResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddIPForbidden not implemented") +} +func (UnimplementedAdminServer) DelIPForbidden(context.Context, *DelIPForbiddenReq) (*DelIPForbiddenResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelIPForbidden not implemented") +} +func (UnimplementedAdminServer) CancellationUser(context.Context, *CancellationUserReq) (*CancellationUserResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancellationUser not implemented") +} +func (UnimplementedAdminServer) BlockUser(context.Context, *BlockUserReq) (*BlockUserResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method BlockUser not implemented") +} +func (UnimplementedAdminServer) UnblockUser(context.Context, *UnblockUserReq) (*UnblockUserResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnblockUser not implemented") +} +func (UnimplementedAdminServer) SearchBlockUser(context.Context, *SearchBlockUserReq) (*SearchBlockUserResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchBlockUser not implemented") +} +func (UnimplementedAdminServer) FindUserBlockInfo(context.Context, *FindUserBlockInfoReq) (*FindUserBlockInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindUserBlockInfo not implemented") +} +func (UnimplementedAdminServer) CheckRegisterForbidden(context.Context, *CheckRegisterForbiddenReq) (*CheckRegisterForbiddenResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckRegisterForbidden not implemented") +} +func (UnimplementedAdminServer) CheckLoginForbidden(context.Context, *CheckLoginForbiddenReq) (*CheckLoginForbiddenResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckLoginForbidden not implemented") +} +func (UnimplementedAdminServer) CreateToken(context.Context, *CreateTokenReq) (*CreateTokenResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateToken not implemented") +} +func (UnimplementedAdminServer) ParseToken(context.Context, *ParseTokenReq) (*ParseTokenResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method ParseToken not implemented") +} +func (UnimplementedAdminServer) AddApplet(context.Context, *AddAppletReq) (*AddAppletResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddApplet not implemented") +} +func (UnimplementedAdminServer) DelApplet(context.Context, *DelAppletReq) (*DelAppletResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelApplet not implemented") +} +func (UnimplementedAdminServer) UpdateApplet(context.Context, *UpdateAppletReq) (*UpdateAppletResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateApplet not implemented") +} +func (UnimplementedAdminServer) FindApplet(context.Context, *FindAppletReq) (*FindAppletResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindApplet not implemented") +} +func (UnimplementedAdminServer) SearchApplet(context.Context, *SearchAppletReq) (*SearchAppletResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchApplet not implemented") +} +func (UnimplementedAdminServer) GetClientConfig(context.Context, *GetClientConfigReq) (*GetClientConfigResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetClientConfig not implemented") +} +func (UnimplementedAdminServer) SetClientConfig(context.Context, *SetClientConfigReq) (*SetClientConfigResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetClientConfig not implemented") +} +func (UnimplementedAdminServer) DelClientConfig(context.Context, *DelClientConfigReq) (*DelClientConfigResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelClientConfig not implemented") +} +func (UnimplementedAdminServer) GetUserToken(context.Context, *GetUserTokenReq) (*GetUserTokenResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUserToken not implemented") +} +func (UnimplementedAdminServer) InvalidateToken(context.Context, *InvalidateTokenReq) (*InvalidateTokenResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method InvalidateToken not implemented") +} +func (UnimplementedAdminServer) LatestApplicationVersion(context.Context, *LatestApplicationVersionReq) (*LatestApplicationVersionResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method LatestApplicationVersion not implemented") +} +func (UnimplementedAdminServer) AddApplicationVersion(context.Context, *AddApplicationVersionReq) (*AddApplicationVersionResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddApplicationVersion not implemented") +} +func (UnimplementedAdminServer) UpdateApplicationVersion(context.Context, *UpdateApplicationVersionReq) (*UpdateApplicationVersionResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateApplicationVersion not implemented") +} +func (UnimplementedAdminServer) DeleteApplicationVersion(context.Context, *DeleteApplicationVersionReq) (*DeleteApplicationVersionResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteApplicationVersion not implemented") +} +func (UnimplementedAdminServer) PageApplicationVersion(context.Context, *PageApplicationVersionReq) (*PageApplicationVersionResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method PageApplicationVersion not implemented") +} +func (UnimplementedAdminServer) mustEmbedUnimplementedAdminServer() {} +func (UnimplementedAdminServer) testEmbeddedByValue() {} + +// UnsafeAdminServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AdminServer will +// result in compilation errors. +type UnsafeAdminServer interface { + mustEmbedUnimplementedAdminServer() +} + +func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer) { + // If the following call pancis, it indicates UnimplementedAdminServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Admin_ServiceDesc, srv) +} + +func _Admin_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LoginReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).Login(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_Login_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).Login(ctx, req.(*LoginReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangePasswordReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).ChangePassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_ChangePassword_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).ChangePassword(ctx, req.(*ChangePasswordReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_AdminUpdateInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AdminUpdateInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).AdminUpdateInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_AdminUpdateInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).AdminUpdateInfo(ctx, req.(*AdminUpdateInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_GetAdminInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAdminInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).GetAdminInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_GetAdminInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).GetAdminInfo(ctx, req.(*GetAdminInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_AddAdminAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddAdminAccountReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).AddAdminAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_AddAdminAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).AddAdminAccount(ctx, req.(*AddAdminAccountReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_ChangeAdminPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangeAdminPasswordReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).ChangeAdminPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_ChangeAdminPassword_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).ChangeAdminPassword(ctx, req.(*ChangeAdminPasswordReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_DelAdminAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DelAdminAccountReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).DelAdminAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_DelAdminAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).DelAdminAccount(ctx, req.(*DelAdminAccountReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_SearchAdminAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchAdminAccountReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).SearchAdminAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_SearchAdminAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).SearchAdminAccount(ctx, req.(*SearchAdminAccountReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_AddDefaultFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddDefaultFriendReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).AddDefaultFriend(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_AddDefaultFriend_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).AddDefaultFriend(ctx, req.(*AddDefaultFriendReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_DelDefaultFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DelDefaultFriendReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).DelDefaultFriend(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_DelDefaultFriend_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).DelDefaultFriend(ctx, req.(*DelDefaultFriendReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_FindDefaultFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindDefaultFriendReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).FindDefaultFriend(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_FindDefaultFriend_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).FindDefaultFriend(ctx, req.(*FindDefaultFriendReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_SearchDefaultFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchDefaultFriendReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).SearchDefaultFriend(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_SearchDefaultFriend_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).SearchDefaultFriend(ctx, req.(*SearchDefaultFriendReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_AddDefaultGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddDefaultGroupReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).AddDefaultGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_AddDefaultGroup_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).AddDefaultGroup(ctx, req.(*AddDefaultGroupReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_DelDefaultGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DelDefaultGroupReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).DelDefaultGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_DelDefaultGroup_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).DelDefaultGroup(ctx, req.(*DelDefaultGroupReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_FindDefaultGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindDefaultGroupReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).FindDefaultGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_FindDefaultGroup_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).FindDefaultGroup(ctx, req.(*FindDefaultGroupReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_SearchDefaultGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchDefaultGroupReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).SearchDefaultGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_SearchDefaultGroup_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).SearchDefaultGroup(ctx, req.(*SearchDefaultGroupReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_AddInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddInvitationCodeReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).AddInvitationCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_AddInvitationCode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).AddInvitationCode(ctx, req.(*AddInvitationCodeReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_GenInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenInvitationCodeReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).GenInvitationCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_GenInvitationCode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).GenInvitationCode(ctx, req.(*GenInvitationCodeReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_FindInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindInvitationCodeReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).FindInvitationCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_FindInvitationCode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).FindInvitationCode(ctx, req.(*FindInvitationCodeReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_UseInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UseInvitationCodeReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).UseInvitationCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_UseInvitationCode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).UseInvitationCode(ctx, req.(*UseInvitationCodeReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_DelInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DelInvitationCodeReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).DelInvitationCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_DelInvitationCode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).DelInvitationCode(ctx, req.(*DelInvitationCodeReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_SearchInvitationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchInvitationCodeReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).SearchInvitationCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_SearchInvitationCode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).SearchInvitationCode(ctx, req.(*SearchInvitationCodeReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_SearchUserIPLimitLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchUserIPLimitLoginReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).SearchUserIPLimitLogin(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_SearchUserIPLimitLogin_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).SearchUserIPLimitLogin(ctx, req.(*SearchUserIPLimitLoginReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_AddUserIPLimitLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddUserIPLimitLoginReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).AddUserIPLimitLogin(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_AddUserIPLimitLogin_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).AddUserIPLimitLogin(ctx, req.(*AddUserIPLimitLoginReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_DelUserIPLimitLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DelUserIPLimitLoginReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).DelUserIPLimitLogin(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_DelUserIPLimitLogin_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).DelUserIPLimitLogin(ctx, req.(*DelUserIPLimitLoginReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_SearchIPForbidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchIPForbiddenReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).SearchIPForbidden(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_SearchIPForbidden_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).SearchIPForbidden(ctx, req.(*SearchIPForbiddenReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_AddIPForbidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddIPForbiddenReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).AddIPForbidden(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_AddIPForbidden_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).AddIPForbidden(ctx, req.(*AddIPForbiddenReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_DelIPForbidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DelIPForbiddenReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).DelIPForbidden(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_DelIPForbidden_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).DelIPForbidden(ctx, req.(*DelIPForbiddenReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_CancellationUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancellationUserReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).CancellationUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_CancellationUser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).CancellationUser(ctx, req.(*CancellationUserReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_BlockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BlockUserReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).BlockUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_BlockUser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).BlockUser(ctx, req.(*BlockUserReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_UnblockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UnblockUserReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).UnblockUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_UnblockUser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).UnblockUser(ctx, req.(*UnblockUserReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_SearchBlockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchBlockUserReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).SearchBlockUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_SearchBlockUser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).SearchBlockUser(ctx, req.(*SearchBlockUserReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_FindUserBlockInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindUserBlockInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).FindUserBlockInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_FindUserBlockInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).FindUserBlockInfo(ctx, req.(*FindUserBlockInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_CheckRegisterForbidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CheckRegisterForbiddenReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).CheckRegisterForbidden(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_CheckRegisterForbidden_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).CheckRegisterForbidden(ctx, req.(*CheckRegisterForbiddenReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_CheckLoginForbidden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CheckLoginForbiddenReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).CheckLoginForbidden(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_CheckLoginForbidden_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).CheckLoginForbidden(ctx, req.(*CheckLoginForbiddenReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_CreateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateTokenReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).CreateToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_CreateToken_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).CreateToken(ctx, req.(*CreateTokenReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ParseTokenReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).ParseToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_ParseToken_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).ParseToken(ctx, req.(*ParseTokenReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_AddApplet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddAppletReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).AddApplet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_AddApplet_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).AddApplet(ctx, req.(*AddAppletReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_DelApplet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DelAppletReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).DelApplet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_DelApplet_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).DelApplet(ctx, req.(*DelAppletReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_UpdateApplet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateAppletReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).UpdateApplet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_UpdateApplet_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).UpdateApplet(ctx, req.(*UpdateAppletReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_FindApplet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAppletReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).FindApplet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_FindApplet_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).FindApplet(ctx, req.(*FindAppletReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_SearchApplet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchAppletReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).SearchApplet(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_SearchApplet_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).SearchApplet(ctx, req.(*SearchAppletReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_GetClientConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetClientConfigReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).GetClientConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_GetClientConfig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).GetClientConfig(ctx, req.(*GetClientConfigReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_SetClientConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetClientConfigReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).SetClientConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_SetClientConfig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).SetClientConfig(ctx, req.(*SetClientConfigReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_DelClientConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DelClientConfigReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).DelClientConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_DelClientConfig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).DelClientConfig(ctx, req.(*DelClientConfigReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_GetUserToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUserTokenReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).GetUserToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_GetUserToken_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).GetUserToken(ctx, req.(*GetUserTokenReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_InvalidateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvalidateTokenReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).InvalidateToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_InvalidateToken_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).InvalidateToken(ctx, req.(*InvalidateTokenReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_LatestApplicationVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LatestApplicationVersionReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).LatestApplicationVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_LatestApplicationVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).LatestApplicationVersion(ctx, req.(*LatestApplicationVersionReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_AddApplicationVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddApplicationVersionReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).AddApplicationVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_AddApplicationVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).AddApplicationVersion(ctx, req.(*AddApplicationVersionReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_UpdateApplicationVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateApplicationVersionReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).UpdateApplicationVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_UpdateApplicationVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).UpdateApplicationVersion(ctx, req.(*UpdateApplicationVersionReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_DeleteApplicationVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteApplicationVersionReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).DeleteApplicationVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_DeleteApplicationVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).DeleteApplicationVersion(ctx, req.(*DeleteApplicationVersionReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Admin_PageApplicationVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PageApplicationVersionReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServer).PageApplicationVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Admin_PageApplicationVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServer).PageApplicationVersion(ctx, req.(*PageApplicationVersionReq)) + } + return interceptor(ctx, in, info, handler) +} + +// Admin_ServiceDesc is the grpc.ServiceDesc for Admin service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Admin_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "openim.admin.admin", + HandlerType: (*AdminServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Login", + Handler: _Admin_Login_Handler, + }, + { + MethodName: "ChangePassword", + Handler: _Admin_ChangePassword_Handler, + }, + { + MethodName: "AdminUpdateInfo", + Handler: _Admin_AdminUpdateInfo_Handler, + }, + { + MethodName: "GetAdminInfo", + Handler: _Admin_GetAdminInfo_Handler, + }, + { + MethodName: "AddAdminAccount", + Handler: _Admin_AddAdminAccount_Handler, + }, + { + MethodName: "ChangeAdminPassword", + Handler: _Admin_ChangeAdminPassword_Handler, + }, + { + MethodName: "DelAdminAccount", + Handler: _Admin_DelAdminAccount_Handler, + }, + { + MethodName: "SearchAdminAccount", + Handler: _Admin_SearchAdminAccount_Handler, + }, + { + MethodName: "AddDefaultFriend", + Handler: _Admin_AddDefaultFriend_Handler, + }, + { + MethodName: "DelDefaultFriend", + Handler: _Admin_DelDefaultFriend_Handler, + }, + { + MethodName: "FindDefaultFriend", + Handler: _Admin_FindDefaultFriend_Handler, + }, + { + MethodName: "SearchDefaultFriend", + Handler: _Admin_SearchDefaultFriend_Handler, + }, + { + MethodName: "AddDefaultGroup", + Handler: _Admin_AddDefaultGroup_Handler, + }, + { + MethodName: "DelDefaultGroup", + Handler: _Admin_DelDefaultGroup_Handler, + }, + { + MethodName: "FindDefaultGroup", + Handler: _Admin_FindDefaultGroup_Handler, + }, + { + MethodName: "SearchDefaultGroup", + Handler: _Admin_SearchDefaultGroup_Handler, + }, + { + MethodName: "AddInvitationCode", + Handler: _Admin_AddInvitationCode_Handler, + }, + { + MethodName: "GenInvitationCode", + Handler: _Admin_GenInvitationCode_Handler, + }, + { + MethodName: "FindInvitationCode", + Handler: _Admin_FindInvitationCode_Handler, + }, + { + MethodName: "UseInvitationCode", + Handler: _Admin_UseInvitationCode_Handler, + }, + { + MethodName: "DelInvitationCode", + Handler: _Admin_DelInvitationCode_Handler, + }, + { + MethodName: "SearchInvitationCode", + Handler: _Admin_SearchInvitationCode_Handler, + }, + { + MethodName: "SearchUserIPLimitLogin", + Handler: _Admin_SearchUserIPLimitLogin_Handler, + }, + { + MethodName: "AddUserIPLimitLogin", + Handler: _Admin_AddUserIPLimitLogin_Handler, + }, + { + MethodName: "DelUserIPLimitLogin", + Handler: _Admin_DelUserIPLimitLogin_Handler, + }, + { + MethodName: "SearchIPForbidden", + Handler: _Admin_SearchIPForbidden_Handler, + }, + { + MethodName: "AddIPForbidden", + Handler: _Admin_AddIPForbidden_Handler, + }, + { + MethodName: "DelIPForbidden", + Handler: _Admin_DelIPForbidden_Handler, + }, + { + MethodName: "CancellationUser", + Handler: _Admin_CancellationUser_Handler, + }, + { + MethodName: "BlockUser", + Handler: _Admin_BlockUser_Handler, + }, + { + MethodName: "UnblockUser", + Handler: _Admin_UnblockUser_Handler, + }, + { + MethodName: "SearchBlockUser", + Handler: _Admin_SearchBlockUser_Handler, + }, + { + MethodName: "FindUserBlockInfo", + Handler: _Admin_FindUserBlockInfo_Handler, + }, + { + MethodName: "CheckRegisterForbidden", + Handler: _Admin_CheckRegisterForbidden_Handler, + }, + { + MethodName: "CheckLoginForbidden", + Handler: _Admin_CheckLoginForbidden_Handler, + }, + { + MethodName: "CreateToken", + Handler: _Admin_CreateToken_Handler, + }, + { + MethodName: "ParseToken", + Handler: _Admin_ParseToken_Handler, + }, + { + MethodName: "AddApplet", + Handler: _Admin_AddApplet_Handler, + }, + { + MethodName: "DelApplet", + Handler: _Admin_DelApplet_Handler, + }, + { + MethodName: "UpdateApplet", + Handler: _Admin_UpdateApplet_Handler, + }, + { + MethodName: "FindApplet", + Handler: _Admin_FindApplet_Handler, + }, + { + MethodName: "SearchApplet", + Handler: _Admin_SearchApplet_Handler, + }, + { + MethodName: "GetClientConfig", + Handler: _Admin_GetClientConfig_Handler, + }, + { + MethodName: "SetClientConfig", + Handler: _Admin_SetClientConfig_Handler, + }, + { + MethodName: "DelClientConfig", + Handler: _Admin_DelClientConfig_Handler, + }, + { + MethodName: "GetUserToken", + Handler: _Admin_GetUserToken_Handler, + }, + { + MethodName: "InvalidateToken", + Handler: _Admin_InvalidateToken_Handler, + }, + { + MethodName: "LatestApplicationVersion", + Handler: _Admin_LatestApplicationVersion_Handler, + }, + { + MethodName: "AddApplicationVersion", + Handler: _Admin_AddApplicationVersion_Handler, + }, + { + MethodName: "UpdateApplicationVersion", + Handler: _Admin_UpdateApplicationVersion_Handler, + }, + { + MethodName: "DeleteApplicationVersion", + Handler: _Admin_DeleteApplicationVersion_Handler, + }, + { + MethodName: "PageApplicationVersion", + Handler: _Admin_PageApplicationVersion_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "admin/admin.proto", +} diff --git a/pkg/protocol/chat/chat.pb.go b/pkg/protocol/chat/chat.pb.go index b5a68d7c..b1bd6afb 100644 --- a/pkg/protocol/chat/chat.pb.go +++ b/pkg/protocol/chat/chat.pb.go @@ -14,20 +14,16 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.0 +// protoc-gen-go v1.36.1 +// protoc v5.29.0 // source: chat/chat.proto package chat import ( - context "context" common "github.com/openimsdk/chat/pkg/protocol/common" sdkws "github.com/openimsdk/protocol/sdkws" wrapperspb "github.com/openimsdk/protocol/wrapperspb" - 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" @@ -42,25 +38,22 @@ const ( ) type UserIdentity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email"` + AreaCode string `protobuf:"bytes,2,opt,name=areaCode,proto3" json:"areaCode"` + PhoneNumber string `protobuf:"bytes,3,opt,name=phoneNumber,proto3" json:"phoneNumber"` + DeviceID string `protobuf:"bytes,4,opt,name=deviceID,proto3" json:"deviceID"` + Platform int32 `protobuf:"varint,5,opt,name=platform,proto3" json:"platform"` + Account string `protobuf:"bytes,6,opt,name=account,proto3" json:"account"` unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email"` - AreaCode string `protobuf:"bytes,2,opt,name=areaCode,proto3" json:"areaCode"` - PhoneNumber string `protobuf:"bytes,3,opt,name=phoneNumber,proto3" json:"phoneNumber"` - DeviceID string `protobuf:"bytes,4,opt,name=deviceID,proto3" json:"deviceID"` - Platform int32 `protobuf:"varint,5,opt,name=platform,proto3" json:"platform"` - Account string `protobuf:"bytes,6,opt,name=account,proto3" json:"account"` + sizeCache protoimpl.SizeCache } func (x *UserIdentity) Reset() { *x = UserIdentity{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserIdentity) String() string { @@ -71,7 +64,7 @@ func (*UserIdentity) ProtoMessage() {} func (x *UserIdentity) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -129,10 +122,7 @@ func (x *UserIdentity) GetAccount() string { } type UpdateUserInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` Account *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=account,proto3" json:"account"` PhoneNumber *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=phoneNumber,proto3" json:"phoneNumber"` @@ -148,15 +138,15 @@ type UpdateUserInfoReq struct { AllowVibration *wrapperspb.Int32Value `protobuf:"bytes,13,opt,name=allowVibration,proto3" json:"allowVibration"` GlobalRecvMsgOpt *wrapperspb.Int32Value `protobuf:"bytes,14,opt,name=globalRecvMsgOpt,proto3" json:"globalRecvMsgOpt"` RegisterType *wrapperspb.Int32Value `protobuf:"bytes,15,opt,name=RegisterType,proto3" json:"RegisterType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateUserInfoReq) Reset() { *x = UpdateUserInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateUserInfoReq) String() string { @@ -167,7 +157,7 @@ func (*UpdateUserInfoReq) ProtoMessage() {} func (x *UpdateUserInfoReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -288,21 +278,18 @@ func (x *UpdateUserInfoReq) GetRegisterType() *wrapperspb.Int32Value { } type UpdateUserInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FaceUrl string `protobuf:"bytes,1,opt,name=faceUrl,proto3" json:"faceUrl"` + NickName string `protobuf:"bytes,2,opt,name=nickName,proto3" json:"nickName"` unknownFields protoimpl.UnknownFields - - FaceUrl string `protobuf:"bytes,1,opt,name=faceUrl,proto3" json:"faceUrl"` - NickName string `protobuf:"bytes,2,opt,name=nickName,proto3" json:"nickName"` + sizeCache protoimpl.SizeCache } func (x *UpdateUserInfoResp) Reset() { *x = UpdateUserInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateUserInfoResp) String() string { @@ -313,7 +300,7 @@ func (*UpdateUserInfoResp) ProtoMessage() {} func (x *UpdateUserInfoResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -343,20 +330,17 @@ func (x *UpdateUserInfoResp) GetNickName() string { } type FindUserPublicInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *FindUserPublicInfoReq) Reset() { *x = FindUserPublicInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindUserPublicInfoReq) String() string { @@ -367,7 +351,7 @@ func (*FindUserPublicInfoReq) ProtoMessage() {} func (x *FindUserPublicInfoReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -390,20 +374,17 @@ func (x *FindUserPublicInfoReq) GetUserIDs() []string { } type FindUserPublicInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Users []*common.UserPublicInfo `protobuf:"bytes,1,rep,name=users,proto3" json:"users"` unknownFields protoimpl.UnknownFields - - Users []*common.UserPublicInfo `protobuf:"bytes,1,rep,name=users,proto3" json:"users"` + sizeCache protoimpl.SizeCache } func (x *FindUserPublicInfoResp) Reset() { *x = FindUserPublicInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindUserPublicInfoResp) String() string { @@ -414,7 +395,7 @@ func (*FindUserPublicInfoResp) ProtoMessage() {} func (x *FindUserPublicInfoResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -437,22 +418,19 @@ func (x *FindUserPublicInfoResp) GetUsers() []*common.UserPublicInfo { } type SearchUserPublicInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` + Genders int32 `protobuf:"varint,3,opt,name=genders,proto3" json:"genders"` unknownFields protoimpl.UnknownFields - - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` - Genders int32 `protobuf:"varint,3,opt,name=genders,proto3" json:"genders"` + sizeCache protoimpl.SizeCache } func (x *SearchUserPublicInfoReq) Reset() { *x = SearchUserPublicInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchUserPublicInfoReq) String() string { @@ -463,7 +441,7 @@ func (*SearchUserPublicInfoReq) ProtoMessage() {} func (x *SearchUserPublicInfoReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -500,21 +478,18 @@ func (x *SearchUserPublicInfoReq) GetGenders() int32 { } type SearchUserPublicInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Users []*common.UserPublicInfo `protobuf:"bytes,2,rep,name=users,proto3" json:"users"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - Users []*common.UserPublicInfo `protobuf:"bytes,2,rep,name=users,proto3" json:"users"` + sizeCache protoimpl.SizeCache } func (x *SearchUserPublicInfoResp) Reset() { *x = SearchUserPublicInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchUserPublicInfoResp) String() string { @@ -525,7 +500,7 @@ func (*SearchUserPublicInfoResp) ProtoMessage() {} func (x *SearchUserPublicInfoResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -555,20 +530,17 @@ func (x *SearchUserPublicInfoResp) GetUsers() []*common.UserPublicInfo { } type FindUserFullInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *FindUserFullInfoReq) Reset() { *x = FindUserFullInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindUserFullInfoReq) String() string { @@ -579,7 +551,7 @@ func (*FindUserFullInfoReq) ProtoMessage() {} func (x *FindUserFullInfoReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -602,20 +574,17 @@ func (x *FindUserFullInfoReq) GetUserIDs() []string { } type FindUserFullInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Users []*common.UserFullInfo `protobuf:"bytes,1,rep,name=users,proto3" json:"users"` unknownFields protoimpl.UnknownFields - - Users []*common.UserFullInfo `protobuf:"bytes,1,rep,name=users,proto3" json:"users"` + sizeCache protoimpl.SizeCache } func (x *FindUserFullInfoResp) Reset() { *x = FindUserFullInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindUserFullInfoResp) String() string { @@ -626,7 +595,7 @@ func (*FindUserFullInfoResp) ProtoMessage() {} func (x *FindUserFullInfoResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -649,27 +618,24 @@ func (x *FindUserFullInfoResp) GetUsers() []*common.UserFullInfo { } type SendVerifyCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UsedFor int32 `protobuf:"varint,1,opt,name=usedFor,proto3" json:"usedFor"` - Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip"` - InvitationCode string `protobuf:"bytes,3,opt,name=invitationCode,proto3" json:"invitationCode"` - DeviceID string `protobuf:"bytes,4,opt,name=deviceID,proto3" json:"deviceID"` - Platform int32 `protobuf:"varint,5,opt,name=platform,proto3" json:"platform"` - AreaCode string `protobuf:"bytes,6,opt,name=areaCode,proto3" json:"areaCode"` - PhoneNumber string `protobuf:"bytes,7,opt,name=phoneNumber,proto3" json:"phoneNumber"` - Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email"` + state protoimpl.MessageState `protogen:"open.v1"` + UsedFor int32 `protobuf:"varint,1,opt,name=usedFor,proto3" json:"usedFor"` + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip"` + InvitationCode string `protobuf:"bytes,3,opt,name=invitationCode,proto3" json:"invitationCode"` + DeviceID string `protobuf:"bytes,4,opt,name=deviceID,proto3" json:"deviceID"` + Platform int32 `protobuf:"varint,5,opt,name=platform,proto3" json:"platform"` + AreaCode string `protobuf:"bytes,6,opt,name=areaCode,proto3" json:"areaCode"` + PhoneNumber string `protobuf:"bytes,7,opt,name=phoneNumber,proto3" json:"phoneNumber"` + Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SendVerifyCodeReq) Reset() { *x = SendVerifyCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SendVerifyCodeReq) String() string { @@ -680,7 +646,7 @@ func (*SendVerifyCodeReq) ProtoMessage() {} func (x *SendVerifyCodeReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -752,18 +718,16 @@ func (x *SendVerifyCodeReq) GetEmail() string { } type SendVerifyCodeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SendVerifyCodeResp) Reset() { *x = SendVerifyCodeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SendVerifyCodeResp) String() string { @@ -774,7 +738,7 @@ func (*SendVerifyCodeResp) ProtoMessage() {} func (x *SendVerifyCodeResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -790,23 +754,20 @@ func (*SendVerifyCodeResp) Descriptor() ([]byte, []int) { } type VerifyCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AreaCode string `protobuf:"bytes,1,opt,name=areaCode,proto3" json:"areaCode"` + PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber"` + VerifyCode string `protobuf:"bytes,3,opt,name=verifyCode,proto3" json:"verifyCode"` + Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email"` unknownFields protoimpl.UnknownFields - - AreaCode string `protobuf:"bytes,1,opt,name=areaCode,proto3" json:"areaCode"` - PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber"` - VerifyCode string `protobuf:"bytes,3,opt,name=verifyCode,proto3" json:"verifyCode"` - Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email"` + sizeCache protoimpl.SizeCache } func (x *VerifyCodeReq) Reset() { *x = VerifyCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VerifyCodeReq) String() string { @@ -817,7 +778,7 @@ func (*VerifyCodeReq) ProtoMessage() {} func (x *VerifyCodeReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -861,18 +822,16 @@ func (x *VerifyCodeReq) GetEmail() string { } type VerifyCodeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *VerifyCodeResp) Reset() { *x = VerifyCodeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VerifyCodeResp) String() string { @@ -883,7 +842,7 @@ func (*VerifyCodeResp) ProtoMessage() {} func (x *VerifyCodeResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -899,30 +858,27 @@ func (*VerifyCodeResp) Descriptor() ([]byte, []int) { } type RegisterUserInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` + FaceURL string `protobuf:"bytes,3,opt,name=faceURL,proto3" json:"faceURL"` + Birth int64 `protobuf:"varint,4,opt,name=birth,proto3" json:"birth"` + Gender int32 `protobuf:"varint,5,opt,name=gender,proto3" json:"gender"` + AreaCode string `protobuf:"bytes,6,opt,name=areaCode,proto3" json:"areaCode"` + PhoneNumber string `protobuf:"bytes,7,opt,name=phoneNumber,proto3" json:"phoneNumber"` + Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email"` + Account string `protobuf:"bytes,9,opt,name=account,proto3" json:"account"` + Password string `protobuf:"bytes,10,opt,name=password,proto3" json:"password"` + RegisterType int32 `protobuf:"varint,11,opt,name=RegisterType,proto3" json:"RegisterType"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` - FaceURL string `protobuf:"bytes,3,opt,name=faceURL,proto3" json:"faceURL"` - Birth int64 `protobuf:"varint,4,opt,name=birth,proto3" json:"birth"` - Gender int32 `protobuf:"varint,5,opt,name=gender,proto3" json:"gender"` - AreaCode string `protobuf:"bytes,6,opt,name=areaCode,proto3" json:"areaCode"` - PhoneNumber string `protobuf:"bytes,7,opt,name=phoneNumber,proto3" json:"phoneNumber"` - Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email"` - Account string `protobuf:"bytes,9,opt,name=account,proto3" json:"account"` - Password string `protobuf:"bytes,10,opt,name=password,proto3" json:"password"` - RegisterType int32 `protobuf:"varint,11,opt,name=RegisterType,proto3" json:"RegisterType"` + sizeCache protoimpl.SizeCache } func (x *RegisterUserInfo) Reset() { *x = RegisterUserInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegisterUserInfo) String() string { @@ -933,7 +889,7 @@ func (*RegisterUserInfo) ProtoMessage() {} func (x *RegisterUserInfo) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1026,26 +982,23 @@ func (x *RegisterUserInfo) GetRegisterType() int32 { } type RegisterUserReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InvitationCode string `protobuf:"bytes,1,opt,name=invitationCode,proto3" json:"invitationCode"` - VerifyCode string `protobuf:"bytes,2,opt,name=verifyCode,proto3" json:"verifyCode"` - Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip"` - DeviceID string `protobuf:"bytes,4,opt,name=deviceID,proto3" json:"deviceID"` - Platform int32 `protobuf:"varint,5,opt,name=platform,proto3" json:"platform"` - AutoLogin bool `protobuf:"varint,6,opt,name=autoLogin,proto3" json:"autoLogin"` - User *RegisterUserInfo `protobuf:"bytes,7,opt,name=user,proto3" json:"user"` + state protoimpl.MessageState `protogen:"open.v1"` + InvitationCode string `protobuf:"bytes,1,opt,name=invitationCode,proto3" json:"invitationCode"` + VerifyCode string `protobuf:"bytes,2,opt,name=verifyCode,proto3" json:"verifyCode"` + Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip"` + DeviceID string `protobuf:"bytes,4,opt,name=deviceID,proto3" json:"deviceID"` + Platform int32 `protobuf:"varint,5,opt,name=platform,proto3" json:"platform"` + AutoLogin bool `protobuf:"varint,6,opt,name=autoLogin,proto3" json:"autoLogin"` + User *RegisterUserInfo `protobuf:"bytes,7,opt,name=user,proto3" json:"user"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RegisterUserReq) Reset() { *x = RegisterUserReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegisterUserReq) String() string { @@ -1056,7 +1009,7 @@ func (*RegisterUserReq) ProtoMessage() {} func (x *RegisterUserReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1121,21 +1074,18 @@ func (x *RegisterUserReq) GetUser() *RegisterUserInfo { } type RegisterUserResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + ChatToken string `protobuf:"bytes,3,opt,name=chatToken,proto3" json:"chatToken"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - ChatToken string `protobuf:"bytes,3,opt,name=chatToken,proto3" json:"chatToken"` + sizeCache protoimpl.SizeCache } func (x *RegisterUserResp) Reset() { *x = RegisterUserResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RegisterUserResp) String() string { @@ -1146,7 +1096,7 @@ func (*RegisterUserResp) ProtoMessage() {} func (x *RegisterUserResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1176,23 +1126,20 @@ func (x *RegisterUserResp) GetChatToken() string { } type AddUserAccountReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"` + DeviceID string `protobuf:"bytes,2,opt,name=deviceID,proto3" json:"deviceID"` + Platform int32 `protobuf:"varint,3,opt,name=platform,proto3" json:"platform"` + User *RegisterUserInfo `protobuf:"bytes,4,opt,name=user,proto3" json:"user"` unknownFields protoimpl.UnknownFields - - Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip"` - DeviceID string `protobuf:"bytes,2,opt,name=deviceID,proto3" json:"deviceID"` - Platform int32 `protobuf:"varint,3,opt,name=platform,proto3" json:"platform"` - User *RegisterUserInfo `protobuf:"bytes,4,opt,name=user,proto3" json:"user"` + sizeCache protoimpl.SizeCache } func (x *AddUserAccountReq) Reset() { *x = AddUserAccountReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddUserAccountReq) String() string { @@ -1203,7 +1150,7 @@ func (*AddUserAccountReq) ProtoMessage() {} func (x *AddUserAccountReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1247,18 +1194,16 @@ func (x *AddUserAccountReq) GetUser() *RegisterUserInfo { } type AddUserAccountResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddUserAccountResp) Reset() { *x = AddUserAccountResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddUserAccountResp) String() string { @@ -1269,7 +1214,7 @@ func (*AddUserAccountResp) ProtoMessage() {} func (x *AddUserAccountResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1285,28 +1230,25 @@ func (*AddUserAccountResp) Descriptor() ([]byte, []int) { } type LoginReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AreaCode string `protobuf:"bytes,1,opt,name=areaCode,proto3" json:"areaCode"` + PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber"` + VerifyCode string `protobuf:"bytes,3,opt,name=verifyCode,proto3" json:"verifyCode"` + Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account"` + Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password"` + Platform int32 `protobuf:"varint,6,opt,name=platform,proto3" json:"platform"` + DeviceID string `protobuf:"bytes,7,opt,name=deviceID,proto3" json:"deviceID"` + Ip string `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip"` + Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email"` unknownFields protoimpl.UnknownFields - - AreaCode string `protobuf:"bytes,1,opt,name=areaCode,proto3" json:"areaCode"` - PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber"` - VerifyCode string `protobuf:"bytes,3,opt,name=verifyCode,proto3" json:"verifyCode"` - Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account"` - Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password"` - Platform int32 `protobuf:"varint,6,opt,name=platform,proto3" json:"platform"` - DeviceID string `protobuf:"bytes,7,opt,name=deviceID,proto3" json:"deviceID"` - Ip string `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip"` - Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email"` + sizeCache protoimpl.SizeCache } func (x *LoginReq) Reset() { *x = LoginReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LoginReq) String() string { @@ -1317,7 +1259,7 @@ func (*LoginReq) ProtoMessage() {} func (x *LoginReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1396,24 +1338,21 @@ func (x *LoginReq) GetEmail() string { } type ResetPasswordReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AreaCode string `protobuf:"bytes,1,opt,name=areaCode,proto3" json:"areaCode"` + PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber"` + VerifyCode string `protobuf:"bytes,3,opt,name=verifyCode,proto3" json:"verifyCode"` + Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password"` + Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email"` unknownFields protoimpl.UnknownFields - - AreaCode string `protobuf:"bytes,1,opt,name=areaCode,proto3" json:"areaCode"` - PhoneNumber string `protobuf:"bytes,2,opt,name=phoneNumber,proto3" json:"phoneNumber"` - VerifyCode string `protobuf:"bytes,3,opt,name=verifyCode,proto3" json:"verifyCode"` - Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password"` - Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email"` + sizeCache protoimpl.SizeCache } func (x *ResetPasswordReq) Reset() { *x = ResetPasswordReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResetPasswordReq) String() string { @@ -1424,7 +1363,7 @@ func (*ResetPasswordReq) ProtoMessage() {} func (x *ResetPasswordReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1475,18 +1414,16 @@ func (x *ResetPasswordReq) GetEmail() string { } type ResetPasswordResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ResetPasswordResp) Reset() { *x = ResetPasswordResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ResetPasswordResp) String() string { @@ -1497,7 +1434,7 @@ func (*ResetPasswordResp) ProtoMessage() {} func (x *ResetPasswordResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1513,22 +1450,19 @@ func (*ResetPasswordResp) Descriptor() ([]byte, []int) { } type ChangePasswordReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - CurrentPassword string `protobuf:"bytes,2,opt,name=currentPassword,proto3" json:"currentPassword"` - NewPassword string `protobuf:"bytes,3,opt,name=newPassword,proto3" json:"newPassword"` + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + CurrentPassword string `protobuf:"bytes,2,opt,name=currentPassword,proto3" json:"currentPassword"` + NewPassword string `protobuf:"bytes,3,opt,name=newPassword,proto3" json:"newPassword"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangePasswordReq) Reset() { *x = ChangePasswordReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangePasswordReq) String() string { @@ -1539,7 +1473,7 @@ func (*ChangePasswordReq) ProtoMessage() {} func (x *ChangePasswordReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1576,18 +1510,16 @@ func (x *ChangePasswordReq) GetNewPassword() string { } type ChangePasswordResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ChangePasswordResp) Reset() { *x = ChangePasswordResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ChangePasswordResp) String() string { @@ -1598,7 +1530,7 @@ func (*ChangePasswordResp) ProtoMessage() {} func (x *ChangePasswordResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1614,20 +1546,17 @@ func (*ChangePasswordResp) Descriptor() ([]byte, []int) { } type FindUserAccountReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *FindUserAccountReq) Reset() { *x = FindUserAccountReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindUserAccountReq) String() string { @@ -1638,7 +1567,7 @@ func (*FindUserAccountReq) ProtoMessage() {} func (x *FindUserAccountReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1661,20 +1590,17 @@ func (x *FindUserAccountReq) GetUserIDs() []string { } type FindUserAccountResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserAccountMap map[string]string `protobuf:"bytes,1,rep,name=userAccountMap,proto3" json:"userAccountMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // userID account + state protoimpl.MessageState `protogen:"open.v1"` + UserAccountMap map[string]string `protobuf:"bytes,1,rep,name=userAccountMap,proto3" json:"userAccountMap" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // userID account + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FindUserAccountResp) Reset() { *x = FindUserAccountResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindUserAccountResp) String() string { @@ -1685,7 +1611,7 @@ func (*FindUserAccountResp) ProtoMessage() {} func (x *FindUserAccountResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1708,20 +1634,17 @@ func (x *FindUserAccountResp) GetUserAccountMap() map[string]string { } type FindAccountUserReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts"` unknownFields protoimpl.UnknownFields - - Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts"` + sizeCache protoimpl.SizeCache } func (x *FindAccountUserReq) Reset() { *x = FindAccountUserReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindAccountUserReq) String() string { @@ -1732,7 +1655,7 @@ func (*FindAccountUserReq) ProtoMessage() {} func (x *FindAccountUserReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1755,20 +1678,17 @@ func (x *FindAccountUserReq) GetAccounts() []string { } type FindAccountUserResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AccountUserMap map[string]string `protobuf:"bytes,1,rep,name=accountUserMap,proto3" json:"accountUserMap,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // account userID + state protoimpl.MessageState `protogen:"open.v1"` + AccountUserMap map[string]string `protobuf:"bytes,1,rep,name=accountUserMap,proto3" json:"accountUserMap" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // account userID + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *FindAccountUserResp) Reset() { *x = FindAccountUserResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FindAccountUserResp) String() string { @@ -1779,7 +1699,7 @@ func (*FindAccountUserResp) ProtoMessage() {} func (x *FindAccountUserResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1802,10 +1722,7 @@ func (x *FindAccountUserResp) GetAccountUserMap() map[string]string { } type SignalRecord struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` FileName string `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName"` MediaType string `protobuf:"bytes,2,opt,name=mediaType,proto3" json:"mediaType"` RoomType string `protobuf:"bytes,3,opt,name=roomType,proto3" json:"roomType"` @@ -1820,15 +1737,15 @@ type SignalRecord struct { CreateTime int64 `protobuf:"varint,12,opt,name=createTime,proto3" json:"createTime"` Size string `protobuf:"bytes,13,opt,name=size,proto3" json:"size"` DownloadURL string `protobuf:"bytes,14,opt,name=downloadURL,proto3" json:"downloadURL"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SignalRecord) Reset() { *x = SignalRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SignalRecord) String() string { @@ -1839,7 +1756,7 @@ func (*SignalRecord) ProtoMessage() {} func (x *SignalRecord) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1953,21 +1870,18 @@ func (x *SignalRecord) GetDownloadURL() string { } type OpenIMCallbackReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body"` unknownFields protoimpl.UnknownFields - - Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body"` + sizeCache protoimpl.SizeCache } func (x *OpenIMCallbackReq) Reset() { *x = OpenIMCallbackReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OpenIMCallbackReq) String() string { @@ -1978,7 +1892,7 @@ func (*OpenIMCallbackReq) ProtoMessage() {} func (x *OpenIMCallbackReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2008,18 +1922,16 @@ func (x *OpenIMCallbackReq) GetBody() string { } type OpenIMCallbackResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *OpenIMCallbackResp) Reset() { *x = OpenIMCallbackResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OpenIMCallbackResp) String() string { @@ -2030,7 +1942,7 @@ func (*OpenIMCallbackResp) ProtoMessage() {} func (x *OpenIMCallbackResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2046,23 +1958,20 @@ func (*OpenIMCallbackResp) Descriptor() ([]byte, []int) { } type SearchUserFullInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` + Genders int32 `protobuf:"varint,3,opt,name=genders,proto3" json:"genders"` + Normal int32 `protobuf:"varint,4,opt,name=normal,proto3" json:"normal"` unknownFields protoimpl.UnknownFields - - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` - Genders int32 `protobuf:"varint,3,opt,name=genders,proto3" json:"genders"` - Normal int32 `protobuf:"varint,4,opt,name=normal,proto3" json:"normal"` + sizeCache protoimpl.SizeCache } func (x *SearchUserFullInfoReq) Reset() { *x = SearchUserFullInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchUserFullInfoReq) String() string { @@ -2073,7 +1982,7 @@ func (*SearchUserFullInfoReq) ProtoMessage() {} func (x *SearchUserFullInfoReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2117,21 +2026,18 @@ func (x *SearchUserFullInfoReq) GetNormal() int32 { } type SearchUserFullInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Users []*common.UserFullInfo `protobuf:"bytes,2,rep,name=users,proto3" json:"users"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - Users []*common.UserFullInfo `protobuf:"bytes,2,rep,name=users,proto3" json:"users"` + sizeCache protoimpl.SizeCache } func (x *SearchUserFullInfoResp) Reset() { *x = SearchUserFullInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchUserFullInfoResp) String() string { @@ -2142,7 +2048,7 @@ func (*SearchUserFullInfoResp) ProtoMessage() {} func (x *SearchUserFullInfoResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2172,21 +2078,18 @@ func (x *SearchUserFullInfoResp) GetUsers() []*common.UserFullInfo { } type UserLoginCountReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start"` + End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end"` unknownFields protoimpl.UnknownFields - - Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start"` - End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end"` + sizeCache protoimpl.SizeCache } func (x *UserLoginCountReq) Reset() { *x = UserLoginCountReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserLoginCountReq) String() string { @@ -2197,7 +2100,7 @@ func (*UserLoginCountReq) ProtoMessage() {} func (x *UserLoginCountReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2227,22 +2130,19 @@ func (x *UserLoginCountReq) GetEnd() int64 { } type UserLoginCountResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LoginCount int64 `protobuf:"varint,1,opt,name=loginCount,proto3" json:"loginCount"` + UnloginCount int64 `protobuf:"varint,2,opt,name=unloginCount,proto3" json:"unloginCount"` + Count map[string]int64 `protobuf:"bytes,3,rep,name=count,proto3" json:"count" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - LoginCount int64 `protobuf:"varint,1,opt,name=loginCount,proto3" json:"loginCount"` - UnloginCount int64 `protobuf:"varint,2,opt,name=unloginCount,proto3" json:"unloginCount"` - Count map[string]int64 `protobuf:"bytes,3,rep,name=count,proto3" json:"count,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *UserLoginCountResp) Reset() { *x = UserLoginCountResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserLoginCountResp) String() string { @@ -2253,7 +2153,7 @@ func (*UserLoginCountResp) ProtoMessage() {} func (x *UserLoginCountResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2290,21 +2190,18 @@ func (x *UserLoginCountResp) GetCount() map[string]int64 { } type LoginResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ChatToken string `protobuf:"bytes,2,opt,name=chatToken,proto3" json:"chatToken"` + UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID"` unknownFields protoimpl.UnknownFields - - ChatToken string `protobuf:"bytes,2,opt,name=chatToken,proto3" json:"chatToken"` - UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID"` + sizeCache protoimpl.SizeCache } func (x *LoginResp) Reset() { *x = LoginResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LoginResp) String() string { @@ -2315,7 +2212,7 @@ func (*LoginResp) ProtoMessage() {} func (x *LoginResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2345,23 +2242,20 @@ func (x *LoginResp) GetUserID() string { } type SearchUserInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` + Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` + Genders []int32 `protobuf:"varint,3,rep,packed,name=genders,proto3" json:"genders"` + UserIDs []string `protobuf:"bytes,4,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword"` - Pagination *sdkws.RequestPagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` - Genders []int32 `protobuf:"varint,3,rep,packed,name=genders,proto3" json:"genders"` - UserIDs []string `protobuf:"bytes,4,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *SearchUserInfoReq) Reset() { *x = SearchUserInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchUserInfoReq) String() string { @@ -2372,7 +2266,7 @@ func (*SearchUserInfoReq) ProtoMessage() {} func (x *SearchUserInfoReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2416,21 +2310,18 @@ func (x *SearchUserInfoReq) GetUserIDs() []string { } type SearchUserInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Users []*common.UserFullInfo `protobuf:"bytes,2,rep,name=users,proto3" json:"users"` unknownFields protoimpl.UnknownFields - - Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` - Users []*common.UserFullInfo `protobuf:"bytes,2,rep,name=users,proto3" json:"users"` + sizeCache protoimpl.SizeCache } func (x *SearchUserInfoResp) Reset() { *x = SearchUserInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SearchUserInfoResp) String() string { @@ -2441,7 +2332,7 @@ func (*SearchUserInfoResp) ProtoMessage() {} func (x *SearchUserInfoResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2471,21 +2362,18 @@ func (x *SearchUserInfoResp) GetUsers() []*common.UserFullInfo { } type GetTokenForVideoMeetingReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity"` unknownFields protoimpl.UnknownFields - - Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity"` + sizeCache protoimpl.SizeCache } func (x *GetTokenForVideoMeetingReq) Reset() { *x = GetTokenForVideoMeetingReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTokenForVideoMeetingReq) String() string { @@ -2496,7 +2384,7 @@ func (*GetTokenForVideoMeetingReq) ProtoMessage() {} func (x *GetTokenForVideoMeetingReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2526,21 +2414,18 @@ func (x *GetTokenForVideoMeetingReq) GetIdentity() string { } type GetTokenForVideoMeetingResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ServerUrl string `protobuf:"bytes,1,opt,name=serverUrl,proto3" json:"serverUrl"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token"` unknownFields protoimpl.UnknownFields - - ServerUrl string `protobuf:"bytes,1,opt,name=serverUrl,proto3" json:"serverUrl"` - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token"` + sizeCache protoimpl.SizeCache } func (x *GetTokenForVideoMeetingResp) Reset() { *x = GetTokenForVideoMeetingResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetTokenForVideoMeetingResp) String() string { @@ -2551,7 +2436,7 @@ func (*GetTokenForVideoMeetingResp) ProtoMessage() {} func (x *GetTokenForVideoMeetingResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2581,20 +2466,17 @@ func (x *GetTokenForVideoMeetingResp) GetToken() string { } type CheckUserExistReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User *RegisterUserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user"` unknownFields protoimpl.UnknownFields - - User *RegisterUserInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user"` + sizeCache protoimpl.SizeCache } func (x *CheckUserExistReq) Reset() { *x = CheckUserExistReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CheckUserExistReq) String() string { @@ -2605,7 +2487,7 @@ func (*CheckUserExistReq) ProtoMessage() {} func (x *CheckUserExistReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2628,21 +2510,18 @@ func (x *CheckUserExistReq) GetUser() *RegisterUserInfo { } type CheckUserExistResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Userid string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid"` + IsRegistered bool `protobuf:"varint,2,opt,name=isRegistered,proto3" json:"isRegistered"` unknownFields protoimpl.UnknownFields - - Userid string `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid"` - IsRegistered bool `protobuf:"varint,2,opt,name=isRegistered,proto3" json:"isRegistered"` + sizeCache protoimpl.SizeCache } func (x *CheckUserExistResp) Reset() { *x = CheckUserExistResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CheckUserExistResp) String() string { @@ -2653,7 +2532,7 @@ func (*CheckUserExistResp) ProtoMessage() {} func (x *CheckUserExistResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2683,20 +2562,17 @@ func (x *CheckUserExistResp) GetIsRegistered() bool { } type DelUserAccountReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` unknownFields protoimpl.UnknownFields - - UserIDs []string `protobuf:"bytes,1,rep,name=userIDs,proto3" json:"userIDs"` + sizeCache protoimpl.SizeCache } func (x *DelUserAccountReq) Reset() { *x = DelUserAccountReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelUserAccountReq) String() string { @@ -2707,7 +2583,7 @@ func (*DelUserAccountReq) ProtoMessage() {} func (x *DelUserAccountReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2730,18 +2606,16 @@ func (x *DelUserAccountReq) GetUserIDs() []string { } type DelUserAccountResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DelUserAccountResp) Reset() { *x = DelUserAccountResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DelUserAccountResp) String() string { @@ -2752,7 +2626,7 @@ func (*DelUserAccountResp) ProtoMessage() {} func (x *DelUserAccountResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2768,20 +2642,17 @@ func (*DelUserAccountResp) Descriptor() ([]byte, []int) { } type SetAllowRegisterReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AllowRegister bool `protobuf:"varint,1,opt,name=allowRegister,proto3" json:"allowRegister"` unknownFields protoimpl.UnknownFields - - AllowRegister bool `protobuf:"varint,1,opt,name=allowRegister,proto3" json:"allowRegister"` + sizeCache protoimpl.SizeCache } func (x *SetAllowRegisterReq) Reset() { *x = SetAllowRegisterReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetAllowRegisterReq) String() string { @@ -2792,7 +2663,7 @@ func (*SetAllowRegisterReq) ProtoMessage() {} func (x *SetAllowRegisterReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2815,18 +2686,16 @@ func (x *SetAllowRegisterReq) GetAllowRegister() bool { } type SetAllowRegisterResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SetAllowRegisterResp) Reset() { *x = SetAllowRegisterResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SetAllowRegisterResp) String() string { @@ -2837,7 +2706,7 @@ func (*SetAllowRegisterResp) ProtoMessage() {} func (x *SetAllowRegisterResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2853,18 +2722,16 @@ func (*SetAllowRegisterResp) Descriptor() ([]byte, []int) { } type GetAllowRegisterReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetAllowRegisterReq) Reset() { *x = GetAllowRegisterReq{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAllowRegisterReq) String() string { @@ -2875,7 +2742,7 @@ func (*GetAllowRegisterReq) ProtoMessage() {} func (x *GetAllowRegisterReq) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2891,20 +2758,17 @@ func (*GetAllowRegisterReq) Descriptor() ([]byte, []int) { } type GetAllowRegisterResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AllowRegister bool `protobuf:"varint,1,opt,name=allowRegister,proto3" json:"allowRegister"` unknownFields protoimpl.UnknownFields - - AllowRegister bool `protobuf:"varint,1,opt,name=allowRegister,proto3" json:"allowRegister"` + sizeCache protoimpl.SizeCache } func (x *GetAllowRegisterResp) Reset() { *x = GetAllowRegisterResp{} - if protoimpl.UnsafeEnabled { - mi := &file_chat_chat_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_chat_chat_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetAllowRegisterResp) String() string { @@ -2915,7 +2779,7 @@ func (*GetAllowRegisterResp) ProtoMessage() {} func (x *GetAllowRegisterResp) ProtoReflect() protoreflect.Message { mi := &file_chat_chat_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3453,7 +3317,7 @@ func file_chat_chat_proto_rawDescGZIP() []byte { } var file_chat_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 50) -var file_chat_chat_proto_goTypes = []interface{}{ +var file_chat_chat_proto_goTypes = []any{ (*UserIdentity)(nil), // 0: openim.chat.UserIdentity (*UpdateUserInfoReq)(nil), // 1: openim.chat.UpdateUserInfoReq (*UpdateUserInfoResp)(nil), // 2: openim.chat.UpdateUserInfoResp @@ -3597,572 +3461,6 @@ func file_chat_chat_proto_init() { if File_chat_chat_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_chat_chat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserIdentity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateUserInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateUserInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUserPublicInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUserPublicInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchUserPublicInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchUserPublicInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUserFullInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUserFullInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendVerifyCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendVerifyCodeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyCodeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegisterUserInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegisterUserReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RegisterUserResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddUserAccountReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddUserAccountResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoginReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetPasswordReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResetPasswordResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangePasswordReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangePasswordResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUserAccountReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUserAccountResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAccountUserReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAccountUserResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenIMCallbackReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenIMCallbackResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchUserFullInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchUserFullInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserLoginCountReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserLoginCountResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LoginResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchUserInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchUserInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokenForVideoMeetingReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTokenForVideoMeetingResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckUserExistReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckUserExistResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelUserAccountReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelUserAccountResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetAllowRegisterReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetAllowRegisterResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllowRegisterReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_chat_chat_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllowRegisterResp); 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{ @@ -4182,849 +3480,3 @@ func file_chat_chat_proto_init() { file_chat_chat_proto_goTypes = nil file_chat_chat_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 - -// ChatClient is the client API for Chat service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ChatClient interface { - // Edit personal information - called by the user or an administrator - UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error) - AddUserAccount(ctx context.Context, in *AddUserAccountReq, opts ...grpc.CallOption) (*AddUserAccountResp, error) - // Get user's public information - called by strangers - SearchUserPublicInfo(ctx context.Context, in *SearchUserPublicInfoReq, opts ...grpc.CallOption) (*SearchUserPublicInfoResp, error) - FindUserPublicInfo(ctx context.Context, in *FindUserPublicInfoReq, opts ...grpc.CallOption) (*FindUserPublicInfoResp, error) - // Search user information - called by administrators, other users get public fields - SearchUserFullInfo(ctx context.Context, in *SearchUserFullInfoReq, opts ...grpc.CallOption) (*SearchUserFullInfoResp, error) - FindUserFullInfo(ctx context.Context, in *FindUserFullInfoReq, opts ...grpc.CallOption) (*FindUserFullInfoResp, error) - SendVerifyCode(ctx context.Context, in *SendVerifyCodeReq, opts ...grpc.CallOption) (*SendVerifyCodeResp, error) - VerifyCode(ctx context.Context, in *VerifyCodeReq, opts ...grpc.CallOption) (*VerifyCodeResp, error) - RegisterUser(ctx context.Context, in *RegisterUserReq, opts ...grpc.CallOption) (*RegisterUserResp, error) - Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) - ResetPassword(ctx context.Context, in *ResetPasswordReq, opts ...grpc.CallOption) (*ResetPasswordResp, error) - ChangePassword(ctx context.Context, in *ChangePasswordReq, opts ...grpc.CallOption) (*ChangePasswordResp, error) - CheckUserExist(ctx context.Context, in *CheckUserExistReq, opts ...grpc.CallOption) (*CheckUserExistResp, error) - DelUserAccount(ctx context.Context, in *DelUserAccountReq, opts ...grpc.CallOption) (*DelUserAccountResp, error) - FindUserAccount(ctx context.Context, in *FindUserAccountReq, opts ...grpc.CallOption) (*FindUserAccountResp, error) - FindAccountUser(ctx context.Context, in *FindAccountUserReq, opts ...grpc.CallOption) (*FindAccountUserResp, error) - OpenIMCallback(ctx context.Context, in *OpenIMCallbackReq, opts ...grpc.CallOption) (*OpenIMCallbackResp, error) - // Statistics - UserLoginCount(ctx context.Context, in *UserLoginCountReq, opts ...grpc.CallOption) (*UserLoginCountResp, error) - SearchUserInfo(ctx context.Context, in *SearchUserInfoReq, opts ...grpc.CallOption) (*SearchUserInfoResp, error) - // Audio/video call and video meeting - GetTokenForVideoMeeting(ctx context.Context, in *GetTokenForVideoMeetingReq, opts ...grpc.CallOption) (*GetTokenForVideoMeetingResp, error) - SetAllowRegister(ctx context.Context, in *SetAllowRegisterReq, opts ...grpc.CallOption) (*SetAllowRegisterResp, error) - GetAllowRegister(ctx context.Context, in *GetAllowRegisterReq, opts ...grpc.CallOption) (*GetAllowRegisterResp, error) -} - -type chatClient struct { - cc grpc.ClientConnInterface -} - -func NewChatClient(cc grpc.ClientConnInterface) ChatClient { - return &chatClient{cc} -} - -func (c *chatClient) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error) { - out := new(UpdateUserInfoResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/UpdateUserInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) AddUserAccount(ctx context.Context, in *AddUserAccountReq, opts ...grpc.CallOption) (*AddUserAccountResp, error) { - out := new(AddUserAccountResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/AddUserAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) SearchUserPublicInfo(ctx context.Context, in *SearchUserPublicInfoReq, opts ...grpc.CallOption) (*SearchUserPublicInfoResp, error) { - out := new(SearchUserPublicInfoResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/SearchUserPublicInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) FindUserPublicInfo(ctx context.Context, in *FindUserPublicInfoReq, opts ...grpc.CallOption) (*FindUserPublicInfoResp, error) { - out := new(FindUserPublicInfoResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/FindUserPublicInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) SearchUserFullInfo(ctx context.Context, in *SearchUserFullInfoReq, opts ...grpc.CallOption) (*SearchUserFullInfoResp, error) { - out := new(SearchUserFullInfoResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/SearchUserFullInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) FindUserFullInfo(ctx context.Context, in *FindUserFullInfoReq, opts ...grpc.CallOption) (*FindUserFullInfoResp, error) { - out := new(FindUserFullInfoResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/FindUserFullInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) SendVerifyCode(ctx context.Context, in *SendVerifyCodeReq, opts ...grpc.CallOption) (*SendVerifyCodeResp, error) { - out := new(SendVerifyCodeResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/SendVerifyCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) VerifyCode(ctx context.Context, in *VerifyCodeReq, opts ...grpc.CallOption) (*VerifyCodeResp, error) { - out := new(VerifyCodeResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/VerifyCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) RegisterUser(ctx context.Context, in *RegisterUserReq, opts ...grpc.CallOption) (*RegisterUserResp, error) { - out := new(RegisterUserResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/RegisterUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) { - out := new(LoginResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/Login", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) ResetPassword(ctx context.Context, in *ResetPasswordReq, opts ...grpc.CallOption) (*ResetPasswordResp, error) { - out := new(ResetPasswordResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/ResetPassword", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) ChangePassword(ctx context.Context, in *ChangePasswordReq, opts ...grpc.CallOption) (*ChangePasswordResp, error) { - out := new(ChangePasswordResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/ChangePassword", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) CheckUserExist(ctx context.Context, in *CheckUserExistReq, opts ...grpc.CallOption) (*CheckUserExistResp, error) { - out := new(CheckUserExistResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/CheckUserExist", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) DelUserAccount(ctx context.Context, in *DelUserAccountReq, opts ...grpc.CallOption) (*DelUserAccountResp, error) { - out := new(DelUserAccountResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/DelUserAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) FindUserAccount(ctx context.Context, in *FindUserAccountReq, opts ...grpc.CallOption) (*FindUserAccountResp, error) { - out := new(FindUserAccountResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/FindUserAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) FindAccountUser(ctx context.Context, in *FindAccountUserReq, opts ...grpc.CallOption) (*FindAccountUserResp, error) { - out := new(FindAccountUserResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/FindAccountUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) OpenIMCallback(ctx context.Context, in *OpenIMCallbackReq, opts ...grpc.CallOption) (*OpenIMCallbackResp, error) { - out := new(OpenIMCallbackResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/OpenIMCallback", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) UserLoginCount(ctx context.Context, in *UserLoginCountReq, opts ...grpc.CallOption) (*UserLoginCountResp, error) { - out := new(UserLoginCountResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/UserLoginCount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) SearchUserInfo(ctx context.Context, in *SearchUserInfoReq, opts ...grpc.CallOption) (*SearchUserInfoResp, error) { - out := new(SearchUserInfoResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/SearchUserInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) GetTokenForVideoMeeting(ctx context.Context, in *GetTokenForVideoMeetingReq, opts ...grpc.CallOption) (*GetTokenForVideoMeetingResp, error) { - out := new(GetTokenForVideoMeetingResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/GetTokenForVideoMeeting", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) SetAllowRegister(ctx context.Context, in *SetAllowRegisterReq, opts ...grpc.CallOption) (*SetAllowRegisterResp, error) { - out := new(SetAllowRegisterResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/SetAllowRegister", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *chatClient) GetAllowRegister(ctx context.Context, in *GetAllowRegisterReq, opts ...grpc.CallOption) (*GetAllowRegisterResp, error) { - out := new(GetAllowRegisterResp) - err := c.cc.Invoke(ctx, "/openim.chat.chat/GetAllowRegister", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ChatServer is the server API for Chat service. -type ChatServer interface { - // Edit personal information - called by the user or an administrator - UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*UpdateUserInfoResp, error) - AddUserAccount(context.Context, *AddUserAccountReq) (*AddUserAccountResp, error) - // Get user's public information - called by strangers - SearchUserPublicInfo(context.Context, *SearchUserPublicInfoReq) (*SearchUserPublicInfoResp, error) - FindUserPublicInfo(context.Context, *FindUserPublicInfoReq) (*FindUserPublicInfoResp, error) - // Search user information - called by administrators, other users get public fields - SearchUserFullInfo(context.Context, *SearchUserFullInfoReq) (*SearchUserFullInfoResp, error) - FindUserFullInfo(context.Context, *FindUserFullInfoReq) (*FindUserFullInfoResp, error) - SendVerifyCode(context.Context, *SendVerifyCodeReq) (*SendVerifyCodeResp, error) - VerifyCode(context.Context, *VerifyCodeReq) (*VerifyCodeResp, error) - RegisterUser(context.Context, *RegisterUserReq) (*RegisterUserResp, error) - Login(context.Context, *LoginReq) (*LoginResp, error) - ResetPassword(context.Context, *ResetPasswordReq) (*ResetPasswordResp, error) - ChangePassword(context.Context, *ChangePasswordReq) (*ChangePasswordResp, error) - CheckUserExist(context.Context, *CheckUserExistReq) (*CheckUserExistResp, error) - DelUserAccount(context.Context, *DelUserAccountReq) (*DelUserAccountResp, error) - FindUserAccount(context.Context, *FindUserAccountReq) (*FindUserAccountResp, error) - FindAccountUser(context.Context, *FindAccountUserReq) (*FindAccountUserResp, error) - OpenIMCallback(context.Context, *OpenIMCallbackReq) (*OpenIMCallbackResp, error) - // Statistics - UserLoginCount(context.Context, *UserLoginCountReq) (*UserLoginCountResp, error) - SearchUserInfo(context.Context, *SearchUserInfoReq) (*SearchUserInfoResp, error) - // Audio/video call and video meeting - GetTokenForVideoMeeting(context.Context, *GetTokenForVideoMeetingReq) (*GetTokenForVideoMeetingResp, error) - SetAllowRegister(context.Context, *SetAllowRegisterReq) (*SetAllowRegisterResp, error) - GetAllowRegister(context.Context, *GetAllowRegisterReq) (*GetAllowRegisterResp, error) -} - -// UnimplementedChatServer can be embedded to have forward compatible implementations. -type UnimplementedChatServer struct { -} - -func (*UnimplementedChatServer) UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*UpdateUserInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInfo not implemented") -} -func (*UnimplementedChatServer) AddUserAccount(context.Context, *AddUserAccountReq) (*AddUserAccountResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddUserAccount not implemented") -} -func (*UnimplementedChatServer) SearchUserPublicInfo(context.Context, *SearchUserPublicInfoReq) (*SearchUserPublicInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchUserPublicInfo not implemented") -} -func (*UnimplementedChatServer) FindUserPublicInfo(context.Context, *FindUserPublicInfoReq) (*FindUserPublicInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindUserPublicInfo not implemented") -} -func (*UnimplementedChatServer) SearchUserFullInfo(context.Context, *SearchUserFullInfoReq) (*SearchUserFullInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchUserFullInfo not implemented") -} -func (*UnimplementedChatServer) FindUserFullInfo(context.Context, *FindUserFullInfoReq) (*FindUserFullInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindUserFullInfo not implemented") -} -func (*UnimplementedChatServer) SendVerifyCode(context.Context, *SendVerifyCodeReq) (*SendVerifyCodeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendVerifyCode not implemented") -} -func (*UnimplementedChatServer) VerifyCode(context.Context, *VerifyCodeReq) (*VerifyCodeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyCode not implemented") -} -func (*UnimplementedChatServer) RegisterUser(context.Context, *RegisterUserReq) (*RegisterUserResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterUser not implemented") -} -func (*UnimplementedChatServer) Login(context.Context, *LoginReq) (*LoginResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") -} -func (*UnimplementedChatServer) ResetPassword(context.Context, *ResetPasswordReq) (*ResetPasswordResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResetPassword not implemented") -} -func (*UnimplementedChatServer) ChangePassword(context.Context, *ChangePasswordReq) (*ChangePasswordResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented") -} -func (*UnimplementedChatServer) CheckUserExist(context.Context, *CheckUserExistReq) (*CheckUserExistResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method CheckUserExist not implemented") -} -func (*UnimplementedChatServer) DelUserAccount(context.Context, *DelUserAccountReq) (*DelUserAccountResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelUserAccount not implemented") -} -func (*UnimplementedChatServer) FindUserAccount(context.Context, *FindUserAccountReq) (*FindUserAccountResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindUserAccount not implemented") -} -func (*UnimplementedChatServer) FindAccountUser(context.Context, *FindAccountUserReq) (*FindAccountUserResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindAccountUser not implemented") -} -func (*UnimplementedChatServer) OpenIMCallback(context.Context, *OpenIMCallbackReq) (*OpenIMCallbackResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method OpenIMCallback not implemented") -} -func (*UnimplementedChatServer) UserLoginCount(context.Context, *UserLoginCountReq) (*UserLoginCountResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserLoginCount not implemented") -} -func (*UnimplementedChatServer) SearchUserInfo(context.Context, *SearchUserInfoReq) (*SearchUserInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchUserInfo not implemented") -} -func (*UnimplementedChatServer) GetTokenForVideoMeeting(context.Context, *GetTokenForVideoMeetingReq) (*GetTokenForVideoMeetingResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTokenForVideoMeeting not implemented") -} -func (*UnimplementedChatServer) SetAllowRegister(context.Context, *SetAllowRegisterReq) (*SetAllowRegisterResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetAllowRegister not implemented") -} -func (*UnimplementedChatServer) GetAllowRegister(context.Context, *GetAllowRegisterReq) (*GetAllowRegisterResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAllowRegister not implemented") -} - -func RegisterChatServer(s *grpc.Server, srv ChatServer) { - s.RegisterService(&_Chat_serviceDesc, srv) -} - -func _Chat_UpdateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).UpdateUserInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/UpdateUserInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).UpdateUserInfo(ctx, req.(*UpdateUserInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_AddUserAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddUserAccountReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).AddUserAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/AddUserAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).AddUserAccount(ctx, req.(*AddUserAccountReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_SearchUserPublicInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchUserPublicInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).SearchUserPublicInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/SearchUserPublicInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).SearchUserPublicInfo(ctx, req.(*SearchUserPublicInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_FindUserPublicInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindUserPublicInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).FindUserPublicInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/FindUserPublicInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).FindUserPublicInfo(ctx, req.(*FindUserPublicInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_SearchUserFullInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchUserFullInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).SearchUserFullInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/SearchUserFullInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).SearchUserFullInfo(ctx, req.(*SearchUserFullInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_FindUserFullInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindUserFullInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).FindUserFullInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/FindUserFullInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).FindUserFullInfo(ctx, req.(*FindUserFullInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_SendVerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendVerifyCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).SendVerifyCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/SendVerifyCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).SendVerifyCode(ctx, req.(*SendVerifyCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_VerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).VerifyCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/VerifyCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).VerifyCode(ctx, req.(*VerifyCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_RegisterUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RegisterUserReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).RegisterUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/RegisterUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).RegisterUser(ctx, req.(*RegisterUserReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoginReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).Login(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/Login", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).Login(ctx, req.(*LoginReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResetPasswordReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).ResetPassword(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/ResetPassword", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).ResetPassword(ctx, req.(*ResetPasswordReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangePasswordReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).ChangePassword(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/ChangePassword", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).ChangePassword(ctx, req.(*ChangePasswordReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_CheckUserExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CheckUserExistReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).CheckUserExist(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/CheckUserExist", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).CheckUserExist(ctx, req.(*CheckUserExistReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_DelUserAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DelUserAccountReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).DelUserAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/DelUserAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).DelUserAccount(ctx, req.(*DelUserAccountReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_FindUserAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindUserAccountReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).FindUserAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/FindUserAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).FindUserAccount(ctx, req.(*FindUserAccountReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_FindAccountUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindAccountUserReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).FindAccountUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/FindAccountUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).FindAccountUser(ctx, req.(*FindAccountUserReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_OpenIMCallback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OpenIMCallbackReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).OpenIMCallback(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/OpenIMCallback", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).OpenIMCallback(ctx, req.(*OpenIMCallbackReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_UserLoginCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserLoginCountReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).UserLoginCount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/UserLoginCount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).UserLoginCount(ctx, req.(*UserLoginCountReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_SearchUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchUserInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).SearchUserInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/SearchUserInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).SearchUserInfo(ctx, req.(*SearchUserInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_GetTokenForVideoMeeting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetTokenForVideoMeetingReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).GetTokenForVideoMeeting(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/GetTokenForVideoMeeting", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).GetTokenForVideoMeeting(ctx, req.(*GetTokenForVideoMeetingReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_SetAllowRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetAllowRegisterReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).SetAllowRegister(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/SetAllowRegister", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).SetAllowRegister(ctx, req.(*SetAllowRegisterReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Chat_GetAllowRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAllowRegisterReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ChatServer).GetAllowRegister(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/openim.chat.chat/GetAllowRegister", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ChatServer).GetAllowRegister(ctx, req.(*GetAllowRegisterReq)) - } - return interceptor(ctx, in, info, handler) -} - -var _Chat_serviceDesc = grpc.ServiceDesc{ - ServiceName: "openim.chat.chat", - HandlerType: (*ChatServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UpdateUserInfo", - Handler: _Chat_UpdateUserInfo_Handler, - }, - { - MethodName: "AddUserAccount", - Handler: _Chat_AddUserAccount_Handler, - }, - { - MethodName: "SearchUserPublicInfo", - Handler: _Chat_SearchUserPublicInfo_Handler, - }, - { - MethodName: "FindUserPublicInfo", - Handler: _Chat_FindUserPublicInfo_Handler, - }, - { - MethodName: "SearchUserFullInfo", - Handler: _Chat_SearchUserFullInfo_Handler, - }, - { - MethodName: "FindUserFullInfo", - Handler: _Chat_FindUserFullInfo_Handler, - }, - { - MethodName: "SendVerifyCode", - Handler: _Chat_SendVerifyCode_Handler, - }, - { - MethodName: "VerifyCode", - Handler: _Chat_VerifyCode_Handler, - }, - { - MethodName: "RegisterUser", - Handler: _Chat_RegisterUser_Handler, - }, - { - MethodName: "Login", - Handler: _Chat_Login_Handler, - }, - { - MethodName: "ResetPassword", - Handler: _Chat_ResetPassword_Handler, - }, - { - MethodName: "ChangePassword", - Handler: _Chat_ChangePassword_Handler, - }, - { - MethodName: "CheckUserExist", - Handler: _Chat_CheckUserExist_Handler, - }, - { - MethodName: "DelUserAccount", - Handler: _Chat_DelUserAccount_Handler, - }, - { - MethodName: "FindUserAccount", - Handler: _Chat_FindUserAccount_Handler, - }, - { - MethodName: "FindAccountUser", - Handler: _Chat_FindAccountUser_Handler, - }, - { - MethodName: "OpenIMCallback", - Handler: _Chat_OpenIMCallback_Handler, - }, - { - MethodName: "UserLoginCount", - Handler: _Chat_UserLoginCount_Handler, - }, - { - MethodName: "SearchUserInfo", - Handler: _Chat_SearchUserInfo_Handler, - }, - { - MethodName: "GetTokenForVideoMeeting", - Handler: _Chat_GetTokenForVideoMeeting_Handler, - }, - { - MethodName: "SetAllowRegister", - Handler: _Chat_SetAllowRegister_Handler, - }, - { - MethodName: "GetAllowRegister", - Handler: _Chat_GetAllowRegister_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "chat/chat.proto", -} diff --git a/pkg/protocol/chat/chat_grpc.pb.go b/pkg/protocol/chat/chat_grpc.pb.go new file mode 100644 index 00000000..41ee34b0 --- /dev/null +++ b/pkg/protocol/chat/chat_grpc.pb.go @@ -0,0 +1,943 @@ +// Copyright © 2023 OpenIM open source community. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.0 +// source: chat/chat.proto + +package chat + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Chat_UpdateUserInfo_FullMethodName = "/openim.chat.chat/UpdateUserInfo" + Chat_AddUserAccount_FullMethodName = "/openim.chat.chat/AddUserAccount" + Chat_SearchUserPublicInfo_FullMethodName = "/openim.chat.chat/SearchUserPublicInfo" + Chat_FindUserPublicInfo_FullMethodName = "/openim.chat.chat/FindUserPublicInfo" + Chat_SearchUserFullInfo_FullMethodName = "/openim.chat.chat/SearchUserFullInfo" + Chat_FindUserFullInfo_FullMethodName = "/openim.chat.chat/FindUserFullInfo" + Chat_SendVerifyCode_FullMethodName = "/openim.chat.chat/SendVerifyCode" + Chat_VerifyCode_FullMethodName = "/openim.chat.chat/VerifyCode" + Chat_RegisterUser_FullMethodName = "/openim.chat.chat/RegisterUser" + Chat_Login_FullMethodName = "/openim.chat.chat/Login" + Chat_ResetPassword_FullMethodName = "/openim.chat.chat/ResetPassword" + Chat_ChangePassword_FullMethodName = "/openim.chat.chat/ChangePassword" + Chat_CheckUserExist_FullMethodName = "/openim.chat.chat/CheckUserExist" + Chat_DelUserAccount_FullMethodName = "/openim.chat.chat/DelUserAccount" + Chat_FindUserAccount_FullMethodName = "/openim.chat.chat/FindUserAccount" + Chat_FindAccountUser_FullMethodName = "/openim.chat.chat/FindAccountUser" + Chat_OpenIMCallback_FullMethodName = "/openim.chat.chat/OpenIMCallback" + Chat_UserLoginCount_FullMethodName = "/openim.chat.chat/UserLoginCount" + Chat_SearchUserInfo_FullMethodName = "/openim.chat.chat/SearchUserInfo" + Chat_GetTokenForVideoMeeting_FullMethodName = "/openim.chat.chat/GetTokenForVideoMeeting" + Chat_SetAllowRegister_FullMethodName = "/openim.chat.chat/SetAllowRegister" + Chat_GetAllowRegister_FullMethodName = "/openim.chat.chat/GetAllowRegister" +) + +// ChatClient is the client API for Chat service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ChatClient interface { + // Edit personal information - called by the user or an administrator + UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error) + AddUserAccount(ctx context.Context, in *AddUserAccountReq, opts ...grpc.CallOption) (*AddUserAccountResp, error) + // Get user's public information - called by strangers + SearchUserPublicInfo(ctx context.Context, in *SearchUserPublicInfoReq, opts ...grpc.CallOption) (*SearchUserPublicInfoResp, error) + FindUserPublicInfo(ctx context.Context, in *FindUserPublicInfoReq, opts ...grpc.CallOption) (*FindUserPublicInfoResp, error) + // Search user information - called by administrators, other users get public fields + SearchUserFullInfo(ctx context.Context, in *SearchUserFullInfoReq, opts ...grpc.CallOption) (*SearchUserFullInfoResp, error) + FindUserFullInfo(ctx context.Context, in *FindUserFullInfoReq, opts ...grpc.CallOption) (*FindUserFullInfoResp, error) + SendVerifyCode(ctx context.Context, in *SendVerifyCodeReq, opts ...grpc.CallOption) (*SendVerifyCodeResp, error) + VerifyCode(ctx context.Context, in *VerifyCodeReq, opts ...grpc.CallOption) (*VerifyCodeResp, error) + RegisterUser(ctx context.Context, in *RegisterUserReq, opts ...grpc.CallOption) (*RegisterUserResp, error) + Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) + ResetPassword(ctx context.Context, in *ResetPasswordReq, opts ...grpc.CallOption) (*ResetPasswordResp, error) + ChangePassword(ctx context.Context, in *ChangePasswordReq, opts ...grpc.CallOption) (*ChangePasswordResp, error) + CheckUserExist(ctx context.Context, in *CheckUserExistReq, opts ...grpc.CallOption) (*CheckUserExistResp, error) + DelUserAccount(ctx context.Context, in *DelUserAccountReq, opts ...grpc.CallOption) (*DelUserAccountResp, error) + FindUserAccount(ctx context.Context, in *FindUserAccountReq, opts ...grpc.CallOption) (*FindUserAccountResp, error) + FindAccountUser(ctx context.Context, in *FindAccountUserReq, opts ...grpc.CallOption) (*FindAccountUserResp, error) + OpenIMCallback(ctx context.Context, in *OpenIMCallbackReq, opts ...grpc.CallOption) (*OpenIMCallbackResp, error) + // Statistics + UserLoginCount(ctx context.Context, in *UserLoginCountReq, opts ...grpc.CallOption) (*UserLoginCountResp, error) + SearchUserInfo(ctx context.Context, in *SearchUserInfoReq, opts ...grpc.CallOption) (*SearchUserInfoResp, error) + // Audio/video call and video meeting + GetTokenForVideoMeeting(ctx context.Context, in *GetTokenForVideoMeetingReq, opts ...grpc.CallOption) (*GetTokenForVideoMeetingResp, error) + SetAllowRegister(ctx context.Context, in *SetAllowRegisterReq, opts ...grpc.CallOption) (*SetAllowRegisterResp, error) + GetAllowRegister(ctx context.Context, in *GetAllowRegisterReq, opts ...grpc.CallOption) (*GetAllowRegisterResp, error) +} + +type chatClient struct { + cc grpc.ClientConnInterface +} + +func NewChatClient(cc grpc.ClientConnInterface) ChatClient { + return &chatClient{cc} +} + +func (c *chatClient) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UpdateUserInfoResp) + err := c.cc.Invoke(ctx, Chat_UpdateUserInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) AddUserAccount(ctx context.Context, in *AddUserAccountReq, opts ...grpc.CallOption) (*AddUserAccountResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(AddUserAccountResp) + err := c.cc.Invoke(ctx, Chat_AddUserAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) SearchUserPublicInfo(ctx context.Context, in *SearchUserPublicInfoReq, opts ...grpc.CallOption) (*SearchUserPublicInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchUserPublicInfoResp) + err := c.cc.Invoke(ctx, Chat_SearchUserPublicInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) FindUserPublicInfo(ctx context.Context, in *FindUserPublicInfoReq, opts ...grpc.CallOption) (*FindUserPublicInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(FindUserPublicInfoResp) + err := c.cc.Invoke(ctx, Chat_FindUserPublicInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) SearchUserFullInfo(ctx context.Context, in *SearchUserFullInfoReq, opts ...grpc.CallOption) (*SearchUserFullInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchUserFullInfoResp) + err := c.cc.Invoke(ctx, Chat_SearchUserFullInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) FindUserFullInfo(ctx context.Context, in *FindUserFullInfoReq, opts ...grpc.CallOption) (*FindUserFullInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(FindUserFullInfoResp) + err := c.cc.Invoke(ctx, Chat_FindUserFullInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) SendVerifyCode(ctx context.Context, in *SendVerifyCodeReq, opts ...grpc.CallOption) (*SendVerifyCodeResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SendVerifyCodeResp) + err := c.cc.Invoke(ctx, Chat_SendVerifyCode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) VerifyCode(ctx context.Context, in *VerifyCodeReq, opts ...grpc.CallOption) (*VerifyCodeResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(VerifyCodeResp) + err := c.cc.Invoke(ctx, Chat_VerifyCode_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) RegisterUser(ctx context.Context, in *RegisterUserReq, opts ...grpc.CallOption) (*RegisterUserResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(RegisterUserResp) + err := c.cc.Invoke(ctx, Chat_RegisterUser_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(LoginResp) + err := c.cc.Invoke(ctx, Chat_Login_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) ResetPassword(ctx context.Context, in *ResetPasswordReq, opts ...grpc.CallOption) (*ResetPasswordResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ResetPasswordResp) + err := c.cc.Invoke(ctx, Chat_ResetPassword_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) ChangePassword(ctx context.Context, in *ChangePasswordReq, opts ...grpc.CallOption) (*ChangePasswordResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ChangePasswordResp) + err := c.cc.Invoke(ctx, Chat_ChangePassword_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) CheckUserExist(ctx context.Context, in *CheckUserExistReq, opts ...grpc.CallOption) (*CheckUserExistResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(CheckUserExistResp) + err := c.cc.Invoke(ctx, Chat_CheckUserExist_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) DelUserAccount(ctx context.Context, in *DelUserAccountReq, opts ...grpc.CallOption) (*DelUserAccountResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(DelUserAccountResp) + err := c.cc.Invoke(ctx, Chat_DelUserAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) FindUserAccount(ctx context.Context, in *FindUserAccountReq, opts ...grpc.CallOption) (*FindUserAccountResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(FindUserAccountResp) + err := c.cc.Invoke(ctx, Chat_FindUserAccount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) FindAccountUser(ctx context.Context, in *FindAccountUserReq, opts ...grpc.CallOption) (*FindAccountUserResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(FindAccountUserResp) + err := c.cc.Invoke(ctx, Chat_FindAccountUser_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) OpenIMCallback(ctx context.Context, in *OpenIMCallbackReq, opts ...grpc.CallOption) (*OpenIMCallbackResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OpenIMCallbackResp) + err := c.cc.Invoke(ctx, Chat_OpenIMCallback_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) UserLoginCount(ctx context.Context, in *UserLoginCountReq, opts ...grpc.CallOption) (*UserLoginCountResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(UserLoginCountResp) + err := c.cc.Invoke(ctx, Chat_UserLoginCount_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) SearchUserInfo(ctx context.Context, in *SearchUserInfoReq, opts ...grpc.CallOption) (*SearchUserInfoResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SearchUserInfoResp) + err := c.cc.Invoke(ctx, Chat_SearchUserInfo_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) GetTokenForVideoMeeting(ctx context.Context, in *GetTokenForVideoMeetingReq, opts ...grpc.CallOption) (*GetTokenForVideoMeetingResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetTokenForVideoMeetingResp) + err := c.cc.Invoke(ctx, Chat_GetTokenForVideoMeeting_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) SetAllowRegister(ctx context.Context, in *SetAllowRegisterReq, opts ...grpc.CallOption) (*SetAllowRegisterResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(SetAllowRegisterResp) + err := c.cc.Invoke(ctx, Chat_SetAllowRegister_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *chatClient) GetAllowRegister(ctx context.Context, in *GetAllowRegisterReq, opts ...grpc.CallOption) (*GetAllowRegisterResp, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(GetAllowRegisterResp) + err := c.cc.Invoke(ctx, Chat_GetAllowRegister_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ChatServer is the server API for Chat service. +// All implementations must embed UnimplementedChatServer +// for forward compatibility. +type ChatServer interface { + // Edit personal information - called by the user or an administrator + UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*UpdateUserInfoResp, error) + AddUserAccount(context.Context, *AddUserAccountReq) (*AddUserAccountResp, error) + // Get user's public information - called by strangers + SearchUserPublicInfo(context.Context, *SearchUserPublicInfoReq) (*SearchUserPublicInfoResp, error) + FindUserPublicInfo(context.Context, *FindUserPublicInfoReq) (*FindUserPublicInfoResp, error) + // Search user information - called by administrators, other users get public fields + SearchUserFullInfo(context.Context, *SearchUserFullInfoReq) (*SearchUserFullInfoResp, error) + FindUserFullInfo(context.Context, *FindUserFullInfoReq) (*FindUserFullInfoResp, error) + SendVerifyCode(context.Context, *SendVerifyCodeReq) (*SendVerifyCodeResp, error) + VerifyCode(context.Context, *VerifyCodeReq) (*VerifyCodeResp, error) + RegisterUser(context.Context, *RegisterUserReq) (*RegisterUserResp, error) + Login(context.Context, *LoginReq) (*LoginResp, error) + ResetPassword(context.Context, *ResetPasswordReq) (*ResetPasswordResp, error) + ChangePassword(context.Context, *ChangePasswordReq) (*ChangePasswordResp, error) + CheckUserExist(context.Context, *CheckUserExistReq) (*CheckUserExistResp, error) + DelUserAccount(context.Context, *DelUserAccountReq) (*DelUserAccountResp, error) + FindUserAccount(context.Context, *FindUserAccountReq) (*FindUserAccountResp, error) + FindAccountUser(context.Context, *FindAccountUserReq) (*FindAccountUserResp, error) + OpenIMCallback(context.Context, *OpenIMCallbackReq) (*OpenIMCallbackResp, error) + // Statistics + UserLoginCount(context.Context, *UserLoginCountReq) (*UserLoginCountResp, error) + SearchUserInfo(context.Context, *SearchUserInfoReq) (*SearchUserInfoResp, error) + // Audio/video call and video meeting + GetTokenForVideoMeeting(context.Context, *GetTokenForVideoMeetingReq) (*GetTokenForVideoMeetingResp, error) + SetAllowRegister(context.Context, *SetAllowRegisterReq) (*SetAllowRegisterResp, error) + GetAllowRegister(context.Context, *GetAllowRegisterReq) (*GetAllowRegisterResp, error) + mustEmbedUnimplementedChatServer() +} + +// UnimplementedChatServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedChatServer struct{} + +func (UnimplementedChatServer) UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*UpdateUserInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInfo not implemented") +} +func (UnimplementedChatServer) AddUserAccount(context.Context, *AddUserAccountReq) (*AddUserAccountResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddUserAccount not implemented") +} +func (UnimplementedChatServer) SearchUserPublicInfo(context.Context, *SearchUserPublicInfoReq) (*SearchUserPublicInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchUserPublicInfo not implemented") +} +func (UnimplementedChatServer) FindUserPublicInfo(context.Context, *FindUserPublicInfoReq) (*FindUserPublicInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindUserPublicInfo not implemented") +} +func (UnimplementedChatServer) SearchUserFullInfo(context.Context, *SearchUserFullInfoReq) (*SearchUserFullInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchUserFullInfo not implemented") +} +func (UnimplementedChatServer) FindUserFullInfo(context.Context, *FindUserFullInfoReq) (*FindUserFullInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindUserFullInfo not implemented") +} +func (UnimplementedChatServer) SendVerifyCode(context.Context, *SendVerifyCodeReq) (*SendVerifyCodeResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SendVerifyCode not implemented") +} +func (UnimplementedChatServer) VerifyCode(context.Context, *VerifyCodeReq) (*VerifyCodeResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method VerifyCode not implemented") +} +func (UnimplementedChatServer) RegisterUser(context.Context, *RegisterUserReq) (*RegisterUserResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterUser not implemented") +} +func (UnimplementedChatServer) Login(context.Context, *LoginReq) (*LoginResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") +} +func (UnimplementedChatServer) ResetPassword(context.Context, *ResetPasswordReq) (*ResetPasswordResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method ResetPassword not implemented") +} +func (UnimplementedChatServer) ChangePassword(context.Context, *ChangePasswordReq) (*ChangePasswordResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented") +} +func (UnimplementedChatServer) CheckUserExist(context.Context, *CheckUserExistReq) (*CheckUserExistResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckUserExist not implemented") +} +func (UnimplementedChatServer) DelUserAccount(context.Context, *DelUserAccountReq) (*DelUserAccountResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelUserAccount not implemented") +} +func (UnimplementedChatServer) FindUserAccount(context.Context, *FindUserAccountReq) (*FindUserAccountResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindUserAccount not implemented") +} +func (UnimplementedChatServer) FindAccountUser(context.Context, *FindAccountUserReq) (*FindAccountUserResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAccountUser not implemented") +} +func (UnimplementedChatServer) OpenIMCallback(context.Context, *OpenIMCallbackReq) (*OpenIMCallbackResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenIMCallback not implemented") +} +func (UnimplementedChatServer) UserLoginCount(context.Context, *UserLoginCountReq) (*UserLoginCountResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserLoginCount not implemented") +} +func (UnimplementedChatServer) SearchUserInfo(context.Context, *SearchUserInfoReq) (*SearchUserInfoResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchUserInfo not implemented") +} +func (UnimplementedChatServer) GetTokenForVideoMeeting(context.Context, *GetTokenForVideoMeetingReq) (*GetTokenForVideoMeetingResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTokenForVideoMeeting not implemented") +} +func (UnimplementedChatServer) SetAllowRegister(context.Context, *SetAllowRegisterReq) (*SetAllowRegisterResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetAllowRegister not implemented") +} +func (UnimplementedChatServer) GetAllowRegister(context.Context, *GetAllowRegisterReq) (*GetAllowRegisterResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAllowRegister not implemented") +} +func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {} +func (UnimplementedChatServer) testEmbeddedByValue() {} + +// UnsafeChatServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ChatServer will +// result in compilation errors. +type UnsafeChatServer interface { + mustEmbedUnimplementedChatServer() +} + +func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer) { + // If the following call pancis, it indicates UnimplementedChatServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Chat_ServiceDesc, srv) +} + +func _Chat_UpdateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).UpdateUserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_UpdateUserInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).UpdateUserInfo(ctx, req.(*UpdateUserInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_AddUserAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddUserAccountReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).AddUserAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_AddUserAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).AddUserAccount(ctx, req.(*AddUserAccountReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_SearchUserPublicInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchUserPublicInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).SearchUserPublicInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_SearchUserPublicInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).SearchUserPublicInfo(ctx, req.(*SearchUserPublicInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_FindUserPublicInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindUserPublicInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).FindUserPublicInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_FindUserPublicInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).FindUserPublicInfo(ctx, req.(*FindUserPublicInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_SearchUserFullInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchUserFullInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).SearchUserFullInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_SearchUserFullInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).SearchUserFullInfo(ctx, req.(*SearchUserFullInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_FindUserFullInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindUserFullInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).FindUserFullInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_FindUserFullInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).FindUserFullInfo(ctx, req.(*FindUserFullInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_SendVerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SendVerifyCodeReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).SendVerifyCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_SendVerifyCode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).SendVerifyCode(ctx, req.(*SendVerifyCodeReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_VerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(VerifyCodeReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).VerifyCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_VerifyCode_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).VerifyCode(ctx, req.(*VerifyCodeReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_RegisterUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RegisterUserReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).RegisterUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_RegisterUser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).RegisterUser(ctx, req.(*RegisterUserReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(LoginReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).Login(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_Login_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).Login(ctx, req.(*LoginReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetPasswordReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).ResetPassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_ResetPassword_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).ResetPassword(ctx, req.(*ResetPasswordReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ChangePasswordReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).ChangePassword(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_ChangePassword_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).ChangePassword(ctx, req.(*ChangePasswordReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_CheckUserExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CheckUserExistReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).CheckUserExist(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_CheckUserExist_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).CheckUserExist(ctx, req.(*CheckUserExistReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_DelUserAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DelUserAccountReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).DelUserAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_DelUserAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).DelUserAccount(ctx, req.(*DelUserAccountReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_FindUserAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindUserAccountReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).FindUserAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_FindUserAccount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).FindUserAccount(ctx, req.(*FindUserAccountReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_FindAccountUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAccountUserReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).FindAccountUser(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_FindAccountUser_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).FindAccountUser(ctx, req.(*FindAccountUserReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_OpenIMCallback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OpenIMCallbackReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).OpenIMCallback(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_OpenIMCallback_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).OpenIMCallback(ctx, req.(*OpenIMCallbackReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_UserLoginCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserLoginCountReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).UserLoginCount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_UserLoginCount_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).UserLoginCount(ctx, req.(*UserLoginCountReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_SearchUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchUserInfoReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).SearchUserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_SearchUserInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).SearchUserInfo(ctx, req.(*SearchUserInfoReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_GetTokenForVideoMeeting_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetTokenForVideoMeetingReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).GetTokenForVideoMeeting(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_GetTokenForVideoMeeting_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).GetTokenForVideoMeeting(ctx, req.(*GetTokenForVideoMeetingReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_SetAllowRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetAllowRegisterReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).SetAllowRegister(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_SetAllowRegister_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).SetAllowRegister(ctx, req.(*SetAllowRegisterReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Chat_GetAllowRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAllowRegisterReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ChatServer).GetAllowRegister(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Chat_GetAllowRegister_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ChatServer).GetAllowRegister(ctx, req.(*GetAllowRegisterReq)) + } + return interceptor(ctx, in, info, handler) +} + +// Chat_ServiceDesc is the grpc.ServiceDesc for Chat service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Chat_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "openim.chat.chat", + HandlerType: (*ChatServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateUserInfo", + Handler: _Chat_UpdateUserInfo_Handler, + }, + { + MethodName: "AddUserAccount", + Handler: _Chat_AddUserAccount_Handler, + }, + { + MethodName: "SearchUserPublicInfo", + Handler: _Chat_SearchUserPublicInfo_Handler, + }, + { + MethodName: "FindUserPublicInfo", + Handler: _Chat_FindUserPublicInfo_Handler, + }, + { + MethodName: "SearchUserFullInfo", + Handler: _Chat_SearchUserFullInfo_Handler, + }, + { + MethodName: "FindUserFullInfo", + Handler: _Chat_FindUserFullInfo_Handler, + }, + { + MethodName: "SendVerifyCode", + Handler: _Chat_SendVerifyCode_Handler, + }, + { + MethodName: "VerifyCode", + Handler: _Chat_VerifyCode_Handler, + }, + { + MethodName: "RegisterUser", + Handler: _Chat_RegisterUser_Handler, + }, + { + MethodName: "Login", + Handler: _Chat_Login_Handler, + }, + { + MethodName: "ResetPassword", + Handler: _Chat_ResetPassword_Handler, + }, + { + MethodName: "ChangePassword", + Handler: _Chat_ChangePassword_Handler, + }, + { + MethodName: "CheckUserExist", + Handler: _Chat_CheckUserExist_Handler, + }, + { + MethodName: "DelUserAccount", + Handler: _Chat_DelUserAccount_Handler, + }, + { + MethodName: "FindUserAccount", + Handler: _Chat_FindUserAccount_Handler, + }, + { + MethodName: "FindAccountUser", + Handler: _Chat_FindAccountUser_Handler, + }, + { + MethodName: "OpenIMCallback", + Handler: _Chat_OpenIMCallback_Handler, + }, + { + MethodName: "UserLoginCount", + Handler: _Chat_UserLoginCount_Handler, + }, + { + MethodName: "SearchUserInfo", + Handler: _Chat_SearchUserInfo_Handler, + }, + { + MethodName: "GetTokenForVideoMeeting", + Handler: _Chat_GetTokenForVideoMeeting_Handler, + }, + { + MethodName: "SetAllowRegister", + Handler: _Chat_SetAllowRegister_Handler, + }, + { + MethodName: "GetAllowRegister", + Handler: _Chat_GetAllowRegister_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "chat/chat.proto", +} diff --git a/pkg/protocol/common/common.pb.go b/pkg/protocol/common/common.pb.go index 25049808..d158f68e 100644 --- a/pkg/protocol/common/common.pb.go +++ b/pkg/protocol/common/common.pb.go @@ -1,21 +1,7 @@ -// Copyright © 2023 OpenIM open source community. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.26.0 +// protoc-gen-go v1.36.1 +// protoc v5.29.0 // source: common/common.proto package common @@ -35,35 +21,32 @@ const ( ) type UserFullInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password"` - Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account"` - PhoneNumber string `protobuf:"bytes,4,opt,name=phoneNumber,proto3" json:"phoneNumber"` - AreaCode string `protobuf:"bytes,5,opt,name=areaCode,proto3" json:"areaCode"` - Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email"` - Nickname string `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname"` - FaceURL string `protobuf:"bytes,8,opt,name=faceURL,proto3" json:"faceURL"` - Gender int32 `protobuf:"varint,9,opt,name=gender,proto3" json:"gender"` - Level int32 `protobuf:"varint,10,opt,name=level,proto3" json:"level"` - Birth int64 `protobuf:"varint,11,opt,name=birth,proto3" json:"birth"` - AllowAddFriend int32 `protobuf:"varint,12,opt,name=allowAddFriend,proto3" json:"allowAddFriend"` - AllowBeep int32 `protobuf:"varint,13,opt,name=allowBeep,proto3" json:"allowBeep"` - AllowVibration int32 `protobuf:"varint,14,opt,name=allowVibration,proto3" json:"allowVibration"` - GlobalRecvMsgOpt int32 `protobuf:"varint,15,opt,name=globalRecvMsgOpt,proto3" json:"globalRecvMsgOpt"` - RegisterType int32 `protobuf:"varint,16,opt,name=registerType,proto3" json:"registerType"` + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password"` + Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account"` + PhoneNumber string `protobuf:"bytes,4,opt,name=phoneNumber,proto3" json:"phoneNumber"` + AreaCode string `protobuf:"bytes,5,opt,name=areaCode,proto3" json:"areaCode"` + Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email"` + Nickname string `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname"` + FaceURL string `protobuf:"bytes,8,opt,name=faceURL,proto3" json:"faceURL"` + Gender int32 `protobuf:"varint,9,opt,name=gender,proto3" json:"gender"` + Level int32 `protobuf:"varint,10,opt,name=level,proto3" json:"level"` + Birth int64 `protobuf:"varint,11,opt,name=birth,proto3" json:"birth"` + AllowAddFriend int32 `protobuf:"varint,12,opt,name=allowAddFriend,proto3" json:"allowAddFriend"` + AllowBeep int32 `protobuf:"varint,13,opt,name=allowBeep,proto3" json:"allowBeep"` + AllowVibration int32 `protobuf:"varint,14,opt,name=allowVibration,proto3" json:"allowVibration"` + GlobalRecvMsgOpt int32 `protobuf:"varint,15,opt,name=globalRecvMsgOpt,proto3" json:"globalRecvMsgOpt"` + RegisterType int32 `protobuf:"varint,16,opt,name=registerType,proto3" json:"registerType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UserFullInfo) Reset() { *x = UserFullInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_common_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_common_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserFullInfo) String() string { @@ -74,7 +57,7 @@ func (*UserFullInfo) ProtoMessage() {} func (x *UserFullInfo) ProtoReflect() protoreflect.Message { mi := &file_common_common_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -202,26 +185,23 @@ func (x *UserFullInfo) GetRegisterType() int32 { } type UserPublicInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email"` + Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname"` + FaceURL string `protobuf:"bytes,5,opt,name=faceURL,proto3" json:"faceURL"` + Gender int32 `protobuf:"varint,6,opt,name=gender,proto3" json:"gender"` + Level int32 `protobuf:"varint,7,opt,name=level,proto3" json:"level"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account"` - Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email"` - Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname"` - FaceURL string `protobuf:"bytes,5,opt,name=faceURL,proto3" json:"faceURL"` - Gender int32 `protobuf:"varint,6,opt,name=gender,proto3" json:"gender"` - Level int32 `protobuf:"varint,7,opt,name=level,proto3" json:"level"` + sizeCache protoimpl.SizeCache } func (x *UserPublicInfo) Reset() { *x = UserPublicInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_common_common_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_common_common_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserPublicInfo) String() string { @@ -232,7 +212,7 @@ func (*UserPublicInfo) ProtoMessage() {} func (x *UserPublicInfo) ProtoReflect() protoreflect.Message { mi := &file_common_common_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -297,25 +277,22 @@ func (x *UserPublicInfo) GetLevel() int32 { } type UserIdentity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email"` + AreaCode string `protobuf:"bytes,2,opt,name=areaCode,proto3" json:"areaCode"` + PhoneNumber string `protobuf:"bytes,3,opt,name=phoneNumber,proto3" json:"phoneNumber"` + DeviceID string `protobuf:"bytes,4,opt,name=deviceID,proto3" json:"deviceID"` + Platform int32 `protobuf:"varint,5,opt,name=platform,proto3" json:"platform"` + Account string `protobuf:"bytes,6,opt,name=account,proto3" json:"account"` unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email"` - AreaCode string `protobuf:"bytes,2,opt,name=areaCode,proto3" json:"areaCode"` - PhoneNumber string `protobuf:"bytes,3,opt,name=phoneNumber,proto3" json:"phoneNumber"` - DeviceID string `protobuf:"bytes,4,opt,name=deviceID,proto3" json:"deviceID"` - Platform int32 `protobuf:"varint,5,opt,name=platform,proto3" json:"platform"` - Account string `protobuf:"bytes,6,opt,name=account,proto3" json:"account"` + sizeCache protoimpl.SizeCache } func (x *UserIdentity) Reset() { *x = UserIdentity{} - if protoimpl.UnsafeEnabled { - mi := &file_common_common_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_common_common_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserIdentity) String() string { @@ -326,7 +303,7 @@ func (*UserIdentity) ProtoMessage() {} func (x *UserIdentity) ProtoReflect() protoreflect.Message { mi := &file_common_common_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -384,30 +361,27 @@ func (x *UserIdentity) GetAccount() string { } type AppletInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` + AppID string `protobuf:"bytes,3,opt,name=appID,proto3" json:"appID"` + Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon"` + Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url"` + Md5 string `protobuf:"bytes,6,opt,name=md5,proto3" json:"md5"` + Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size"` + Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version"` + Priority uint32 `protobuf:"varint,9,opt,name=priority,proto3" json:"priority"` + Status uint32 `protobuf:"varint,10,opt,name=status,proto3" json:"status"` + CreateTime int64 `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` - AppID string `protobuf:"bytes,3,opt,name=appID,proto3" json:"appID"` - Icon string `protobuf:"bytes,4,opt,name=icon,proto3" json:"icon"` - Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url"` - Md5 string `protobuf:"bytes,6,opt,name=md5,proto3" json:"md5"` - Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size"` - Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version"` - Priority uint32 `protobuf:"varint,9,opt,name=priority,proto3" json:"priority"` - Status uint32 `protobuf:"varint,10,opt,name=status,proto3" json:"status"` - CreateTime int64 `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime"` + sizeCache protoimpl.SizeCache } func (x *AppletInfo) Reset() { *x = AppletInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_common_common_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_common_common_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AppletInfo) String() string { @@ -418,7 +392,7 @@ func (*AppletInfo) ProtoMessage() {} func (x *AppletInfo) ProtoReflect() protoreflect.Message { mi := &file_common_common_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -511,29 +485,26 @@ func (x *AppletInfo) GetCreateTime() int64 { } type LogInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` + Platform int32 `protobuf:"varint,2,opt,name=platform,proto3" json:"platform"` + Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url"` + CreateTime int64 `protobuf:"varint,4,opt,name=createTime,proto3" json:"createTime"` + Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname"` + LogID string `protobuf:"bytes,6,opt,name=logID,proto3" json:"logID"` + Filename string `protobuf:"bytes,7,opt,name=filename,proto3" json:"filename"` + SystemType string `protobuf:"bytes,8,opt,name=systemType,proto3" json:"systemType"` + Ex string `protobuf:"bytes,9,opt,name=ex,proto3" json:"ex"` + Version string `protobuf:"bytes,10,opt,name=version,proto3" json:"version"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"` - Platform int32 `protobuf:"varint,2,opt,name=platform,proto3" json:"platform"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url"` - CreateTime int64 `protobuf:"varint,4,opt,name=createTime,proto3" json:"createTime"` - Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname"` - LogID string `protobuf:"bytes,6,opt,name=logID,proto3" json:"logID"` - Filename string `protobuf:"bytes,7,opt,name=filename,proto3" json:"filename"` - SystemType string `protobuf:"bytes,8,opt,name=systemType,proto3" json:"systemType"` - Ex string `protobuf:"bytes,9,opt,name=ex,proto3" json:"ex"` - Version string `protobuf:"bytes,10,opt,name=version,proto3" json:"version"` + sizeCache protoimpl.SizeCache } func (x *LogInfo) Reset() { *x = LogInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_common_common_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_common_common_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LogInfo) String() string { @@ -544,7 +515,7 @@ func (*LogInfo) ProtoMessage() {} func (x *LogInfo) ProtoReflect() protoreflect.Message { mi := &file_common_common_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -740,7 +711,7 @@ func file_common_common_proto_rawDescGZIP() []byte { } var file_common_common_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_common_common_proto_goTypes = []interface{}{ +var file_common_common_proto_goTypes = []any{ (*UserFullInfo)(nil), // 0: openim.chat.common.UserFullInfo (*UserPublicInfo)(nil), // 1: openim.chat.common.UserPublicInfo (*UserIdentity)(nil), // 2: openim.chat.common.UserIdentity @@ -760,68 +731,6 @@ func file_common_common_proto_init() { if File_common_common_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_common_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserFullInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_common_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserPublicInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_common_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserIdentity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_common_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppletInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_common_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LogInfo); 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{ diff --git a/pkg/protocol/common/common.proto b/pkg/protocol/common/common.proto index 3a08e455..a40f1d22 100644 --- a/pkg/protocol/common/common.proto +++ b/pkg/protocol/common/common.proto @@ -1,17 +1,3 @@ -// Copyright © 2023 OpenIM open source community. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - syntax = "proto3"; package openim.chat.common; option go_package = "github.com/openimsdk/chat/pkg/protocol/common"; diff --git a/pkg/protocol/gen.cmd b/pkg/protocol/gen.cmd index b837c1d5..8584cb0f 100644 --- a/pkg/protocol/gen.cmd +++ b/pkg/protocol/gen.cmd @@ -6,12 +6,27 @@ set "PROTO_NAMES=admin chat common" rem Loop through each element in the array for %%i in (%PROTO_NAMES%) do ( - protoc --go_out=plugins=grpc:./%%i --go_opt=module=github.com/openimsdk/chat/pkg/protocol/%%i %%i/%%i.proto + protoc --go_out=./%%i --go_opt=module=github.com/openimsdk/chat/pkg/protocol/%%i %%i/%%i.proto + if ERRORLEVEL 1 ( + echo error processing %%i.proto + exit /b %ERRORLEVEL% + ) ) +rem Generate Go-grpc code + +for %%i in (%PROTO_NAMES%) do ( + protoc --go-grpc_out=./%%i --go-grpc_opt=module=github.com/openimsdk/chat/pkg/protocol/%%i %%i/%%i.proto + if ERRORLEVEL 1 ( + echo error processing %%i.proto + exit /b %ERRORLEVEL% + ) + ) + + rem Replace "omitempty" in *.pb.go files with UTF-8 encoding for /r %%f in (*.pb.go) do ( - powershell -Command "(Get-Content -Path '%%f' -Encoding UTF8) -replace ',omitempty\"`"', '\"`"' | Set-Content -Path '%%f' -Encoding UTF8" + powershell -Command "(Get-Content -Path '%%f' -Encoding UTF8) -replace ',omitempty', '' | Set-Content -Path '%%f' -Encoding UTF8" ) endlocal diff --git a/pkg/protocol/gen.sh b/pkg/protocol/gen.sh index ff49af2f..e39991d7 100755 --- a/pkg/protocol/gen.sh +++ b/pkg/protocol/gen.sh @@ -1,17 +1,3 @@ -# Copyright © 2023 OpenIM open source community. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - PROTO_NAMES=( "admin" "chat" @@ -19,7 +5,21 @@ PROTO_NAMES=( ) for name in "${PROTO_NAMES[@]}"; do - protoc --go_out=plugins=grpc:./${name} --go_opt=module=github.com/openimsdk/chat/pkg/protocol/${name} ${name}/${name}.proto + protoc --go_out=./${name} --go_opt=module=github.com/openimsdk/chat/pkg/protocol/${name} ${name}/${name}.proto + if [ $? -ne 0 ]; then + echo "error processing ${name}.proto (go_out)" + exit $? + fi +done + +# generate go-grpc + +for name in "${PROTO_NAMES[@]}"; do + protoc --go-grpc_out=./${name} --go-grpc_opt=module=github.com/openimsdk/chat/pkg/protocol/${name} ${name}/${name}.proto + if [ $? -ne 0 ]; then + echo "error processing ${name}.proto (go-grpc_out)" + exit $? + fi done if [ "$(uname -s)" == "Darwin" ]; then diff --git a/pkg/protocol/sdkws/sdkws.proto b/pkg/protocol/sdkws/sdkws.proto index 6a55e7f7..d6d18660 100644 --- a/pkg/protocol/sdkws/sdkws.proto +++ b/pkg/protocol/sdkws/sdkws.proto @@ -1,17 +1,3 @@ -// Copyright © 2023 OpenIM. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - syntax = "proto3"; package openim.sdkws; diff --git a/pkg/protocol/wrapperspb/wrapperspb.proto b/pkg/protocol/wrapperspb/wrapperspb.proto index 32f97019..fb22edcf 100644 --- a/pkg/protocol/wrapperspb/wrapperspb.proto +++ b/pkg/protocol/wrapperspb/wrapperspb.proto @@ -1,17 +1,3 @@ -// Copyright © 2023 OpenIM. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - syntax = "proto3"; package openim.protobuf;