private-1

94 阅读6分钟

-- 检测范围使用

查询所有分类,分级显示

接口地址:/portal-qa/productCategory/getCategoryTree

请求方式:GET

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

暂无

响应状态:

状态码说明schema
200OKCommonResult«List«PmsProductCategoryTree»»
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int64)integer(int64)
dataarrayPmsProductCategoryTree
  childsarrayPmsProductCategoryTree
    childsfalsearrayPmsProductCategoryTree
    idfalseinteger(int64)
    levelfalseinteger(int32)
    namefalsestring
    parentIdfalseinteger(int64)
  idinteger(int64)
  levelinteger(int32)
  namestring
  parentIdinteger(int64)
messagestring

响应示例:

{
	"code": 0,
	"data": [
		{
			"childs": [
				{
					"childs": [
						{}
					],
					"id": 0,
					"level": 0,
					"name": "",
					"parentId": 0
				}
			],
			"id": 0,
			"level": 0,
			"name": "",
			"parentId": 0
		}
	],
	"message": ""
}

分页查询品牌

接口地址:/portal-qa/brand/page

请求方式:GET

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明in是否必须数据类型schema
type标准分类queryfalseinteger(int32)
pageSizepageSizequeryfalseinteger(int32)
pageNumpageNumqueryfalseinteger(int32)

响应状态:

状态码说明schema
200OKCommonResult«CommonPage«SmsHomeBrand»»
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int64)integer(int64)
dataCommonPage«SmsHomeBrand»CommonPage«SmsHomeBrand»
  listarraySmsHomeBrand
    brandIdfalseinteger(int64)
    brandNamefalsestring
    idfalseinteger(int64)
    recommendStatusfalseinteger(int32)
    sortfalseinteger(int32)
  pageNuminteger(int32)
  pageSizeinteger(int32)
  totalinteger(int64)
  totalPageinteger(int32)
messagestring

响应示例:

{
	"code": 0,
	"data": {
		"list": [
			{
				"brandId": 0,
				"brandName": "",
				"id": 0,
				"recommendStatus": 0,
				"sort": 0
			}
		],
		"pageNum": 0,
		"pageSize": 0,
		"total": 0,
		"totalPage": 0
	},
	"message": ""
}

查询商品

接口地址:/portal-qa/product/list

请求方式:GET

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明in是否必须数据类型schema
productCategoryId商品分类编号queryfalseinteger(int64)
brandId商品品牌编号queryfalseinteger(int64)
pageSizepageSizequeryfalseinteger(int32)
pageNumpageNumqueryfalseinteger(int32)

响应状态:

状态码说明schema
200OKCommonResult«CommonPage«PmsProduct»»
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int64)integer(int64)
dataCommonPage«PmsProduct»CommonPage«PmsProduct»
  listarrayPmsProduct
    albumPics画册图片,连产品图片限制为5张,以逗号分割falsestring
    brandIdfalseinteger(int64)
    brandName品牌名称falsestring
    deleteStatus删除状态:0->未删除;1->已删除falseinteger(int32)
    description商品描述falsestring
    detailDescfalsestring
    detailHtml产品详情网页内容falsestring
    detailMobileHtml移动端网页详情falsestring
    detailTitlefalsestring
    feightTemplateIdfalseinteger(int64)
    giftGrowth赠送的成长值falseinteger(int32)
    giftPoint赠送的积分falseinteger(int32)
    idfalseinteger(int64)
    keywordsfalsestring
    lowStock库存预警值falseinteger(int32)
    namefalsestring
    newStatus新品状态:0->不是新品;1->新品falseinteger(int32)
    notefalsestring
    originalPrice市场价falsenumber
    picfalsestring
    previewStatus是否为预告商品:0->不是;1->是falseinteger(int32)
    pricefalsenumber
    productAttributeCategoryIdfalseinteger(int64)
    productCategoryIdfalseinteger(int64)
    productCategoryName商品分类名称falsestring
    productSn货号falsestring
    promotionEndTime促销结束时间falsestring(date-time)
    promotionPerLimit活动限购数量falseinteger(int32)
    promotionPrice促销价格falsenumber
    promotionStartTime促销开始时间falsestring(date-time)
    promotionType促销类型:0->没有促销使用原价;1->使用促销价;2->使用会员价;3->使用阶梯价格;4->使用满减价格;5->限时购falseinteger(int32)
    publishStatus上架状态:0->下架;1->上架falseinteger(int32)
    recommandStatus推荐状态;0->不推荐;1->推荐falseinteger(int32)
    sale销量falseinteger(int32)
    serviceIds以逗号分割的产品服务:1->无忧退货;2->快速退款;3->免费包邮falsestring
    sort排序falseinteger(int32)
    stock库存falseinteger(int32)
    subTitle副标题falsestring
    unit单位falsestring
    usePointLimit限制使用的积分数falseinteger(int32)
    verifyStatus审核状态:0->未审核;1->审核通过falseinteger(int32)
    weight商品重量,默认为克falsenumber
  pageNuminteger(int32)
  pageSizeinteger(int32)
  totalinteger(int64)
  totalPageinteger(int32)
