12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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
- }
- })
- }
|