bxsubscribe.api 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. //订阅列表
  10. subscribeReq {
  11. AppId string `header:"appId"`
  12. UserId string `header:"userId"`
  13. EntId string `header:"entId"`
  14. EntUserId string `header:"entUserId"`
  15. DeptId string `header:"deptId"` //部门id
  16. PageNum int64 `json:"pageNum,optional"`
  17. PageSize int64 `json:"pageSize,optional"`
  18. SelectTime string `json:"selectTime,optional"`
  19. Area string `json:"area,optional"`
  20. City string `json:"city,optional"`
  21. Industry string `json:"industry,optional"`
  22. BuyerClass string `json:"buyerClass,optional"`
  23. KeyWords string `json:"keyWords,optional"`
  24. Subtype string `json:"subtype,optional"`
  25. Price string `json:"price,optional"`
  26. FileExists string `json:"fileExists,optional"`
  27. UserType string `path:"userType,default=fType,options=fType|vType|mType|eType"` //fType:普通用户;vType:超级订阅用户;mType:大会员用户;eType:商机管理用户;
  28. }
  29. //
  30. someInfoReq {
  31. AppId string `header:"appId"`
  32. UserType string `path:"userType"`
  33. }
  34. //
  35. commonResp {
  36. Err_code int64 `json:"error_code"`
  37. Err_msg string `json:"error_msg"`
  38. Data interface{} `json:"data"`
  39. }
  40. )
  41. service bxsubscribe-api {
  42. @handler subscribeList
  43. post /jybx/subscribe/:userType/list(subscribeReq) returns (commonResp)
  44. @handler someInfo
  45. post /jybx/subscribe/:userType/someInfo(someInfoReq) returns (commonResp)
  46. }