personal.js 675 Bytes
import api from '../utils/api';

const UFO_ORDER_SUMMARY = 'ufo.order.summary'
const UFO_FAVORITE_NUMBER = 'ufo.user.favoriteNum'
const UFO_COUPONS_COUNT = 'ufo.coupons.cnt'

export default {
  getUFO_OrderSummary(params) {
    return api.get({
      url: '/shopping',
      data: Object.assign({
        method: UFO_ORDER_SUMMARY
      }, params)
    });
  },
  getUFO_FavoriteNumber(params) {
    return api.get({
      data: Object.assign({
        method: UFO_FAVORITE_NUMBER
      }, params)
    })
  },
  getUFOTotalCoupons(params) {
    return api.get({
      url: '/coupon',
      data: Object.assign({
        method: UFO_COUPONS_COUNT
      }, params)
    })
  }
}