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
ac33a75b
Commit
ac33a75b
authored
Mar 21, 2023
by
zhangdongying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 全局日志RPC接口
parent
70deb862
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
GlobalOperateLogServiceInterface.php
...rvice/Interfaces/App/GlobalOperateLogServiceInterface.php
+49
-0
No files found.
src/Service/Interfaces/App/GlobalOperateLogServiceInterface.php
0 → 100644
View file @
ac33a75b
<?php
/**
* 全局操作日志RPC接口
*
* @author zhangdongying
* @date 2023-03-21
*/
declare
(
strict_types
=
1
);
namespace
Meibuyu\Rpc\Service\Interfaces\App
;
interface
GlobalOperateLogServiceInterface
{
/**
* 获取全局操作日志列表
*
* @param array $operateTypes 操作类型数组,例如:["产品管理-产品列表-更新产品","产品管理-产品列表-创建产品"]
* @param string $recordId 关联数据ID,例如:18186
* @param array $columns 字段数组,例如:['id', 'operator_id', 'operator_name', 'remark', 'created_at'],参考表operate_logs
* @param array $orderBys 排序,例如:[["created_at", "desc"], ["id", "desc"]]
* @return array
*/
public
function
getList
(
array
$operateTypes
,
string
$recordId
,
array
$columns
=
[
'id'
,
'operator_id'
,
'operator_name'
,
'remark'
,
'created_at'
],
array
$orderBys
=
[[
'id'
,
'desc'
]]
)
:
array
;
/**
* 获取全局操作日志分页列表
*
* @param array $operateTypes 操作类型数组,例如:["产品管理-产品列表-更新产品","产品管理-产品列表-创建产品"]
* @param string $recordId 关联数据ID,例如:18186
* @param int $page 页码
* @param int $pageSize 每页数量
* @param array $columns 字段数组,例如:['id', 'operator_id', 'operator_name', 'remark', 'created_at'],参考表operate_logs
* @param array $orderBys 排序,例如:[["created_at", "desc"], ["id", "desc"]]
* @return array
*/
public
function
getPageList
(
array
$operateTypes
,
string
$recordId
,
int
$page
,
int
$pageSize
,
array
$columns
=
[
'id'
,
'operator_id'
,
'operator_name'
,
'remark'
,
'created_at'
],
array
$orderBys
=
[[
'id'
,
'desc'
]]
)
:
array
;
}
\ No newline at end of file
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