Commit c4738f3e authored by 杨培's avatar 杨培

Merge remote-tracking branch 'origin/master'

parents a8b7a688 75dda2f2
...@@ -48,6 +48,11 @@ class ElasContent extends Client ...@@ -48,6 +48,11 @@ class ElasContent extends Client
* @param integer $uid 用户中心uid * @param integer $uid 用户中心uid
* @param integer $createdAt * @param integer $createdAt
* @param array $extra * @param array $extra
* [
* 'diagnose'=>'', //诊断 1 代表为诊断类型 1
* 'technology'', //工艺 1 代表为工艺类型
* ....
* ]
* @return mixed * @return mixed
* @throws \internalApi\base\ApiException * @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException * @throws \internalApi\base\ClientException
......
...@@ -15,21 +15,38 @@ use internalApi\base\Client; ...@@ -15,21 +15,38 @@ use internalApi\base\Client;
class Label extends Client class Label extends Client
{ {
//类型 1=>认证 2=>品类 3=>品牌 4=>热门事件 5=>现象 6=>故障点 7=>专题
//类型 1=>认证 2=>品类 3=>品牌 const TYPE_AUTH = 1; // 认证
const TYPE_AUTH = 1; //认证 const TYPE_CATEGORY = 2; // 品类
const TYPE_CATEGORY = 2; //品类 const TYPE_BRAND = 3; // 品牌
const TYPE_BRAND = 3; //品牌 const TYPE_HOT_EVENTS = 4; // 热门事件
const TYPE_PHENOMENON = 5; // 现象
/** const TYPE_FAULT = 6; // 故障点
* @param array/int $type 1=>认证 2=>品类 3=>品牌 const TYPE_SPECIAL_TOPIC = 7; // 专题
* @return mixed
* @throws \internalApi\base\ApiException /**
* @throws \internalApi\base\ClientException * @param array/int $type 1=>认证 2=>品类 3=>品牌
*/ *
public static function getLabels($type = null) * @return mixed
{ * @throws \internalApi\base\ApiException
return self::call('label.getLabels', compact('type')); * @throws \internalApi\base\ClientException
} */
public static function getLabels($type = null){
return self::call('label.getLabels', compact('type'));
}
/**
* 标签分类
*
* @param array $labels 标签
* @param array $types //类型 1=>认证 2=>品类 3=>品牌 4=>热门事件 5=>现象 6=>故障点 7=>专题
*
* @return array
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public static function getListByLabels($labels, $types = [self::TYPE_CATEGORY, self::TYPE_BRAND, self::TYPE_PHENOMENON, self::TYPE_FAULT]){
return self::call('label.getListByLabels', compact('labels', 'types'));
}
} }
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