@pubinfo/module-rbac 2.2.0-beta.2 → 2.2.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,30 @@
1
1
  import { basic as request } from '@/api/request';
2
2
 
3
+ /**
4
+ * @description 验证码-修改登录密码
5
+ * @url /rbac/user/captcha/changePasswordWithVerifyCode
6
+ * @method POST
7
+ * @author @pubinfo/openapi
8
+ */
9
+ export function postRbacUserCaptchaChangePasswordWithVerifyCode<
10
+ R = API.ResponseDataVoid,
11
+ T = API.ResponseDataVoid,
12
+ >(
13
+ params: API.postRbacUserCaptchaChangePasswordWithVerifyCodeParams,
14
+ options?: Parameters<typeof request.Post<R, T>>[2],
15
+ ) {
16
+ return request.Post<R, T>(
17
+ '/rbac/user/captcha/changePasswordWithVerifyCode',
18
+ {},
19
+ {
20
+ params: {
21
+ ...params,
22
+ },
23
+ ...(options || {}),
24
+ },
25
+ );
26
+ }
27
+
3
28
  /**
4
29
  * @description 修改登录密码
5
30
  * @url /rbac/user/changePassword
@@ -75,6 +100,85 @@ export function postRbacUserChangePasswordWithVerifyCode<
75
100
  );
76
101
  }
77
102
 
103
+ /**
104
+ * @description 根据id查询
105
+ * @url /rbac/user/getUser
106
+ * @method POST
107
+ * @author @pubinfo/openapi
108
+ */
109
+ export function postRbacUserGetUser<
110
+ R = API.ResponseDataPubUser,
111
+ T = API.ResponseDataPubUser,
112
+ >(
113
+ params: API.postRbacUserGetUserParams,
114
+ options?: Parameters<typeof request.Post<R, T>>[2],
115
+ ) {
116
+ return request.Post<R, T>(
117
+ '/rbac/user/getUser',
118
+ {},
119
+ {
120
+ params: {
121
+ ...params,
122
+ },
123
+ ...(options || {}),
124
+ },
125
+ );
126
+ }
127
+
128
+ /**
129
+ * @description 通过用户ID查询用户们
130
+ * @url /rbac/user/getUserList
131
+ * @method POST
132
+ * @author @pubinfo/openapi
133
+ */
134
+ export function postRbacUserGetUserList<
135
+ R = API.ResponseDataListPubUser,
136
+ T = API.ResponseDataListPubUser,
137
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
138
+ return request.Post<R, T>('/rbac/user/getUserList', body, {
139
+ headers: {
140
+ 'Content-Type': 'application/json',
141
+ },
142
+ ...(options || {}),
143
+ });
144
+ }
145
+
146
+ /**
147
+ * @description 获得指定组织的用户数组
148
+ * @url /rbac/user/getUserListByOrgIds
149
+ * @method POST
150
+ * @author @pubinfo/openapi
151
+ */
152
+ export function postRbacUserGetUserListByOrgIds<
153
+ R = API.ResponseDataListPubUser,
154
+ T = API.ResponseDataListPubUser,
155
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
156
+ return request.Post<R, T>('/rbac/user/getUserListByOrgIds', body, {
157
+ headers: {
158
+ 'Content-Type': 'application/json',
159
+ },
160
+ ...(options || {}),
161
+ });
162
+ }
163
+
164
+ /**
165
+ * @description 获得指定岗位的用户数组
166
+ * @url /rbac/user/getUserListByPostIds
167
+ * @method POST
168
+ * @author @pubinfo/openapi
169
+ */
170
+ export function postRbacUserGetUserListByPostIds<
171
+ R = API.ResponseDataListPubUser,
172
+ T = API.ResponseDataListPubUser,
173
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
174
+ return request.Post<R, T>('/rbac/user/getUserListByPostIds', body, {
175
+ headers: {
176
+ 'Content-Type': 'application/json',
177
+ },
178
+ ...(options || {}),
179
+ });
180
+ }
181
+
78
182
  /**
79
183
  * @description 编辑角色和授权数据权限
80
184
  * @url /rbac/user/grantUserRoleAndDatPermission
@@ -325,3 +429,21 @@ export function postRbacUserUserUpdateV2<
325
429
  ...(options || {}),
326
430
  });
327
431
  }
432
+
433
+ /**
434
+ * @description 校验用户们是否有效
435
+ * @url /rbac/user/validateUserList
436
+ * @method POST
437
+ * @author @pubinfo/openapi
438
+ */
439
+ export function postRbacUserValidateUserList<
440
+ R = API.ResponseDataVoid,
441
+ T = API.ResponseDataVoid,
442
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
443
+ return request.Post<R, T>('/rbac/user/validateUserList', body, {
444
+ headers: {
445
+ 'Content-Type': 'application/json',
446
+ },
447
+ ...(options || {}),
448
+ });
449
+ }
@@ -160,6 +160,27 @@ export function postRbacResourceMineOrAllResourceTree<
160
160
  );
