import request from '@/utils/request'


enum API{
  SAVE_MESSAGE = '/owLeavingMessage/save'
}
export interface messageData extends SliderVerify{
  "card": string,
  "content": string,
  "enterpriseName"?: string,
  "name": string,
  "phone": string,
  "type": string,
  "unifiedSocialCreditCode"?: string,
}

export const saveMessage = (data:messageData)=> {
  return request<any,any>({
    url:API.SAVE_MESSAGE,
    method:'post',
    data
  })
}
//拿到字典信息
export const getDict = (dick:string) => {
  return request.get('/system/dict/data/type/'+dick,{
    params:{
      dick
    }
  })
}