2019-02-19 07:58:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Wechat\Work;
|
|
|
|
;
|
|
|
|
|
|
|
|
class Work extends Base
|
|
|
|
{
|
|
|
|
public function __construct($config)
|
|
|
|
{
|
|
|
|
parent::__construct($config);
|
|
|
|
}
|
|
|
|
|
2019-02-20 08:28:32 +00:00
|
|
|
/**
|
|
|
|
* 消息推送
|
|
|
|
* @return Message
|
|
|
|
*/
|
2019-02-19 07:58:00 +00:00
|
|
|
public function message()
|
|
|
|
{
|
|
|
|
return new Message($this);
|
|
|
|
}
|
|
|
|
|
2019-02-20 08:28:32 +00:00
|
|
|
/**
|
|
|
|
* 群聊接口
|
2019-02-20 11:18:30 +00:00
|
|
|
* @param string $id 群id
|
2019-02-20 08:28:32 +00:00
|
|
|
*/
|
|
|
|
public function chat($id)
|
|
|
|
{
|
|
|
|
return new Chat($id, $this);
|
|
|
|
}
|
|
|
|
|
2019-02-20 11:18:30 +00:00
|
|
|
/**
|
|
|
|
* 小程序接口
|
|
|
|
* @return Miniprogram
|
|
|
|
*/
|
|
|
|
public function miniProgram(){
|
|
|
|
return new Miniprogram($this);
|
|
|
|
}
|
|
|
|
|
2019-02-19 07:58:00 +00:00
|
|
|
}
|