Commit 92713dd2 authored by 夏彬's avatar 夏彬

添加相关api

parent 3df8ecc4
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 11/10/2017
* Time: 5:14 PM
*/
use internalApi\ucenter\ElasContent;
require __DIR__ . '/_init.php';
ElasContent::setDebug();
$id = 1;
$title = '131212312312231313';
$content = '13123';
$pic = '12321';
$from = 'bbs';
$createAt = 1762734;
$extra = ['a'=>2222];
//ElasContent::replace($id,$title,$content,$pic,$from,$createAt,$extra);
ElasContent::delete(1);
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 11/10/2017
* Time: 5:03 PM
*/
namespace internalApi\ucenter;
use internalApi\base\Client;
class ElasContent extends Client
{
/**
* @param $id
* @param $title
* @param $contentData
* @param $pic
* @param $from bbs xue s
* @param $createdAt
* @param $extra
* @return mixed
*/
public static function replace($id, $title, $contentData, $pic, $from, $createdAt, $extra){
return self::call('elasContent.replace',compact('id','title','contentData','pic','from','createdAt','extra'));
}
/**
* delete
* @param $id
* @return mixed
*/
public static function delete($id){
return self::call('elasContent.delete',compact('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