mirror of https://github.com/abpframework/abp.git
31 changed files with 3589 additions and 1005 deletions
@ -1,2 +1,3 @@ |
|||||
export * from './route-names'; |
export * from './route-names'; |
||||
export * from './setting-tab-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
@ -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 './lib/components/email-setting-group/email-setting-group.component'; |
||||
export * from './enums'; |
export * from './lib/enums'; |
||||
export * from './providers'; |
export * from './lib/providers'; |
||||
export * from './proxy'; |
export * from './lib/proxy'; |
||||
export * from './services'; |
export * from './lib/services'; |
||||
export * from './setting-management-config.module'; |
export * from './lib/setting-management-config.module'; |
||||
|
|||||
Loading…
Reference in new issue