diff --git a/doc/BlockChain.py b/doc/BlockChain.py new file mode 100644 index 00000000..e525d7f6 --- /dev/null +++ b/doc/BlockChain.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- + +import _common + +class BlockChain(object): + + def __init__(self): + self.apis = [ + { + 'name': 'activeNft', + 'desc': '激活nft', + 'group': 'BlockChain', + 'url': 'webapp/index.php?c=ActiveNft&a=activeNft', + 'params': [ + ['type', 0, '1:英雄 2:枪械'], + ['uniid', 0, '唯一id'], + ], + 'response': [ + _common.RspHead(), + ] + }, + { + 'name': 'reportActiveResult', + 'desc': '上报激活结果', + 'group': 'BlockChain', + 'url': 'webapp/index.php?c=ActiveNft&a=reportActiveResult', + 'params': [ + ['type', 0, '1:英雄 2:枪械'], + ['uniid', 0, '唯一id'], + ], + 'response': [ + _common.RspHead(), + ] + }, + + ]