import axiosInstance from "@/apis/axios.config";

const EMAIL_PREFIX = "/api/email"

const emailApis = {
    sendRegisterVerifyCode: (officialEmail:string) => {
        return axiosInstance.get(`${EMAIL_PREFIX}/registerVerifyCode`, {
            params: {
                officialEmail
            }
        })
    },
    sendLoginVerifyCode: (officialEmail:string) => {
        return axiosInstance.get(`${EMAIL_PREFIX}/loginVerifyCode`, {
            params: {
                officialEmail
            }
        })
    },
    sendPasswordChangeVerifyCode: (officialEmail:string) => {
        return axiosInstance.get(`${EMAIL_PREFIX}/passwordChangeVerifyCode`, {
            params: {
                officialEmail
            }
        })
    },
}

export default emailApis