import network from "@/utils/network";


export const loginApi = (data) => network({
  url: "",
  method: "post",
  data
});

export const loginOutApi = () => network({
  url: "",
  method: "post",
});

export const getUserInfoApi = () => network({
    url: "",
    method: "post"
});

//短信登陆/忘记密码-验证账户(通过直接发短信)
export const checkUser = (data) => network({
    url: "/checkUser",
    method: "post",
    data
});
//供应商类型
export const getCategoryList = (data) => network({
    url: "/category/list/tree",
    method: "post",
    data
});
//校验手机短信码
export const validateSmsCode = (data) => network({
    url: "/sms/validateSmsCode?" + data,
    method: "get",
    data
});

//上传文件
export const uploadFile = (data) => network({
    url: "/file/uploadFile",
    method: "post",
    data
});
//注册
export const register = (data) => network({
    url: "/register",
    method: "post",
    data
});
