Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-rpc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
without authentication
meibuyu-rpc
Commits
d1a1536c
Commit
d1a1536c
authored
Jul 01, 2020
by
jiangkebao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpc 消息推送
parent
06b05c1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
34 deletions
+23
-34
MessageServiceInterface.php
src/Service/Interfaces/MessageServiceInterface.php
+23
-0
MessageTemplateServiceInterface.php
src/Service/Interfaces/MessageTemplateServiceInterface.php
+0
-20
SocketIoServiceInterface.php
src/Service/Interfaces/SocketIoServiceInterface.php
+0
-14
No files found.
src/Service/Interfaces/MessageServiceInterface.php
0 → 100644
View file @
d1a1536c
<?php
/**
* Created by PhpStorm.
* User: 姜克保
* Date: 2020/5/20
* Time: 15:48
*/
namespace
Meibuyu\Micro\Service\Interfaces
;
use
phpDocumentor\Reflection\Types\Integer
;
interface
MessageServiceInterface
{
/**
* @param array $receiveUserId 接收人id
* @param string $application 应用名称
* @param int $sendUserId 发送人id(发送人id等于0时是系统消息)
* @param int $templateId 模板id
* @param array $replace 替换模板内容
*/
public
function
send
(
array
$receiveUserId
,
$application
,
$templateId
,
$sendUserId
=
0
,
$replace
=
[])
:
bool
;
}
src/Service/Interfaces/MessageTemplateServiceInterface.php
deleted
100644 → 0
View file @
06b05c1e
<?php
/**
* Created by PhpStorm.
* User: 姜克保
* Date: 2020/5/20
* Time: 15:48
*/
namespace
Meibuyu\Micro\Service\Interfaces
;
interface
MessageTemplateServiceInterface
{
/**
* 返回替换后的模板内容
* @param int $template_id 模板id
* @param array $replace 替换内容(注意顺序)
* @return string
*/
public
function
getMessage
(
int
$template_id
,
array
$replace
=
[])
:
string
;
}
src/Service/Interfaces/SocketIoServiceInterface.php
deleted
100644 → 0
View file @
06b05c1e
<?php
/**
* Created by PhpStorm.
* User: 姜克保
* Date: 2020/5/20
* Time: 15:48
*/
namespace
Meibuyu\Micro\Service\Interfaces
;
interface
SocketIoServiceInterface
{
public
function
sendToUsers
(
$userIdList
,
$message
);
}
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