common.js 745 Bytes
import { api } from '../common/api';

export default {
  /**
     * 添加微信模版消息FormId
     * @param params
     * @returns {*}
     */
  addWechatFormId(params) {
    return api.get({
      data: Object.assign({
        method: 'wechat.formId.add'
      }, params)
    });
  },

  /**
   * 通过AppId查绑定店铺
   * @param params
   * @returns {*}
   */
  getBindShop(params) {
    return api.get({
      url: '',
      data: Object.assign({
        method: 'app.shops.union'
      }, params)
    });
  },

  /**
   * 解析场景码
   * @param code
   * @returns {*}
   */
  getMiniAppRealParam(code) {
    return api.get({
      url: '/wechat/miniapp/getMiniAppRealParam',
      data: {
        code
      }
    });
  }
};