import { Request } from '../../utils/HttpClient';
import { RspLogin } from '../rsp/RspLogin';
import { ReqLogin } from './ReqLogin';

export class ReqApi {
  /**
   * 登录接口
   *
   * @param username  用户名
   * @param pwd       密码
   * @returns
   */
  static login(username: string, pwd: string): Promise<RspLogin> {
    const req = new ReqLogin(username, pwd)
    return Request.post("/login", req)
  }
}