import request from '@u/request' // 获取短语类型列表 export const getPhraseTypeList = () => { return request({ url: '/api/pubPhrase/getPhraseTypeList', method: 'get' }) } type GetListByTypeCode = { state:string, typeCode:string, bid?:number, keyword?:string } // 根据短语类型获取短语列表 export const getListByTypeCode = ({ typeCode, state, bid, keyword }:GetListByTypeCode) => { const data = { typeCode, state, bid, keyword } return request({ url: '/api/pubPhrase/getListByTypeCode', method: 'get', data: data }) } // 新增保存或编辑保存 export const savePubPhrase = (data:object) => { return request({ url: '/api/pubPhrase/save', method: 'post', data: data }) } // 根据id删除数据 export const deleteById = ({ id }:{id:number}) => { const data = { id } return request({ url: '/api/pubPhrase/deleteById', method: 'post', data: data }) }