Prechádzať zdrojové kódy

更新接口到最新版本

zhontai 2 rokov pred
rodič
commit
fe469c3fe0

+ 19 - 1
src/api/admin/Api.ts

@@ -28,7 +28,7 @@ export class ApiApi<SecurityDataType = unknown> extends HttpClient<SecurityDataT
    *
    * @tags api
    * @name Get
-   * @summary 查询接口
+   * @summary 查询
    * @request GET:/api/admin/api/get
    * @secure
    */
@@ -149,6 +149,24 @@ export class ApiApi<SecurityDataType = unknown> extends HttpClient<SecurityDataT
       secure: true,
       ...params,
     })
+  /**
+   * No description
+   *
+   * @tags api
+   * @name BatchDelete
+   * @summary 批量彻底删除
+   * @request PUT:/api/admin/api/batch-delete
+   * @secure
+   */
+  batchDelete = (data: number[], params: RequestParams = {}) =>
+    this.request<AxiosResponse, any>({
+      path: `/api/admin/api/batch-delete`,
+      method: 'PUT',
+      body: data,
+      secure: true,
+      type: ContentType.Json,
+      ...params,
+    })
   /**
    * No description
    *

+ 20 - 2
src/api/admin/Dictionary.ts

@@ -26,7 +26,7 @@ export class DictionaryApi<SecurityDataType = unknown> extends HttpClient<Securi
    *
    * @tags dictionary
    * @name Get
-   * @summary 查询数据字典
+   * @summary 查询
    * @request GET:/api/admin/dictionary/get
    * @secure
    */
@@ -50,7 +50,7 @@ export class DictionaryApi<SecurityDataType = unknown> extends HttpClient<Securi
    *
    * @tags dictionary
    * @name GetPage
-   * @summary 查询数据字典列表
+   * @summary 查询分页
    * @request POST:/api/admin/dictionary/get-page
    * @secure
    */
@@ -124,6 +124,24 @@ export class DictionaryApi<SecurityDataType = unknown> extends HttpClient<Securi
       secure: true,
       ...params,
     })
+  /**
+   * No description
+   *
+   * @tags dictionary
+   * @name BatchDelete
+   * @summary 批量彻底删除
+   * @request PUT:/api/admin/dictionary/batch-delete
+   * @secure
+   */
+  batchDelete = (data: number[], params: RequestParams = {}) =>
+    this.request<AxiosResponse, any>({
+      path: `/api/admin/dictionary/batch-delete`,
+      method: 'PUT',
+      body: data,
+      secure: true,
+      type: ContentType.Json,
+      ...params,
+    })
   /**
    * No description
    *

+ 20 - 2
src/api/admin/DictionaryType.ts

@@ -26,7 +26,7 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
    *
    * @tags dictionary-type
    * @name Get
-   * @summary 查询字典类型
+   * @summary 查询
    * @request GET:/api/admin/dictionary-type/get
    * @secure
    */
@@ -50,7 +50,7 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
    *
    * @tags dictionary-type
    * @name GetPage
-   * @summary 查询字典类型列表
+   * @summary 查询分页
    * @request POST:/api/admin/dictionary-type/get-page
    * @secure
    */
@@ -124,6 +124,24 @@ export class DictionaryTypeApi<SecurityDataType = unknown> extends HttpClient<Se
       secure: true,
       ...params,
     })
+  /**
+   * No description
+   *
+   * @tags dictionary-type
+   * @name BatchDelete
+   * @summary 批量彻底删除
+   * @request PUT:/api/admin/dictionary-type/batch-delete
+   * @secure
+   */
+  batchDelete = (data: number[], params: RequestParams = {}) =>
+    this.request<AxiosResponse, any>({
+      path: `/api/admin/dictionary-type/batch-delete`,
+      method: 'PUT',
+      body: data,
+      secure: true,
+      type: ContentType.Json,
+      ...params,
+    })
   /**
    * No description
    *

+ 2 - 2
src/api/admin/File.ts

@@ -25,7 +25,7 @@ export class FileApi<SecurityDataType = unknown> extends HttpClient<SecurityData
    *
    * @tags file
    * @name GetPage
-   * @summary 查询文件列表
+   * @summary 查询分页
    * @request POST:/api/admin/file/get-page
    * @secure
    */
@@ -44,7 +44,7 @@ export class FileApi<SecurityDataType = unknown> extends HttpClient<SecurityData
    *
    * @tags file
    * @name Delete
-   * @summary 删除文件
+   * @summary 删除
    * @request POST:/api/admin/file/delete
    * @secure
    */

+ 1 - 1
src/api/admin/LoginLog.ts