messagestring

响应示例:

{
	"code": 0,
	"data": {
		"list": [
			{
				"albumPics": "",
				"brandId": 0,
				"brandName": "",
				"deleteStatus": 0,
				"description": "",
				"detailDesc": "",
				"detailHtml": "",
				"detailMobileHtml": "",
				"detailTitle": "",
				"feightTemplateId": 0,
				"giftGrowth": 0,
				"giftPoint": 0,
				"id": 0,
				"keywords": "",
				"lowStock": 0,
				"name": "",
				"newStatus": 0,
				"note": "",
				"originalPrice": 0,
				"pic": "",
				"previewStatus": 0,
				"price": 0,
				"productAttributeCategoryId": 0,
				"productCategoryId": 0,
				"productCategoryName": "",
				"productSn": "",
				"promotionEndTime": "",
				"promotionPerLimit": 0,
				"promotionPrice": 0,
				"promotionStartTime": "",
				"promotionType": 0,
				"publishStatus": 0,
				"recommandStatus": 0,
				"sale": 0,
				"serviceIds": "",
				"sort": 0,
				"stock": 0,
				"subTitle": "",
				"unit": "",
				"usePointLimit": 0,
				"verifyStatus": 0,
				"weight": 0
			}
		],
		"pageNum": 0,
		"pageSize": 0,
		"total": 0,
		"totalPage": 0
	},
	"message": ""
}

添加检测范围

接口地址:/portal-qa/testScope/add

请求方式:POST

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求示例:

{
	"brandId": 0,
	"categoryId": 0,
	"createTime": "",
	"id": 0,
	"memberId": 0,
	"productId": 0,
	"selectAll": 0
}

请求参数:

参数名称参数说明in是否必须数据类型schema
omsOrderTestScopeomsOrderTestScopebodytrueOmsOrderTestScopeOmsOrderTestScope
  brandId所属品牌IDfalseinteger(int64)
  categoryId所属分类IDfalseinteger(int64)
  createTime创建时间falsestring(date-time)
  id检测范围IDfalseinteger(int64)
  memberId所属会员IDfalseinteger(int64)
  productId所属项目IDfalseinteger(int64)
  selectAll是够选择全部 0:否 1:是falseinteger(int64)

响应状态:

状态码说明schema
200OKCommonResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int64)integer(int64)
dataobject
messagestring

响应示例:

{
	"code": 0,
	"data": {},
	"message": ""
}

删除检测范围

接口地址:/portal-qa/testScope/delete/{id}

请求方式:DELETE

请求数据类型:application/json

响应数据类型:*/*

接口描述:

请求参数:

参数名称参数说明in是否必须数据类型schema
ididpathtrueinteger(int64)

响应状态:

状态码说明schema
200OKCommonResult
204No Content
401Unauthorized
403Forbidden

响应参数:

参数名称参数说明类型schema
codeinteger(int64)integer(int64)
dataobject
messagestring

响应示例:

{
	"code": 0,
	"data": {},
	"message": ""
}

检测范围列表

接口地址:/portal-qa/testScope/list

请求方式:GET

请求数据类型:application/json

响应数据类型:*/*

接口描述:

响应状态:

状态码说明schema
200OKCommonResult
201Created
401Unauthorized
403Forbidden
404Not Found

响应参数:

参数名称参数说明类型schema
codeinteger(int64)integer(int64)
dataobject
messagestring

响应示例:

{
	"code": 0,
	"data": {
		{
			"brandId": 0,
			"brandName":"",
			"categoryId": 0,
			"categoryName":"",
			"createTime": "",
			"id": 0,
			"memberId": 0,
			"productId": 0,
			"productName": "",
			"selectAll": 0
		}
	},
	"message": ""
}