[service] name = "WOpenPlatform" desc = "开放平台接口提供服务" [[method]] name = "UserList" desc = "开放平台用户列表" [method.req] field = [ "int32 page //当前页", "int32 per_page //每页条数", "string project_hash_id //项目hash_id", "string campaign_hash_id //活动hash_id", "int64 last_record_id //最后一条记录id", ] [method.res] field = [ "repeated One list //列表数据", "int64 total //列表总数", "int64 lave //剩余多少条数据没有拉取", ] [[method.res.message]] name = "One" field = [ "int64 id //活动用户ID", "string device_id //用户设备id", "string sub_user_id //用户", "string parent //用户上级", "int64 child_num //下级数量", "int64 indirect_num //间接裂变", "int64 effect_num //有效拉新人数", "int64 created_at //参与时间", "string source_title //来源说明", "string platform //操作系统", "string channel_title //渠道名称", "int64 join_at //首次访问活动时间", "repeated Cond conds //任务数据", ] [[method.res.message]] name = "Cond" field = [ "string desc //标题", "int64 num //数量", "int32 if_cond //等式(0-等于,1-大于等于,2-累计)", "int32 event_type //事件类型(1-自定义事件,2-广告事件,3-标准事件)", "string event //事件关键字", "string event_key //事件key", "string event_val //事件值", ] [[method]] name = "CampaignInfo" desc = "开发平台活动信息" [method.req] field = [ "int64 project_id //项目id", "string campaign_hash_id //活动hash_id", ] [method.res] field = [ "string hash_id //活动对外id", "string title //活动标题", "string link //活动地址", "repeated Lang langs //语言内容" ] [[method.res.message]] name = "Lang" field = [ "string mark //语言标识", "string page_title //页面标题", "string share_text //分享文案", "string share_img //缩略图", ] [[method]] name = "Player" desc = "用户在活动中的玩家数据" [method.req] field = [ "string project_hash_id //项目hash_id", "string campaign_hash_id //活动hash_id", "string user_id //用户id", "int64 start_time //开始时间", "int64 end_time //结束时间", ] [method.res] field = [ "int32 status //状态(0-正常,1-未参与活动)", "int64 fission_id //玩法id", "Keep keep //激励养成玩家数据", ] [[method.res.message]] name = "Keep" field = [ "int64 love_num //当前养成宠物已经收集爱心数", "int64 remain_food //当前养成宠物剩余的食物数", "KeepAction action //用户行为", ] [[method.res.message]] name = "KeepAction" field = [ "int64 grow_pet //领养次数", "int64 feed_num //喂养次数", "int64 collect_num //收集爱心次数", ]