bxsubscribe.api 1004 B

12345678910111213141516171819202122232425262728293031323334
  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. subscribeRequest {
  11. PageNum int64 `json:"pageNum,optional"`
  12. PageSize int64 `json:"pageSize"`
  13. SelectTime string `json:"selectTime"`
  14. Area string `json:"area"`
  15. City string `json:"city"`
  16. Industry string `json:"industry"`
  17. BuyerClass string `json:"buyerClass"`
  18. KeyWords string `json:"keyWords"`
  19. Subtype string `json:"subtype"`
  20. UserType string `path:"userType,default=fType,options=fType|vType|mType|eType"` //fType:普通用户;vType:超级订阅用户;mType:大会员用户;eType:商机管理用户;
  21. }
  22. //
  23. commonRes {
  24. Err_code int `json:"error_code"`
  25. Err_msg string `json:"error_msg"`
  26. Data interface{} `json:"data"`
  27. }
  28. )
  29. service bxsubscribe-api {
  30. @handler subscribeInfo
  31. post /jybx/subscribe/:userType(subscribeRequest) returns (commonRes)
  32. }