文档
测试

根域名列表

GET
http:/domain/api/front/subhost/lists?start_date=2019-01-01&end_date=2020-12-09&page=1&limit=20&pid=2&sub_host=666e.club

请求头

参数名
类型
描述
必填
Content-Type:application/json
sring
必填
Authorization
string
例如:Bearer token值
必填

请求参数

参数名
类型
描述
必填
start_date
date
开始日期
可选
end_date
date
截至日期
可选
page
int
当前第几页
可选
limit
int
分页数量,默认15
可选
remark
string
备注
可选
sub_host
string
根域名
可选

响应参数

参数名
类型
描述
必填
id
int
根域名id
必填
sub_host
string
根域名
必填
nsstates
int
ns状态 0-请变更DNS服务器 1-正常
必填
created_at
date
创建时间
必填
remark
string
备注
必填
merchat_host_count
int
记录数
必填
states
int
0-正常 1-待审核 2-禁止解析
必填

说明 / 示例

返回参数示例: ``` { "code": 1, "msg": "success", "data": { "list": { "current_page": 1, "data": [{ "id": 12, "sub_host": "4.com", "states": 0, "nsstates": 0, "remark": "666e.club", "created_at": "2020-12-25 11:54:36", "merchat_host_count": 0 }, { "id": 1, "sub_host": "666e.club", "states": 0, "nsstates": 0, "remark": "222", "created_at": "2020-10-29 12:09:33", "merchat_host_count": 9 }], "first_page_url": "http:\/\/127.0.0.1:9807\/api\/front\/subhost\/lists?page=1", "from": 1, "last_page": 1, "last_page_url": "http:\/\/127.0.0.1:9807\/api\/front\/subhost\/lists?page=1", "next_page_url": null, "path": "http:\/\/127.0.0.1:9807\/api\/front\/subhost\/lists", "per_page": 15, "prev_page_url": null, "to": 2, "total": 2 } } } ```