import { createHttpClient, type ExtendedAxiosInstance } from "./create-http-client"

// 认证服务
export const authHttp = createHttpClient({
  serviceName: "auth"
})

// 主服务
export const mainHttp = createHttpClient({
  serviceName: "main",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
})

// 用户服务
export const userHttp = createHttpClient({
  serviceName: "user",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
})

// 内容服务
export const contentHttp = createHttpClient({
  serviceName: "content",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
})

// 社交服务
export const socialHttp = createHttpClient({
  serviceName: "social",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
})

// 通知服务
export const notificationHttp = createHttpClient({
  serviceName: "notification",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
})

// 支付服务
export const paymentHttp = createHttpClient({
  serviceName: "payment",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
}) 

export const frogHttp: ExtendedAxiosInstance = createHttpClient({
  serviceName: "frog",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
})

export const sharkHttp = createHttpClient({
  serviceName: "shark",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
})

export const cowHttp = createHttpClient({
  serviceName: "cow",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
})

export const pigeonHttp = createHttpClient({
  serviceName: "pigeon",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
})

export const lionHttp = createHttpClient({
  serviceName: "lion",
  encryption: {
    enabled: true,
    md5Salt: 'Q8pD09kIeWXg8Ju',
    aesIv: 'dFd8s4fDfV6d2fsD',
    encryptHeader: 'encrypt'
  }
})
