import request from '@/utils/request'

/**
 * 大屏登录
 * POST /auth/bigLogin
 */
export function loginApi(data) {
  return request({
    url: '/auth/bigLogin',
    method: 'post',
    data
  })
}

/**
 * 获取系统配置
 * POST /system/config/info/getConfigByType
 */
export function getConfigByType(data) {
  return request({
    url: '/system/config/info/getConfigByType',
    method: 'post',
    data
  })
}

/**
 * 获取验证码
 * GET /auth/captcha
 * 返回 { captcha: Boolean, image: String(base64), uuid: String }
 */
export function getCaptcha(id = 0) {
  return request({
    url: '/auth/captcha',
    method: 'get',
    params: { id }
  })
}
