import request from '@/utils/request'; export function configCheckUnique(pram) { const data = { name: pram.name, }; return request({ url: '/admin/platform/system/config/check', method: 'GET', params: data, }); } export function configInfo(pram) { const data = { formId: pram.id, }; return request({ url: '/admin/platform/system/config/info', method: 'GET', params: data, }); } export function configSaveForm(pram) { return request({ url: '/admin/platform/system/config/save/form', method: 'POST', data: pram, }); } export function configUpdate(pram) { const data = { id: pram.id, systemConfigRequest: pram.systemConfigRequest, }; return request({ url: '/admin/platform/system/config/update', method: 'POST', params: data, }); } export function configSaveUniq(pram) { const data = { key: pram.key, value: pram.value, }; return request({ url: '/admin/platform/system/config/saveuniq', method: 'POST', params: data, }); } export function configGetUniq(pram) { const data = { key: pram.key, }; return request({ url: '/admin/platform/system/config/getuniq', method: 'GET', params: data, }); } /** * 获取积分配置 */ export function integralGetConfigApi() { return request({ url: '/admin/platform/integral/get/config', method: 'GET', }); } /** * 编辑积分配置 */ export function integralSetConfigApi(data) { return request({ url: '/admin/platform/integral/set/config', method: 'post', data, }); } /** * 获取移动端域名 */ export function frontDomainApi() { return request({ url: '/publicly/config/get/front/domain', method: 'get', }); } /** * 获取积分商城图片 */ export function picConfigInfo() { return request({ url: '/admin/platform/userenterprise/picConfigInfo', method: 'get', }); } /** * 设置积分商城图片 */ export function saveForm(data) { return request({ url: '/admin/platform/userenterprise/save/form', method: 'post', data }); }