entManageApplication.api 981 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. WaitEmpowerId int64 `json:"wait_empower_id"`
  13. }
  14. addUsePersonReq {
  15. WaitEmpowerId int64 `json:"wait_empower_id"`
  16. EntId int64 `header:"entId"`
  17. EntUserId int64 `json:"ent_user_id"`
  18. }
  19. delUsePersonReq {
  20. EntnichePowerId int64 `json:"entniche_power_id"`
  21. }
  22. )
  23. service entManageApplication-api {
  24. @handler BuyProductList
  25. post /entManageApplication/buyProductList (buyProductListReq) returns (resp)
  26. @handler UsePersonList
  27. post /entManageApplication/usePersonList (usePersonListReq) returns (resp)
  28. @handler AddUsePerson
  29. post /entManageApplication/addUsePerson (addUsePersonReq) returns (resp)
  30. @handler DelUsePerson
  31. post /entManageApplication/delUsePerson (delUsePersonReq) returns (resp)
  32. }