Methods
get /log_list(userAccountopt, projectNameopt, moduleopt, optionopt, findopt, sortNameopt, orderopt, timestamp, sign, pageSizeopt, pageopt, languageopt)
Parameters:
| Name |
Type |
Attributes |
Default |
Description |
userAccount |
String
|
<optional>
|
|
操作人账号名称 |
projectName |
String
|
<optional>
|
|
项目名称 |
module |
String
|
<optional>
|
|
操作模块 |
option |
String
|
<optional>
|
|
操作方法 |
find |
String(500)
|
<optional>
|
|
查询条件,json文本,示例:{"name":{"$regex":"王"}} |
sortName |
String(20)
|
<optional>
|
createdAt
|
排序列名,默认createdAt |
order |
Number
|
<optional>
|
-1
|
排序参数,默认-1,1 为升序排列,-1 为降序排列 |
timestamp |
String(10)
|
|
|
时间戳,值为秒值,长度10位,时间戳有效期:±10分钟 |
sign |
String(64)
|
|
|
签名 |
pageSize |
Number
|
<optional>
|
20
|
分页行数,最大100 2023/8/30 |
page |
Number
|
<optional>
|
1
|
页码 |
language |
String(50)
|
<optional>
|
|
语种,不传或无值将维持默认语种(简体中文)不会转换简繁体文字内容,目前支持:simplifiedChinese:简体中文,traditionalChinese:繁体中文 |
Properties:
| Name |
Type |
Description |
total |
Number
|
总行数 |
data |
Array.<Object>
|
当前页数据
Properties
| Name |
Type |
Description |
_id |
String(24)
|
日志ID |
userId |
String
|
操作人ID |
userAccount |
String
|
操作人账号名称 |
projectName |
String
|
项目名称 |
module |
String
|
操作模块 |
option |
String
|
操作方法 |
ip |
String
|
ip地址 |
params |
String
|
query参数 |
content |
String
|
body参数 |
createdAt |
Date
|
创建日期 |
updatedAt |
Date
|
更新日期 |
|
Examples
请求示例:/log_list?pageSize=5&page=1&sign=1C2B09A2C9E20BB3948833AB7D77B4CA803D05906E8CC600014750275E2909C2×tamp=1570428513
返回示例:
{
"total": 1,
"data": [
{
"userId": "68ca9bb12f1eedb774039cf1",
"userAccount": "zxf@zydsoft.com",
"projectName": "Partner",
"module": "Disease",
"option": "修改病症",
"ip": "127.0.0.1",
"params": "{\"diseaseId\":\"67ca86ce9aa51d2c960ee17a\",\"partnerId\":\"6348b319a607c70011859f5c\",\"timestamp\":\"1764074400\",\"language\":\"simplifiedChinese\",\"sign\":\"549A0289BE0D216C163E0E764F51035D6BA358CE79D5D6F2DE2D184D846ECD54\"}",
"content": {},
"optionResult": "{\"success\":true}",
"createdAt": "2025-12-14T10:00:00.000Z",
"updatedAt": "2025-12-14T10:00:00.000Z"
}
]
}
post /log_add(timestamp, sign, JSON)
Parameters:
| Name |
Type |
Description |
timestamp |
String(10)
|
时间戳,值为秒值,长度10位,时间戳有效期:±10分钟 |
sign |
String(64)
|
签名 |
JSON |
Object
|
body参数
Properties
| Name |
Type |
Attributes |
Description |
userId |
String
|
<optional>
|
操作人Id |
userAccount |
String
|
<optional>
|
操作人账号名称 |
projectName |
String
|
<optional>
|
项目名称 |
module |
String
|
<optional>
|
操作模块 |
option |
String
|
<optional>
|
操作方法 |
ip |
String
|
<optional>
|
ip地址 |
params |
String
|
<optional>
|
query参数 |
content |
Number
|
<optional>
|
body参数 |
optionResult |
Number
|
<optional>
|
操作结果 |
|
Properties:
| Name |
Type |
Description |
productId |
String(24)
|
药品ID |
Throws:
400 缺少title
Examples
请求示例:/log_add?sign=29B95FBA8B10FEDFDCD4C9BC172F31AFA687DFA6B9241E69F3E59E873B6CF924×tamp=1570428513
请求JSON参数:
{
userId: '68ca9bb12f1eedb774039cf1',
userAccount: 'zxf@zydsoft.com',
projectName: 'Partner',
module: 'Disease',
option: '修改病症',
ip: '127.0.0.1',
params: '{"diseaseId":"67ca86ce9aa51d2c960ee17a","partnerId":"6348b319a607c70011859f5c","timestamp":"1764074400","language":"simplifiedChinese","sign":"549A0289BE0D216C163E0E764F51035D6BA358CE79D5D6F2DE2D184D846ECD54"}',
content: '',
optionResult: '{"success":true}'
}
返回示例:
{
"success": true
}