wupengfei
2025-04-15 a30f98e7e3ca49a0169fc1271eb51a41e71fd8c7
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 新增后台管理账户 POST /api/UserRole/CreateBackClientUser */
export async function createBackClientUser(
  body: API.CreateBackClientUserInput,
  options?: API.RequestConfig
) {
  return request<string>('/api/UserRole/CreateBackClientUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 政务端一系统配置一创建政务端用户 POST /api/UserRole/CreateGovermentClientUser */
export async function createGovermentClientUser(
  body: API.CreateGoverUserInput,
  options?: API.RequestConfig
) {
  return request<string>('/api/UserRole/CreateGovermentClientUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 新增角色 POST /api/UserRole/CreateRole */
export async function createRole(body: API.CreateBaseRoleInput, options?: API.RequestConfig) {
  return request<string>('/api/UserRole/CreateRole', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 删除后台管理账户 GET /api/UserRole/DeleteBackClientUser */
export async function deleteBackClientUser(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIdeleteBackClientUserParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/UserRole/DeleteBackClientUser', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 删除角色 GET /api/UserRole/DeleteRole */
export async function deleteRole(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIdeleteRoleParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/UserRole/DeleteRole', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 后台管理账户列表 POST /api/UserRole/GetBackClientUsers */
export async function getBackClientUsers(
  body: API.GetBackClientUsersInput,
  options?: API.RequestConfig
) {
  return request<API.UserDtoPageOutput>('/api/UserRole/GetBackClientUsers', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 政务端账号列表 POST /api/UserRole/GetGovermentClientUsers */
export async function getGovermentClientUsers(
  body: API.GetBackClientUsersInput,
  options?: API.RequestConfig
) {
  return request<API.UserDtoPageOutput>('/api/UserRole/GetGovermentClientUsers', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 角色列表 POST /api/UserRole/GetRoles */
export async function getRoles(body: API.GetRolesInput, options?: API.RequestConfig) {
  return request<API.RoleInfoPageOutput>('/api/UserRole/GetRoles', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 角色启用/禁用 POST /api/UserRole/RoleEnableOrForbid */
export async function roleEnableOrForbid(
  body: API.RoleEnableOrForbidInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/UserRole/RoleEnableOrForbid', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 后台管理账户编辑 POST /api/UserRole/UpdateBackClientUser */
export async function updateBackClientUser(
  body: API.UpdateBackClientUserInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/UserRole/UpdateBackClientUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 政务端一系统配置一编辑政务端账户 POST /api/UserRole/UpdateGovermentClientUser */
export async function updateGovermentClientUser(
  body: API.UpdateGovermentClientUserInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/UserRole/UpdateGovermentClientUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 角色编辑 POST /api/UserRole/UpdateRole */
export async function updateRole(body: API.CreateOrUpdateRoleInput, options?: API.RequestConfig) {
  return request<number>('/api/UserRole/UpdateRole', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}