sys-notice-api.ts 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Admin.NET
  5. * 让 .NET 开发更简单、更通用、更流行。前后端分离架构(.NET6/Vue3),开箱即用紧随前沿技术。<br/><a href='https://gitee.com/zuohuaijun/Admin.NET/'>https://gitee.com/zuohuaijun/Admin.NET</a>
  6. *
  7. * OpenAPI spec version: 1.0.0
  8. * Contact: 515096995@qq.com
  9. *
  10. * NOTE: This class is auto generated by the swagger code generator program.
  11. * https://github.com/swagger-api/swagger-codegen.git
  12. * Do not edit the class manually.
  13. */
  14. import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
  15. import { Configuration } from '../configuration';
  16. // Some imports not used depending on template conditions
  17. // @ts-ignore
  18. import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
  19. import { AddNoticeInput } from '../models';
  20. import { AdminResultListSysNoticeUser } from '../models';
  21. import { AdminResultSqlSugarPagedListSysNotice } from '../models';
  22. import { AdminResultSqlSugarPagedListSysNoticeUser } from '../models';
  23. import { DeleteNoticeInput } from '../models';
  24. import { NoticeInput } from '../models';
  25. import { NoticeTypeEnum } from '../models';
  26. import { UpdateNoticeInput } from '../models';
  27. /**
  28. * SysNoticeApi - axios parameter creator
  29. * @export
  30. */
  31. export const SysNoticeApiAxiosParamCreator = function (configuration?: Configuration) {
  32. return {
  33. /**
  34. *
  35. * @summary 增加通知公告
  36. * @param {AddNoticeInput} [body]
  37. * @param {*} [options] Override http request option.
  38. * @throws {RequiredError}
  39. */
  40. sysNoticeAddPost: async (body?: AddNoticeInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  41. const localVarPath = `/sysNotice/add`;
  42. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  43. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  44. let baseOptions;
  45. if (configuration) {
  46. baseOptions = configuration.baseOptions;
  47. }
  48. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  49. const localVarHeaderParameter = {} as any;
  50. const localVarQueryParameter = {} as any;
  51. // authentication Bearer required
  52. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  53. const query = new URLSearchParams(localVarUrlObj.search);
  54. for (const key in localVarQueryParameter) {
  55. query.set(key, localVarQueryParameter[key]);
  56. }
  57. for (const key in options.params) {
  58. query.set(key, options.params[key]);
  59. }
  60. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  61. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  62. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  63. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  64. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  65. return {
  66. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  67. options: localVarRequestOptions,
  68. };
  69. },
  70. /**
  71. *
  72. * @summary 删除通知公告
  73. * @param {DeleteNoticeInput} [body]
  74. * @param {*} [options] Override http request option.
  75. * @throws {RequiredError}
  76. */
  77. sysNoticeDeletePost: async (body?: DeleteNoticeInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  78. const localVarPath = `/sysNotice/delete`;
  79. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  80. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  81. let baseOptions;
  82. if (configuration) {
  83. baseOptions = configuration.baseOptions;
  84. }
  85. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  86. const localVarHeaderParameter = {} as any;
  87. const localVarQueryParameter = {} as any;
  88. // authentication Bearer required
  89. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  90. const query = new URLSearchParams(localVarUrlObj.search);
  91. for (const key in localVarQueryParameter) {
  92. query.set(key, localVarQueryParameter[key]);
  93. }
  94. for (const key in options.params) {
  95. query.set(key, options.params[key]);
  96. }
  97. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  98. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  99. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  100. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  101. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  102. return {
  103. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  104. options: localVarRequestOptions,
  105. };
  106. },
  107. /**
  108. *
  109. * @summary 获取通知公告分页列表
  110. * @param {string} [title] 标题
  111. * @param {NoticeTypeEnum} [type] 类型(1通知 2公告)
  112. * @param {number} [page] 当前页码
  113. * @param {number} [pageSize] 页码容量
  114. * @param {string} [field] 排序字段
  115. * @param {string} [order] 排序方向
  116. * @param {string} [descStr] 降序排序
  117. * @param {*} [options] Override http request option.
  118. * @throws {RequiredError}
  119. */
  120. sysNoticePageGet: async (title?: string, type?: NoticeTypeEnum, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  121. const localVarPath = `/sysNotice/page`;
  122. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  123. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  124. let baseOptions;
  125. if (configuration) {
  126. baseOptions = configuration.baseOptions;
  127. }
  128. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  129. const localVarHeaderParameter = {} as any;
  130. const localVarQueryParameter = {} as any;
  131. // authentication Bearer required
  132. if (title !== undefined) {
  133. localVarQueryParameter['Title'] = title;
  134. }
  135. if (type !== undefined) {
  136. localVarQueryParameter['Type'] = type;
  137. }
  138. if (page !== undefined) {
  139. localVarQueryParameter['Page'] = page;
  140. }
  141. if (pageSize !== undefined) {
  142. localVarQueryParameter['PageSize'] = pageSize;
  143. }
  144. if (field !== undefined) {
  145. localVarQueryParameter['Field'] = field;
  146. }
  147. if (order !== undefined) {
  148. localVarQueryParameter['Order'] = order;
  149. }
  150. if (descStr !== undefined) {
  151. localVarQueryParameter['DescStr'] = descStr;
  152. }
  153. const query = new URLSearchParams(localVarUrlObj.search);
  154. for (const key in localVarQueryParameter) {
  155. query.set(key, localVarQueryParameter[key]);
  156. }
  157. for (const key in options.params) {
  158. query.set(key, options.params[key]);
  159. }
  160. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  161. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  162. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  163. return {
  164. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  165. options: localVarRequestOptions,
  166. };
  167. },
  168. /**
  169. *
  170. * @summary 获取接收的通知公告(当前用户)
  171. * @param {string} [title] 标题
  172. * @param {NoticeTypeEnum} [type] 类型(1通知 2公告)
  173. * @param {number} [page] 当前页码
  174. * @param {number} [pageSize] 页码容量
  175. * @param {string} [field] 排序字段
  176. * @param {string} [order] 排序方向
  177. * @param {string} [descStr] 降序排序
  178. * @param {*} [options] Override http request option.
  179. * @throws {RequiredError}
  180. */
  181. sysNoticePageReceivedGet: async (title?: string, type?: NoticeTypeEnum, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  182. const localVarPath = `/sysNotice/pageReceived`;
  183. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  184. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  185. let baseOptions;
  186. if (configuration) {
  187. baseOptions = configuration.baseOptions;
  188. }
  189. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  190. const localVarHeaderParameter = {} as any;
  191. const localVarQueryParameter = {} as any;
  192. // authentication Bearer required
  193. if (title !== undefined) {
  194. localVarQueryParameter['Title'] = title;
  195. }
  196. if (type !== undefined) {
  197. localVarQueryParameter['Type'] = type;
  198. }
  199. if (page !== undefined) {
  200. localVarQueryParameter['Page'] = page;
  201. }
  202. if (pageSize !== undefined) {
  203. localVarQueryParameter['PageSize'] = pageSize;
  204. }
  205. if (field !== undefined) {
  206. localVarQueryParameter['Field'] = field;
  207. }
  208. if (order !== undefined) {
  209. localVarQueryParameter['Order'] = order;
  210. }
  211. if (descStr !== undefined) {
  212. localVarQueryParameter['DescStr'] = descStr;
  213. }
  214. const query = new URLSearchParams(localVarUrlObj.search);
  215. for (const key in localVarQueryParameter) {
  216. query.set(key, localVarQueryParameter[key]);
  217. }
  218. for (const key in options.params) {
  219. query.set(key, options.params[key]);
  220. }
  221. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  222. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  223. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  224. return {
  225. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  226. options: localVarRequestOptions,
  227. };
  228. },
  229. /**
  230. *
  231. * @summary 发布通知公告
  232. * @param {NoticeInput} [body]
  233. * @param {*} [options] Override http request option.
  234. * @throws {RequiredError}
  235. */
  236. sysNoticePublicPost: async (body?: NoticeInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  237. const localVarPath = `/sysNotice/public`;
  238. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  239. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  240. let baseOptions;
  241. if (configuration) {
  242. baseOptions = configuration.baseOptions;
  243. }
  244. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  245. const localVarHeaderParameter = {} as any;
  246. const localVarQueryParameter = {} as any;
  247. // authentication Bearer required
  248. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  249. const query = new URLSearchParams(localVarUrlObj.search);
  250. for (const key in localVarQueryParameter) {
  251. query.set(key, localVarQueryParameter[key]);
  252. }
  253. for (const key in options.params) {
  254. query.set(key, options.params[key]);
  255. }
  256. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  257. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  258. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  259. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  260. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  261. return {
  262. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  263. options: localVarRequestOptions,
  264. };
  265. },
  266. /**
  267. *
  268. * @summary 设置通知公告已读状态
  269. * @param {NoticeInput} [body]
  270. * @param {*} [options] Override http request option.
  271. * @throws {RequiredError}
  272. */
  273. sysNoticeSetReadPost: async (body?: NoticeInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  274. const localVarPath = `/sysNotice/setRead`;
  275. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  276. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  277. let baseOptions;
  278. if (configuration) {
  279. baseOptions = configuration.baseOptions;
  280. }
  281. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  282. const localVarHeaderParameter = {} as any;
  283. const localVarQueryParameter = {} as any;
  284. // authentication Bearer required
  285. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  286. const query = new URLSearchParams(localVarUrlObj.search);
  287. for (const key in localVarQueryParameter) {
  288. query.set(key, localVarQueryParameter[key]);
  289. }
  290. for (const key in options.params) {
  291. query.set(key, options.params[key]);
  292. }
  293. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  294. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  295. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  296. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  297. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  298. return {
  299. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  300. options: localVarRequestOptions,
  301. };
  302. },
  303. /**
  304. *
  305. * @summary 获取未读的通知公告(当前用户)
  306. * @param {*} [options] Override http request option.
  307. * @throws {RequiredError}
  308. */
  309. sysNoticeUnReadListGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  310. const localVarPath = `/sysNotice/unReadList`;
  311. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  312. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  313. let baseOptions;
  314. if (configuration) {
  315. baseOptions = configuration.baseOptions;
  316. }
  317. const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
  318. const localVarHeaderParameter = {} as any;
  319. const localVarQueryParameter = {} as any;
  320. // authentication Bearer required
  321. const query = new URLSearchParams(localVarUrlObj.search);
  322. for (const key in localVarQueryParameter) {
  323. query.set(key, localVarQueryParameter[key]);
  324. }
  325. for (const key in options.params) {
  326. query.set(key, options.params[key]);
  327. }
  328. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  329. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  330. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  331. return {
  332. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  333. options: localVarRequestOptions,
  334. };
  335. },
  336. /**
  337. *
  338. * @summary 更新通知公告
  339. * @param {UpdateNoticeInput} [body]
  340. * @param {*} [options] Override http request option.
  341. * @throws {RequiredError}
  342. */
  343. sysNoticeUpdatePost: async (body?: UpdateNoticeInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  344. const localVarPath = `/sysNotice/update`;
  345. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  346. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  347. let baseOptions;
  348. if (configuration) {
  349. baseOptions = configuration.baseOptions;
  350. }
  351. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  352. const localVarHeaderParameter = {} as any;
  353. const localVarQueryParameter = {} as any;
  354. // authentication Bearer required
  355. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  356. const query = new URLSearchParams(localVarUrlObj.search);
  357. for (const key in localVarQueryParameter) {
  358. query.set(key, localVarQueryParameter[key]);
  359. }
  360. for (const key in options.params) {
  361. query.set(key, options.params[key]);
  362. }
  363. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  364. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  365. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  366. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  367. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  368. return {
  369. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  370. options: localVarRequestOptions,
  371. };
  372. },
  373. }
  374. };
  375. /**
  376. * SysNoticeApi - functional programming interface
  377. * @export
  378. */
  379. export const SysNoticeApiFp = function(configuration?: Configuration) {
  380. return {
  381. /**
  382. *
  383. * @summary 增加通知公告
  384. * @param {AddNoticeInput} [body]
  385. * @param {*} [options] Override http request option.
  386. * @throws {RequiredError}
  387. */
  388. async sysNoticeAddPost(body?: AddNoticeInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  389. const localVarAxiosArgs = await SysNoticeApiAxiosParamCreator(configuration).sysNoticeAddPost(body, options);
  390. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  391. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  392. return axios.request(axiosRequestArgs);
  393. };
  394. },
  395. /**
  396. *
  397. * @summary 删除通知公告
  398. * @param {DeleteNoticeInput} [body]
  399. * @param {*} [options] Override http request option.
  400. * @throws {RequiredError}
  401. */
  402. async sysNoticeDeletePost(body?: DeleteNoticeInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  403. const localVarAxiosArgs = await SysNoticeApiAxiosParamCreator(configuration).sysNoticeDeletePost(body, options);
  404. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  405. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  406. return axios.request(axiosRequestArgs);
  407. };
  408. },
  409. /**
  410. *
  411. * @summary 获取通知公告分页列表
  412. * @param {string} [title] 标题
  413. * @param {NoticeTypeEnum} [type] 类型(1通知 2公告)
  414. * @param {number} [page] 当前页码
  415. * @param {number} [pageSize] 页码容量
  416. * @param {string} [field] 排序字段
  417. * @param {string} [order] 排序方向
  418. * @param {string} [descStr] 降序排序
  419. * @param {*} [options] Override http request option.
  420. * @throws {RequiredError}
  421. */
  422. async sysNoticePageGet(title?: string, type?: NoticeTypeEnum, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysNotice>>> {
  423. const localVarAxiosArgs = await SysNoticeApiAxiosParamCreator(configuration).sysNoticePageGet(title, type, page, pageSize, field, order, descStr, options);
  424. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  425. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  426. return axios.request(axiosRequestArgs);
  427. };
  428. },
  429. /**
  430. *
  431. * @summary 获取接收的通知公告(当前用户)
  432. * @param {string} [title] 标题
  433. * @param {NoticeTypeEnum} [type] 类型(1通知 2公告)
  434. * @param {number} [page] 当前页码
  435. * @param {number} [pageSize] 页码容量
  436. * @param {string} [field] 排序字段
  437. * @param {string} [order] 排序方向
  438. * @param {string} [descStr] 降序排序
  439. * @param {*} [options] Override http request option.
  440. * @throws {RequiredError}
  441. */
  442. async sysNoticePageReceivedGet(title?: string, type?: NoticeTypeEnum, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysNoticeUser>>> {
  443. const localVarAxiosArgs = await SysNoticeApiAxiosParamCreator(configuration).sysNoticePageReceivedGet(title, type, page, pageSize, field, order, descStr, options);
  444. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  445. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  446. return axios.request(axiosRequestArgs);
  447. };
  448. },
  449. /**
  450. *
  451. * @summary 发布通知公告
  452. * @param {NoticeInput} [body]
  453. * @param {*} [options] Override http request option.
  454. * @throws {RequiredError}
  455. */
  456. async sysNoticePublicPost(body?: NoticeInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  457. const localVarAxiosArgs = await SysNoticeApiAxiosParamCreator(configuration).sysNoticePublicPost(body, options);
  458. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  459. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  460. return axios.request(axiosRequestArgs);
  461. };
  462. },
  463. /**
  464. *
  465. * @summary 设置通知公告已读状态
  466. * @param {NoticeInput} [body]
  467. * @param {*} [options] Override http request option.
  468. * @throws {RequiredError}
  469. */
  470. async sysNoticeSetReadPost(body?: NoticeInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  471. const localVarAxiosArgs = await SysNoticeApiAxiosParamCreator(configuration).sysNoticeSetReadPost(body, options);
  472. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  473. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  474. return axios.request(axiosRequestArgs);
  475. };
  476. },
  477. /**
  478. *
  479. * @summary 获取未读的通知公告(当前用户)
  480. * @param {*} [options] Override http request option.
  481. * @throws {RequiredError}
  482. */
  483. async sysNoticeUnReadListGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysNoticeUser>>> {
  484. const localVarAxiosArgs = await SysNoticeApiAxiosParamCreator(configuration).sysNoticeUnReadListGet(options);
  485. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  486. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  487. return axios.request(axiosRequestArgs);
  488. };
  489. },
  490. /**
  491. *
  492. * @summary 更新通知公告
  493. * @param {UpdateNoticeInput} [body]
  494. * @param {*} [options] Override http request option.
  495. * @throws {RequiredError}
  496. */
  497. async sysNoticeUpdatePost(body?: UpdateNoticeInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
  498. const localVarAxiosArgs = await SysNoticeApiAxiosParamCreator(configuration).sysNoticeUpdatePost(body, options);
  499. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  500. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  501. return axios.request(axiosRequestArgs);
  502. };
  503. },
  504. }
  505. };
  506. /**
  507. * SysNoticeApi - factory interface
  508. * @export
  509. */
  510. export const SysNoticeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  511. return {
  512. /**
  513. *
  514. * @summary 增加通知公告
  515. * @param {AddNoticeInput} [body]
  516. * @param {*} [options] Override http request option.
  517. * @throws {RequiredError}
  518. */
  519. async sysNoticeAddPost(body?: AddNoticeInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  520. return SysNoticeApiFp(configuration).sysNoticeAddPost(body, options).then((request) => request(axios, basePath));
  521. },
  522. /**
  523. *
  524. * @summary 删除通知公告
  525. * @param {DeleteNoticeInput} [body]
  526. * @param {*} [options] Override http request option.
  527. * @throws {RequiredError}
  528. */
  529. async sysNoticeDeletePost(body?: DeleteNoticeInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  530. return SysNoticeApiFp(configuration).sysNoticeDeletePost(body, options).then((request) => request(axios, basePath));
  531. },
  532. /**
  533. *
  534. * @summary 获取通知公告分页列表
  535. * @param {string} [title] 标题
  536. * @param {NoticeTypeEnum} [type] 类型(1通知 2公告)
  537. * @param {number} [page] 当前页码
  538. * @param {number} [pageSize] 页码容量
  539. * @param {string} [field] 排序字段
  540. * @param {string} [order] 排序方向
  541. * @param {string} [descStr] 降序排序
  542. * @param {*} [options] Override http request option.
  543. * @throws {RequiredError}
  544. */
  545. async sysNoticePageGet(title?: string, type?: NoticeTypeEnum, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysNotice>> {
  546. return SysNoticeApiFp(configuration).sysNoticePageGet(title, type, page, pageSize, field, order, descStr, options).then((request) => request(axios, basePath));
  547. },
  548. /**
  549. *
  550. * @summary 获取接收的通知公告(当前用户)
  551. * @param {string} [title] 标题
  552. * @param {NoticeTypeEnum} [type] 类型(1通知 2公告)
  553. * @param {number} [page] 当前页码
  554. * @param {number} [pageSize] 页码容量
  555. * @param {string} [field] 排序字段
  556. * @param {string} [order] 排序方向
  557. * @param {string} [descStr] 降序排序
  558. * @param {*} [options] Override http request option.
  559. * @throws {RequiredError}
  560. */
  561. async sysNoticePageReceivedGet(title?: string, type?: NoticeTypeEnum, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysNoticeUser>> {
  562. return SysNoticeApiFp(configuration).sysNoticePageReceivedGet(title, type, page, pageSize, field, order, descStr, options).then((request) => request(axios, basePath));
  563. },
  564. /**
  565. *
  566. * @summary 发布通知公告
  567. * @param {NoticeInput} [body]
  568. * @param {*} [options] Override http request option.
  569. * @throws {RequiredError}
  570. */
  571. async sysNoticePublicPost(body?: NoticeInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  572. return SysNoticeApiFp(configuration).sysNoticePublicPost(body, options).then((request) => request(axios, basePath));
  573. },
  574. /**
  575. *
  576. * @summary 设置通知公告已读状态
  577. * @param {NoticeInput} [body]
  578. * @param {*} [options] Override http request option.
  579. * @throws {RequiredError}
  580. */
  581. async sysNoticeSetReadPost(body?: NoticeInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  582. return SysNoticeApiFp(configuration).sysNoticeSetReadPost(body, options).then((request) => request(axios, basePath));
  583. },
  584. /**
  585. *
  586. * @summary 获取未读的通知公告(当前用户)
  587. * @param {*} [options] Override http request option.
  588. * @throws {RequiredError}
  589. */
  590. async sysNoticeUnReadListGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysNoticeUser>> {
  591. return SysNoticeApiFp(configuration).sysNoticeUnReadListGet(options).then((request) => request(axios, basePath));
  592. },
  593. /**
  594. *
  595. * @summary 更新通知公告
  596. * @param {UpdateNoticeInput} [body]
  597. * @param {*} [options] Override http request option.
  598. * @throws {RequiredError}
  599. */
  600. async sysNoticeUpdatePost(body?: UpdateNoticeInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
  601. return SysNoticeApiFp(configuration).sysNoticeUpdatePost(body, options).then((request) => request(axios, basePath));
  602. },
  603. };
  604. };
  605. /**
  606. * SysNoticeApi - object-oriented interface
  607. * @export
  608. * @class SysNoticeApi
  609. * @extends {BaseAPI}
  610. */
  611. export class SysNoticeApi extends BaseAPI {
  612. /**
  613. *
  614. * @summary 增加通知公告
  615. * @param {AddNoticeInput} [body]
  616. * @param {*} [options] Override http request option.
  617. * @throws {RequiredError}
  618. * @memberof SysNoticeApi
  619. */
  620. public async sysNoticeAddPost(body?: AddNoticeInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  621. return SysNoticeApiFp(this.configuration).sysNoticeAddPost(body, options).then((request) => request(this.axios, this.basePath));
  622. }
  623. /**
  624. *
  625. * @summary 删除通知公告
  626. * @param {DeleteNoticeInput} [body]
  627. * @param {*} [options] Override http request option.
  628. * @throws {RequiredError}
  629. * @memberof SysNoticeApi
  630. */
  631. public async sysNoticeDeletePost(body?: DeleteNoticeInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  632. return SysNoticeApiFp(this.configuration).sysNoticeDeletePost(body, options).then((request) => request(this.axios, this.basePath));
  633. }
  634. /**
  635. *
  636. * @summary 获取通知公告分页列表
  637. * @param {string} [title] 标题
  638. * @param {NoticeTypeEnum} [type] 类型(1通知 2公告)
  639. * @param {number} [page] 当前页码
  640. * @param {number} [pageSize] 页码容量
  641. * @param {string} [field] 排序字段
  642. * @param {string} [order] 排序方向
  643. * @param {string} [descStr] 降序排序
  644. * @param {*} [options] Override http request option.
  645. * @throws {RequiredError}
  646. * @memberof SysNoticeApi
  647. */
  648. public async sysNoticePageGet(title?: string, type?: NoticeTypeEnum, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysNotice>> {
  649. return SysNoticeApiFp(this.configuration).sysNoticePageGet(title, type, page, pageSize, field, order, descStr, options).then((request) => request(this.axios, this.basePath));
  650. }
  651. /**
  652. *
  653. * @summary 获取接收的通知公告(当前用户)
  654. * @param {string} [title] 标题
  655. * @param {NoticeTypeEnum} [type] 类型(1通知 2公告)
  656. * @param {number} [page] 当前页码
  657. * @param {number} [pageSize] 页码容量
  658. * @param {string} [field] 排序字段
  659. * @param {string} [order] 排序方向
  660. * @param {string} [descStr] 降序排序
  661. * @param {*} [options] Override http request option.
  662. * @throws {RequiredError}
  663. * @memberof SysNoticeApi
  664. */
  665. public async sysNoticePageReceivedGet(title?: string, type?: NoticeTypeEnum, page?: number, pageSize?: number, field?: string, order?: string, descStr?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysNoticeUser>> {
  666. return SysNoticeApiFp(this.configuration).sysNoticePageReceivedGet(title, type, page, pageSize, field, order, descStr, options).then((request) => request(this.axios, this.basePath));
  667. }
  668. /**
  669. *
  670. * @summary 发布通知公告
  671. * @param {NoticeInput} [body]
  672. * @param {*} [options] Override http request option.
  673. * @throws {RequiredError}
  674. * @memberof SysNoticeApi
  675. */
  676. public async sysNoticePublicPost(body?: NoticeInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  677. return SysNoticeApiFp(this.configuration).sysNoticePublicPost(body, options).then((request) => request(this.axios, this.basePath));
  678. }
  679. /**
  680. *
  681. * @summary 设置通知公告已读状态
  682. * @param {NoticeInput} [body]
  683. * @param {*} [options] Override http request option.
  684. * @throws {RequiredError}
  685. * @memberof SysNoticeApi
  686. */
  687. public async sysNoticeSetReadPost(body?: NoticeInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  688. return SysNoticeApiFp(this.configuration).sysNoticeSetReadPost(body, options).then((request) => request(this.axios, this.basePath));
  689. }
  690. /**
  691. *
  692. * @summary 获取未读的通知公告(当前用户)
  693. * @param {*} [options] Override http request option.
  694. * @throws {RequiredError}
  695. * @memberof SysNoticeApi
  696. */
  697. public async sysNoticeUnReadListGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysNoticeUser>> {
  698. return SysNoticeApiFp(this.configuration).sysNoticeUnReadListGet(options).then((request) => request(this.axios, this.basePath));
  699. }
  700. /**
  701. *
  702. * @summary 更新通知公告
  703. * @param {UpdateNoticeInput} [body]
  704. * @param {*} [options] Override http request option.
  705. * @throws {RequiredError}
  706. * @memberof SysNoticeApi
  707. */
  708. public async sysNoticeUpdatePost(body?: UpdateNoticeInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
  709. return SysNoticeApiFp(this.configuration).sysNoticeUpdatePost(body, options).then((request) => request(this.axios, this.basePath));
  710. }
  711. }