分页和条件查询[供应商]
GET
/vendors请求参数
Query 参数
limit
integer
每页显示多少
示例值:
10
page
integer
页数
示例值:
1
contact_name
string
联系人名字
vendor_address
string
供应商地址
vendor_name
string
供应商名字
registrationStartDate
string
可选
注册时间 合作开始时间
registrationEndDate
string
可选
结束时间 合作结束时间
sort
string
可选
排序字段,默认创建时间create_time
order
string
可选
顺序(默认降序) descend: 降序 ascend: 升序
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
records
array [object {12}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array[string]
必需
optimizeCountSql
boolean
必需
hitCount
boolean
必需
countId
null
必需
maxLimit
null
必需
searchCount
boolean
必需
pages
integer
必需
示例
成功示例
{
"code": 20000,
"message": "分页和条件查询[供应商]信息成功",
"data": {
"records": [
{
"contact_name": "联系人名字3",
"registration_end_date": "2023-12-10T16:27:30",
"contact_phone": "11111111111",
"vendor_id": 3,
"description": "好好好",
"vendor_name": "供应商名称3",
"vendor_state": 0,
"vendorState": "合作",
"by_user": "很久很",
"vendor_address": "供应商地址3",
"registration_start_date": "2023-11-28T16:27:26"
},
{
"contact_name": "联系人名字2",
"registration_end_date": "2024-05-18T10:15:49",
"contact_phone": "19120596642",
"vendor_id": 2,
"description": "好好好",
"vendor_name": "供应商名称2",
"remark": "",
"vendor_state": 0,
"vendorState": "合作",
"by_user": "李嘉榕",
"vendor_address": "供应商地址2",
"registration_start_date": "2023-11-28T10:15:44"
},
{
"contact_name": "联系人名字1",
"registration_end_date": "2023-12-10T10:02:28",
"contact_phone": "19120596642",
"vendor_id": 1,
"description": "好好好",
"vendor_name": "供应商名称1",
"remark": "",
"vendor_state": 0,
"vendorState": "合作",
"by_user": "李嘉榕",
"vendor_address": "供应商地址",
"registration_start_date": "2023-11-28T14:39:52"
}
],
"total": 3,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"hitCount": false,
"countId": null,
"maxLimit": null,
"searchCount": true,
"pages": 1
}
}
最后修改时间: 1 年前