文档
测试

模糊查询搜索公司

GET
http://localhost:8080/company/list

接口描述

模糊查询公司数据,线上测试地址:http://47.94.95.151:8888

前端请求参数

参数名
类型
描述
必填
pageNum
string
分页参数页码,必填
必填
pageSize
string
分页参数每页数据,必填
必填
name
string
查询关键字,不能为空
必填
withPage
Integer
0不分页,1分页
必填

未登录响应参数

参数名
类型
描述
必填
code
Integer
-1
必填
message
String
会话已经丢失
必填

成功响应参数

参数名
类型
描述
必填
data
object
成功返回数据(展开查看)
必填
id
Integer
公司编号
必填
name
String
公司名称
必填
isDel
Integer
是否有效,默认1为有效
必填
msg
string
可选
status
Integer
0
必填
success
boolean
true
可选

失败响应参数

参数名
类型
描述
必填
msg
没有更多的就业信息~
必填
status
301
必填
msg
参数不能为空
必填
status
100
必填

成功数据示例

{ "list": [ { "id": 28, "isDel": 1, "name": "北京泛鹏天地有限公司", "pageNo": 1, "pageSize": 9, "withPage": 1 }, { "id": 42, "isDel": 1, "name": "北京华胜鸣天", "pageNo": 1, "pageSize": 9, "withPage": 1 }, { "id": 58, "isDel": 1, "name": "北京蓝天多维科技有限公司", "pageNo": 1, "pageSize": 9, "withPage": 1 }, { "id": 68, "isDel": 1, "name": "北京数字政通科技股份有限公司天津分公司", "pageNo": 1, "pageSize": 9, "withPage": 1 }, { "id": 71, "isDel": 1, "name": "北京天之华科技有限公司", "pageNo": 1, "pageSize": 9, "withPage": 1 }, { "id": 86, "isDel": 1, "name": "北京亚美科软件有限公司天津研发中心", "pageNo": 1, "pageSize": 9, "withPage": 1 }, { "id": 92, "isDel": 1, "name": "北京用友政务天津分公司", "pageNo": 1, "pageSize": 9, "withPage": 1 }, { "id": 109, "isDel": 1, "name": "博雅创智(天津)有限公司", "pageNo": 1, "pageSize": 9, "withPage": 1 }, { "id": 133, "isDel": 1, "name": "非常(天津)科技有限公司", "pageNo": 1, "pageSize": 9, "withPage": 1 }, { "id": 152, "isDel": 1, "name": "和仁(天津)科技有限公司", "pageNo": 1, "pageSize": 9, "withPage": 1 } ], "pageNo": 1, "totalPage": 19 }

失败返回示例

//参数不能为空 { "data": null, "msg": "参数不能为空", "status": 100, "success": false } //查找的公司数据不存在 { "data": null, "msg": "没有更多的就业信息~", "status": 301, "success": false }