增加收藏页的添加和删除接口

This commit is contained in:
laodaming
2023-10-08 12:04:00 +08:00
parent bfeacad5f0
commit b93691a0bf
9 changed files with 305 additions and 5 deletions

View File

@@ -12,6 +12,12 @@ service collection {
//收藏产品
@handler CollectProductHandler
post /api/collection/collect_product(CollectProductReq) returns (response);
//删除收藏
@handler DeleteCollectProductHandler
post /api/collection/delete_collect_product(DeleteCollectProductReq) returns (response);
//获取收藏列表
@handler GetCollectProductListHandler
get /api/collection/get_collect_product_list(GetCollectProductListReq) returns (response);
}
//收藏产品
@@ -20,4 +26,22 @@ type CollectProductReq {
Logo string `json:"logo"`
SelectColorIndex int64 `json:"select_color_index"`
TemplateTag string `json:"template_tag"`
}
//删除收藏
type DeleteCollectProductReq {
Ids []int64 `json:"ids"`
}
//获取收藏列表
type GetCollectProductListReq {
CurrentPage int `form:"current_page"`
}
type GetCollectProductListRspItem {
Id int64 `json:"id"`
ProductId int64 `json:"product_id"`
ProductName string `json:"product_name"`
Logo string `json:"logo"`
SelectColorIndex int64 `json:"select_color_index"`
TemplateTag string `json:"template_tag"`
SizeCount int64 `json:"size_count"`
MinPrice string `json:"min_price"`
}