23 lines
526 B
Plaintext
23 lines
526 B
Plaintext
|
syntax = "v1"
|
||
|
|
||
|
info (
|
||
|
title: "collection"// TODO: add title
|
||
|
desc: "收藏服务"// TODO: add description
|
||
|
author: ""
|
||
|
email: ""
|
||
|
)
|
||
|
|
||
|
import "basic.api"
|
||
|
service collection {
|
||
|
//收藏产品
|
||
|
@handler CollectProductHandler
|
||
|
post /api/collection/collect_product(CollectProductReq) returns (response);
|
||
|
}
|
||
|
|
||
|
//收藏产品
|
||
|
type CollectProductReq {
|
||
|
ProductId int64 `json:"product_id"`
|
||
|
Logo string `json:"logo"`
|
||
|
SelectColorIndex int64 `json:"select_color_index"`
|
||
|
TemplateTag string `json:"template_tag"`
|
||
|
}
|