From bbf936559071c94d88ecc08c4d45940868152dc6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 4 Aug 2023 17:05:39 +0800 Subject: [PATCH] 1 --- doc/Auction.py | 100 ------------------ doc/Mall.py | 18 ++-- webapp/controller/AuctionController.class.php | 49 --------- 3 files changed, 10 insertions(+), 157 deletions(-) delete mode 100644 doc/Auction.py delete mode 100644 webapp/controller/AuctionController.class.php diff --git a/doc/Auction.py b/doc/Auction.py deleted file mode 100644 index e301c2ce..00000000 --- a/doc/Auction.py +++ /dev/null @@ -1,100 +0,0 @@ -# -*- coding: utf-8 -*- - -import _common - -class Auction(object): - - def __init__(self): - self.apis = [ - { - 'name': 'search', - 'desc': '获取出售的商品列表', - 'group': 'Auction', - 'url': 'webapp/index.php?c=Auction&a=search', - 'params': [ - ['account', 0, '钱包账号'], - ['page', 0, '获取第几页数据'], - ['sort', '', '排序字段'], - ], - 'response': [ - _common.RspHead(), - ['!rows', [_common.NftDetail()], '商品信息'], - ['page', _common.Page(), '分页信息'], - ] - }, - { - 'name': 'productOnline', - 'desc': '上架商品', - 'group': 'Auction', - 'url': 'webapp/index.php?c=Auction&a=productOnline', - 'params': [ - ['account', '', '钱包账号'], - ['token', '', 'token'], - ['net_id', '', '网络id'], - ['token_id', '', 'token_id'], - ], - 'response': [ - _common.RspHead(), - ] - }, - { - 'name': 'productOffline', - 'desc': '上架商品', - 'group': 'Auction', - 'url': 'webapp/index.php?c=Auction&a=productOffline', - 'params': [ - ['account', '', '钱包账号'], - ['token', '', 'token'], - ['net_id', '', '网络id'], - ['token_id', '', 'token_id'], - ], - 'response': [ - _common.RspHead(), - ] - }, - { - 'name': 'buy', - 'desc': '购买商品', - 'group': 'Auction', - 'url': 'webapp/index.php?c=Auction&a=buy', - 'params': [ - ['account', '', '钱包账号'], - ['token', '', 'token'], - ['net_id', '', '网络id'], - ['token_id', '', 'token_id'], - ], - 'response': [ - _common.RspHead(), - ['order_id', '', '订单号(errcode = 0的时候,根据订单号客户端定时调用queryOrder接口)查询状态'], - ] - }, - { - 'name': 'queryOrder', - 'desc': '查询订单状态', - 'group': 'Auction', - 'url': 'webapp/index.php?c=Auction&a=queryOrder', - 'params': [ - ['account', 0, '钱包账号'], - ['token', '', 'token'], - ['order_id', 0, '订单id'], - ], - 'response': [ - _common.RspHead(errcode='当errcode!=0的时候客户端不需要再调用(停止定时器)'), - ['state', 0, '0:订单不存在 1:购买成功 2:交易处理中 3:交易失败'], - ] - }, - { - 'name': 'getProductList', - 'desc': '获取出售的商品列表', - 'group': 'Auction', - 'url': 'webapp/index.php?c=Auction&a=getProductList', - 'params': [ - ['account', '', '钱包账号'], - ['token', '', 'token'], - ['net_id', '', '网络id'], - ], - 'response': [ - _common.RspHead(), - ] - }, - ] diff --git a/doc/Mall.py b/doc/Mall.py index e0942006..78ac3749 100644 --- a/doc/Mall.py +++ b/doc/Mall.py @@ -14,7 +14,8 @@ class Mall(object): 'params': [ _common.ReqHead(), ['item_id', '', '道具id,'], - ['amount', 0, '出售数量'], + ['amount', '', '出售数量'], + ['price', '', '出售价格'], ], 'response': [ _common.RspHead() @@ -27,6 +28,7 @@ class Mall(object): 'url': 'webapp/index.php?c=Mall&a=productOffline', 'params': [ _common.ReqHead(), + ['goods_uuid', '', '商品唯一id'], ], 'response': [ _common.RspHead() @@ -39,22 +41,22 @@ class Mall(object): 'url': 'webapp/index.php?c=Mall&a=modifyPrice', 'params':[ _common.ReqHead(), - ['goods_uuid', '', '出售的idx'], - ['s_price', '', '出售价格USDT'], + ['goods_uuid', '', '商品唯一id'], + ['price', '', '出售价格USDT'], ], 'response': [ _common.RspHead() ] }, { - 'name': 'buy', - 'desc': '购买商品 (金币购买)', + 'name': 'buyProduct', + 'desc': '购买商品', 'group': 'Mall', - 'url': 'webapp/index.php?c=Mall&a=buy', + 'url': 'webapp/index.php?c=Mall&a=buyProduct', 'params': [ _common.ReqHead(), - ['goods_uuid', '', '出售的idx'], - ['s_price', '', '出售价格USDT'], + ['goods_uuid', '', '商品唯一id'], + ['price', '', '出售价格USDT'], ], 'response': [ _common.RspHead() diff --git a/webapp/controller/AuctionController.class.php b/webapp/controller/AuctionController.class.php deleted file mode 100644 index cace316b..00000000 --- a/webapp/controller/AuctionController.class.php +++ /dev/null @@ -1,49 +0,0 @@ -