refactoring of api & pi

This commit is contained in:
병준 박 2019-10-08 15:42:36 +09:00
parent 62b19d90b8
commit 376069d8ad
31 changed files with 51 additions and 52 deletions

View File

@ -11,59 +11,59 @@ import {
FileProfileSaveResponse,
encodeFileProfileSave,
decodeFileProfileSave
} from '../models/file-profile-save';
} from '../apis/file-profile-save';
import {
FileTalkDownloadRequest,
encodeFileTalkDownload
} from '../models/file-talk-download';
} from '../apis/file-talk-download';
import {
FileTalkSaveRequest,
FileTalkSaveResponse,
encodeFileTalkSave,
decodeFileTalkSave
} from '../models/file-talk-save';
} from '../apis/file-talk-save';
import {
FileTalkShareRequest,
FileTalkShareResponse,
encodeFileTalkShare,
decodeFileTalkShare
} from '../models/file-talk-share';
} from '../apis/file-talk-share';
import {
MassTalkDownloadRequest,
MassTalkDownloadResponse,
encodeMassTalkDownload,
decodeMassTalkDownload
} from '../models/mass-talk-download';
} from '../apis/mass-talk-download';
import {
MassTalkSaveRequest,
MassTalkSaveResponse,
encodeMassTalkSave,
decodeMassTalkSave
} from '../models/mass-talk-save';
} from '../apis/mass-talk-save';
import {
TransMassTalkDownloadRequest,
TransMassTalkDownloadResponse,
encodeTransMassTalkDownload,
decodeTransMassTalkDownload
} from '../models/trans-mass-talk-download';
} from '../apis/trans-mass-talk-download';
import {
TransMassTalkSaveRequest,
TransMassTalkSaveResponse,
encodeTransMassTalkSave,
decodeTransMassTalkSave
} from '../models/trans-mass-talk-save';
} from '../apis/trans-mass-talk-save';
import {
TranslationReqRequest,
TranslationReqResponse,
encodeTranslationReq,
decodeTranslationReq
} from '../models/translation-req';
} from '../apis/translation-req';
import {
TranslationSaveRequest,
TranslationSaveResponse,
encodeTranslationSave,
decodeTranslationSave
} from '../models/translation-save';
} from '../apis/translation-save';
@Injectable({
providedIn: 'root'

View File

@ -4,16 +4,16 @@
export * from './lib/types/module-config';
export * from './lib/models/file-profile-save';
export * from './lib/models/file-talk-download';
export * from './lib/models/file-talk-save';
export * from './lib/models/file-talk-share';
export * from './lib/models/mass-talk-download';
export * from './lib/models/mass-talk-save';
export * from './lib/models/trans-mass-talk-download';
export * from './lib/models/trans-mass-talk-save';
export * from './lib/models/translation-req';
export * from './lib/models/translation-save';
export * from './lib/apis/file-profile-save';
export * from './lib/apis/file-talk-download';
export * from './lib/apis/file-talk-save';
export * from './lib/apis/file-talk-share';
export * from './lib/apis/mass-talk-download';
export * from './lib/apis/mass-talk-save';
export * from './lib/apis/trans-mass-talk-download';
export * from './lib/apis/trans-mass-talk-save';
export * from './lib/apis/translation-req';
export * from './lib/apis/translation-save';
export * from './lib/services/common-api.service';

View File

@ -5,6 +5,7 @@ import {
APIEncoder,
APIDecoder
} from '@ucap-webmessenger/api';
import { Company } from '../models/company';
export interface CompanyListRequest extends APIRequest {
userSeq?: string;
@ -14,15 +15,6 @@ export interface CompanyListRequest extends APIRequest {
companyGroupCode: string;
}
export interface Company {
companyCode?: string;
companyName?: string;
companyDomain?: string;
companyConfAuthYn?: string;
ucapUseYn?: string;
companyTimerChatAuthYn?: string;
}
export interface CompanyListResponse extends APIResponse {
companyList?: Company[];
}

View File

@ -0,0 +1,8 @@
export interface Company {
companyCode?: string;
companyName?: string;
companyDomain?: string;
companyConfAuthYn?: string;
ucapUseYn?: string;
companyTimerChatAuthYn?: string;
}

View File

@ -11,25 +11,25 @@ import {
CheckUserInfoExResponse,
encodeCheckUserInfoEx,
decodeCheckUserInfoEx
} from '../models/check-user-info-ex';
} from '../apis/check-user-info-ex';
import {
CompanyListRequest,
CompanyListResponse,
encodeCompanyList,
decodeCompanyList
} from '../models/company-list';
} from '../apis/company-list';
import {
TokenUpdateRequest,
TokenUpdateResponse,
encodeTokenUpdate,
decodeTokenUpdate
} from '../models/token-update';
} from '../apis/token-update';
import {
UrlInfoResponse,
UrlInfoRequest,
encodeUrlInfo,
decodeUrlInfo
} from '../models/url-info';
} from '../apis/url-info';
@Injectable({
providedIn: 'root'

View File

@ -4,10 +4,12 @@
export * from './lib/types/module-config';
export * from './lib/models/check-user-info-ex';
export * from './lib/models/company-list';
export * from './lib/models/token-update';
export * from './lib/models/url-info';
export * from './lib/models/company';
export * from './lib/apis/check-user-info-ex';
export * from './lib/apis/company-list';
export * from './lib/apis/token-update';
export * from './lib/apis/url-info';
export * from './lib/services/external-api.service';

View File

@ -10,13 +10,13 @@ import {
VersionInfo2Response,
encodeVersionInfo2,
decodeVersionInfo2
} from '../models/version-info2';
} from '../apis/version-info2';
import {
UpdateInfoRequest,
UpdateInfoResponse,
encodeUpdateInfo,
decodeUpdateInfo
} from '../models/update-info';
} from '../apis/update-info';
import { ModuleConfig } from '../types/module-config';
@Injectable({

View File

@ -2,8 +2,8 @@
* Public API Surface of ucap-webmessenger-api-public
*/
export * from './lib/models/update-info';
export * from './lib/models/version-info2';
export * from './lib/apis/update-info';
export * from './lib/apis/version-info2';
export * from './lib/services/public-api.service';

View File

@ -2,7 +2,7 @@
* Public API Surface of ucap-webmessenger-api
*/
export * from './lib/models/api';
export * from './lib/apis/api';
export * from './lib/types/status-code.type';

View File

@ -11,18 +11,15 @@ import {
Login2Response,
encodeLogin2,
decodeLogin2
} from '../models/login2';
import {
PrivacyTotalRequest,
encodePrivacyTotal
} from '../models/privacy-total';
} from '../apis/login2';
import { PrivacyTotalRequest, encodePrivacyTotal } from '../apis/privacy-total';
import { UrlUtil, Parameter } from '@ucap-webmessenger/api';
import {
UserTermsActionRequest,
UserTermsActionResponse,
encodeUserTermsAction,
decodeUserTermsAction
} from '../models/user-terms-action';
} from '../apis/user-terms-action';
@Injectable({
providedIn: 'root'

View File

@ -4,10 +4,10 @@
export * from './lib/types/module-config';
export * from './lib/models/pi';
export * from './lib/models/login2';
export * from './lib/models/privacy-total';
export * from './lib/models/user-terms-action';
export * from './lib/apis/pi';
export * from './lib/apis/login2';
export * from './lib/apis/privacy-total';
export * from './lib/apis/user-terms-action';
export * from './lib/types/response-status.type';