import axios from '../request';
import { BackEndLoginType, uploadOssBPType, uploadOssType } from '~/api/interface/commonType';

export class CommonAPI {
  // 用户登录
  static BackEndLogin: BackEndLoginType = (params) =>
    axios.post('/userapp/auth/backEndLogin', params);

  // 上传图片
  static uploadOss: uploadOssType = (data) => axios.post('/pms/upload/oss', data);

  // 断点上传
  static uploadOssBP: uploadOssBPType = (data) => axios.post('/pms/upload/breakpoint', data);
}
