bxbuyer.api 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. syntax = "v1"
  2. info (
  3. title: "剑鱼采购单位模块" // TODO: add title
  4. desc: "采购单位画像,采购单位列表等"// TODO: add description
  5. author: "wangshan"
  6. email: "wangshan@topnet.net.cn"
  7. )
  8. type (
  9. buyerListReq {
  10. Province []string `json:"province,optional"` //省份
  11. City []string `json:"city,optional"` //城市
  12. BuyerClass []string `json:"buyerClass,optional"` //客户类型(采购单位行业)
  13. BusinessScope string `json:"businessScope,optional"` //业务范围(关键词 附加词 排除词)
  14. BuyerName string `json:"buyerName,optional"` //采购单位名称
  15. AppId string `header:"appId"` //剑鱼10000
  16. UserType string `path:"userType"` //用户标签
  17. IsCheckFollow bool `json:"isCheckFollow,optional"` //是否查询关注信息(商机管理用户)
  18. IsCheckReceive bool `json:"isCheckReceive,optional"` //是否查询已领取(商机管理用户)
  19. UserId string `header:"userId,optional"` //用户id
  20. EntId string `header:"entId,optional"` //企业id
  21. EntUserId string `header:"entUserId,optional"` //商机管理企业用户id
  22. IsContact int64 `json:"isContact,optional"` // 是否有联系人 0 不筛选 1-有联系人 2-无联系人
  23. PageNum int64 `json:"pageNum"` //当前页码
  24. PageSize int64 `json:"pageSize"` //每页数据量
  25. }
  26. //
  27. commonResp {
  28. Err_code int64 `json:"error_code"`
  29. Err_msg string `json:"error_msg"`
  30. Data interface{} `json:"data"`
  31. }
  32. //用户基本信息
  33. baseParam {
  34. EntId int64 `header:"entId,optional"` // 企业id
  35. EntUserId int64 `header:"entUserId,optional"` // 企业下用户id
  36. PositionType int64 `header:"positionType,optional"` // 职位类型 0个人 1企业
  37. PositionId int64 `header:"positionId,optional"` //职位id
  38. AccountId int64 `header:"accountId,optional"` //账户id
  39. MgoUserId string `header:"mgoUserId,optional"` //原userId
  40. AppId string `header:"appId,optional"` //剑鱼10000
  41. UserId string `header:"userId,optional"` //用户id
  42. NewUserId int64 `header:"newUserId,optional"` //base_user_id
  43. EntAccountId int64 `header:"entAccountId,optional"` //企业账户id
  44. Phone string `header:"phone,optional"`
  45. }
  46. //采购单位关联信息
  47. relatesInformationReq {
  48. baseParam
  49. BiddingCount int `json:"biddingCount,optional"` //关联招标信息数量---根据采购单位
  50. BuyerCount int `json:"buyerCount,optional"` //关联采购单位信息---根据地区
  51. Buyer string `json:"buyer,optional"` //采购单位
  52. Area string `json:"area,optional"` //地区
  53. City string `json:"city,optional"` //城市
  54. }
  55. // 采购单位补充信息请求参数
  56. BuyerSupplyInfoReq {
  57. baseParam
  58. Buyer []string `json:"buyer,optional"` //采购单位
  59. }
  60. )
  61. service bxbuyer-api {
  62. @handler buyerSearchList
  63. post /jybx/buyer/:userType/buyerList(buyerListReq) returns (commonResp)
  64. @handler relatesInformation
  65. post /jybx/buyer/relates/information(relatesInformationReq) returns (commonResp)
  66. @handler buyerSupplyInfo
  67. post /jybx/buyer/supply/info(BuyerSupplyInfoReq) returns (commonResp)
  68. }