import axios from '../request';
import { BackEndLoginType, 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);
}
