diff --git a/src/api/admin/data-contracts.ts b/src/api/admin/data-contracts.ts index 2b2c289..4864a62 100644 --- a/src/api/admin/data-contracts.ts +++ b/src/api/admin/data-contracts.ts @@ -8430,116 +8430,6 @@ export interface ResultOutputBagDtoGetOutput { data?: BagDto } -/** 撤销原因分页查询输入 */ -export interface PageInputRevokeReasonGetPageInput { - dynamicFilter?: DynamicFilterInfo - /** 排序列表 */ - sortList?: SortInput[] | null - /** - * 当前页标 - * @format int32 - */ - currentPage?: number - /** - * 每页大小 - * @format int32 - */ - pageSize?: number - /** 分页请求 */ - filter?: RevokeReasonGetPageInput -} - -/** 撤销原因分页查询过滤条件 */ -export interface RevokeReasonGetPageInput { - /** 原因描述 */ - revokeReason?: string | null - /** 类型 */ - revokeType?: string | null - /** 是否下发 */ - isDown?: boolean -} - -/** 撤销原因分页查询输出 */ -export interface RevokeReasonGetPageOutput { - /** - * 编号 - * @format int64 - */ - id?: number - /** 原因描述 */ - revokeReason?: string | null - /** 类型 */ - revokeType?: string | null - /** 是否下发 */ - isDown?: boolean - /** 创建者 */ - createdUserName?: string | null - /** - * 创建时间 - * @format date-time - */ - createdTime?: string | null - /** - * 修改时间 - * @format date-time - */ - modifiedTime?: string | null -} - -export interface ResultOutputPageOutputRevokeReasonGetPageOutput { - success?: boolean - code?: string | null - message?: string | null - data?: PageOutputBagDtoGetPageOutput -} - -export interface PageOutputRevokeReasonGetPageOutput { - list?: RevokeReasonGetPageOutput[] | null - total?: number -} - -/** 撤销原因详情输出 */ -export interface RevokeReasonGetOutput { - /** 原因描述 */ - revokeReason?: string | null - /** 类型 */ - revokeType?: string | null - /** 是否下发 */ - isDown?: boolean - /** - * 主键Id - * @format int64 - */ - id: number -} - -/** 撤销原因新增/更新输入 */ -export interface RevokeReasonDto { - /** 原因描述 */ - keyWord?: string | null - - revokeReason?: string | null - /** 类型 */ - revokeType?: string | null - /** 是否下发 */ - isDown?: boolean - /** - * 主键Id - * @format int64 - */ - id?: number -} - -/** 撤回类型枚举项 */ -export interface RevokeTypeEnumItem { - /** 枚举值 */ - value: number - /** 枚举名称 */ - name: string - /** 显示名称/描述 */ - label: string -} - /** 撤回类型枚举列表输出 */ export interface RevokeTypeEnumListOutput { success?: boolean diff --git a/src/api/admin/revoke-reason.ts b/src/api/admin/revoke-reason.ts index 98f33fc..237992b 100644 --- a/src/api/admin/revoke-reason.ts +++ b/src/api/admin/revoke-reason.ts @@ -9,7 +9,7 @@ * --------------------------------------------------------------- */ -import { PageInputRevokeReasonGetPageInput, RevokeReasonDto, RevokeReasonGetOutput,ResultOutputPageOutputRevokeReasonGetPageOutput, RevokeTypeEnumListOutput } from './data-contracts' +import { RevokeReasonPageInput, RevokeReasonPageResponse, RevokeReasonOutput, RevokeReasonAddInput, RevokeReasonUpdateInput, RevokeTypeEnumListOutput } from '/@/api/types/RevokeType' import { RequestParams } from './http-client' import { ContentType, HttpClient } from './http-client' @@ -17,8 +17,8 @@ export class RevokeReasonApi extends HttpClient { /** * 获取分页列表 */ - getPage = (data: PageInputRevokeReasonGetPageInput, params: RequestParams = {}) => - this.request({ + getPage = (data: RevokeReasonPageInput, params: RequestParams = {}) => + this.request({ path: `/api/admin/revoke-reason/get-page`, method: 'POST', body: data, @@ -30,7 +30,7 @@ export class RevokeReasonApi extends HttpClient { * 获取单条数据 */ get = (params: { id: number }, requestParams: RequestParams = {}) => - this.request({ + this.request({ path: `/api/admin/revoke-reason/get`, method: 'GET', query: params, @@ -40,7 +40,7 @@ export class RevokeReasonApi extends HttpClient { /** * 新增 */ - add = (data: RevokeReasonDto, params: RequestParams = {}) => + add = (data: RevokeReasonAddInput, params: RequestParams = {}) => this.request({ path: `/api/admin/revoke-reason/add`, method: 'POST', @@ -52,7 +52,7 @@ export class RevokeReasonApi extends HttpClient { /** * 更新 */ - update = (data: RevokeReasonDto, params: RequestParams = {}) => + update = (data: RevokeReasonUpdateInput, params: RequestParams = {}) => this.request({ path: `/api/admin/revoke-reason/update`, method: 'PUT', diff --git a/src/api/types/medium.ts b/src/api/types/medium.ts new file mode 100644 index 0000000..84b2124 --- /dev/null +++ b/src/api/types/medium.ts @@ -0,0 +1,13 @@ +import { ServiceResponse } from './response'; + +export interface BasicMediumDto { + mediumName: string; + status: boolean; + id: number; + createdTime: string; + modifiedTime: string; + isDeleted: boolean; +} + +export type BasicMediumDtoListServiceResponse = ServiceResponse; +export type BasicMediumDtoServiceResponse = ServiceResponse; diff --git a/src/api/types/pageInput.ts b/src/api/types/pageInput.ts new file mode 100644 index 0000000..bb1e9d3 --- /dev/null +++ b/src/api/types/pageInput.ts @@ -0,0 +1,34 @@ +export interface ServiceRequstPage { + dynamicFilter?: DynamicFilterInfo; + /** 排序列表 */ + sortList?: SortInput[] | null; + /** + * 当前页标 + * @format int32 + */ + currentPage?: number; + /** + * 每页大小 + * @format int32 + */ + pageSize?: number; + + /** 分页请求 */ + filter?: T | null; +} + +/** 排序 */ +export interface SortInput { + /** 属性名称 */ + propName?: string | null + /** 排序方式:Asc=0,Desc=1 */ + order?: SortOrder + /** 是否升序 */ + isAscending?: boolean | null +} + +/** + * 排序方式:Asc=0,Desc=1 + * @format int32 + */ +export type SortOrder = 0 | 1 diff --git a/src/api/types/pageResponse.ts b/src/api/types/pageResponse.ts new file mode 100644 index 0000000..820ce8a --- /dev/null +++ b/src/api/types/pageResponse.ts @@ -0,0 +1,4 @@ +export interface PageResponse { + list?: T[] | null; + total?: number; +} diff --git a/src/api/types/response.ts b/src/api/types/response.ts new file mode 100644 index 0000000..d4b8257 --- /dev/null +++ b/src/api/types/response.ts @@ -0,0 +1,6 @@ +export interface ServiceResponse { + data?: T | null; + success?: boolean; + code?: string | null; + message?: string | null; +} diff --git a/src/api/types/revokeType.ts b/src/api/types/revokeType.ts new file mode 100644 index 0000000..9e2d461 --- /dev/null +++ b/src/api/types/revokeType.ts @@ -0,0 +1,104 @@ +import { ServiceResponse } from './response'; +import { ServiceRequstPage } from './pageInput' +import { PageResponse } from './pageResponse' + +// 过滤 +export interface RevokeReasonFilter { + /** 原因描述 */ + keyWord?: string | null + /** 类型 */ + revokeType?: string | null + /** 是否下发 */ + isDown?: boolean + + startTime?: string | null + + endTime?: string | null +} + + +export interface RevokeReasonDto { + /** + * 编号 + * @format int64 + */ + id?: number + /** 原因描述 */ + revokeReason?: string | null + /** 类型 */ + revokeType?: string | null + /** 是否下发 */ + isDown?: boolean + /** 创建者 */ + createdUserName?: string | null + /** + * 创建时间 + * @format date-time + */ + createdTime?: string | null + /** + * 修改时间 + * @format date-time + */ + modifiedTime?: string | null +} + +export interface RevokeReasonPageDto { + /** + * 编号 + * @format int64 + */ + id?: number + /** 原因描述 */ + revokeReason?: string | null + /** 类型 */ + revokeType?: string | null + /** 是否下发 */ + isDown?: boolean + /** 创建者 */ + createdUserName?: string | null + /** + * 创建时间 + * @format date-time + */ + createdTime?: string | null + /** + * 修改时间 + * @format date-time + */ + modifiedTime?: string | null +} + +export interface RevokeReasonDto { + /** + * 编号 + * @format int64 + */ + id?: number + /** 原因描述 */ + revokeReason?: string | null + /** 类型 */ + revokeType?: string | null + /** 是否下发 */ + isDown?: boolean +} + +/** 撤回类型枚举项 */ +export interface RevokeTypeEnumItem { + /** 枚举值 */ + value: number + /** 枚举名称 */ + name: string + /** 显示名称/描述 */ + label: string +} + +export type RevokeReasonPageInput = ServiceRequstPage; +export type RevokeReasonPageResponse = ServiceResponse>; + +export type RevokeReasonOutput = ServiceResponse; +export type RevokeReasonAddInput = RevokeReasonDto; +export type RevokeReasonUpdateInput = RevokeReasonDto; +export type RevokeTypeEnumListOutput = ServiceResponse; + + diff --git a/src/views/admin/uspreason/components/uspreason-form.vue b/src/views/admin/uspreason/components/uspreason-form.vue index e31babe..eeb79b5 100644 --- a/src/views/admin/uspreason/components/uspreason-form.vue +++ b/src/views/admin/uspreason/components/uspreason-form.vue @@ -52,7 +52,13 @@