import HttpAxios from '@/utils/axios' const base = import.meta.env.VITE_API_HOST const baseUrl = `${base}/main_new_version.php` /** * 保存用户个人信息或日期和数字格式化配置 * @param save_model profile 代表基本信息的save, no_profile 代表格式信息的save * @param first_name * @param last_name * @param date_fromat * @param numbers_format */ export const saveUserInfo = (params: any) => { return HttpAxios.post(`${baseUrl}`, { action: 'system_setting', operate: 'personal_profile_save', ...params }) } /** * 获取milestone消息列表 * @param save_model profile 代表基本信息的save, no_profile 代表格式信息的save */ export const getNotificationList = (params: any) => { return HttpAxios.get(`${baseUrl}`, { action: 'notifications_rules', operate: 'notifications_init', ...params }) } /** * 获取notification消息的see all详情 */ export const getNotificationDetails = (params: any) => { return HttpAxios.post(`${baseUrl}`, { action: 'notifications_rules', operate: 'notifications_see_all', ...params }) }