email.js 448 Bytes
Newer Older
Tippi.Rao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
import request from '@/utils/request'

export function validate(data) {
  return request({
    url: '/system/testConnection',
    method: 'post',
    loading: true,
    data

  })
}

export function emailInfo() {
  return request({
    url: '/system/mail/info',
    method: 'get',
    loading: true
  })
}

export function updateInfo(data) {
  return request({
    url: '/system/edit/email',
    method: 'post',
    loading: true,
    data

  })
}