jyOrder.api 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. syntax = "v1"
  2. info(
  3. title: // TODO: add title
  4. desc: // TODO: add description
  5. author: "lizhe"
  6. email: "lizhe@topnet.net.cn"
  7. )
  8. type request {
  9. // TODO: add members here and delete this comment
  10. Pay_money int64 `form:"pay_money,optional"`
  11. Order_money int64 `form:"order_money,optional"`
  12. User_nickname string `form:"user_nickname,optional"`
  13. Pay_time string `form:"pay_time,optional"`
  14. Order_status int64 `form:"order_status"`
  15. Create_time string `form:"create_time,optional"`
  16. User_openid string `form:"user_openid,optional"`
  17. Service_status int64 `form:"service_status,optional"`
  18. Service_time string `form:"service_time,optional"`
  19. Filter string `form:"filter"`
  20. Prepay_id string `form:"prepay_id,optional"`
  21. Code_url string `form:"code_url,optional"`
  22. Out_trade_no string `form:"out_trade_no,optional"`
  23. Filter_keys string `form:"filter_keys,optional"`
  24. Filter_publishtime string `form:"filter_publishtime,optional"`
  25. Data_count int64 `form:"data_count,optional"`
  26. User_mail string `form:"user_mail,optional"`
  27. Data_spec string `form:"data_spec,optional"`
  28. Original_price int64 `form:"original_price,optional"`
  29. Order_code string `form:"order_code"`
  30. Prepay_time string `form:"prepay_time,optional"`
  31. Product_type string `form:"product_type"`
  32. Filter_id string `form:"filter_id,optional"`
  33. Pay_way string `form:"pay_way,optional"`
  34. User_phone string `form:"user_phone,optional"`
  35. Applybill_status int64 `form:"applybill_status,optional"`
  36. Download_url string `form:"download_url,optional"`
  37. Applybill_type int64 `form:"applybill_type,optional"`
  38. Applybill_taxnum string `form:"applybill_taxnum,optional"`
  39. Remind_status int64 `form:"remind_status,optional"`
  40. Applybill_company string `form:"applybill_company,optional"`
  41. User_id string `form:"user_id,optional"`
  42. Vip_starttime string `form:"vip_starttime,optional"`
  43. Vip_endtime string `form:"vip_endtime,optional"`
  44. Vip_type int64 `form:"vip_type,optional"`
  45. Course_status int64 `form:"course_status,optional"`
  46. Apply_refund_name string `form:"apply_refund_name,optional"`
  47. Apply_refund_reason string `form:"apply_refund_reason,optional"`
  48. Apply_refund_time int64 `form:"apply_refund_time,optional"`
  49. Del_status int64 `form:"del_status,optional"`
  50. Del_time string `form:"del_time,optional"`
  51. Dis_word string `form:"dis_word,optional"`
  52. Discount_price int64 `form:"discount_price,optional"`
  53. D_relation_id string `form:"d_relation_id,optional"`
  54. Return_status int64 `form:"return_status,optional"`
  55. Refund_status int64 `form:"refund_status,optional"`
  56. Is_backstage_order int64 `form:"is_backstage_order,optional"`
  57. Salesperson string `form:"salesperson,optional"`
  58. Company_name string `form:"company_name,optional"`
  59. BillingMode int64 `form:"billingMode,optional"`
  60. Sale_time string `form:"sale_time,optional"`
  61. Commission int64 `form:"commission,optional"`
  62. ProceduresMoney int64 `form:"procedures_money,optional"`
  63. SalesChannel string `form:"salesChannel,optional"`
  64. OrderChannel string `form:"orderChannel,optional"`
  65. PaybackCompany string `form:"paybackCompany,optional"`
  66. SalesPersonId string `form:"salesperson_id,optional"`
  67. CreatePerson string `form:"create_person,optional"`
  68. LastUpdatePerson string `form:"last_update_person,optional"`
  69. LastUpdateTime string `form:"last_update_time,optional"`
  70. AuditStatus int64 `form:"audit_status,optional"`
  71. BuySubject int64 `form:"buySubject,optional"`
  72. EntId int64 `form:"entId,optional"`
  73. BuyCount int64 `form:"buyCount,optional"`
  74. SaleDep string `form:"saleDep,optional"`
  75. SaleMoney string `form:"saleMoney,optional"`
  76. }
  77. type response {
  78. // TODO: add members here and delete this comment
  79. Code int64 `json:"code"` //响应代码
  80. Message string `json:"message"` //响应消息
  81. Data int64 `json:"data"` //订单ID
  82. }
  83. type requestDetailed {
  84. Order_id int64 `form:"order_id,optional"`
  85. Relation_id int64 `form:"relation_id,optional"`
  86. Operator string `form:"operator,optional"`
  87. Sale_time string `form:"sale_time,optional"`
  88. }
  89. service jyOrder-api {
  90. @handler CreateOrderHandler // TODO: set handler name and delete this comment
  91. post /CreateOrder (request) returns (response)
  92. @handler CreateOrderDetailedHandler // TODO: set handler name and delete this comment
  93. post /CreateOrderDetailed (requestDetailed) returns (response)
  94. @handler UpdateOrderHandler // TODO: set handler name and delete this comment
  95. post /UpdateOrder (request) returns (response)
  96. }