|
@@ -11,23 +11,24 @@
|
|
|
|
|
|
import { AxiosResponse } from 'axios'
|
|
import { AxiosResponse } from 'axios'
|
|
import {
|
|
import {
|
|
- DictionaryTypeAddInput,
|
|
|
|
- DictionaryTypeUpdateInput,
|
|
|
|
- PageInputDictionaryTypeGetPageDto,
|
|
|
|
- ResultOutputDictionaryTypeGetOutput,
|
|
|
|
|
|
+ DictAddInput,
|
|
|
|
+ DictUpdateInput,
|
|
|
|
+ PageInputDictGetPageDto,
|
|
|
|
+ ResultOutputDictGetOutput,
|
|
|
|
+ ResultOutputDictionaryStringListDictGetListDto,
|
|
ResultOutputInt64,
|
|
ResultOutputInt64,
|
|
- ResultOutputPageOutputDictionaryTypeListOutput,
|
|
|
|
|
|
+ ResultOutputPageOutputDictGetPageOutput,
|
|
} from './data-contracts'
|
|
} from './data-contracts'
|
|
import { ContentType, HttpClient, RequestParams } from './http-client'
|
|
import { ContentType, HttpClient, RequestParams } from './http-client'
|
|
|
|
|
|
-export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
|
|
|
|
+export class DictApi<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
/**
|
|
/**
|
|
* No description
|
|
* No description
|
|
*
|
|
*
|
|
- * @tags dictionary-type
|
|
|
|
|
|
+ * @tags dict
|
|
* @name Get
|
|
* @name Get
|
|
* @summary 查询
|
|
* @summary 查询
|
|
- * @request GET:/api/admin/dictionary-type/get
|
|
|
|
|
|
+ * @request GET:/api/admin/dict/get
|
|
* @secure
|
|
* @secure
|
|
*/
|
|
*/
|
|
get = (
|
|
get = (
|
|
@@ -37,8 +38,8 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
|
|
},
|
|
},
|
|
params: RequestParams = {}
|
|
params: RequestParams = {}
|
|
) =>
|
|
) =>
|
|
- this.request<ResultOutputDictionaryTypeGetOutput, any>({
|
|
|
|
- path: `/api/admin/dictionary-type/get`,
|
|
|
|
|
|
+ this.request<ResultOutputDictGetOutput, any>({
|
|
|
|
+ path: `/api/admin/dict/get`,
|
|
method: 'GET',
|
|
method: 'GET',
|
|
query: query,
|
|
query: query,
|
|
secure: true,
|
|
secure: true,
|
|
@@ -48,15 +49,15 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
|
|
/**
|
|
/**
|
|
* No description
|
|
* No description
|
|
*
|
|
*
|
|
- * @tags dictionary-type
|
|
|
|
|
|
+ * @tags dict
|
|
* @name GetPage
|
|
* @name GetPage
|
|
* @summary 查询分页
|
|
* @summary 查询分页
|
|
- * @request POST:/api/admin/dictionary-type/get-page
|
|
|
|
|
|
+ * @request POST:/api/admin/dict/get-page
|
|
* @secure
|
|
* @secure
|
|
*/
|
|
*/
|
|
- getPage = (data: PageInputDictionaryTypeGetPageDto, params: RequestParams = {}) =>
|
|
|
|
- this.request<ResultOutputPageOutputDictionaryTypeListOutput, any>({
|
|
|
|
- path: `/api/admin/dictionary-type/get-page`,
|
|
|
|
|
|
+ getPage = (data: PageInputDictGetPageDto, params: RequestParams = {}) =>
|
|
|
|
+ this.request<ResultOutputPageOutputDictGetPageOutput, any>({
|
|
|
|
+ path: `/api/admin/dict/get-page`,
|
|
method: 'POST',
|
|
method: 'POST',
|
|
body: data,
|
|
body: data,
|
|
secure: true,
|
|
secure: true,
|
|
@@ -67,15 +68,34 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
|
|
/**
|
|
/**
|
|
* No description
|
|
* No description
|
|
*
|
|
*
|
|
- * @tags dictionary-type
|
|
|
|
|
|
+ * @tags dict
|
|
|
|
+ * @name GetList
|
|
|
|
+ * @summary 查询列表
|
|
|
|
+ * @request POST:/api/admin/dict/get-list
|
|
|
|
+ * @secure
|
|
|
|
+ */
|
|
|
|
+ getList = (data: string[], params: RequestParams = {}) =>
|
|
|
|
+ this.request<ResultOutputDictionaryStringListDictGetListDto, any>({
|
|
|
|
+ path: `/api/admin/dict/get-list`,
|
|
|
|
+ method: 'POST',
|
|
|
|
+ body: data,
|
|
|
|
+ secure: true,
|
|
|
|
+ type: ContentType.Json,
|
|
|
|
+ format: 'json',
|
|
|
|
+ ...params,
|
|
|
|
+ })
|
|
|
|
+ /**
|
|
|
|
+ * No description
|
|
|
|
+ *
|
|
|
|
+ * @tags dict
|
|
* @name Add
|
|
* @name Add
|
|
* @summary 新增
|
|
* @summary 新增
|
|
- * @request POST:/api/admin/dictionary-type/add
|
|
|
|
|
|
+ * @request POST:/api/admin/dict/add
|
|
* @secure
|
|
* @secure
|
|
*/
|
|
*/
|
|
- add = (data: DictionaryTypeAddInput, params: RequestParams = {}) =>
|
|
|
|
|
|
+ add = (data: DictAddInput, params: RequestParams = {}) =>
|
|
this.request<ResultOutputInt64, any>({
|
|
this.request<ResultOutputInt64, any>({
|
|
- path: `/api/admin/dictionary-type/add`,
|
|
|
|
|
|
+ path: `/api/admin/dict/add`,
|
|
method: 'POST',
|
|
method: 'POST',
|
|
body: data,
|
|
body: data,
|
|
secure: true,
|
|
secure: true,
|
|
@@ -86,15 +106,15 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
|
|
/**
|
|
/**
|
|
* No description
|
|
* No description
|
|
*
|
|
*
|
|
- * @tags dictionary-type
|
|
|
|
|
|
+ * @tags dict
|
|
* @name Update
|
|
* @name Update
|
|
* @summary 修改
|
|
* @summary 修改
|
|
- * @request PUT:/api/admin/dictionary-type/update
|
|
|
|
|
|
+ * @request PUT:/api/admin/dict/update
|
|
* @secure
|
|
* @secure
|
|
*/
|
|
*/
|
|
- update = (data: DictionaryTypeUpdateInput, params: RequestParams = {}) =>
|
|
|
|
|
|
+ update = (data: DictUpdateInput, params: RequestParams = {}) =>
|
|
this.request<AxiosResponse, any>({
|
|
this.request<AxiosResponse, any>({
|
|
- path: `/api/admin/dictionary-type/update`,
|
|
|
|
|
|
+ path: `/api/admin/dict/update`,
|
|
method: 'PUT',
|
|
method: 'PUT',
|
|
body: data,
|
|
body: data,
|
|
secure: true,
|
|
secure: true,
|
|
@@ -104,10 +124,10 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
|
|
/**
|
|
/**
|
|
* No description
|
|
* No description
|
|
*
|
|
*
|
|
- * @tags dictionary-type
|
|
|
|
|
|
+ * @tags dict
|
|
* @name Delete
|
|
* @name Delete
|
|
* @summary 彻底删除
|
|
* @summary 彻底删除
|
|
- * @request DELETE:/api/admin/dictionary-type/delete
|
|
|
|
|
|
+ * @request DELETE:/api/admin/dict/delete
|
|
* @secure
|
|
* @secure
|
|
*/
|
|
*/
|
|
delete = (
|
|
delete = (
|
|
@@ -118,7 +138,7 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
|
|
params: RequestParams = {}
|
|
params: RequestParams = {}
|
|
) =>
|
|
) =>
|
|
this.request<AxiosResponse, any>({
|
|
this.request<AxiosResponse, any>({
|
|
- path: `/api/admin/dictionary-type/delete`,
|
|
|
|
|
|
+ path: `/api/admin/dict/delete`,
|
|
method: 'DELETE',
|
|
method: 'DELETE',
|
|
query: query,
|
|
query: query,
|
|
secure: true,
|
|
secure: true,
|
|
@@ -127,15 +147,15 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
|
|
/**
|
|
/**
|
|
* No description
|
|
* No description
|
|
*
|
|
*
|
|
- * @tags dictionary-type
|
|
|
|
|
|
+ * @tags dict
|
|
* @name BatchDelete
|
|
* @name BatchDelete
|
|
* @summary 批量彻底删除
|
|
* @summary 批量彻底删除
|
|
- * @request PUT:/api/admin/dictionary-type/batch-delete
|
|
|
|
|
|
+ * @request PUT:/api/admin/dict/batch-delete
|
|
* @secure
|
|
* @secure
|
|
*/
|
|
*/
|
|
batchDelete = (data: number[], params: RequestParams = {}) =>
|
|
batchDelete = (data: number[], params: RequestParams = {}) =>
|
|
this.request<AxiosResponse, any>({
|
|
this.request<AxiosResponse, any>({
|
|
- path: `/api/admin/dictionary-type/batch-delete`,
|
|
|
|
|
|
+ path: `/api/admin/dict/batch-delete`,
|
|
method: 'PUT',
|
|
method: 'PUT',
|
|
body: data,
|
|
body: data,
|
|
secure: true,
|
|
secure: true,
|
|
@@ -145,10 +165,10 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
|
|
/**
|
|
/**
|
|
* No description
|
|
* No description
|
|
*
|
|
*
|
|
- * @tags dictionary-type
|
|
|
|
|
|
+ * @tags dict
|
|
* @name SoftDelete
|
|
* @name SoftDelete
|
|
* @summary 删除
|
|
* @summary 删除
|
|
- * @request DELETE:/api/admin/dictionary-type/soft-delete
|
|
|
|
|
|
+ * @request DELETE:/api/admin/dict/soft-delete
|
|
* @secure
|
|
* @secure
|
|
*/
|
|
*/
|
|
softDelete = (
|
|
softDelete = (
|
|
@@ -159,7 +179,7 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
|
|
params: RequestParams = {}
|
|
params: RequestParams = {}
|
|
) =>
|
|
) =>
|
|
this.request<AxiosResponse, any>({
|
|
this.request<AxiosResponse, any>({
|
|
- path: `/api/admin/dictionary-type/soft-delete`,
|
|
|
|
|
|
+ path: `/api/admin/dict/soft-delete`,
|
|
method: 'DELETE',
|
|
method: 'DELETE',
|
|
query: query,
|
|
query: query,
|
|
secure: true,
|
|
secure: true,
|
|
@@ -168,15 +188,15 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
|
|
/**
|
|
/**
|
|
* No description
|
|
* No description
|
|
*
|
|
*
|
|
- * @tags dictionary-type
|
|
|
|
|
|
+ * @tags dict
|
|
* @name BatchSoftDelete
|
|
* @name BatchSoftDelete
|
|
* @summary 批量删除
|
|
* @summary 批量删除
|
|
- * @request PUT:/api/admin/dictionary-type/batch-soft-delete
|
|
|
|
|
|
+ * @request PUT:/api/admin/dict/batch-soft-delete
|
|
* @secure
|
|
* @secure
|
|
*/
|
|
*/
|
|
batchSoftDelete = (data: number[], params: RequestParams = {}) =>
|
|
batchSoftDelete = (data: number[], params: RequestParams = {}) =>
|
|
this.request<AxiosResponse, any>({
|
|
this.request<AxiosResponse, any>({
|
|
- path: `/api/admin/dictionary-type/batch-soft-delete`,
|
|
|
|
|
|
+ path: `/api/admin/dict/batch-soft-delete`,
|
|
method: 'PUT',
|
|
method: 'PUT',
|
|
body: data,
|
|
body: data,
|
|
secure: true,
|
|
secure: true,
|