广丰卷烟厂数采质量分析系统
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
70
71
72
73
74
75
76
77
78
79
80
81
import { request } from '@/service/request';
 
/** 获取租户列表 */
export function fetchGetTenantList(params?: Api.System.TenantSearchParams) {
  return request<Api.System.TenantList>({
    url: '/system/tenant/list',
    method: 'get',
    params
  });
}
 
/** 新增租户 */
export function fetchCreateTenant(data: Api.System.TenantOperateParams) {
  return request<boolean>({
    url: '/system/tenant',
    method: 'post',
    headers: {
      isEncrypt: true,
      repeatSubmit: false
    },
    data
  });
}
 
/** 修改租户 */
export function fetchUpdateTenant(data: Api.System.TenantOperateParams) {
  return request<boolean>({
    url: '/system/tenant',
    method: 'put',
    data
  });
}
 
/** 批量删除租户 */
export function fetchBatchDeleteTenant(ids: CommonType.IdType[]) {
  return request<boolean>({
    url: `/system/tenant/${ids.join(',')}`,
    method: 'delete'
  });
}
 
/** 同步租户字典 */
export function fetchSyncTenantDict() {
  return request<boolean>({
    url: '/system/tenant/syncTenantDict',
    method: 'get'
  });
}
 
/** 同步租户套餐 */
export function fetchSyncTenantPackage(params: Api.System.TenantPackageSyncParams) {
  return request<boolean>({
    url: '/system/tenant/syncTenantPackage',
    method: 'get',
    params
  });
}
 
/** 同步租户参数配置 */
export function fetchSyncTenantConfig() {
  return request<boolean>({
    url: '/system/tenant/syncTenantConfig',
    method: 'get'
  });
}
 
/** 动态切换租户 */
export function fetchChangeTenant(tenantId: CommonType.IdType) {
  return request<boolean>({
    url: `/system/tenant/dynamic/${tenantId}`,
    method: 'get'
  });
}
 
/** 清空租户 */
export function fetchClearTenant() {
  return request<boolean>({
    url: '/system/tenant/dynamic/clear',
    method: 'get'
  });
}