import type { SignatureTP } from '@/types/gzh_home'
import { http } from '@/utils/http'

// const getSignatureUrl = '/api/wx'
const getSignatureUrl = '/mp/api/signature2'
// export const getSignatureApi = (val: SignatureTP) => {
//   return http<any>({
//     method: 'GET',
//     url: `${getSignatureUrl}?url=${val.url}`,
//     // data: { ...val },
//   })
// }
export const getSignatureApi = (val: SignatureTP) => {
  return http<any>({
    method: 'GET',
    url: `${getSignatureUrl}?url=${val.url}`,
    // url: `${getSignatureUrl}`,
    // data: { ...val },
  })
}
