获取函数列表
POST
/myauth/web/getJsList请求参数
Header 参数
token
string
必需
登录成功后返回的token
示例值:
a8b7ac1e61cc485589c081eec70deb95
Body 参数application/json
fromSoftId
integer
所属软件id
jsFun
string
函数名称
入口函数,模糊查询
addTime
string
添加时间戳
模糊查询
status
integer
状态
0=禁用,1=正常
remark
string
备注
模糊查询
pageIndex
integer
页码
pageSize
integer
每页数据行数
orders
array [object {2}]
排序
column
string
字段名
必须严格遵守系统返回的字段名,即原样的驼峰命名法
asc
boolean
是否正序排序
示例
{
"fromSoftId": 1,
"pageIndex": 1,
"pageSize": 10,
"status": 1,
"jsFun": "",
"remark": ""
}
示例代码
返回响应
成功(200)
错误(500)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
object
必需
records
array [object {8}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
timestamp
integer
必需
示例成功示例
{
"code": 200,
"success": true,
"msg": "获取成功",
"sign": "",
"result": {
"records": [
{
"id": 1,
"jsFun": "ipToHex",
"jsContent": "function ipToHex(c1){\r\n\tvar ip = c1;\r\n\tvar arr = ip.split(\".\");\r\n\tvar ret = \"\";\r\n\tfor(var i = 0;i < arr.length;i++){\r\n\t\tvar tmp = parseInt(arr[i]).toString(16).toUpperCase();\r\n\t\tif(tmp.length==1){\r\n\t\t\ttmp = \"0\" + tmp;\r\n\t\t}\r\n\t\tif(i==0){\r\n\t\t\tret = tmp;\r\n\t\t}else{\r\n\t\t\tret = ret + \" \" + tmp;\r\n\t\t}\r\n\t}\r\n\treturn ret;\r\n}",
"addTime": 1644657622,
"status": 1,
"fromSoftId": 1,
"remark": "IP转换",
"fromSoftName": "MyQQ"
},
{
"id": 2,
"jsFun": "test",
"jsContent": "function test(c1,c2,c3){\r\n\tvar ret = sum(c1,c2);\r\n\tvar ret = sum(ret,c3);\r\n\treturn ret;\r\n}\r\n\r\nfunction sum(num1,num2){\r\n\treturn Number(num1) + Number(num2);\r\n}",
"addTime": 1644657622,
"status": 1,
"fromSoftId": 1,
"remark": "labore Ut consectetur nulla",
"fromSoftName": "MyQQ"
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
},
"timestamp": 1645618500636
}
最后修改时间: 3 年前