bicenter.api 603 B

12345678910111213141516171819202122232425262728
  1. syntax = "v1"
  2. type (
  3. Reply {
  4. Error_code int64 `json:"error_code"`
  5. Error_msg string `json:"error_msg"`
  6. Data interface{} `json:"data"`
  7. }
  8. SqlManageReq {
  9. Id float64 `json:"id"`
  10. Params []Param `json:"params"`
  11. }
  12. Param {
  13. Value string `json:"value"`
  14. Type string `json:"type"`
  15. }
  16. MyInfoReq {
  17. Bid string `json:"bid,optional"`
  18. Sid string `json:"sid"`
  19. }
  20. )
  21. service biCenter {
  22. @doc "bi通用接口"
  23. @handler sqlManage
  24. post /biService/sqlManage (SqlManageReq) returns (Reply)
  25. @doc "用户身份"
  26. @handler Myinfo
  27. post /biService/myInfo (MyInfoReq) returns (Reply)
  28. }