161
161
  }
162
162
 
163
+ /**
164
+ * @description 资源拖拉拽更新
165
+ * @url /rbac/resource/reSortUpdate
166
+ * @method POST
167
+ * @author @pubinfo/openapi
168
+ */
169
+ export function postRbacResourceReSortUpdate<
170
+ R = API.ResponseDataVoid,
171
+ T = API.ResponseDataVoid,
172
+ >(
173
+ body: API.PubResourceReSortUpdateDTO[],
174
+ options?: Parameters<typeof request.Post<R, T>>[2],
175
+ ) {
176
+ return request.Post<R, T>('/rbac/resource/reSortUpdate', body, {
177
+ headers: {
178
+ 'Content-Type': 'application/json',
179
+ },
180
+ ...(options || {}),
181
+ });
182
+ }
183
+
163
184
  /**
164
185
  * @description 资源删除
165
186
  * @url /rbac/resource/resourceDelete
@@ -187,3 +187,21 @@ export function postRbacOrgUpdateOrg<
187
187
  ...(options || {}),
188
188
  });
189
189
  }
190
+
191
+ /**
192
+ * @description 校验组织们是否有效
193
+ * @url /rbac/org/validateOrgList
194
+ * @method POST
195
+ * @author @pubinfo/openapi
196
+ */
197
+ export function postRbacOrgValidateOrgList<
198
+ R = API.ResponseDataVoid,
199
+ T = API.ResponseDataVoid,
200
+ >(body: string[], options?: Parameters<typeof request.Post<R, T>>[2]) {
201
+ return request.Post<R, T>('/rbac/org/validateOrgList', body, {
202
+ headers: {
203
+ 'Content-Type': 'application/json',
204
+ },
205
+ ...(options || {}),
206
+ });
207
+ }
@@ -5,6 +5,7 @@ import { useToggle } from '@vueuse/core';
5
5
  import { message } from 'ant-design-vue';
6
6
  import { getDictItemList } from '@/api/modules/configData';
7
7
  import { getRbacOrgInfo, postRbacOrgAddOrg, postRbacOrgUpdateOrg } from '@/api/modules/rbac';
8
+ import { selectUser } from '@/components/OrgUserSelector';
8
9
  import { ACTION } from '../enum';
9
10
 
10
11
  defineOptions({
@@ -41,13 +42,25 @@ getDictItemList({ dictCode: 'orgType' }).then((res: API.ResponseDataListDictItem
41
42
  });
42
43
  });
43
44
  const form = ref<Partial<API.PubOrg & { parentName: string }>>({ parentId: '', enable: true });
