From 538961199786c3915374d879e6116cfe49eb59e4 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 31 Oct 2022 17:18:03 +0800 Subject: [PATCH] 1 --- doc/BlockChain.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 doc/BlockChain.py 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(), + ] + }, + + ]