# -*- coding: utf-8 -*- import _common class Mall(object): def __init__(self): self.apis = [ { 'name': 'productOnline', 'desc': '出售NFT', 'group': 'Mall', 'url': 'webapp/index.php?c=Mall&a=productOnline', 'params': [ _common.ReqHead(), ['item_id', '', '道具id,'], ['amount', '', '出售数量'], ['price', '', '出售价格'], ], 'response': [ _common.RspHead() ] }, { 'name': 'productOffline', 'desc': '下架物品', 'group': 'Mall', 'url': 'webapp/index.php?c=Mall&a=productOffline', 'params': [ _common.ReqHead(), ['goods_uuid', '', '商品唯一id'], ], 'response': [ _common.RspHead() ] }, { 'name': 'modifyPrice', 'desc': '修改价格', 'group': 'Mall', 'url': 'webapp/index.php?c=Mall&a=modifyPrice', 'params':[ _common.ReqHead(), ['goods_uuid', '', '商品唯一id'], ['price', '', '出售价格USDT'], ], 'response': [ _common.RspHead() ] }, { 'name': 'buyProduct', 'desc': '购买商品', 'group': 'Mall', 'url': 'webapp/index.php?c=Mall&a=buyProduct', 'params': [ _common.ReqHead(), ['goods_uuid', '', '商品唯一id'], ['price', '', '出售价格'], ], 'response': [ _common.RspHead() ] }, ]