wujian
2024-02-22 268beb4ebc1e5b8d4ad715b71cd64a0944073a87
提交 | 用户 | 时间
268beb 1 import request from '@/utils/request'
W 2
3 // 查询字典类型列表
4 export function listType(query) {
5   return request({
6     url: '/system/dict/type/list',
7     method: 'get',
8     params: query
9   })
10 }
11
12 // 查询字典类型详细
13 export function getType(dictId) {
14   return request({
15     url: '/system/dict/type/' + dictId,
16     method: 'get'
17   })
18 }
19
20 // 新增字典类型
21 export function addType(data) {
22   return request({
23     url: '/system/dict/type',
24     method: 'post',
25     data: data
26   })
27 }
28
29 // 修改字典类型
30 export function updateType(data) {
31   return request({
32     url: '/system/dict/type',
33     method: 'put',
34     data: data
35   })
36 }
37
38 // 删除字典类型
39 export function delType(dictId) {
40   return request({
41     url: '/system/dict/type/' + dictId,
42     method: 'delete'
43   })
44 }
45
46 // 刷新字典缓存
47 export function refreshCache() {
48   return request({
49     url: '/system/dict/type/refreshCache',
50     method: 'delete'
51   })
52 }
53
54 // 获取字典选择框列表
55 export function optionselect() {
56   return request({
57     url: '/system/dict/type/optionselect',
58     method: 'get'
59   })
60 }