mirror of https://github.com/abpframework/abp
issue #12579 implemented
parent
90a50a7bc2
commit
855ef2b466
@ -1,2 +1,3 @@
|
||||
export * from './route-names';
|
||||
export * from './setting-tab-names';
|
||||
export * from './policy-names';
|
||||
@ -0,0 +1,4 @@
|
||||
export const enum SettingManagementPolicyNames {
|
||||
Emailing = 'SettingManagement.Emailing',
|
||||
}
|
||||
|
||||
@ -0,0 +1,35 @@
|
||||
import type { EmailSettingsDto, SendTestEmailInput, UpdateEmailSettingsDto } from './models';
|
||||
import { RestService } from '@abp/ng.core';
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class EmailSettingsService {
|
||||
apiName = 'SettingManagement';
|
||||
|
||||
get = () =>
|
||||
this.restService.request<any, EmailSettingsDto>({
|
||||
method: 'GET',
|
||||
url: '/api/setting-management/emailing',
|
||||
},
|
||||
{ apiName: this.apiName });
|
||||
|
||||
sendTestEmail = (input: SendTestEmailInput) =>
|
||||
this.restService.request<any, void>({
|
||||
method: 'POST',
|
||||
url: '/api/setting-management/emailing/send-test-email',
|
||||
body: input,
|
||||
},
|
||||
{ apiName: this.apiName });
|
||||
|
||||
update = (input: UpdateEmailSettingsDto) =>
|
||||
this.restService.request<any, void>({
|
||||
method: 'POST',
|
||||
url: '/api/setting-management/emailing',
|
||||
body: input,
|
||||
},
|
||||
{ apiName: this.apiName });
|
||||
|
||||
constructor(private restService: RestService) {}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,31 +0,0 @@
|
||||
import type { EmailSettingsDto, UpdateEmailSettingsDto } from './models';
|
||||
import { RestService } from '@abp/ng.core';
|
||||
import { Injectable } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class EmailSettingsService {
|
||||
apiName = 'SettingManagement';
|
||||
|
||||
get = () =>
|
||||
this.restService.request<any, EmailSettingsDto>(
|
||||
{
|
||||
method: 'GET',
|
||||
url: '/api/setting-management/emailing',
|
||||
},
|
||||
{ apiName: this.apiName },
|
||||
);
|
||||
|
||||
update = (input: UpdateEmailSettingsDto) =>
|
||||
this.restService.request<any, void>(
|
||||
{
|
||||
method: 'POST',
|
||||
url: '/api/setting-management/emailing',
|
||||
body: input,
|
||||
},
|
||||
{ apiName: this.apiName },
|
||||
);
|
||||
|
||||
constructor(private restService: RestService) {}
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
export * from './components/email-setting-group/email-setting-group.component';
|
||||
export * from './enums';
|
||||
export * from './providers';
|
||||
export * from './proxy';
|
||||
export * from './services';
|
||||
export * from './setting-management-config.module';
|
||||
export * from './lib/components/email-setting-group/email-setting-group.component';
|
||||
export * from './lib/enums';
|
||||
export * from './lib/providers';
|
||||
export * from './lib/proxy';
|
||||
export * from './lib/services';
|
||||
export * from './lib/setting-management-config.module';
|
||||
|
||||
Loading…
Reference in new issue