1
This commit is contained in:
parent
d7072c4c23
commit
6ba4a68426
39
doc/HashRateShop.py
Normal file
39
doc/HashRateShop.py
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import _common
|
||||||
|
|
||||||
|
class HashRateShop(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.apis = [
|
||||||
|
{
|
||||||
|
'name': 'getGoodsList',
|
||||||
|
'desc': '获取商品列表',
|
||||||
|
'group': 'HashRateShop',
|
||||||
|
'url': 'webapp/index.php?c=HashRateShop&a=getGoodsList',
|
||||||
|
'params': [
|
||||||
|
_common.ReqHead(),
|
||||||
|
],
|
||||||
|
'response': [
|
||||||
|
_common.RspHead(),
|
||||||
|
['!goods_list', [_common.HashRateGoods()], '商品列表'],
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'name': 'buyGoodsS',
|
||||||
|
'desc': '购买商品',
|
||||||
|
'group': 'HashRateShop',
|
||||||
|
'surl': 'webapp/index.php?c=HashRateShop&a=buyGoodsS',
|
||||||
|
'params': [
|
||||||
|
_common.ReqHead(),
|
||||||
|
['goods_id', '', '商品唯一id'],
|
||||||
|
['goods_num', '', '商品数量'],
|
||||||
|
],
|
||||||
|
'response': [
|
||||||
|
_common.RspHead(),
|
||||||
|
['goods_info', _common.HashRateGoods(), '商品信息(客户端刷新用)'],
|
||||||
|
['award', _common.Award(), '奖励信息'],
|
||||||
|
['property_chg', _common.PropertyChg(), '属性变更'],
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
@ -1934,3 +1934,15 @@ class VipLevelInfo(object):
|
|||||||
['curpoint', 0, '当前点数'],
|
['curpoint', 0, '当前点数'],
|
||||||
['target', 0, '升级所需点数,如为-1则已是最高等级'],
|
['target', 0, '升级所需点数,如为-1则已是最高等级'],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
class HashRateGoods(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['goods_id', 0, '商品id'],
|
||||||
|
['item_id', 0, '道具id'],
|
||||||
|
['item_num', 0, '道具数量'],
|
||||||
|
['purchased_num', 0, '已购买数量'],
|
||||||
|
['stock_num', 0, '库存数量(-1不限购)'],
|
||||||
|
['count_down', 0, '倒计时(单位秒,只有已售罄才有效)'],
|
||||||
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user