Commit 284dbb29 by xmy

goods接口

parent 9f2de0c7
...@@ -11,32 +11,32 @@ namespace Hdll\Services\Goods\Lib; ...@@ -11,32 +11,32 @@ namespace Hdll\Services\Goods\Lib;
use Swoft\Core\ResultInterface; use Swoft\Core\ResultInterface;
/** /**
* @method ResultInterface deferGet($storeId,$id) * @method ResultInterface deferGet($storeId, $id)
* Interface GoodsInterface * Interface GoodsInterface
* @package Hdll\Services\Goods\Lib * @package Hdll\Services\Goods\Lib
*/ */
interface GoodsInterface{ interface GoodsInterface
{
/** /**
* 获取商品 * 获取商品
* @param $storeId * @param $storeId
* 'gcId', 'asId', 'stock', 'name', 'image', 'price', 'state', 'body', 'originalPrice'
* @return [ * @return [
* 'gcId' 商品类ID * 'gcId' 商品类ID
* 'asId' 服务ID * 'asId' 服务ID
* 'stock' 库存 * 'stock' 库存
* 'name' 名称 * 'name' 名称
* 'image' 图片 * 'image' 图片
* 'price' 价格 * 'price' 价格
* 'state' 状态 * 'state' 状态
* 'body' 描述 * 'body' 描述
* 'originalPrice' 原价 * 'originalPrice' 原价
* 'sales' 销量 * 'sales' 销量
* ] * ]
* @param $id * @param $id
* @return mixed * @return mixed
* @author Administrator * @author Administrator
*/ */
public function get($storeId,$id); public function get($storeId, $id);
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment