/*
 * @Description: 对应sys-user-service服务的公共接口
 * @Author: zhoupeng
 * @Date: 2020-04-22 16:14:11
 * @LastEditTime: 2020-05-18 14:16:31
 */

import request from '../../../utils/request';
import Config from '../../../utils/config';

//获取校宠列表
export const getList = data => {
  return request(
    {
      url: Config.apis.schoolPet.common.getList,
      method: 'GET',
      data,
    },
    'nothing',
  );
};

//投喂猫粮
export const feed = data => {
  return request(
    {
      url: Config.apis.schoolPet.common.feed,
      method: 'POST',
      data,
    },
    'nothing',
  );
};

//weixin
export const getAppId = data => {
  return request(
    {
      url: Config.apis.schoolPet.common.getOpenId,
      method: 'POST',
      data,
    },
    'nothing',
  );
};

export const getConfig = data => {
  return request(
    {
      url: Config.apis.schoolPet.common.getConfig,
      method: 'POST',
      data,
    },
    'nothing',
  );
};