@@ -18,7 +18,7 @@ export class LoginLogApi<SecurityDataType = unknown> extends HttpClient<Security
    *
    * @tags login-log
    * @name GetPage
-   * @summary 查询登录日志列表
+   * @summary 查询分页
    * @request POST:/api/admin/login-log/get-page
    * @secure
    */

+ 1 - 1
src/api/admin/OprationLog.ts

@@ -18,7 +18,7 @@ export class OprationLogApi<SecurityDataType = unknown> extends HttpClient<Secur
    *
    * @tags opration-log
    * @name GetPage
-   * @summary 查询操作日志列表
+   * @summary 查询分页
    * @request POST:/api/admin/opration-log/get-page
    * @secure
    */

+ 1 - 1
src/api/admin/Org.ts

@@ -19,7 +19,7 @@ export class OrgApi<SecurityDataType = unknown> extends HttpClient<SecurityDataT
    *
    * @tags org
    * @name Get
-   * @summary 查询部门
+   * @summary 查询
    * @request GET:/api/admin/org/get
    * @secure
    */

+ 3 - 3
src/api/admin/Role.ts

@@ -30,7 +30,7 @@ export class RoleApi<SecurityDataType = unknown> extends HttpClient<SecurityData
    *
    * @tags role
    * @name Get
-   * @summary 查询角色
+   * @summary 查询
    * @request GET:/api/admin/role/get
    * @secure
    */
@@ -54,7 +54,7 @@ export class RoleApi<SecurityDataType = unknown> extends HttpClient<SecurityData
    *
    * @tags role
    * @name GetList
-   * @summary 查询角色列表
+   * @summary 查询列表
    * @request GET:/api/admin/role/get-list
    * @secure
    */
@@ -78,7 +78,7 @@ export class RoleApi<SecurityDataType = unknown> extends HttpClient<SecurityData
    *
    * @tags role
    * @name GetPage
-   * @summary 查询角色列表
+   * @summary 查询分页
    * @request POST:/api/admin/role/get-page
    * @secure
    */

+ 2 - 2
src/api/admin/Task.ts

@@ -26,7 +26,7 @@ export class TaskApi<SecurityDataType = unknown> extends HttpClient<SecurityData
    *
    * @tags task
    * @name Get
-   * @summary 查询任务
+   * @summary 查询
    * @request GET:/api/admin/task/get
    * @secure
    */
@@ -50,7 +50,7 @@ export class TaskApi<SecurityDataType = unknown> extends HttpClient<SecurityData
    *
    * @tags task
    * @name GetPage
-   * @summary 查询任务列表
+   * @summary 查询分页
    * @request POST:/api/admin/task/get-page
    * @secure
    */

+ 1 - 1
src/api/admin/TaskLog.ts

@@ -18,7 +18,7 @@ export class TaskLogApi<SecurityDataType = unknown> extends HttpClient<SecurityD
    *
    * @tags task-log
    * @name GetPage
-   * @summary 查询任务日志列表
+   * @summary 查询分页
    * @request POST:/api/admin/task-log/get-page
    * @secure
    */

+ 2 - 2
src/api/admin/Tenant.ts

@@ -26,7 +26,7 @@ export class TenantApi<SecurityDataType = unknown> extends HttpClient<SecurityDa
    *
    * @tags tenant
    * @name Get
-   * @summary 查询租户
+   * @summary 查询
    * @request GET:/api/admin/tenant/get
    * @secure
    */
@@ -50,7 +50,7 @@ export class TenantApi<SecurityDataType = unknown> extends HttpClient<SecurityDa
    *
    * @tags tenant
    * @name GetPage
-   * @summary 查询租户列表
+   * @summary 查询分页
    * @request POST:/api/admin/tenant/get-page
    * @secure
    */

+ 19 - 1
src/api/admin/View.ts

@@ -26,7 +26,7 @@ export class ViewApi<SecurityDataType = unknown> extends HttpClient<SecurityData
    *
    * @tags view
    * @name Get
-   * @summary 查询视图
+   * @summary 查询
    * @request GET:/api/admin/view/get
    * @secure
    */
@@ -128,6 +128,24 @@ export class ViewApi<SecurityDataType = unknown> extends HttpClient<SecurityData
       secure: true,
       ...params,
     })
+  /**
+   * No description
+   *
+   * @tags view
+   * @name BatchDelete
+   * @summary 批量彻底删除
+   * @request PUT:/api/admin/view/batch-delete
+   * @secure
+   */
+  batchDelete = (data: number[], params: RequestParams = {}) =>
+    this.request<AxiosResponse, any>({
+      path: `/api/admin/view/batch-delete`,
+      method: 'PUT',
+      body: data,
+      secure: true,
+      type: ContentType.Json,
+      ...params,
+    })
   /**
    * No description
    *