31 lines
649 B
PHP
31 lines
649 B
PHP
<?php
|
||
|
||
namespace app\master\service\push;
|
||
|
||
/**
|
||
* 数据库推送器接口
|
||
* 每个学术数据库(Portico / Scopus / EBSCO / CNKI / 邮件送交...)实现一个推送器。
|
||
*/
|
||
interface PusherInterface
|
||
{
|
||
/**
|
||
* 渠道唯一标识
|
||
* @return string
|
||
*/
|
||
public function code();
|
||
|
||
/**
|
||
* 展示名
|
||
* @return string
|
||
*/
|
||
public function label();
|
||
|
||
/**
|
||
* 推送整期
|
||
* @param int $stageId 分期id
|
||
* @param array $options 渠道额外配置(来自 j_db_channel.config 或默认配置)
|
||
* @return PushResult
|
||
*/
|
||
public function pushStage($stageId, array $options = []);
|
||
}
|