[service] name = "WGames" desc = "小游戏服务" [[method]] name = "List" desc = "游戏列表" [method.req] field = [ "string project_hash_id //项目hash_id", ] [method.res] field = [ "repeated One list //列表", ] [[method.res.message]] name = "One" field = [ "int64 id //游戏id", "string title //游戏标题", "string img //游戏图片", "string link //游戏链接", ] [[method]] name = "LinkList" desc = "链接列表" [method.req] field = [ "int64 game_id //游戏id", "string project_hash_id //项目hash_id", ] [method.res] field = [ "repeated One list //链接列表", ] [[method.res.message]] name = "One" field = [ "int64 id //链接id", "string title //链接标题", "int32 is_default //是否默认链接(0-否,1-是)", "string link //游戏链接", ] [[method]] name = "LinkStore" desc = "创建链接" [method.req] field = [ "int64 game_id //游戏id", "string project_hash_id //项目hash_id", "string title //链接标题", ] [method.res] field = [ "int64 id //链接id", "string link //游戏链接", ] [[method]] name = "LinkUpdate" desc = "更新链接" [method.req] field = [ "int64 id //链接id", "string project_hash_id //项目hash_id", "string title //链接标题", ] [method.res] field = [ "int64 id //链接id", ] [[method]] name = "LinkDestroy" desc = "删除链接" [method.req] field = [ "int64 id //链接id", "string project_hash_id //项目hash_id", ] [method.res] field = [ "int64 id //链接id", ] [[method]] name = "Visit" desc = "访问小游戏" [method.req] field = [ "string link_hash_id //链接hashid", "string project_hash_id //项目hash_id", "string uid //关注用户ID", "string lang //语种标识", "string lv //用户等级", "Cert cert //验签数据", "string ip //客户端ip", "string os //系统", "string os_version //系统版本", "string device_model //系统型号", "int64 mid //用户id", ] [[method.req.message]] name = "Cert" field = [ "int64 time //时间戳", "string blackbox //通过blackBox可以在后台查询出", "string version //加解密版本", "string platform //平台", "string token //加密串", ] [method.res] field = [ "int64 id //用户id", "string hash_id //用户对外id", "string token //身份token", "int64 expired //token过期时间,单位:秒(s)", "int32 is_view //是否预览用户(1-是,0-否)", ] [[method]] name = "Trace" desc = "跟踪小游戏" [method.req] field = [ "int64 user_id //用户id", "int64 link_id //链接id", "int32 type //埋点类型(2-停留)", "int32 stay_sec //停留时间,单位:秒(s)", ] [method.res] [[method]] name = "Overview" desc = "小游戏统计" [method.req] field = [ "int64 game_id //游戏id", "string project_hash_id //项目hash_id", "int64 link_id //链接id", ] [method.res] field = [ "repeated One list //列表", ] [[method.res.message]] name = "One" field = [ "string mark //标识(visit_num-访问数,visit_user_num-访问用户数, total_stay-总停留时长)", "int64 total //总数", "int64 yesterday //昨日总数", "string avg //平均", ] [[method]] name = "Trend" desc = "小游戏趋势" [method.req] field = [ "int64 game_id //游戏id", "string project_hash_id //项目hash_id", "int64 link_id //链接id", "int64 start_time //开始时间", "int64 end_time //结束时间", ] [method.res] field = [ "repeated string x //x轴", "repeated Y y //y轴", ] [[method.res.message]] name = "Y" field = [ "string type //线类型(visit_num-访问数,visit_user_num-访问用户数)", "repeated int64 data //y轴数据", ]