entManageApplication.api 1023 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. syntax = "v1"
  2. type (
  3. resp {
  4. Error_code int64 `json:"error_code"` //响应代码
  5. Error_msg string `json:"error_msg"` //响应消息
  6. Data interface{} `json:"data"`
  7. }
  8. buyProductListReq {
  9. EntId int64 `header:"entId"`
  10. }
  11. usePersonListReq {
  12. EntId int64 `header:"entId"`
  13. WaitEmpowerId int64 `json:"wait_empower_id"`
  14. }
  15. addUsePersonReq {
  16. WaitEmpowerId int64 `json:"wait_empower_id"`
  17. EntId int64 `header:"entId"`
  18. EntUserId string `json:"ent_user_id"`
  19. }
  20. delUsePersonReq {
  21. EntnichePowerId int64 `json:"entniche_power_id"`
  22. }
  23. )
  24. service entManageApplication-api {
  25. @handler BuyProductList
  26. post /entManageApplication/buyProductList (buyProductListReq) returns (resp)
  27. @handler UsePersonList
  28. post /entManageApplication/usePersonList (usePersonListReq) returns (resp)
  29. @handler AddUsePerson
  30. post /entManageApplication/addUsePerson (addUsePersonReq) returns (resp)
  31. @handler DelUsePerson
  32. post /entManageApplication/delUsePerson (delUsePersonReq) returns (resp)
  33. }