From 1ce08003bb07dc205d6e013aa1168429ee1dc2a9 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 4 Sep 2024 17:11:38 +0800 Subject: [PATCH] 1 --- server/adminserver/mtb/mtb.auto_gen.go | 49 +++++++++++++++++++++++++ server/adminserver/proto/cs_msgid.proto | 3 -- server/adminserver/proto/cs_proto.proto | 3 -- server/adminserver/proto/mt.proto | 8 ++++ server/adminserver/proto/protoc-gen.bat | 2 - server/adminserver/proto/ss_msgid.proto | 3 -- server/adminserver/proto/ss_proto.proto | 4 -- 7 files changed, 57 insertions(+), 15 deletions(-) delete mode 100644 server/adminserver/proto/cs_msgid.proto delete mode 100644 server/adminserver/proto/cs_proto.proto delete mode 100644 server/adminserver/proto/protoc-gen.bat delete mode 100644 server/adminserver/proto/ss_msgid.proto delete mode 100644 server/adminserver/proto/ss_proto.proto diff --git a/server/adminserver/mtb/mtb.auto_gen.go b/server/adminserver/mtb/mtb.auto_gen.go index 7b2a335b..ab8913a1 100644 --- a/server/adminserver/mtb/mtb.auto_gen.go +++ b/server/adminserver/mtb/mtb.auto_gen.go @@ -128,6 +128,16 @@ type Item struct { _flags2_ uint64 } +type Erc20 struct { + net_id int32 + rpc_url string + account_address string + token_address string + + _flags1_ uint64 + _flags2_ uint64 +} + func (this *AdminCluster) GetInstanceId() int32 { return this.instance_id } @@ -592,6 +602,38 @@ func (this *Item) HasSubType() bool { return (this._flags1_ & (uint64(1) << 4)) > 0 } +func (this *Erc20) GetNetId() int32 { + return this.net_id +} + +func (this *Erc20) HasNetId() bool { + return (this._flags1_ & (uint64(1) << 2)) > 0 +} + +func (this *Erc20) GetRpcUrl() string { + return this.rpc_url +} + +func (this *Erc20) HasRpcUrl() bool { + return (this._flags1_ & (uint64(1) << 3)) > 0 +} + +func (this *Erc20) GetAccountAddress() string { + return this.account_address +} + +func (this *Erc20) HasAccountAddress() bool { + return (this._flags1_ & (uint64(1) << 4)) > 0 +} + +func (this *Erc20) GetTokenAddress() string { + return this.token_address +} + +func (this *Erc20) HasTokenAddress() bool { + return (this._flags1_ & (uint64(1) << 5)) > 0 +} + func (this *AdminCluster) LoadFromKv(kv map[string]interface{}) { f5.ReadMetaTableField(&this.instance_id, "instance_id", &this._flags1_, 1, kv) @@ -683,3 +725,10 @@ func (this *Item) LoadFromKv(kv map[string]interface{}) { f5.ReadMetaTableField(&this.type_, "type", &this._flags1_, 3, kv) f5.ReadMetaTableField(&this.sub_type, "sub_type", &this._flags1_, 4, kv) } + +func (this *Erc20) LoadFromKv(kv map[string]interface{}) { + f5.ReadMetaTableField(&this.net_id, "net_id", &this._flags1_, 2, kv) + f5.ReadMetaTableField(&this.rpc_url, "rpc_url", &this._flags1_, 3, kv) + f5.ReadMetaTableField(&this.account_address, "account_address", &this._flags1_, 4, kv) + f5.ReadMetaTableField(&this.token_address, "token_address", &this._flags1_, 5, kv) +} diff --git a/server/adminserver/proto/cs_msgid.proto b/server/adminserver/proto/cs_msgid.proto deleted file mode 100644 index 2b5590b3..00000000 --- a/server/adminserver/proto/cs_msgid.proto +++ /dev/null @@ -1,3 +0,0 @@ -syntax = "proto2"; -package cs; -option go_package = ".;cs"; diff --git a/server/adminserver/proto/cs_proto.proto b/server/adminserver/proto/cs_proto.proto deleted file mode 100644 index 89f88b3a..00000000 --- a/server/adminserver/proto/cs_proto.proto +++ /dev/null @@ -1,3 +0,0 @@ -syntax = "proto2"; -package cs; -option go_package = ".;cs"; \ No newline at end of file diff --git a/server/adminserver/proto/mt.proto b/server/adminserver/proto/mt.proto index 682dc8f7..91f45cfe 100644 --- a/server/adminserver/proto/mt.proto +++ b/server/adminserver/proto/mt.proto @@ -103,3 +103,11 @@ message Item optional int32 type = 3; optional int32 sub_type = 4; } + +message Erc20 +{ + optional int32 net_id = 2; + optional string rpc_url = 3; + optional string account_address = 4; + optional string token_address = 5; +} \ No newline at end of file diff --git a/server/adminserver/proto/protoc-gen.bat b/server/adminserver/proto/protoc-gen.bat deleted file mode 100644 index 61b25a95..00000000 --- a/server/adminserver/proto/protoc-gen.bat +++ /dev/null @@ -1,2 +0,0 @@ -protoc --go_out=..\cs .\cs_*.proto -protoc --go_out=..\ss .\ss_*.proto diff --git a/server/adminserver/proto/ss_msgid.proto b/server/adminserver/proto/ss_msgid.proto deleted file mode 100644 index 992bade5..00000000 --- a/server/adminserver/proto/ss_msgid.proto +++ /dev/null @@ -1,3 +0,0 @@ -syntax = "proto2"; -package ss; -option go_package = ".;ss"; \ No newline at end of file diff --git a/server/adminserver/proto/ss_proto.proto b/server/adminserver/proto/ss_proto.proto deleted file mode 100644 index a50b6c9e..00000000 --- a/server/adminserver/proto/ss_proto.proto +++ /dev/null @@ -1,4 +0,0 @@ -syntax = "proto2"; -package ss; -option go_package = ".;ss"; -