数据系统项目
  1. 测试接口
数据系统项目
  • dim层接口
  • dwd层接口
  • dws层接口
  • cfg数据表
  • dim层关联表接口
  • 测试接口
    • 获取品牌列表
      GET
    • 获取品牌详情
      GET
    • 获取地区信息
      GET
    • 获取地区信息 - 非查询
      GET
    • 获取品牌的品类
      GET
    • 获取企业list
      GET
    • 获取企业详情数据
      GET
  • ext接口
    • 品牌别名列表接口
      GET
  1. 测试接口

获取品牌列表

开发中
GET
api/v1/brands

请求参数

Query 参数
country_str_id
string 
可选
国家id,以 1,2,3 这样样式组成字符串;地区之间是or关系
province_str_id
string 
可选
省id,以 1,2,3 这样样式组成字符串;地区之间是or关系
示例值:
1,2
city_str_id
string 
可选
城市id,以 1,2,3 这样样式组成字符串;地区之间是or关系
region_str_id
string 
可选
区域id,以 1,2,3 这样样式组成字符串;地区之间是or关系
district_str_id
string 
可选
区/县/镇id,以 1,2,3 这样样式组成字符串;地区之间是or关系
brand_type
integer 
可选
品牌类型,0品牌,1供应商;与其他条件是and关系
示例值:
1
brand_name
string 
可选
品牌名称,与其他条件是and关系
示例值:
喜
page_size
integer 
必需
每页大小,该参数从1开始计数
示例值:
10
current_page
integer 
当前页数
必需
示例值:
1
second_category_id_str
string 
可选
二级分类id字符串;一、二级分类与其他条件是and关系
master_category_id_str
string 
可选
一级分类id字符串;西餐id是8,没有二级分类,它会与二级分类组成or查询
示例值:
1,2,3,4,5,6,7
company_name
string 
可选
企业名称,与其他条件是and关系
brand_str_id
string 
品牌id字符串
可选
示例值:
1,2,3,4,5,6,7,8
Header 参数
X-Pagination-Total-Count
integer 
总页数
可选
示例值:
100
X-Pagination-Current-Page
integer 
当前页数
可选
示例值:
1
X-Pagination-Page-Size
integer 
每页大小
可选
示例值:
10
X-Pagination-Page-Count
integer 
当前页面被引用次数
可选
示例值:
0

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'api/v1/brands?brand_type=1&page_size=10&current_page=1&brand_str_id=1,2,3,4,5,6,7,8' \
--header 'X-Pagination-Total-Count: 100' \
--header 'X-Pagination-Current-Page: 1' \
--header 'X-Pagination-Page-Size: 10' \
--header 'X-Pagination-Page-Count: 0'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
data
array [object {22}] 
必需
background_color
null 
必需
background_img
null 
必需
brand_logo
null 
必需
brand_primary
integer 
必需
brand_rank
string 
必需
brand_type
integer 
必需
city_id
integer 
必需
city_level_id
integer 
必需
country_id
integer 
必需
created_at
string 
必需
deleted_at
string 
必需
description
string 
必需
district_id
integer 
必需
establish_time
integer 
必需
id
integer 
必需
is_authenticate
integer 
必需
name
string 
必需
province_id
integer 
必需
region_id
integer 
必需
remark
null 
必需
status
integer 
必需
updated_at
string 
必需
message
string 
必需
示例
{
  "code": 0,
  "data": [
    {
      "background_color": null,
      "background_img": null,
      "brand_logo": null,
      "brand_primary": 1,
      "brand_rank": "",
      "brand_type": 1,
      "city_id": 775,
      "city_level_id": 6,
      "country_id": 6,
      "created_at": "Sat, 02 Dec 2023 14:44:18 GMT",
      "deleted_at": "Sun, 15 Nov 2020 19:59:27 GMT",
      "description": "Yan Kee Industrial Company Limited",
      "district_id": 4624,
      "establish_time": 1993,
      "id": 1,
      "is_authenticate": 0,
      "name": "Brandon Gutierrez",
      "province_id": 42,
      "region_id": 37,
      "remark": null,
      "status": 1,
      "updated_at": "Thu, 21 Sep 2023 00:40:00 GMT"
    },
    {
      "background_color": null,
      "background_img": null,
      "brand_logo": null,
      "brand_primary": 0,
      "brand_rank": "",
      "brand_type": 1,
      "city_id": 802,
      "city_level_id": 7,
      "country_id": 5,
      "created_at": "Fri, 22 Dec 2023 10:40:30 GMT",
      "deleted_at": "Wed, 17 Nov 2010 12:04:37 GMT",
      "description": "Man's Limited",
      "district_id": 2971,
      "establish_time": 1990,
      "id": 2,
      "is_authenticate": 1,
      "name": "朱家強",
      "province_id": 10,
      "region_id": 21,
      "remark": null,
      "status": 1,
      "updated_at": "Fri, 14 Jan 2005 05:04:53 GMT"
    },
    {
      "background_color": null,
      "background_img": null,
      "brand_logo": null,
      "brand_primary": 1,
      "brand_rank": "",
      "brand_type": 1,
      "city_id": 830,
      "city_level_id": 8,
      "country_id": 4,
      "created_at": "Wed, 17 Dec 2003 06:35:26 GMT",
      "deleted_at": "Tue, 05 Sep 2000 10:08:06 GMT",
      "description": "Xiaoming Property Company Limited",
      "district_id": 6846,
      "establish_time": 2006,
      "id": 3,
      "is_authenticate": 0,
      "name": "David Ruiz",
      "province_id": 90,
      "region_id": 45,
      "remark": null,
      "status": 1,
      "updated_at": "Wed, 04 May 2016 16:41:11 GMT"
    },
    {
      "background_color": null,
      "background_img": null,
      "brand_logo": null,
      "brand_primary": 0,
      "brand_rank": "",
      "brand_type": 1,
      "city_id": 894,
      "city_level_id": 3,
      "country_id": 6,
      "created_at": "Sat, 22 Mar 2003 23:42:10 GMT",
      "deleted_at": "Sat, 16 May 2009 15:32:09 GMT",
      "description": "Tong's Engineering Limited",
      "district_id": 1567,
      "establish_time": 1990,
      "id": 4,
      "is_authenticate": 0,
      "name": "鄭安琪",
      "province_id": 4,
      "region_id": 38,
      "remark": null,
      "status": 1,
      "updated_at": "Mon, 04 May 2009 00:22:48 GMT"
    },
    {
      "background_color": null,
      "background_img": null,
      "brand_logo": null,
      "brand_primary": 0,
      "brand_rank": "",
      "brand_type": 1,
      "city_id": 858,
      "city_level_id": 7,
      "country_id": 4,
      "created_at": "Thu, 15 Jul 2010 06:36:54 GMT",
      "deleted_at": "Fri, 31 May 2019 20:10:19 GMT",
      "description": "Owens Inc.",
      "district_id": 6213,
      "establish_time": 1991,
      "id": 5,
      "is_authenticate": 0,
      "name": "Tong Chun Yu",
      "province_id": 16,
      "region_id": 31,
      "remark": null,
      "status": 1,
      "updated_at": "Sun, 15 Jul 2001 09:50:51 GMT"
    },
    {
      "background_color": null,
      "background_img": null,
      "brand_logo": null,
      "brand_primary": 0,
      "brand_rank": "",
      "brand_type": 1,
      "city_id": 1000,
      "city_level_id": 4,
      "country_id": 9,
      "created_at": "Thu, 21 Nov 2002 19:01:35 GMT",
      "deleted_at": "Mon, 25 Oct 2004 23:27:51 GMT",
      "description": "Li Telecommunication Company Limited",
      "district_id": 596,
      "establish_time": 1996,
      "id": 6,
      "is_authenticate": 0,
      "name": "范子韬",
      "province_id": 4,
      "region_id": 7,
      "remark": null,
      "status": 1,
      "updated_at": "Sun, 30 Apr 2017 09:05:41 GMT"
    },
    {
      "background_color": null,
      "background_img": null,
      "brand_logo": null,
      "brand_primary": 1,
      "brand_rank": "",
      "brand_type": 1,
      "city_id": 487,
      "city_level_id": 6,
      "country_id": 3,
      "created_at": "Sun, 10 Feb 2019 09:10:05 GMT",
      "deleted_at": "Mon, 12 Feb 2024 05:42:04 GMT",
      "description": "Edward Toy Inc.",
      "district_id": 8639,
      "establish_time": 2011,
      "id": 7,
      "is_authenticate": 0,
      "name": "曹睿",
      "province_id": 62,
      "region_id": 26,
      "remark": null,
      "status": 1,
      "updated_at": "Sun, 01 Dec 2019 00:29:30 GMT"
    },
    {
      "background_color": null,
      "background_img": null,
      "brand_logo": null,
      "brand_primary": 1,
      "brand_rank": "",
      "brand_type": 1,
      "city_id": 841,
      "city_level_id": 5,
      "country_id": 8,
      "created_at": "Fri, 04 May 2007 11:58:33 GMT",
      "deleted_at": "Thu, 28 Jan 2021 00:32:10 GMT",
      "description": "韦記有限责任公司",
      "district_id": 1667,
      "establish_time": 2004,
      "id": 8,
      "is_authenticate": 0,
      "name": "湯學友",
      "province_id": 55,
      "region_id": 18,
      "remark": null,
      "status": 1,
      "updated_at": "Mon, 01 Jul 2024 19:43:23 GMT"
    },
    {
      "background_color": null,
      "background_img": null,
      "brand_logo": null,
      "brand_primary": 0,
      "brand_rank": "",
      "brand_type": 1,
      "city_id": 832,
      "city_level_id": 5,
      "country_id": 7,
      "created_at": "Tue, 01 Jul 2003 15:54:48 GMT",
      "deleted_at": "Tue, 16 Mar 2010 04:21:27 GMT",
      "description": "Stone Brothers Inc.",
      "district_id": 151,
      "establish_time": 1997,
      "id": 9,
      "is_authenticate": 1,
      "name": "余宇宁",
      "province_id": 86,
      "region_id": 47,
      "remark": null,
      "status": 1,
      "updated_at": "Fri, 18 Jun 2010 04:22:06 GMT"
    },
    {
      "background_color": null,
      "background_img": null,
      "brand_logo": null,
      "brand_primary": 0,
      "brand_rank": "",
      "brand_type": 1,
      "city_id": 216,
      "city_level_id": 1,
      "country_id": 2,
      "created_at": "Fri, 14 Mar 2003 03:00:11 GMT",
      "deleted_at": "Tue, 13 May 2003 19:54:10 GMT",
      "description": "安琪有限责任公司",
      "district_id": 1893,
      "establish_time": 2016,
      "id": 10,
      "is_authenticate": 1,
      "name": "Xia Zhennan",
      "province_id": 5,
      "region_id": 2,
      "remark": null,
      "status": 1,
      "updated_at": "Thu, 03 Jul 2008 23:27:36 GMT"
    }
  ],
  "message": "success"
}
下一页
获取品牌详情
Built with