广丰卷烟厂数采质量分析系统
zhuguifei
2026-03-02 80ff784bf60637cd348ae665fc907f7b1e527dd8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import { request } from '@/service/request';
 
/** 获取参数配置列表 */
export function fetchGetConfigList(params?: Api.System.ConfigSearchParams) {
  return request<Api.System.ConfigList>({
    url: '/system/config/list',
    method: 'get',
    params
  });
}
 
/** 根据参数键名查询参数值 */
export function fetchGetConfigDetail(configKey: string) {
  return request<Api.System.Config>({
    url: `/system/config/configKey/${configKey}`,
    method: 'get'
  });
}
 
/** 新增参数配置 */
export function fetchCreateConfig(data: Api.System.ConfigOperateParams) {
  return request<boolean>({
    url: '/system/config',
    method: 'post',
    data
  });
}
 
/** 修改参数配置 */
export function fetchUpdateConfig(data: Api.System.ConfigOperateParams) {
  return request<boolean>({
    url: '/system/config',
    method: 'put',
    data
  });
}
 
/** 根据Key修改值 */
export function fetchUpdateConfigByKey(data: Api.System.ConfigOperateParams) {
  return request<boolean>({
    url: '/system/config/updateByKey',
    method: 'put',
    data
  });
}
 
/** 批量删除参数配置 */
export function fetchBatchDeleteConfig(configIds: CommonType.IdType[]) {
  return request<boolean>({
    url: `/system/config/${configIds.join(',')}`,
    method: 'delete'
  });
}
 
/** 根据Key获取值 */
export function fetchGetConfigByKey(configKey: string) {
  return request<string>({
    url: `/system/config/configKey/${configKey}`,
    method: 'get'
  });
}
 
/** 刷新缓存 */
export function fetchRefreshCache() {
  return request<boolean>({
    url: `/system/config/refreshCache`,
    method: 'delete'
  });
}