diff --git a/doc/RedDot.py b/doc/RedDot.py new file mode 100644 index 0000000..ea4a026 --- /dev/null +++ b/doc/RedDot.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- + +import _common + +class RedDot(object): + + def __init__(self): + self.apis = [ + { + 'name': 'redDotList', + 'desc': '获取红点列表', + 'group': 'RedDot', + 'url': 'webapp/index.php?c=RedDot&a=redDotList', + 'params': [ + _common.ReqHead(), + ['types', '', '红点类型(!!!注意由于红点的计算量较大,最好并发分批取红点状态)","分割 1:赛季手册 2:赛季 3:战队 4:商店 5:背包 6:科研 7:任务 8:活动'] + ], + 'response': [ + _common.RspHead(), + ['!reddot_list', [_common.RedDot()], '红点列表'] + ] + }, + ] diff --git a/doc/_common.py b/doc/_common.py index 88405a0..10d8138 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -289,3 +289,11 @@ class RankingList(object): ['!ranking_list', [RankingItem()], '排行榜'], ['my_ranked', RankingItem(), '我的排名(如果ranked<1则表示自己未上榜)'], ] + +class RedDot(object): + + def __init__(self): + self.fields = [ + ['type', 0, '红点类型'], + ['state', 0, '红点状态 0:无 1:有'], + ]