import request from '@/utils/request';
export const sz_edit = (data = {}) => {
  return request({
    url: '/user/main/edit',
    data: {

      user_main: {
        user_realname: data.user_realname,
        user_avatar: data.user_avatar,
        subject_id: data.subject_id,
        subject_name: data.subject_name,
        user_phone: data.user_phone,
        ue_badge_display: data.ue_badge_display,
        ue_xxmc: data.ue_xxmc,
        stu_code: data.stu_code
      }

    }

  })
}
// 用户信息
export const user_info = (data = {}) =>
  request({
    url: '/user/main/user_info',
    data: data
  })
// 文件上传
export const upload_file = (file, firstpage = "", lastpage = "", convert = "") =>
  REQUEST.upload({
    url: '/upload/main/file',
    data: { filedata: file, firstpage: firstpage, lastpage: lastpage, convert: convert }
  })

