bxbuyer.api 3.3 KB

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