|
|
|
@ -2563,7 +2563,7 @@ export class ClientServiceProxy extends ServiceProxyBase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export class EsLogServiceProxy extends ServiceProxyBase { |
|
|
|
export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
private instance: AxiosInstance; |
|
|
|
private baseUrl: string; |
|
|
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; |
|
|
|
@ -2575,12 +2575,12 @@ export class EsLogServiceProxy extends ServiceProxyBase { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 分页获取Es日志 |
|
|
|
* 分页字典类型 |
|
|
|
* @param body (optional) |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
page(body: PagingElasticSearchLogInput | undefined , cancelToken?: CancelToken | undefined): Promise<PagingElasticSearchLogOutputCustomePagedResultDto> { |
|
|
|
let url_ = this.baseUrl + "/EsLog/page"; |
|
|
|
page(body: PagingDataDictionaryInput | undefined , cancelToken?: CancelToken | undefined): Promise<PagingDataDictionaryOutputPagedResultDto> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/page"; |
|
|
|
url_ = url_.replace(/[?&]$/, ""); |
|
|
|
|
|
|
|
const content_ = JSON.stringify(body); |
|
|
|
@ -2609,7 +2609,7 @@ export class EsLogServiceProxy extends ServiceProxyBase { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processPage(response: AxiosResponse): Promise<PagingElasticSearchLogOutputCustomePagedResultDto> { |
|
|
|
protected processPage(response: AxiosResponse): Promise<PagingDataDictionaryOutputPagedResultDto> { |
|
|
|
const status = response.status; |
|
|
|
let _headers: any = {}; |
|
|
|
if (response.headers && typeof response.headers === "object") { |
|
|
|
@ -2623,7 +2623,7 @@ export class EsLogServiceProxy extends ServiceProxyBase { |
|
|
|
const _responseText = response.data; |
|
|
|
let result200: any = null; |
|
|
|
let resultData200 = _responseText; |
|
|
|
result200 = PagingElasticSearchLogOutputCustomePagedResultDto.fromJS(resultData200); |
|
|
|
result200 = PagingDataDictionaryOutputPagedResultDto.fromJS(resultData200); |
|
|
|
return result200; |
|
|
|
} else if (status === 403) { |
|
|
|
const _responseText = response.data; |
|
|
|
@ -2665,28 +2665,16 @@ export class EsLogServiceProxy extends ServiceProxyBase { |
|
|
|
const _responseText = response.data; |
|
|
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers); |
|
|
|
} |
|
|
|
return Promise.resolve<PagingElasticSearchLogOutputCustomePagedResultDto>(<any>null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
private instance: AxiosInstance; |
|
|
|
private baseUrl: string; |
|
|
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; |
|
|
|
|
|
|
|
constructor(baseUrl?: string, instance?: AxiosInstance) { |
|
|
|
super(); |
|
|
|
this.instance = instance ? instance : axios.create(); |
|
|
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; |
|
|
|
return Promise.resolve<PagingDataDictionaryOutputPagedResultDto>(<any>null); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 分页字典类型 |
|
|
|
* 分页字典明细 |
|
|
|
* @param body (optional) |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
page(body: PagingDataDictionaryInput | undefined , cancelToken?: CancelToken | undefined): Promise<PagingDataDictionaryOutputPagedResultDto> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/page"; |
|
|
|
pageDetail(body: PagingDataDictionaryDetailInput | undefined , cancelToken?: CancelToken | undefined): Promise<PagingDataDictionaryDetailOutputPagedResultDto> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/pageDetail"; |
|
|
|
url_ = url_.replace(/[?&]$/, ""); |
|
|
|
|
|
|
|
const content_ = JSON.stringify(body); |
|
|
|
@ -2711,11 +2699,11 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
throw _error; |
|
|
|
} |
|
|
|
}).then((_response: AxiosResponse) => { |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPageDetail(_response)); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processPage(response: AxiosResponse): Promise<PagingDataDictionaryOutputPagedResultDto> { |
|
|
|
protected processPageDetail(response: AxiosResponse): Promise<PagingDataDictionaryDetailOutputPagedResultDto> { |
|
|
|
const status = response.status; |
|
|
|
let _headers: any = {}; |
|
|
|
if (response.headers && typeof response.headers === "object") { |
|
|
|
@ -2729,7 +2717,7 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
const _responseText = response.data; |
|
|
|
let result200: any = null; |
|
|
|
let resultData200 = _responseText; |
|
|
|
result200 = PagingDataDictionaryOutputPagedResultDto.fromJS(resultData200); |
|
|
|
result200 = PagingDataDictionaryDetailOutputPagedResultDto.fromJS(resultData200); |
|
|
|
return result200; |
|
|
|
} else if (status === 403) { |
|
|
|
const _responseText = response.data; |
|
|
|
@ -2771,16 +2759,16 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
const _responseText = response.data; |
|
|
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers); |
|
|
|
} |
|
|
|
return Promise.resolve<PagingDataDictionaryOutputPagedResultDto>(<any>null); |
|
|
|
return Promise.resolve<PagingDataDictionaryDetailOutputPagedResultDto>(<any>null); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 分页字典明细 |
|
|
|
* 创建字典类型 |
|
|
|
* @param body (optional) |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
detail(body: PagingDataDictionaryDetailInput | undefined , cancelToken?: CancelToken | undefined): Promise<PagingDataDictionaryDetailOutputPagedResultDto> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/page/detail"; |
|
|
|
create(body: CreateDataDictinaryInput | undefined , cancelToken?: CancelToken | undefined): Promise<void> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/create"; |
|
|
|
url_ = url_.replace(/[?&]$/, ""); |
|
|
|
|
|
|
|
const content_ = JSON.stringify(body); |
|
|
|
@ -2791,7 +2779,6 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
url: url_, |
|
|
|
headers: { |
|
|
|
"Content-Type": "application/json", |
|
|
|
"Accept": "text/plain" |
|
|
|
}, |
|
|
|
cancelToken |
|
|
|
}; |
|
|
|
@ -2805,11 +2792,11 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
throw _error; |
|
|
|
} |
|
|
|
}).then((_response: AxiosResponse) => { |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processDetail(_response)); |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processDetail(response: AxiosResponse): Promise<PagingDataDictionaryDetailOutputPagedResultDto> { |
|
|
|
protected processCreate(response: AxiosResponse): Promise<void> { |
|
|
|
const status = response.status; |
|
|
|
let _headers: any = {}; |
|
|
|
if (response.headers && typeof response.headers === "object") { |
|
|
|
@ -2821,10 +2808,7 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
} |
|
|
|
if (status === 200) { |
|
|
|
const _responseText = response.data; |
|
|
|
let result200: any = null; |
|
|
|
let resultData200 = _responseText; |
|
|
|
result200 = PagingDataDictionaryDetailOutputPagedResultDto.fromJS(resultData200); |
|
|
|
return result200; |
|
|
|
return Promise.resolve<void>(<any>null); |
|
|
|
} else if (status === 403) { |
|
|
|
const _responseText = response.data; |
|
|
|
let result403: any = null; |
|
|
|
@ -2865,16 +2849,16 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
const _responseText = response.data; |
|
|
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers); |
|
|
|
} |
|
|
|
return Promise.resolve<PagingDataDictionaryDetailOutputPagedResultDto>(<any>null); |
|
|
|
return Promise.resolve<void>(<any>null); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 创建字典类型 |
|
|
|
* 创建字典明细 |
|
|
|
* @param body (optional) |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
create(body: CreateDataDictinaryInput | undefined , cancelToken?: CancelToken | undefined): Promise<void> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/create"; |
|
|
|
createDetail(body: CreateDataDictinaryDetailInput | undefined , cancelToken?: CancelToken | undefined): Promise<void> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/createDetail"; |
|
|
|
url_ = url_.replace(/[?&]$/, ""); |
|
|
|
|
|
|
|
const content_ = JSON.stringify(body); |
|
|
|
@ -2898,11 +2882,11 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
throw _error; |
|
|
|
} |
|
|
|
}).then((_response: AxiosResponse) => { |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreate(_response)); |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreateDetail(_response)); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processCreate(response: AxiosResponse): Promise<void> { |
|
|
|
protected processCreateDetail(response: AxiosResponse): Promise<void> { |
|
|
|
const status = response.status; |
|
|
|
let _headers: any = {}; |
|
|
|
if (response.headers && typeof response.headers === "object") { |
|
|
|
@ -2959,12 +2943,12 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 创建字典明细 |
|
|
|
* 设置字典明细状态 |
|
|
|
* @param body (optional) |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
createDetail(body: CreateDataDictinaryDetailInput | undefined , cancelToken?: CancelToken | undefined): Promise<void> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/createDetail"; |
|
|
|
status(body: SetDataDictinaryDetailInput | undefined , cancelToken?: CancelToken | undefined): Promise<void> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/status"; |
|
|
|
url_ = url_.replace(/[?&]$/, ""); |
|
|
|
|
|
|
|
const content_ = JSON.stringify(body); |
|
|
|
@ -2988,11 +2972,11 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
throw _error; |
|
|
|
} |
|
|
|
}).then((_response: AxiosResponse) => { |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processCreateDetail(_response)); |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processStatus(_response)); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processCreateDetail(response: AxiosResponse): Promise<void> { |
|
|
|
protected processStatus(response: AxiosResponse): Promise<void> { |
|
|
|
const status = response.status; |
|
|
|
let _headers: any = {}; |
|
|
|
if (response.headers && typeof response.headers === "object") { |
|
|
|
@ -3049,12 +3033,12 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 设置字典明细状态 |
|
|
|
* 更新字典明细 |
|
|
|
* @param body (optional) |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
status(body: SetDataDictinaryDetailInput | undefined , cancelToken?: CancelToken | undefined): Promise<void> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/status"; |
|
|
|
updateDetail(body: UpdateDetailInput | undefined , cancelToken?: CancelToken | undefined): Promise<void> { |
|
|
|
let url_ = this.baseUrl + "/DataDictionary/updateDetail"; |
|
|
|
url_ = url_.replace(/[?&]$/, ""); |
|
|
|
|
|
|
|
const content_ = JSON.stringify(body); |
|
|
|
@ -3078,11 +3062,11 @@ export class DataDictionaryServiceProxy extends ServiceProxyBase { |
|
|
|
throw _error; |
|
|
|
} |
|
|
|
}).then((_response: AxiosResponse) => { |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processStatus(_response)); |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processUpdateDetail(_response)); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processStatus(response: AxiosResponse): Promise<void> { |
|
|
|
protected processUpdateDetail(response: AxiosResponse): Promise<void> { |
|
|
|
const status = response.status; |
|
|
|
let _headers: any = {}; |
|
|
|
if (response.headers && typeof response.headers === "object") { |
|
|
|
@ -3724,6 +3708,112 @@ export class IdentityResourceServiceProxy extends ServiceProxyBase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export class EsLogServiceProxy extends ServiceProxyBase { |
|
|
|
private instance: AxiosInstance; |
|
|
|
private baseUrl: string; |
|
|
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined; |
|
|
|
|
|
|
|
constructor(baseUrl?: string, instance?: AxiosInstance) { |
|
|
|
super(); |
|
|
|
this.instance = instance ? instance : axios.create(); |
|
|
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : ""; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 分页获取Es日志 |
|
|
|
* @param body (optional) |
|
|
|
* @return Success |
|
|
|
*/ |
|
|
|
page(body: PagingElasticSearchLogInput | undefined , cancelToken?: CancelToken | undefined): Promise<PagingElasticSearchLogOutputCustomePagedResultDto> { |
|
|
|
let url_ = this.baseUrl + "/EsLog/page"; |
|
|
|
url_ = url_.replace(/[?&]$/, ""); |
|
|
|
|
|
|
|
const content_ = JSON.stringify(body); |
|
|
|
|
|
|
|
let options_ = <AxiosRequestConfig>{ |
|
|
|
data: content_, |
|
|
|
method: "POST", |
|
|
|
url: url_, |
|
|
|
headers: { |
|
|
|
"Content-Type": "application/json", |
|
|
|
"Accept": "text/plain" |
|
|
|
}, |
|
|
|
cancelToken |
|
|
|
}; |
|
|
|
|
|
|
|
return this.transformOptions(options_).then(transformedOptions_ => { |
|
|
|
return this.instance.request(transformedOptions_); |
|
|
|
}).catch((_error: any) => { |
|
|
|
if (isAxiosError(_error) && _error.response) { |
|
|
|
return _error.response; |
|
|
|
} else { |
|
|
|
throw _error; |
|
|
|
} |
|
|
|
}).then((_response: AxiosResponse) => { |
|
|
|
return this.transformResult(url_, _response, (_response: AxiosResponse) => this.processPage(_response)); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected processPage(response: AxiosResponse): Promise<PagingElasticSearchLogOutputCustomePagedResultDto> { |
|
|
|
const status = response.status; |
|
|
|
let _headers: any = {}; |
|
|
|
if (response.headers && typeof response.headers === "object") { |
|
|
|
for (let k in response.headers) { |
|
|
|
if (response.headers.hasOwnProperty(k)) { |
|
|
|
_headers[k] = response.headers[k]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (status === 200) { |
|
|
|
const _responseText = response.data; |
|
|
|
let result200: any = null; |
|
|
|
let resultData200 = _responseText; |
|
|
|
result200 = PagingElasticSearchLogOutputCustomePagedResultDto.fromJS(resultData200); |
|
|
|
return result200; |
|
|
|
} else if (status === 403) { |
|
|
|
const _responseText = response.data; |
|
|
|
let result403: any = null; |
|
|
|
let resultData403 = _responseText; |
|
|
|
result403 = RemoteServiceErrorResponse.fromJS(resultData403); |
|
|
|
return throwException("Forbidden", status, _responseText, _headers, result403); |
|
|
|
} else if (status === 401) { |
|
|
|
const _responseText = response.data; |
|
|
|
let result401: any = null; |
|
|
|
let resultData401 = _responseText; |
|
|
|
result401 = RemoteServiceErrorResponse.fromJS(resultData401); |
|
|
|
return throwException("Unauthorized", status, _responseText, _headers, result401); |
|
|
|
} else if (status === 400) { |
|
|
|
const _responseText = response.data; |
|
|
|
let result400: any = null; |
|
|
|
let resultData400 = _responseText; |
|
|
|
result400 = RemoteServiceErrorResponse.fromJS(resultData400); |
|
|
|
return throwException("Bad Request", status, _responseText, _headers, result400); |
|
|
|
} else if (status === 404) { |
|
|
|
const _responseText = response.data; |
|
|
|
let result404: any = null; |
|
|
|
let resultData404 = _responseText; |
|
|
|
result404 = RemoteServiceErrorResponse.fromJS(resultData404); |
|
|
|
return throwException("Not Found", status, _responseText, _headers, result404); |
|
|
|
} else if (status === 501) { |
|
|
|
const _responseText = response.data; |
|
|
|
let result501: any = null; |
|
|
|
let resultData501 = _responseText; |
|
|
|
result501 = RemoteServiceErrorResponse.fromJS(resultData501); |
|
|
|
return throwException("Server Error", status, _responseText, _headers, result501); |
|
|
|
} else if (status === 500) { |
|
|
|
const _responseText = response.data; |
|
|
|
let result500: any = null; |
|
|
|
let resultData500 = _responseText; |
|
|
|
result500 = RemoteServiceErrorResponse.fromJS(resultData500); |
|
|
|
return throwException("Server Error", status, _responseText, _headers, result500); |
|
|
|
} else if (status !== 200 && status !== 204) { |
|
|
|
const _responseText = response.data; |
|
|
|
return throwException("An unexpected server error occurred.", status, _responseText, _headers); |
|
|
|
} |
|
|
|
return Promise.resolve<PagingElasticSearchLogOutputCustomePagedResultDto>(<any>null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export class NotificationServiceProxy extends ServiceProxyBase { |
|
|
|
private instance: AxiosInstance; |
|
|
|
private baseUrl: string; |
|
|
|
@ -8607,6 +8697,8 @@ export class CurrentUserDto implements ICurrentUserDto { |
|
|
|
tenantId!: string | undefined; |
|
|
|
impersonatorUserId!: string | undefined; |
|
|
|
impersonatorTenantId!: string | undefined; |
|
|
|
impersonatorUserName!: string | undefined; |
|
|
|
impersonatorTenantName!: string | undefined; |
|
|
|
userName!: string | undefined; |
|
|
|
name!: string | undefined; |
|
|
|
surName!: string | undefined; |
|
|
|
@ -8632,6 +8724,8 @@ export class CurrentUserDto implements ICurrentUserDto { |
|
|
|
this.tenantId = _data["tenantId"]; |
|
|
|
this.impersonatorUserId = _data["impersonatorUserId"]; |
|
|
|
this.impersonatorTenantId = _data["impersonatorTenantId"]; |
|
|
|
this.impersonatorUserName = _data["impersonatorUserName"]; |
|
|
|
this.impersonatorTenantName = _data["impersonatorTenantName"]; |
|
|
|
this.userName = _data["userName"]; |
|
|
|
this.name = _data["name"]; |
|
|
|
this.surName = _data["surName"]; |
|
|
|
@ -8661,6 +8755,8 @@ export class CurrentUserDto implements ICurrentUserDto { |
|
|
|
data["tenantId"] = this.tenantId; |
|
|
|
data["impersonatorUserId"] = this.impersonatorUserId; |
|
|
|
data["impersonatorTenantId"] = this.impersonatorTenantId; |
|
|
|
data["impersonatorUserName"] = this.impersonatorUserName; |
|
|
|
data["impersonatorTenantName"] = this.impersonatorTenantName; |
|
|
|
data["userName"] = this.userName; |
|
|
|
data["name"] = this.name; |
|
|
|
data["surName"] = this.surName; |
|
|
|
@ -8683,6 +8779,8 @@ export interface ICurrentUserDto { |
|
|
|
tenantId: string | undefined; |
|
|
|
impersonatorUserId: string | undefined; |
|
|
|
impersonatorTenantId: string | undefined; |
|
|
|
impersonatorUserName: string | undefined; |
|
|
|
impersonatorTenantName: string | undefined; |
|
|
|
userName: string | undefined; |
|
|
|
name: string | undefined; |
|
|
|
surName: string | undefined; |
|
|
|
@ -16172,6 +16270,58 @@ export interface IUpdateCreateApiScopeInput { |
|
|
|
showInDiscoveryDocument: boolean; |
|
|
|
} |
|
|
|
|
|
|
|
export class UpdateDetailInput implements IUpdateDetailInput { |
|
|
|
dataDictionaryId!: string; |
|
|
|
id!: string; |
|
|
|
displayText!: string; |
|
|
|
description!: string | undefined; |
|
|
|
order!: number; |
|
|
|
|
|
|
|
constructor(data?: IUpdateDetailInput) { |
|
|
|
if (data) { |
|
|
|
for (var property in data) { |
|
|
|
if (data.hasOwnProperty(property)) |
|
|
|
(<any>this)[property] = (<any>data)[property]; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
init(_data?: any) { |
|
|
|
if (_data) { |
|
|
|
this.dataDictionaryId = _data["dataDictionaryId"]; |
|
|
|
this.id = _data["id"]; |
|
|
|
this.displayText = _data["displayText"]; |
|
|
|
this.description = _data["description"]; |
|
|
|
this.order = _data["order"]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
static fromJS(data: any): UpdateDetailInput { |
|
|
|
data = typeof data === 'object' ? data : {}; |
|
|
|
let result = new UpdateDetailInput(); |
|
|
|
result.init(data); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
toJSON(data?: any) { |
|
|
|
data = typeof data === 'object' ? data : {}; |
|
|
|
data["dataDictionaryId"] = this.dataDictionaryId; |
|
|
|
data["id"] = this.id; |
|
|
|
data["displayText"] = this.displayText; |
|
|
|
data["description"] = this.description; |
|
|
|
data["order"] = this.order; |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export interface IUpdateDetailInput { |
|
|
|
dataDictionaryId: string; |
|
|
|
id: string; |
|
|
|
displayText: string; |
|
|
|
description: string | undefined; |
|
|
|
order: number; |
|
|
|
} |
|
|
|
|
|
|
|
export class UpdateEmailSettingsDto implements IUpdateEmailSettingsDto { |
|
|
|
smtpHost!: string | undefined; |
|
|
|
smtpPort!: number; |
|
|
|
|