123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- syntax = "v1"
- info (
- title: // TODO: add title
- desc: // TODO: add description
- author: "wangshan"
- email: "wangshan@topnet.net.cn"
- )
- type (
- //招标信息是否被收藏
- BCAction {
- UserId string `header:"userId"`
- Bids []string `json:"bids"`
- Baction string `json:"baction"` //R:移除收藏;C:收藏
- }
- //标签新增或删除
- LabelAction {
- UserId string `header:"userId"`
- Lids string `json:"lids"` //标签ids
- Lname string `json:"lname"` //标签名称
- Binfo []string `json:"binfo,optional"` //收藏的招标信息
- Laction string `json:"laction"` //用户行为:S添加或绑定标签;D删除标签
- }
- //获取标签
- GetLabelAction {
- UserId string `header:"userId"`
- }
- //获取收藏列表
- List {
- UserId string `header:"userId"`
- Pagenum int64 `json:"pagenum"` //页数
- Label string `json:"label"` //标签 用,分隔开
- SelectTime string `json:"selectTime,optional"` //收藏时间
- Buyerclass string `json:"buyerclass,optional"` //采购单位 用,分隔开
- BuyerPhone int64 `json:"buyerPhone,optional"` //是否需要采购单位联系方式 1:需要 -1:不需要 0:未选中
- WinnerPhone int64 `json:"winnerPhone,optional"` //是否需要中标单位联系方式 1:需要 -1:不需要 0:未选中
- Pagesize int64 `json:"pagesize"` //每页展示数量
- }
- //新增标签
- AddLabel {
- UserId string `header:"userId"`
- Name string `json:"name"`
- }
- //招标信息是否被收藏
- IsCollAction {
- UserId string `header:"userId"`
- Bids string `json:"bids"`
- Label string `json:"label,optional"`
- }
- //公共接口返回
- CommonRes {
- Err_code int `json:"error_code"`
- Err_msg string `json:"error_msg"`
- Data interface{} `json:"data"`
- }
- )
- service bxcore-api {
- //招标信息是否被收藏
- @handler IsCollAction
- post /bidcoll/isColl (IsCollAction) returns(CommonRes)
- //招标信息收藏
- @handler BCAction
- post /bidcoll/action (BCAction) returns(CommonRes)
- //标签新增或删除
- @handler LabelAction
- post /bidcoll/label (LabelAction) returns(CommonRes)
- //获取标签
- @handler GetLabelAction
- post /bidcoll/getLabel (GetLabelAction) returns(CommonRes)
- //获取收藏列表
- @handler List
- post /bidcoll/list (List) returns(CommonRes)
- //添加标签
- @handler AddLabel
- post /bidcoll/addLabel (AddLabel) returns(CommonRes)
- }
|