|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import request from '@/utils/request'
-
- export function get(dictName) {
- const params = {
- dictName,
- page: 0,
- size: 9999
- }
- return request({
- url: 'api/dictDetail',
- method: 'get',
- params
- })
- }
-
- export function getDictMap(dictName) {
- const params = {
- dictName,
- page: 0,
- size: 9999
- }
- return request({
- url: 'api/dictDetail/map',
- method: 'get',
- params
- })
- }
-
- export function add(data) {
- return request({
- url: 'api/dictDetail',
- method: 'post',
- data
- })
- }
-
- export function del(id) {
- return request({
- url: 'api/dictDetail/' + id,
- method: 'delete'
- })
- }
-
- export function edit(data) {
- return request({
- url: 'api/dictDetail',
- method: 'put',
- data
- })
- }
-
- export default { add, edit, del }
|