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
f011afcc
Commit
f011afcc
authored
Mar 11, 2021
by
Morson
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
b7def8ec
dd5cb47f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
41 deletions
+40
-41
ElasContent.php
src/ucenter/ElasContent.php
+40
-41
No files found.
src/ucenter/ElasContent.php
View file @
f011afcc
...
@@ -15,50 +15,49 @@ use internalApi\base\Client;
...
@@ -15,50 +15,49 @@ use internalApi\base\Client;
class
ElasContent
extends
Client
class
ElasContent
extends
Client
{
{
/**
/**
* @param int $id //数据id
* @param int $id //数据id
* @param string $title //标题
* @param string $title //标题
* @param string $contentData //纯文本内容
* @param string $contentData //纯文本内容
* @param string $pic //图片 没有预览图去文本第一章
* @param string $pic //图片 没有预览图去文本第一章
* @param string $url
* @param string $url
* @param string $from bbs xue s
* @param string $from bbs xue s
* @param int $createdAt //创建时间
* @param int $createdAt //创建时间
* @param array $extra //额外属性 array
* @param array $extra //额外属性 array
* @return mixed
* @return mixed
* @deprecated
* @deprecated
*/
* @param false $isNewES
public
static
function
replace
(
$id
,
$title
,
$contentData
,
$pic
,
$url
,
$from
,
$createdAt
,
$extra
){
* @throws \internalApi\base\ApiException
return
self
::
call
(
'elasContent.replace'
,
compact
(
'id'
,
'title'
,
'contentData'
,
'pic'
,
'url'
,
'from'
,
'createdAt'
,
'extra'
));
* @throws \internalApi\base\ClientException
*/
public
static
function
replace
(
$id
,
$title
,
$contentData
,
$pic
,
$url
,
$from
,
$createdAt
,
$extra
,
$isNewES
=
false
){
return
self
::
call
(
'elasContent.replace'
,
compact
(
'id'
,
'title'
,
'contentData'
,
'pic'
,
'url'
,
'from'
,
'createdAt'
,
'extra'
,
'isNewES'
));
}
}
/**
/**
* @param integer $id 数据id 学院的courseId bbs的thread id
* @param integer $id 数据id 学院的courseId bbs的thread id
* @param string $title 标题
* @param string $title 标题
* @param string $contentData 纯文本内容 过滤掉富文本部分
* @param string $contentData 纯文本内容 过滤掉富文本部分
* @param array $imgs 图片列表
* @param array $imgs 图片列表
* @param string $url 地址
* @param string $url 地址
* @param string $from 来源 bbs xue moment 动态
* @param string $from 来源 bbs xue moments 动态
* @param integer $hot 热度
* @param integer $hot 热度
* @param integer $fid 版块id
* @param integer $fid 版块id
* @param array $tags 标签数组
* @param array $tags 标签数组
* @param integer $like_num 点赞数
* @param integer $like_num 点赞数
* @param integer $comment_num 评论数
* @param integer $comment_num 评论数
* @param integer $order_time 排序时间
* @param integer $order_time 排序时间
* @param integer $uid 用户中心uid
* @param integer $uid 用户中心uid
* @param integer $createdAt
* @param integer $createdAt
* @param array $extra
* @param array $extra
* [
* @param false $isNewES
* 'diagnose'=>'', //诊断 1 代表为诊断类型 1
* @return mixed
* 'technology'', //工艺 1 代表为工艺类型
* @throws \internalApi\base\ApiException
* ....
* @throws \internalApi\base\ClientException
* ]
*/
* @return mixed
public
static
function
newreplace
(
$id
,
$title
,
$contentData
,
$imgs
,
$fid
,
$url
,
$from
,
$hot
,
$tags
,
$like_num
,
$comment_num
,
$order_time
,
$uid
,
$createdAt
,
$extra
,
$isNewES
=
false
){
* @throws \internalApi\base\ApiException
return
self
::
call
(
'elasContent.newreplace'
,
compact
(
'id'
,
'title'
,
'contentData'
,
'imgs'
,
'fid'
,
'url'
,
'from'
,
'hot'
,
'tags'
,
'like_num'
,
'comment_num'
,
'order_time'
,
'uid'
,
'createdAt'
,
'extra'
,
'isNewES'
));
* @throws \internalApi\base\ClientException
*/
public
static
function
newreplace
(
$id
,
$title
,
$contentData
,
$imgs
,
$fid
,
$url
,
$from
,
$hot
,
$tags
,
$like_num
,
$comment_num
,
$order_time
,
$uid
,
$createdAt
,
$extra
){
return
self
::
call
(
'elasContent.newreplace'
,
compact
(
'id'
,
'title'
,
'contentData'
,
'imgs'
,
'fid'
,
'url'
,
'from'
,
'hot'
,
'tags'
,
'like_num'
,
'comment_num'
,
'order_time'
,
'uid'
,
'createdAt'
,
'extra'
));
}
}
...
...
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