apijsonapi.ts 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  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 { AdminResultJObject } from '../models';
  20. import { JToken } from '../models';
  21. /**
  22. * APIJSONApi - axios parameter creator
  23. * @export
  24. */
  25. export const APIJSONApiAxiosParamCreator = function (configuration?: Configuration) {
  26. return {
  27. /**
  28. *
  29. * @summary 新增 🔖
  30. * @param {{ [key: string]: JToken; }} [body] 表对象或数组,若没有传Id则后端生成Id
  31. * @param {*} [options] Override http request option.
  32. * @throws {RequiredError}
  33. */
  34. apiAPIJSONAddPost: async (body?: { [key: string]: JToken; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  35. const localVarPath = `/api/aPIJSON/add`;
  36. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  37. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  38. let baseOptions;
  39. if (configuration) {
  40. baseOptions = configuration.baseOptions;
  41. }
  42. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  43. const localVarHeaderParameter = {} as any;
  44. const localVarQueryParameter = {} as any;
  45. // authentication Bearer required
  46. // http bearer authentication required
  47. if (configuration && configuration.accessToken) {
  48. const accessToken = typeof configuration.accessToken === 'function'
  49. ? await configuration.accessToken()
  50. : await configuration.accessToken;
  51. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  52. }
  53. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  54. const query = new URLSearchParams(localVarUrlObj.search);
  55. for (const key in localVarQueryParameter) {
  56. query.set(key, localVarQueryParameter[key]);
  57. }
  58. for (const key in options.params) {
  59. query.set(key, options.params[key]);
  60. }
  61. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  62. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  63. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  64. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  65. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  66. return {
  67. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  68. options: localVarRequestOptions,
  69. };
  70. },
  71. /**
  72. *
  73. * @summary 删除(支持非Id条件、支持批量) 🔖
  74. * @param {{ [key: string]: JToken; }} [body]
  75. * @param {*} [options] Override http request option.
  76. * @throws {RequiredError}
  77. */
  78. apiAPIJSONDeletePost: async (body?: { [key: string]: JToken; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  79. const localVarPath = `/api/aPIJSON/delete`;
  80. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  81. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  82. let baseOptions;
  83. if (configuration) {
  84. baseOptions = configuration.baseOptions;
  85. }
  86. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  87. const localVarHeaderParameter = {} as any;
  88. const localVarQueryParameter = {} as any;
  89. // authentication Bearer required
  90. // http bearer authentication required
  91. if (configuration && configuration.accessToken) {
  92. const accessToken = typeof configuration.accessToken === 'function'
  93. ? await configuration.accessToken()
  94. : await configuration.accessToken;
  95. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  96. }
  97. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  98. const query = new URLSearchParams(localVarUrlObj.search);
  99. for (const key in localVarQueryParameter) {
  100. query.set(key, localVarQueryParameter[key]);
  101. }
  102. for (const key in options.params) {
  103. query.set(key, options.params[key]);
  104. }
  105. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  106. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  107. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  108. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  109. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  110. return {
  111. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  112. options: localVarRequestOptions,
  113. };
  114. },
  115. /**
  116. * 参数:{\"[]\":{\"SYSLOGOP\":{}}}
  117. * @summary 统一查询入口 🔖
  118. * @param {{ [key: string]: JToken; }} [body]
  119. * @param {*} [options] Override http request option.
  120. * @throws {RequiredError}
  121. */
  122. apiAPIJSONGetPost: async (body?: { [key: string]: JToken; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  123. const localVarPath = `/api/aPIJSON/get`;
  124. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  125. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  126. let baseOptions;
  127. if (configuration) {
  128. baseOptions = configuration.baseOptions;
  129. }
  130. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  131. const localVarHeaderParameter = {} as any;
  132. const localVarQueryParameter = {} as any;
  133. // authentication Bearer required
  134. // http bearer authentication required
  135. if (configuration && configuration.accessToken) {
  136. const accessToken = typeof configuration.accessToken === 'function'
  137. ? await configuration.accessToken()
  138. : await configuration.accessToken;
  139. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  140. }
  141. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  142. const query = new URLSearchParams(localVarUrlObj.search);
  143. for (const key in localVarQueryParameter) {
  144. query.set(key, localVarQueryParameter[key]);
  145. }
  146. for (const key in options.params) {
  147. query.set(key, options.params[key]);
  148. }
  149. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  150. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  151. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  152. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  153. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  154. return {
  155. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  156. options: localVarRequestOptions,
  157. };
  158. },
  159. /**
  160. *
  161. * @summary 查询 🔖
  162. * @param {string} table
  163. * @param {{ [key: string]: JToken; }} [body]
  164. * @param {*} [options] Override http request option.
  165. * @throws {RequiredError}
  166. */
  167. apiAPIJSONGetTablePost: async (table: string, body?: { [key: string]: JToken; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  168. // verify required parameter 'table' is not null or undefined
  169. if (table === null || table === undefined) {
  170. throw new RequiredError('table','Required parameter table was null or undefined when calling apiAPIJSONGetTablePost.');
  171. }
  172. const localVarPath = `/api/aPIJSON/get/{table}`
  173. .replace(`{${"table"}}`, encodeURIComponent(String(table)));
  174. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  175. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  176. let baseOptions;
  177. if (configuration) {
  178. baseOptions = configuration.baseOptions;
  179. }
  180. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  181. const localVarHeaderParameter = {} as any;
  182. const localVarQueryParameter = {} as any;
  183. // authentication Bearer required
  184. // http bearer authentication required
  185. if (configuration && configuration.accessToken) {
  186. const accessToken = typeof configuration.accessToken === 'function'
  187. ? await configuration.accessToken()
  188. : await configuration.accessToken;
  189. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  190. }
  191. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  192. const query = new URLSearchParams(localVarUrlObj.search);
  193. for (const key in localVarQueryParameter) {
  194. query.set(key, localVarQueryParameter[key]);
  195. }
  196. for (const key in options.params) {
  197. query.set(key, options.params[key]);
  198. }
  199. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  200. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  201. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  202. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  203. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  204. return {
  205. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  206. options: localVarRequestOptions,
  207. };
  208. },
  209. /**
  210. *
  211. * @summary 更新(只支持Id作为条件) 🔖
  212. * @param {{ [key: string]: JToken; }} [body] 支持多表、多Id批量更新
  213. * @param {*} [options] Override http request option.
  214. * @throws {RequiredError}
  215. */
  216. apiAPIJSONUpdatePost: async (body?: { [key: string]: JToken; }, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  217. const localVarPath = `/api/aPIJSON/update`;
  218. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  219. const localVarUrlObj = new URL(localVarPath, 'https://example.com');
  220. let baseOptions;
  221. if (configuration) {
  222. baseOptions = configuration.baseOptions;
  223. }
  224. const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
  225. const localVarHeaderParameter = {} as any;
  226. const localVarQueryParameter = {} as any;
  227. // authentication Bearer required
  228. // http bearer authentication required
  229. if (configuration && configuration.accessToken) {
  230. const accessToken = typeof configuration.accessToken === 'function'
  231. ? await configuration.accessToken()
  232. : await configuration.accessToken;
  233. localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
  234. }
  235. localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
  236. const query = new URLSearchParams(localVarUrlObj.search);
  237. for (const key in localVarQueryParameter) {
  238. query.set(key, localVarQueryParameter[key]);
  239. }
  240. for (const key in options.params) {
  241. query.set(key, options.params[key]);
  242. }
  243. localVarUrlObj.search = (new URLSearchParams(query)).toString();
  244. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  245. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  246. const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
  247. localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
  248. return {
  249. url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
  250. options: localVarRequestOptions,
  251. };
  252. },
  253. }
  254. };
  255. /**
  256. * APIJSONApi - functional programming interface
  257. * @export
  258. */
  259. export const APIJSONApiFp = function(configuration?: Configuration) {
  260. return {
  261. /**
  262. *
  263. * @summary 新增 🔖
  264. * @param {{ [key: string]: JToken; }} [body] 表对象或数组,若没有传Id则后端生成Id
  265. * @param {*} [options] Override http request option.
  266. * @throws {RequiredError}
  267. */
  268. async apiAPIJSONAddPost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultJObject>>> {
  269. const localVarAxiosArgs = await APIJSONApiAxiosParamCreator(configuration).apiAPIJSONAddPost(body, options);
  270. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  271. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  272. return axios.request(axiosRequestArgs);
  273. };
  274. },
  275. /**
  276. *
  277. * @summary 删除(支持非Id条件、支持批量) 🔖
  278. * @param {{ [key: string]: JToken; }} [body]
  279. * @param {*} [options] Override http request option.
  280. * @throws {RequiredError}
  281. */
  282. async apiAPIJSONDeletePost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultJObject>>> {
  283. const localVarAxiosArgs = await APIJSONApiAxiosParamCreator(configuration).apiAPIJSONDeletePost(body, options);
  284. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  285. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  286. return axios.request(axiosRequestArgs);
  287. };
  288. },
  289. /**
  290. * 参数:{\"[]\":{\"SYSLOGOP\":{}}}
  291. * @summary 统一查询入口 🔖
  292. * @param {{ [key: string]: JToken; }} [body]
  293. * @param {*} [options] Override http request option.
  294. * @throws {RequiredError}
  295. */
  296. async apiAPIJSONGetPost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultJObject>>> {
  297. const localVarAxiosArgs = await APIJSONApiAxiosParamCreator(configuration).apiAPIJSONGetPost(body, options);
  298. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  299. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  300. return axios.request(axiosRequestArgs);
  301. };
  302. },
  303. /**
  304. *
  305. * @summary 查询 🔖
  306. * @param {string} table
  307. * @param {{ [key: string]: JToken; }} [body]
  308. * @param {*} [options] Override http request option.
  309. * @throws {RequiredError}
  310. */
  311. async apiAPIJSONGetTablePost(table: string, body?: { [key: string]: JToken; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultJObject>>> {
  312. const localVarAxiosArgs = await APIJSONApiAxiosParamCreator(configuration).apiAPIJSONGetTablePost(table, body, options);
  313. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  314. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  315. return axios.request(axiosRequestArgs);
  316. };
  317. },
  318. /**
  319. *
  320. * @summary 更新(只支持Id作为条件) 🔖
  321. * @param {{ [key: string]: JToken; }} [body] 支持多表、多Id批量更新
  322. * @param {*} [options] Override http request option.
  323. * @throws {RequiredError}
  324. */
  325. async apiAPIJSONUpdatePost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultJObject>>> {
  326. const localVarAxiosArgs = await APIJSONApiAxiosParamCreator(configuration).apiAPIJSONUpdatePost(body, options);
  327. return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
  328. const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
  329. return axios.request(axiosRequestArgs);
  330. };
  331. },
  332. }
  333. };
  334. /**
  335. * APIJSONApi - factory interface
  336. * @export
  337. */
  338. export const APIJSONApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  339. return {
  340. /**
  341. *
  342. * @summary 新增 🔖
  343. * @param {{ [key: string]: JToken; }} [body] 表对象或数组,若没有传Id则后端生成Id
  344. * @param {*} [options] Override http request option.
  345. * @throws {RequiredError}
  346. */
  347. async apiAPIJSONAddPost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultJObject>> {
  348. return APIJSONApiFp(configuration).apiAPIJSONAddPost(body, options).then((request) => request(axios, basePath));
  349. },
  350. /**
  351. *
  352. * @summary 删除(支持非Id条件、支持批量) 🔖
  353. * @param {{ [key: string]: JToken; }} [body]
  354. * @param {*} [options] Override http request option.
  355. * @throws {RequiredError}
  356. */
  357. async apiAPIJSONDeletePost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultJObject>> {
  358. return APIJSONApiFp(configuration).apiAPIJSONDeletePost(body, options).then((request) => request(axios, basePath));
  359. },
  360. /**
  361. * 参数:{\"[]\":{\"SYSLOGOP\":{}}}
  362. * @summary 统一查询入口 🔖
  363. * @param {{ [key: string]: JToken; }} [body]
  364. * @param {*} [options] Override http request option.
  365. * @throws {RequiredError}
  366. */
  367. async apiAPIJSONGetPost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultJObject>> {
  368. return APIJSONApiFp(configuration).apiAPIJSONGetPost(body, options).then((request) => request(axios, basePath));
  369. },
  370. /**
  371. *
  372. * @summary 查询 🔖
  373. * @param {string} table
  374. * @param {{ [key: string]: JToken; }} [body]
  375. * @param {*} [options] Override http request option.
  376. * @throws {RequiredError}
  377. */
  378. async apiAPIJSONGetTablePost(table: string, body?: { [key: string]: JToken; }, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultJObject>> {
  379. return APIJSONApiFp(configuration).apiAPIJSONGetTablePost(table, body, options).then((request) => request(axios, basePath));
  380. },
  381. /**
  382. *
  383. * @summary 更新(只支持Id作为条件) 🔖
  384. * @param {{ [key: string]: JToken; }} [body] 支持多表、多Id批量更新
  385. * @param {*} [options] Override http request option.
  386. * @throws {RequiredError}
  387. */
  388. async apiAPIJSONUpdatePost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultJObject>> {
  389. return APIJSONApiFp(configuration).apiAPIJSONUpdatePost(body, options).then((request) => request(axios, basePath));
  390. },
  391. };
  392. };
  393. /**
  394. * APIJSONApi - object-oriented interface
  395. * @export
  396. * @class APIJSONApi
  397. * @extends {BaseAPI}
  398. */
  399. export class APIJSONApi extends BaseAPI {
  400. /**
  401. *
  402. * @summary 新增 🔖
  403. * @param {{ [key: string]: JToken; }} [body] 表对象或数组,若没有传Id则后端生成Id
  404. * @param {*} [options] Override http request option.
  405. * @throws {RequiredError}
  406. * @memberof APIJSONApi
  407. */
  408. public async apiAPIJSONAddPost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultJObject>> {
  409. return APIJSONApiFp(this.configuration).apiAPIJSONAddPost(body, options).then((request) => request(this.axios, this.basePath));
  410. }
  411. /**
  412. *
  413. * @summary 删除(支持非Id条件、支持批量) 🔖
  414. * @param {{ [key: string]: JToken; }} [body]
  415. * @param {*} [options] Override http request option.
  416. * @throws {RequiredError}
  417. * @memberof APIJSONApi
  418. */
  419. public async apiAPIJSONDeletePost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultJObject>> {
  420. return APIJSONApiFp(this.configuration).apiAPIJSONDeletePost(body, options).then((request) => request(this.axios, this.basePath));
  421. }
  422. /**
  423. * 参数:{\"[]\":{\"SYSLOGOP\":{}}}
  424. * @summary 统一查询入口 🔖
  425. * @param {{ [key: string]: JToken; }} [body]
  426. * @param {*} [options] Override http request option.
  427. * @throws {RequiredError}
  428. * @memberof APIJSONApi
  429. */
  430. public async apiAPIJSONGetPost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultJObject>> {
  431. return APIJSONApiFp(this.configuration).apiAPIJSONGetPost(body, options).then((request) => request(this.axios, this.basePath));
  432. }
  433. /**
  434. *
  435. * @summary 查询 🔖
  436. * @param {string} table
  437. * @param {{ [key: string]: JToken; }} [body]
  438. * @param {*} [options] Override http request option.
  439. * @throws {RequiredError}
  440. * @memberof APIJSONApi
  441. */
  442. public async apiAPIJSONGetTablePost(table: string, body?: { [key: string]: JToken; }, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultJObject>> {
  443. return APIJSONApiFp(this.configuration).apiAPIJSONGetTablePost(table, body, options).then((request) => request(this.axios, this.basePath));
  444. }
  445. /**
  446. *
  447. * @summary 更新(只支持Id作为条件) 🔖
  448. * @param {{ [key: string]: JToken; }} [body] 支持多表、多Id批量更新
  449. * @param {*} [options] Override http request option.
  450. * @throws {RequiredError}
  451. * @memberof APIJSONApi
  452. */
  453. public async apiAPIJSONUpdatePost(body?: { [key: string]: JToken; }, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultJObject>> {
  454. return APIJSONApiFp(this.configuration).apiAPIJSONUpdatePost(body, options).then((request) => request(this.axios, this.basePath));
  455. }
  456. }