45
+ const selectedUsers = ref<
46
+ {
47
+ orgId?: string
48
+ userId?: string
49
+ userName?: string
50
+ }[]>([]);
44
51
  async function onOpen(key: ACTION, record?: API.PubOrg) {
45
52
  setOpen(true);
46
53
  state.title = key;
54
+ selectedUsers.value = [];
47
55
  if (key === ACTION.EDIT) {
48
56
  const res = await getRbacOrgInfo({ id: record?.id as string });
49
57
  if (res.success) {
50
58
  form.value = res.data ?? {};
59
+ selectedUsers.value = [{
60
+ orgId: res.data?.leaderUserOrgId ?? '',
61
+ userId: res.data?.leaderUserId ?? '',
62
+ userName: res.data?.leaderUserName ?? '',
63
+ }];
51
64
  }
52
65
  }
53
66
  else if (key === ACTION.ADDNEXT) {
@@ -67,12 +80,34 @@ async function onOpen(key: ACTION, record?: API.PubOrg) {
67
80
  }
68
81
  }
69
82
 
83
+ function chooseLeader() {
84
+ selectUser({
85
+ modelValue: selectedUsers.value, // 回显时选中的数据
86
+ multiple: false,
87
+ onSubmit(selected = []) {
88
+ // console.log(selected); // 点击确认后返回选中的数据
89
+ selectedUsers.value = selected.map((user) => {
90
+ return {
91
+ orgId: user.orgId as string,
92
+ userId: user.userId as string,
93
+ userName: user.userName as string,
94
+ };
95
+ });
96
+ },
97
+ });
98
+ }
99
+
70
100
  const [loading, setLoading] = useToggle(false);
71
101
  function onSubmit() {
72
102
  const request = state.title === ACTION.EDIT ? postRbacOrgUpdateOrg : postRbacOrgAddOrg;
73
103
  formRef.value?.validate().then(() => {
74
104
  setLoading(true);
75
105
  const params: any = { ...form.value };
106
+ if (selectedUsers.value.length > 0) {
107
+ params.leaderUserId = selectedUsers.value[0].userId;
108
+ params.leaderUserName = selectedUsers.value[0].userName;
109
+ params.leaderUserOrgId = selectedUsers.value[0].orgId;
110
+ }
76
111
  request(params)
77
112
  .then((res: API.ResponseDataPubOrg) => {
78
113
  if (res.success) {
@@ -137,6 +172,14 @@ defineExpose({
137
172
  <a-form-item label="排序">
138
173
  <a-input-number v-model:value="form.sort" />
139
174
  </a-form-item>
175
+ <a-form-item label="组织负责人">
176
+ <div flex items-center>
177
+ <span v-if="selectedUsers.length > 0" mr-6px>{{ selectedUsers[0]?.userName }}</span>
178
+ <a-button type="primary" @click="chooseLeader">
179
+ 选择负责人
180
+ </a-button>
181
+ </div>
182
+ </a-form-item>
140
183
  <a-form-item label="统一社会信用代码" name="creditCode">
141
184
  <a-input v-model:value="form.creditCode" />
142
185
  </a-form-item>
@@ -1,43 +0,0 @@
1
- import { basic as request } from '@/api/request';
2
- /**
3
- * @description 删除公告服务
4
- * @url /notice/deleteNotice
5
- * @method GET
6
- * @author @pubinfo/openapi
7
- */
8
- export declare function getNoticeDeleteNotice<R = API.ResponseData, T = API.ResponseData>(params: API.getNoticeDeleteNoticeParams, options?: Parameters<typeof request.Get<R, T>>[1]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
9
- /**
10
- * @description 删除公告推送基本信息
11
- * @url /notice/deleteNoticeSend
12
- * @method GET
13
- * @author @pubinfo/openapi
14
- */
15
- export declare function getNoticeDeleteNoticeSend<R = API.ResponseData, T = API.ResponseData>(params: API.getNoticeDeleteNoticeSendParams, options?: Parameters<typeof request.Get<R, T>>[1]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
16
- /**
17
- * @description 公告服务详情
18
- * @url /notice/detailNotice
19
- * @method GET
20
- * @author @pubinfo/openapi
21
- */
22
- export declare function getNoticeDetailNotice<R = API.ResponseData, T = API.ResponseData>(params: API.getNoticeDetailNoticeParams, options?: Parameters<typeof request.Get<R, T>>[1]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
23
- /**
24
- * @description 公告分页查询
25
- * @url /notice/pageNotice
26
- * @method POST
27
- * @author @pubinfo/openapi
28
- */
29
- export declare function postNoticePageNotice<R = API.ResponseDataPageDataPubNotice, T = API.ResponseDataPageDataPubNotice>(body: API.PubNoticePageDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
30
- /**
31
- * @description 新增或编辑公告服务
32
- * @url /notice/saveOrUpdateNotice
33
- * @method POST
34
- * @author @pubinfo/openapi
35
- */
36
- export declare function postNoticeSaveOrUpdateNotice<R = API.ResponseData, T = API.ResponseData>(body: API.PubNoticeDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
37
- /**
38
- * @description 新增或编辑公告推送基本信息
39
- * @url /notice/saveOrUpdateNoticeSend
40
- * @method POST
41
- * @author @pubinfo/openapi
42
- */
43
- export declare function postNoticeSaveOrUpdateNoticeSend<R = API.ResponseData, T = API.ResponseData>(body: API.PubNoticeSendDto, options?: Parameters<typeof request.Post<R, T>>[2]): import("alova").Method<import("alova").RespondedAlovaGenerics<import("pubinfo").AG, R, T>>;
@@ -1,253 +0,0 @@
1
- import { r as e } from "./chunk-WQLz0Won.js";
2
- import { n as t } from "./dist-DxAYQq3U.js";
3
- import { l as n, n as r, o as i } from "./rbac-B59CVHDt.js";
4
- import { r as a } from "./index.js";
5
- import { createBlock as o, createCommentVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, isRef as d, openBlock as f, reactive as p, ref as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
6
- import { message as v } from "ant-design-vue";
7
- import { Button as y, Drawer as b, Form as x, FormItem as S, Input as C, InputNumber as w, Select as T, Space as E, Switch as D } from "ant-design-vue/es";
8
- //#region src/views/organization/enum.ts
9
- var O = /* @__PURE__ */ function(e) {
10
- return e.AUTHORIZE = "授权", e.ADD = "新增", e.ADDNEXT = "新增下级", e.EDIT = "编辑", e.REMOVE = "删除", e;
11
- }({}), k = /* @__PURE__ */ function(e) {
12
- return e.OWNER = "1", e.ALL = "2", e;
13
- }({}), A = /* @__PURE__ */ function(e) {
14
- return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
15
- }({});
16
- k.OWNER, k.ALL, A.ON, A.OFF;
17
- //#endregion
18
- //#region src/views/organization/components/drawerOrganization.vue?vue&type=script&setup=true&lang.ts
19
- var j = /* @__PURE__ */ u({
20
- name: "OrganizationEdit",
21
- __name: "drawerOrganization",
22
- emits: ["submit"],
23
- setup(e, { expose: u, emit: k }) {
24
- let A = k, j = {
25
- name: [{
26
- required: !0,
27
- message: "请输入组织名称",
28
- trigger: "blur"
29
- }, {
30
- max: 128,
31
- message: "长度不能超过128位",
32
- trigger: "change"
33
- }],
34
- code: [{
35
- required: !0,
36
- message: "请输入组织编码",
37
- trigger: "blur"
38
- }, {
39
- max: 50,
40
- message: "长度不能超过50位",
41
- trigger: "change"
42
- }],
43
- type: [{
44
- required: !0,
45
- message: "请输入组织类型",
46
- trigger: "blur"
47
- }],
48
- areaCode: [{
49
- max: 16,
50
- message: "长度不能超过16位",
51
- trigger: "change"
52
- }],
53
- creditCode: [{
54
- max: 50,
55
- message: "长度不能超过50位",
56
- trigger: "change"
57
- }],
58
- contactPerson: [{
59
- max: 50,
60
- message: "长度不能超过50位",
61
- trigger: "change"
62
- }],
63
- contactMobile: [{
64
- max: 20,
65
- message: "长度不能超过20位",
66
- trigger: "change"
67
- }]
68
- }, M = p({
69
- title: "",
70
- type: ""
71
- }), [N, P] = t(!1), F = m(), I = m([]);
72
- a({ dictCode: "orgType" }).then((e) => {
73
- I.value = e.data?.map((e) => ({
74
- label: e.dictLabel,
75
- value: e.dictValue
76
- }));
77
- });
78
- let L = m({
79
- parentId: "",
80
- enable: !0
81
- });
82
- async function R(e, t) {
83
- if (P(!0), M.title = e, e === O.EDIT) {
84
- let e = await r({ id: t?.id });
85
- e.success && (L.value = e.data ?? {});
86
- } else e === O.ADDNEXT ? L.value = {
87
- parentName: t?.name,
88
- parentId: t?.id,
89
- enable: !0,
90
- district: !1
91
- } : L.value = {
92
- parentId: "",
93
- enable: !0,
94
- district: !1
95
- };
96
- }
97
- let [z, B] = t(!1);
98
- function V() {
99
- let e = M.title === O.EDIT ? n : i;
100
- F.value?.validate().then(() => {
101
- B(!0), e({ ...L.value }).then((e) => {
102
- e.success && (v.success(`${M.title}成功!`), P(!1), A("submit", { ...L.value }));
103
- }).finally(() => B(!1));
104
- });
105
- }
106
- function H() {
107
- L.value = { enable: !1 }, P(!1);
108
- }
109
- return u({ open: R }), (e, t) => {
110
- let n = S, r = C, i = T, a = D, u = w, p = x, m = y, v = E, O = b;
111
- return f(), o(O, {
112
- open: g(N),
113
- "onUpdate:open": t[11] ||= (e) => d(N) ? N.value = e : null,
114
- title: `${g(M).title}组织`,
115
- placement: "right",
116
- width: 600,
117
- "destroy-on-close": "",
118
- "footer-style": { textAlign: "right" },
119
- onClose: H
120
- }, {
121
- footer: _(() => [l(v, null, {
122
- default: _(() => [l(m, { onClick: H }, {
123
- default: _(() => [...t[12] ||= [c(" 取消 ", -1)]]),
124
- _: 1
125
- }), l(m, {
126
- type: "primary",
127
- loading: g(z),
128
- onClick: t[10] ||= (e) => V()
129
- }, {
130
- default: _(() => [...t[13] ||= [c(" 提交 ", -1)]]),
131
- _: 1
132
- }, 8, ["loading"])]),
133
- _: 1
134
- })]),
135
- default: _(() => [l(p, {
136
- ref_key: "formRef",
137
- ref: F,
138
- model: g(L),
139
- rules: j,
140
- "label-col": { span: 6 },
141
- "label-wrap": !0
142
- }, {
143
- default: _(() => [
144
- g(L).parentId !== "" && g(L).parentId !== "0" ? (f(), o(n, {
145
- key: 0,
146
- label: "所属上级"
147
- }, {
148
- default: _(() => [c(h(g(L).parentName), 1)]),
149
- _: 1
150
- })) : s("", !0),
151
- l(n, {
152
- label: "组织名称",
153
- name: "name"
154
- }, {
155
- default: _(() => [l(r, {
156
- value: g(L).name,
157
- "onUpdate:value": t[0] ||= (e) => g(L).name = e
158
- }, null, 8, ["value"])]),
159
- _: 1
160
- }),
161
- l(n, {
162
- label: "组织编码",
163
- name: "code"
164
- }, {
165
- default: _(() => [l(r, {
166
- value: g(L).code,
167
- "onUpdate:value": t[1] ||= (e) => g(L).code = e
168
- }, null, 8, ["value"])]),
169
- _: 1
170
- }),
171
- l(n, {
172
- label: "组织类型",
173
- name: "type"
174
- }, {
175
- default: _(() => [l(i, {
176
- value: g(L).type,
177
- "onUpdate:value": t[2] ||= (e) => g(L).type = e,
178
- options: g(I)
179
- }, null, 8, ["value", "options"])]),
180
- _: 1
181
- }),
182
- l(n, { label: "是否行政区划" }, {
183
- default: _(() => [l(a, {
184
- checked: g(L).district,
185
- "onUpdate:checked": t[3] ||= (e) => g(L).district = e
186
- }, null, 8, ["checked"])]),
187
- _: 1
188
- }),
189
- g(L).district ? (f(), o(n, {
190
- key: 1,
191
- label: "行政区划编码",
192
- name: "areaCode"
193
- }, {
194
- default: _(() => [l(r, {
195
- value: g(L).areaCode,
196
- "onUpdate:value": t[4] ||= (e) => g(L).areaCode = e
197
- }, null, 8, ["value"])]),
198
- _: 1
199
- })) : s("", !0),
200
- l(n, { label: "是否启用" }, {
201
- default: _(() => [l(a, {
202
- checked: g(L).enable,
203
- "onUpdate:checked": t[5] ||= (e) => g(L).enable = e
204
- }, null, 8, ["checked"])]),
205
- _: 1
206
- }),
207
- l(n, { label: "排序" }, {
208
- default: _(() => [l(u, {
209
- value: g(L).sort,
210
- "onUpdate:value": t[6] ||= (e) => g(L).sort = e
211
- }, null, 8, ["value"])]),
212
- _: 1
213
- }),
214
- l(n, {
215
- label: "统一社会信用代码",
216
- name: "creditCode"
217
- }, {
218
- default: _(() => [l(r, {
219
- value: g(L).creditCode,
220
- "onUpdate:value": t[7] ||= (e) => g(L).creditCode = e
221
- }, null, 8, ["value"])]),
222
- _: 1
223
- }),
224
- l(n, {
225
- label: "联系人",
226
- name: "contactPerson"
227
- }, {
228
- default: _(() => [l(r, {
229
- value: g(L).contactPerson,
230
- "onUpdate:value": t[8] ||= (e) => g(L).contactPerson = e
231
- }, null, 8, ["value"])]),
232
- _: 1
233
- }),
234
- l(n, {
235
- label: "联系方式",
236
- name: "contactMobile"
237
- }, {
238
- default: _(() => [l(r, {
239
- value: g(L).contactMobile,
240
- "onUpdate:value": t[9] ||= (e) => g(L).contactMobile = e
241
- }, null, 8, ["value"])]),
242
- _: 1
243
- })
244
- ]),
245
- _: 1
246
- }, 8, ["model"])]),
247
- _: 1
248
- }, 8, ["open", "title"]);
249
- };
250
- }
251
- }), M = /* @__PURE__ */ e({ default: () => N }), N = j;
252
- //#endregion
253
- export { M as n, O as r, N as t };
@@ -1,124 +0,0 @@
1
- import { basic as request } from '@/api/request';
2
-
3
- /**
4
- * @description 删除公告服务
5
- * @url /notice/deleteNotice
6
- * @method GET
7
- * @author @pubinfo/openapi
8
- */
9
- export function getNoticeDeleteNotice<
10
- R = API.ResponseData,
11
- T = API.ResponseData,
12
- >(
13
- params: API.getNoticeDeleteNoticeParams,
14
- options?: Parameters<typeof request.Get<R, T>>[1],
15
- ) {
16
- return request.Get<R, T>('/notice/deleteNotice', {
17
- params: {
18
- ...params,
19
- },
20
- ...(options || {}),
21
- });
22
- }
23
-
24
- /**
25
- * @description 删除公告推送基本信息
26
- * @url /notice/deleteNoticeSend
27
- * @method GET
28
- * @author @pubinfo/openapi
29
- */
30
- export function getNoticeDeleteNoticeSend<
31
- R = API.ResponseData,
32
- T = API.ResponseData,
33
- >(
34
- params: API.getNoticeDeleteNoticeSendParams,
35
- options?: Parameters<typeof request.Get<R, T>>[1],
36
- ) {
37
- return request.Get<R, T>('/notice/deleteNoticeSend', {
38
- params: {
39
- ...params,
40
- },
41
- ...(options || {}),
42
- });
43
- }
44
-
45
- /**
46
- * @description 公告服务详情
47
- * @url /notice/detailNotice
48
- * @method GET
49
- * @author @pubinfo/openapi
50
- */
51
- export function getNoticeDetailNotice<
52
- R = API.ResponseData,
53
- T = API.ResponseData,
54
- >(
55
- params: API.getNoticeDetailNoticeParams,
56
- options?: Parameters<typeof request.Get<R, T>>[1],
57
- ) {
58
- return request.Get<R, T>('/notice/detailNotice', {
59
- params: {
60
- ...params,
61
- },
62
- ...(options || {}),
63
- });
64
- }
65
-
66
- /**
67
- * @description 公告分页查询
68
- * @url /notice/pageNotice
69
- * @method POST
70
- * @author @pubinfo/openapi
71
- */
72
- export function postNoticePageNotice<
73
- R = API.ResponseDataPageDataPubNotice,
74
- T = API.ResponseDataPageDataPubNotice,
75
- >(
76
- body: API.PubNoticePageDto,
77
- options?: Parameters<typeof request.Post<R, T>>[2],
78
- ) {
79
- return request.Post<R, T>('/notice/pageNotice', body, {
80
- headers: {
81
- 'Content-Type': 'application/json',
82
- },
83
- ...(options || {}),
84
- });
85
- }
86
-
87
- /**
88
- * @description 新增或编辑公告服务
89
- * @url /notice/saveOrUpdateNotice
90
- * @method POST
91
- * @author @pubinfo/openapi
92
- */
93
- export function postNoticeSaveOrUpdateNotice<
94
- R = API.ResponseData,
95
- T = API.ResponseData,
96
- >(body: API.PubNoticeDto, options?: Parameters<typeof request.Post<R, T>>[2]) {
97
- return request.Post<R, T>('/notice/saveOrUpdateNotice', body, {
98
- headers: {
99
- 'Content-Type': 'application/json',
100
- },
101
- ...(options || {}),
102
- });
103
- }
104
-
105
- /**
106
- * @description 新增或编辑公告推送基本信息
107
- * @url /notice/saveOrUpdateNoticeSend
108
- * @method POST
109
- * @author @pubinfo/openapi
110
- */
111
- export function postNoticeSaveOrUpdateNoticeSend<
112
- R = API.ResponseData,
113
- T = API.ResponseData,
114
- >(
115
- body: API.PubNoticeSendDto,
116
- options?: Parameters<typeof request.Post<R, T>>[2],
117
- ) {
118
- return request.Post<R, T>('/notice/saveOrUpdateNoticeSend', body, {
119
- headers: {
120
- 'Content-Type': 'application/json',
121
- },
122
- ...(options || {}),
123
- });
124
- }