通用查询接口
POST
http://127.0.0.1:8081/iot/authority/nb/findList
接口描述
通用查询接口
请求参数
参数名
类型
描述
必填
className
string
查询主集合对应的JAVA模型类名。示例:com.jbn.model.mongo.IotRunDataMongoEntity
必填
checkDataAuthority
boolean
是否检查用户数据权限 默认为 true
必填
fromClassName
string
关联查询对应的外联集合类 示例:com.jbn.model.mongo.IotRunDataMongoEntity
必填
localField
string
主表字段关联字段 示例:depart
必填
foreignField
string
关联表外键字段 示例:id
必填
fieldName
string
示例:user.id
必填
relation
string
示例:>
必填
value
int
示例:3
必填
selectFields
array
数据列表
必填
sortDirection
string
示例:desc
必填
sortField
string
示例:id
必填
响应参数
参数名
类型
描述
必填
success
boolean
示例:true
必填
code
int
示例:200
必填
message
string
示例:成功
必填
_id
string
示例:5f48cac2ea4a0239d2537ff6
必填
id
int
示例:2
必填
staResult
string
示例:
必填
imei
string
示例:868120242911011
必填
startTime
string
示例:2020-08-28 17:13:17
必填
endTime
string
示例:2020-08-28 17:13:33
必填
intervals
int
示例:16000
必填
times
string
示例:
必填
count
string
分页查询时应返回集合的总数量
必填
timestamp
string
示例:2020-09-04T03:08:59.924+0000
必填
status
int
示例:400
必填
error
string
示例:Bad Request
必填
message
string
示例:JSON parse error: Unexpected character ('u' (code 117)): was expecting double-quote to start field name; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('u' (code 117)): was expecting double-quote to start field name
at [Source: (PushbackInputStream); line: 16, column: 4]
必填
path
string
示例:/iot/authority/nb/findList
必填