import request from '@/utils/request' import Qs from 'qs' export function listDynamic(query) { return request({ method: 'get', params: { _gp: 'admin.dynamic', _mt: 'list', ...query } }) } export function createDynamic(data) { return request({ method: 'post', data: Qs.stringify({ _gp: 'admin.dynamic', _mt: 'create', ...data }) }) } export function updateDynamic(data) { return request({ method: 'post', data: Qs.stringify({ _gp: 'admin.dynamic', _mt: 'edit', ...data }) }) } export function deleteDynamic(id) { return request({ method: 'post', params: { _gp: 'admin.dynamic', _mt: 'delete', id: id } }) }