/* * @Author: wuyue * @Date: 2022-10-24 15:42:41 * @LastEditTime: 2022-12-06 16:30:47 * @LastEditors: wuyue * @Descripttion: * @version: */ import service from './service' // 品宣管理api export class FindMgtApi { getList = (params, showLoading = true) => { return service.post('/wly-customization-service/discoveryBackstage/getPageInfo', params, showLoading) } editInfo = (params) => { return service.post('/wly-customization-service/discoveryBackstage/editMessage', params) } addInfo = (params) => { return service.post('/wly-customization-service/discoveryBackstage/addMessage', params) } deleteItem = (params) => { return service.post('/wly-customization-service/discoveryBackstage/deleteOrRestore', params) } detailsItem = (params, showLoading = true) => { return service.get(`/wly-customization-service/discoveryBackstage/getDiscoveryById?discoveryId=${params.discoveryId}`, { showLoading }) } /** * 是否发布 * @param {*} params * @returns */ isPublishItem = (params) => { return service.post('/wly-customization-service/discoveryBackstage/publishOrNot', params) } } export default new FindMgtApi()