pay_recharge.api 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import "../base.api"
  2. type (
  3. // The data of pay recharge information | PayRecharge信息
  4. PayRechargeInfo {
  5. BaseIDInfo
  6. // user_id | 用户ID
  7. UserId *string `json:"userId,optional"`
  8. // number | 变化积分数
  9. Number *float32 `json:"number,optional"`
  10. // status | 状态 1-正常 2-禁用
  11. Status *int `json:"status,optional"`
  12. // money | 充值钱数
  13. Money *float32 `json:"money,optional"`
  14. // out_trade_no | 外部订单号
  15. OutTradeNo *string `json:"outTradeNo,optional"`
  16. // organization_id | 租户ID
  17. OrganizationId *uint64 `json:"organizationId,optional"`
  18. }
  19. // The response data of pay recharge list | PayRecharge列表数据
  20. PayRechargeListResp {
  21. BaseDataInfo
  22. // PayRecharge list data | PayRecharge列表数据
  23. Data PayRechargeListInfo `json:"data"`
  24. }
  25. // PayRecharge list data | PayRecharge列表数据
  26. PayRechargeListInfo {
  27. BaseListInfo
  28. // The API list data | PayRecharge列表数据
  29. Data []PayRechargeInfo `json:"data"`
  30. }
  31. // Get pay recharge list request params | PayRecharge列表请求参数
  32. PayRechargeListReq {
  33. PageInfo
  34. // user_id | 用户ID
  35. UserId *string `json:"userId,optional"`
  36. // out_trade_no | 外部订单号
  37. OutTradeNo *string `json:"outTradeNo,optional"`
  38. }
  39. // PayRecharge information response | PayRecharge信息返回体
  40. PayRechargeInfoResp {
  41. BaseDataInfo
  42. // PayRecharge information | PayRecharge数据
  43. Data PayRechargeInfo `json:"data"`
  44. }
  45. )
  46. @server(
  47. jwt: Auth
  48. group: pay_recharge
  49. middleware: Authority
  50. )
  51. service Wechat {
  52. // Create pay recharge information | 创建PayRecharge
  53. @handler createPayRecharge
  54. post /pay_recharge/create (PayRechargeInfo) returns (BaseMsgResp)
  55. // Update pay recharge information | 更新PayRecharge
  56. @handler updatePayRecharge
  57. post /pay_recharge/update (PayRechargeInfo) returns (BaseMsgResp)
  58. // Delete pay recharge information | 删除PayRecharge信息
  59. @handler deletePayRecharge
  60. post /pay_recharge/delete (IDsReq) returns (BaseMsgResp)
  61. // Get pay recharge list | 获取PayRecharge列表
  62. @handler getPayRechargeList
  63. post /pay_recharge/list (PayRechargeListReq) returns (PayRechargeListResp)
  64. // Get pay recharge by ID | 通过ID获取PayRecharge
  65. @handler getPayRechargeById
  66. post /pay_recharge (IDReq) returns (PayRechargeInfoResp)
  67. }