|
@@ -14,10 +14,10 @@ import {
|
|
|
PageInputProjectGetPageDto,
|
|
|
ResultOutputInt64,
|
|
|
ResultOutputPageOutputProjectListOutput,
|
|
|
- ResultOutputTenantGetOutput,
|
|
|
- TenantAddInput,
|
|
|
- TenantSetEnableInput,
|
|
|
- TenantUpdateInput,
|
|
|
+ ResultOutputProjectGetOutput,
|
|
|
+ ProjectAddInput,
|
|
|
+ ProjectSetStatusInput,
|
|
|
+ ProjectUpdateInput,
|
|
|
} from './data-contracts'
|
|
|
import { ContentType, HttpClient, RequestParams } from './http-client'
|
|
|
|
|
@@ -38,7 +38,7 @@ export class ProjectApi<SecurityDataType = unknown> extends HttpClient<SecurityD
|
|
|
},
|
|
|
params: RequestParams = {}
|
|
|
) =>
|
|
|
- this.request<ResultOutputTenantGetOutput, any>({
|
|
|
+ this.request<ResultOutputProjectGetOutput, any>({
|
|
|
path: `/api/admin/project/get`,
|
|
|
method: 'GET',
|
|
|
query: query,
|
|
@@ -49,10 +49,10 @@ export class ProjectApi<SecurityDataType = unknown> extends HttpClient<SecurityD
|
|
|
/**
|
|
|
* No description
|
|
|
*
|
|
|
- * @tags tenant
|
|
|
+ * @tags project
|
|
|
* @name GetPage
|
|
|
* @summary 查询分页
|
|
|
- * @request POST:/api/admin/tenant/get-page
|
|
|
+ * @request POST:/api/admin/project/get-page
|
|
|
* @secure
|
|
|
*/
|
|
|
getPage = (data: PageInputProjectGetPageDto, params: RequestParams = {}) =>
|
|
@@ -71,10 +71,10 @@ export class ProjectApi<SecurityDataType = unknown> extends HttpClient<SecurityD
|
|
|
* @tags project
|
|
|
* @name Add
|
|
|
* @summary 新增
|
|
|
- * @request POST:/api/admin/tenant/add
|
|
|
+ * @request POST:/api/admin/project/add
|
|
|
* @secure
|
|
|
*/
|
|
|
- add = (data: TenantAddInput, params: RequestParams = {}) =>
|
|
|
+ add = (data: ProjectAddInput, params: RequestParams = {}) =>
|
|
|
this.request<ResultOutputInt64, any>({
|
|
|
path: `/api/admin/project/add`,
|
|
|
method: 'POST',
|
|
@@ -87,15 +87,15 @@ export class ProjectApi<SecurityDataType = unknown> extends HttpClient<SecurityD
|
|
|
/**
|
|
|
* No description
|
|
|
*
|
|
|
- * @tags tenant
|
|
|
+ * @tags project
|
|
|
* @name Update
|
|
|
* @summary 修改
|
|
|
- * @request PUT:/api/admin/tenant/update
|
|
|
+ * @request PUT:/api/admin/project/update
|
|
|
* @secure
|
|
|
*/
|
|
|
- update = (data: TenantUpdateInput, params: RequestParams = {}) =>
|
|
|
+ update = (data: ProjectUpdateInput, params: RequestParams = {}) =>
|
|
|
this.request<AxiosResponse, any>({
|
|
|
- path: `/api/admin/tenant/update`,
|
|
|
+ path: `/api/admin/project/update`,
|
|
|
method: 'PUT',
|
|
|
body: data,
|
|
|
secure: true,
|
|
@@ -105,33 +105,10 @@ export class ProjectApi<SecurityDataType = unknown> extends HttpClient<SecurityD
|
|
|
/**
|
|
|
* No description
|
|
|
*
|
|
|
- * @tags tenant
|
|
|
- * @name Delete
|
|
|
- * @summary 彻底删除
|
|
|
- * @request DELETE:/api/admin/tenant/delete
|
|
|
- * @secure
|
|
|
- */
|
|
|
- delete = (
|
|
|
- query?: {
|
|
|
- /** @format int64 */
|
|
|
- id?: number
|
|
|
- },
|
|
|
- params: RequestParams = {}
|
|
|
- ) =>
|
|
|
- this.request<AxiosResponse, any>({
|
|
|
- path: `/api/admin/tenant/delete`,
|
|
|
- method: 'DELETE',
|
|
|
- query: query,
|
|
|
- secure: true,
|
|
|
- ...params,
|
|
|
- })
|
|
|
- /**
|
|
|
- * No description
|
|
|
- *
|
|
|
- * @tags tenant
|
|
|
+ * @tags project
|
|
|
* @name SoftDelete
|
|
|
* @summary 删除
|
|
|
- * @request DELETE:/api/admin/tenant/soft-delete
|
|
|
+ * @request DELETE:/api/admin/project/soft-delete
|
|
|
* @secure
|
|
|
*/
|
|
|
softDelete = (
|
|
@@ -142,46 +119,28 @@ export class ProjectApi<SecurityDataType = unknown> extends HttpClient<SecurityD
|
|
|
params: RequestParams = {}
|
|
|
) =>
|
|
|
this.request<AxiosResponse, any>({
|
|
|
- path: `/api/admin/tenant/soft-delete`,
|
|
|
+ path: `/api/admin/project/soft-delete`,
|
|
|
method: 'DELETE',
|
|
|
query: query,
|
|
|
secure: true,
|
|
|
...params,
|
|
|
- })
|
|
|
- /**
|
|
|
- * No description
|
|
|
- *
|
|
|
- * @tags tenant
|
|
|
- * @name BatchSoftDelete
|
|
|
- * @summary 批量删除
|
|
|
- * @request PUT:/api/admin/tenant/batch-soft-delete
|
|
|
- * @secure
|
|
|
- */
|
|
|
- batchSoftDelete = (data: number[], params: RequestParams = {}) =>
|
|
|
- this.request<AxiosResponse, any>({
|
|
|
- path: `/api/admin/tenant/batch-soft-delete`,
|
|
|
- method: 'PUT',
|
|
|
- body: data,
|
|
|
- secure: true,
|
|
|
- type: ContentType.Json,
|
|
|
- ...params,
|
|
|
- })
|
|
|
+ })
|
|
|
/**
|
|
|
* No description
|
|
|
*
|
|
|
- * @tags tenant
|
|
|
+ * @tags project
|
|
|
* @name SetEnable
|
|
|
- * @summary 设置启用
|
|
|
- * @request POST:/api/admin/tenant/set-enable
|
|
|
+ * @summary 设置状态
|
|
|
+ * @request PUT:/api/admin/project/update-status
|
|
|
* @secure
|
|
|
*/
|
|
|
- setEnable = (data: TenantSetEnableInput, params: RequestParams = {}) =>
|
|
|
+ setStates = (data: ProjectSetStatusInput, params: RequestParams = {}) =>
|
|
|
this.request<AxiosResponse, any>({
|
|
|
- path: `/api/admin/tenant/set-enable`,
|
|
|
- method: 'POST',
|
|
|
+ path: `/api/admin/project/update-status`,
|
|
|
+ method: 'PUT',
|
|
|
body: data,
|
|
|
secure: true,
|
|
|
type: ContentType.Json,
|
|
|
...params,
|
|
|
- })
|
|
|
+ })
|
|
|
}
|