Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
c4738f3e
Commit
c4738f3e
authored
May 29, 2019
by
杨培
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
a8b7a688
75dda2f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
16 deletions
+38
-16
ElasContent.php
src/ucenter/ElasContent.php
+5
-0
Label.php
src/ucenter/Label.php
+33
-16
No files found.
src/ucenter/ElasContent.php
View file @
c4738f3e
...
@@ -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
...
...
src/ucenter/Label.php
View file @
c4738f3e
...
@@ -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'
));
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment