Authored by htoooth

add api

@@ -209,3 +209,22 @@ exports.del = (uid, gender, channel, orderId) => { @@ -209,3 +209,22 @@ exports.del = (uid, gender, channel, orderId) => {
209 }); 209 });
210 }; 210 };
211 211
  212 +/**
  213 + * 申请退款
  214 + */
  215 +exports.refund = (orderId) => {
  216 + return api.get('', {
  217 + method: 'app.SpaceOrders.refundApply',
  218 + order_code: orderId
  219 + });
  220 +};
  221 +
  222 +/**
  223 + * 申请退款原因
  224 + */
  225 +exports.refundReason = () => {
  226 + return api.get('', {
  227 + method: 'app.SpaceOrders.refundApplyReasons'
  228 + });
  229 +};
  230 +