sys-notice-api.ts 38 KB

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