'use strict';

var request = require('../utils/request.js');

function useLoginApi() {
  return {
    signIn: (data) => {
      return request.service({
        url: "/fmauth/sysauth/login",
        method: "post",
        data
      });
    },
    loginPhonenumber: (data) => {
      return request.service({
        url: "/fmauth/sysauth/loginPhone",
        method: "post",
        data
      });
    },
    getCaptcha: () => {
      return request.service({
        url: "/fmauth/sysauth/captcha",
        method: "get"
      });
    },
    signOut: (data) => {
      return request.service({
        url: "/fmauth/sysauth/signOut",
        method: "post",
        data
      });
    }
  };
}

exports.useLoginApi = useLoginApi;
