This commit is contained in:
aozhiwei 2024-11-06 10:19:31 +08:00
parent 3ddd703fee
commit 0e057bea69
2 changed files with 340 additions and 0 deletions

View File

@ -30,6 +30,61 @@ type Web3ServiceCluster struct {
_flags2_ uint64
}
type Item struct {
id int32
level int32
price_type int32
type_ int32
time int32
produce int32
accelerate_type int32
accelerate_price int32
_flags1_ uint64
_flags2_ uint64
}
type Friend struct {
id int32
level int32
reward_type int32
reward int32
_flags1_ uint64
_flags2_ uint64
}
type Global struct {
id int32
type_ int32
number int32
_flags1_ uint64
_flags2_ uint64
}
type Reward struct {
id int32
reward_1 int32
reward_2 int32
_flags1_ uint64
_flags2_ uint64
}
type Task struct {
id int32
type_ int32
conditon int32
param1 int32
param2 int32
reward_type int32
reward int32
_flags1_ uint64
_flags2_ uint64
}
type Config struct {
_flags1_ uint64
@ -100,6 +155,206 @@ func (this *Web3ServiceCluster) HasUrl() bool {
return (this._flags1_ & (uint64(1) << 1)) > 0
}
func (this *Item) GetId() int32 {
return this.id
}
func (this *Item) HasId() bool {
return (this._flags1_ & (uint64(1) << 1)) > 0
}
func (this *Item) GetLevel() int32 {
return this.level
}
func (this *Item) HasLevel() bool {
return (this._flags1_ & (uint64(1) << 2)) > 0
}
func (this *Item) GetPriceType() int32 {
return this.price_type
}
func (this *Item) HasPriceType() bool {
return (this._flags1_ & (uint64(1) << 3)) > 0
}
func (this *Item) GetType() int32 {
return this.type_
}
func (this *Item) HasType() bool {
return (this._flags1_ & (uint64(1) << 4)) > 0
}
func (this *Item) GetTime() int32 {
return this.time
}
func (this *Item) HasTime() bool {
return (this._flags1_ & (uint64(1) << 5)) > 0
}
func (this *Item) GetProduce() int32 {
return this.produce
}
func (this *Item) HasProduce() bool {
return (this._flags1_ & (uint64(1) << 6)) > 0
}
func (this *Item) GetAccelerateType() int32 {
return this.accelerate_type
}
func (this *Item) HasAccelerateType() bool {
return (this._flags1_ & (uint64(1) << 7)) > 0
}
func (this *Item) GetAcceleratePrice() int32 {
return this.accelerate_price
}
func (this *Item) HasAcceleratePrice() bool {
return (this._flags1_ & (uint64(1) << 8)) > 0
}
func (this *Friend) GetId() int32 {
return this.id
}
func (this *Friend) HasId() bool {
return (this._flags1_ & (uint64(1) << 1)) > 0
}
func (this *Friend) GetLevel() int32 {
return this.level
}
func (this *Friend) HasLevel() bool {
return (this._flags1_ & (uint64(1) << 2)) > 0
}
func (this *Friend) GetRewardType() int32 {
return this.reward_type
}
func (this *Friend) HasRewardType() bool {
return (this._flags1_ & (uint64(1) << 3)) > 0
}
func (this *Friend) GetReward() int32 {
return this.reward
}
func (this *Friend) HasReward() bool {
return (this._flags1_ & (uint64(1) << 4)) > 0
}
func (this *Global) GetId() int32 {
return this.id
}
func (this *Global) HasId() bool {
return (this._flags1_ & (uint64(1) << 1)) > 0
}
func (this *Global) GetType() int32 {
return this.type_
}
func (this *Global) HasType() bool {
return (this._flags1_ & (uint64(1) << 2)) > 0
}
func (this *Global) GetNumber() int32 {
return this.number
}
func (this *Global) HasNumber() bool {
return (this._flags1_ & (uint64(1) << 3)) > 0
}
func (this *Reward) GetId() int32 {
return this.id
}
func (this *Reward) HasId() bool {
return (this._flags1_ & (uint64(1) << 1)) > 0
}
func (this *Reward) GetReward1() int32 {
return this.reward_1
}
func (this *Reward) HasReward1() bool {
return (this._flags1_ & (uint64(1) << 2)) > 0
}
func (this *Reward) GetReward2() int32 {
return this.reward_2
}
func (this *Reward) HasReward2() bool {
return (this._flags1_ & (uint64(1) << 3)) > 0
}
func (this *Task) GetId() int32 {
return this.id
}
func (this *Task) HasId() bool {
return (this._flags1_ & (uint64(1) << 1)) > 0
}
func (this *Task) GetType() int32 {
return this.type_
}
func (this *Task) HasType() bool {
return (this._flags1_ & (uint64(1) << 2)) > 0
}
func (this *Task) GetConditon() int32 {
return this.conditon
}
func (this *Task) HasConditon() bool {
return (this._flags1_ & (uint64(1) << 3)) > 0
}
func (this *Task) GetParam1() int32 {
return this.param1
}
func (this *Task) HasParam1() bool {
return (this._flags1_ & (uint64(1) << 4)) > 0
}
func (this *Task) GetParam2() int32 {
return this.param2
}
func (this *Task) HasParam2() bool {
return (this._flags1_ & (uint64(1) << 5)) > 0
}
func (this *Task) GetRewardType() int32 {
return this.reward_type
}
func (this *Task) HasRewardType() bool {
return (this._flags1_ & (uint64(1) << 6)) > 0
}
func (this *Task) GetReward() int32 {
return this.reward
}
func (this *Task) HasReward() bool {
return (this._flags1_ & (uint64(1) << 7)) > 0
}
func (this *WheelServerCluster) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.instance_id, "instance_id", &this._flags1_, 1, kv)
@ -118,5 +373,45 @@ func (this *Web3ServiceCluster) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.url, "url", &this._flags1_, 1, kv)
}
func (this *Item) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.id, "id", &this._flags1_, 1, kv)
f5.ReadMetaTableField(&this.level, "level", &this._flags1_, 2, kv)
f5.ReadMetaTableField(&this.price_type, "price_type", &this._flags1_, 3, kv)
f5.ReadMetaTableField(&this.type_, "type", &this._flags1_, 4, kv)
f5.ReadMetaTableField(&this.time, "time", &this._flags1_, 5, kv)
f5.ReadMetaTableField(&this.produce, "produce", &this._flags1_, 6, kv)
f5.ReadMetaTableField(&this.accelerate_type, "accelerate_type", &this._flags1_, 7, kv)
f5.ReadMetaTableField(&this.accelerate_price, "accelerate_price", &this._flags1_, 8, kv)
}
func (this *Friend) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.id, "id", &this._flags1_, 1, kv)
f5.ReadMetaTableField(&this.level, "level", &this._flags1_, 2, kv)
f5.ReadMetaTableField(&this.reward_type, "reward_type", &this._flags1_, 3, kv)
f5.ReadMetaTableField(&this.reward, "reward", &this._flags1_, 4, kv)
}
func (this *Global) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.id, "id", &this._flags1_, 1, kv)
f5.ReadMetaTableField(&this.type_, "type", &this._flags1_, 2, kv)
f5.ReadMetaTableField(&this.number, "number", &this._flags1_, 3, kv)
}
func (this *Reward) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.id, "id", &this._flags1_, 1, kv)
f5.ReadMetaTableField(&this.reward_1, "reward_1", &this._flags1_, 2, kv)
f5.ReadMetaTableField(&this.reward_2, "reward_2", &this._flags1_, 3, kv)
}
func (this *Task) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.id, "id", &this._flags1_, 1, kv)
f5.ReadMetaTableField(&this.type_, "type", &this._flags1_, 2, kv)
f5.ReadMetaTableField(&this.conditon, "conditon", &this._flags1_, 3, kv)
f5.ReadMetaTableField(&this.param1, "param1", &this._flags1_, 4, kv)
f5.ReadMetaTableField(&this.param2, "param2", &this._flags1_, 5, kv)
f5.ReadMetaTableField(&this.reward_type, "reward_type", &this._flags1_, 6, kv)
f5.ReadMetaTableField(&this.reward, "reward", &this._flags1_, 7, kv)
}
func (this *Config) LoadFromKv(kv map[string]interface{}) {
}

View File

@ -22,6 +22,51 @@ message Web3ServiceCluster
optional string url = 1;
}
message Item
{
optional int32 id = 1;
optional int32 level = 2;
optional int32 price_type = 3;
optional int32 type = 4;
optional int32 time = 5;
optional int32 produce = 6;
optional int32 accelerate_type = 7;
optional int32 accelerate_price = 8;
}
message Friend
{
optional int32 id = 1;
optional int32 level = 2;
optional int32 reward_type = 3;
optional int32 reward = 4;
}
message Global
{
optional int32 id = 1;
optional int32 type = 2;
optional int32 number = 3;
}
message Reward
{
optional int32 id = 1;
optional int32 reward_1 = 2;
optional int32 reward_2 = 3;
}
message Task
{
optional int32 id = 1;
optional int32 type = 2;
optional int32 conditon = 3;
optional int32 param1 = 4;
optional int32 param2 = 5;
optional int32 reward_type = 6;
optional int32 reward = 7;
}
message Config
{
}