orderApplication.api 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. orderListReq {
  9. Appid string `header:"appid"` //应用标识
  10. UserId string `header:"userId,optional"` //老库用户id
  11. NewUserId int64 `header:"newUserId,optional"` //新库用户id
  12. NewUserIds string `json:"user_id,optional"` //社交中心使用
  13. PageNum int64 `json:"page_num"` //当前页码
  14. PageSize int64 `json:"page_size"` //每页数量
  15. }
  16. orderInfoReq {
  17. Appid string `header:"appid"` //应用标识
  18. OrderCode string `json:"order_code"` //订单编号
  19. DataType int64 `json:"data_type"` //1新库 2老库
  20. }
  21. orderStatusUpdateReq {
  22. Appid string `header:"appid"` //应用标识
  23. OrderCode string `json:"order_code"` //订单编号
  24. DataType int64 `json:"data_type"` //1新库 2老库
  25. OrderStatus int64 `json:"order_status"` //订单状态
  26. }
  27. OrderExamineReq {
  28. Appid string `header:"appid"` //应用标识
  29. OrderCode string `json:"order_code"` //订单编号
  30. AuditStatus int64 `json:"audit_status"` //审核状态;0:待提交 1:待审核 2:审核中 3:审核通过(默认值,前台应用) 4:审核不通过
  31. AuditPerson int64 `json:"audit_person"` //审核人
  32. Remark string `json:"remark"` //备注
  33. }
  34. )
  35. service orderApplication-api {
  36. @handler OrderList
  37. post /orderApplication/order/orderList (orderListReq) returns (resp)
  38. @handler OrderInfo
  39. post /orderApplication/order/orderInfo (orderInfoReq) returns (resp)
  40. @handler OrderStatusUpdate
  41. post /orderApplication/order/orderStatusUpdate (orderStatusUpdateReq) returns (resp)
  42. @handler OrderExamine
  43. post /orderApplication/order/OrderExamine (OrderExamineReq) returns (resp)
  44. }