//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Luban; namespace Server.Config { public sealed partial class EntityExchangeMallConfig : Luban.BeanBase { public EntityExchangeMallConfig(ByteBuf _buf) { Id = _buf.ReadInt(); Name = _buf.ReadString(); RedMoney = _buf.ReadInt(); ProductType = _buf.ReadInt(); MallType = _buf.ReadInt(); DayLimit = _buf.ReadInt(); UserDayLimit = _buf.ReadInt(); {int __n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);AppStore = new int[__n0];for(var __index0 = 0 ; __index0 < __n0 ; __index0++) { int __e0;__e0 = _buf.ReadInt(); AppStore[__index0] = __e0;}} NotShelved = _buf.ReadBool(); Sort = _buf.ReadInt(); Desc = _buf.ReadString(); } public static EntityExchangeMallConfig DeserializeEntityExchangeMallConfig(ByteBuf _buf) { return new EntityExchangeMallConfig(_buf); } /// /// 商品Id /// public readonly int Id; /// /// 商品名称 /// public readonly string Name; /// /// 红卡数量 /// public readonly int RedMoney; /// /// 商品类型
1 实物商品
2 虚拟商品 ///
public readonly int ProductType; /// /// 客户端展示分类
1 实物
2 会员话费
///
public readonly int MallType; /// /// 单日限兑数量 /// public readonly int DayLimit; /// /// 单个用户单日限兑数量 /// public readonly int UserDayLimit; /// /// 支持的APP商城类型
支持的APP商城类型
0 默认
1 微信小游戏
2 应用包
3 AppStore
4 官网
5 华为
6 公众号
7 小米 ///
public readonly int[] AppStore; /// /// 未上架 /// public readonly bool NotShelved; /// /// 排序数字
升序 ///
public readonly int Sort; /// /// 描述 /// public readonly string Desc; public const int __ID__ = -868244900; public override int GetTypeId() => __ID__; public override string ToString() { return "{ " + "id:" + Id + "," + "name:" + Name + "," + "redMoney:" + RedMoney + "," + "productType:" + ProductType + "," + "mallType:" + MallType + "," + "dayLimit:" + DayLimit + "," + "userDayLimit:" + UserDayLimit + "," + "appStore:" + Luban.StringUtil.CollectionToString(AppStore) + "," + "notShelved:" + NotShelved + "," + "sort:" + Sort + "," + "desc:" + Desc + "," + "}"; } } }