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

View File

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

View File

@ -5,6 +5,7 @@ import {
APIEncoder, APIEncoder,
APIDecoder APIDecoder
} from '@ucap-webmessenger/api'; } from '@ucap-webmessenger/api';
import { Company } from '../models/company';
export interface CompanyListRequest extends APIRequest { export interface CompanyListRequest extends APIRequest {
userSeq?: string; userSeq?: string;
@ -14,15 +15,6 @@ export interface CompanyListRequest extends APIRequest {
companyGroupCode: string; companyGroupCode: string;
} }
export interface Company {
companyCode?: string;
companyName?: string;
companyDomain?: string;
companyConfAuthYn?: string;
ucapUseYn?: string;
companyTimerChatAuthYn?: string;
}
export interface CompanyListResponse extends APIResponse { export interface CompanyListResponse extends APIResponse {
companyList?: Company[]; 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, CheckUserInfoExResponse,
encodeCheckUserInfoEx, encodeCheckUserInfoEx,
decodeCheckUserInfoEx decodeCheckUserInfoEx
} from '../models/check-user-info-ex'; } from '../apis/check-user-info-ex';
import { import {
CompanyListRequest, CompanyListRequest,
CompanyListResponse, CompanyListResponse,
encodeCompanyList, encodeCompanyList,
decodeCompanyList decodeCompanyList
} from '../models/company-list'; } from '../apis/company-list';
import { import {
TokenUpdateRequest, TokenUpdateRequest,
TokenUpdateResponse, TokenUpdateResponse,
encodeTokenUpdate, encodeTokenUpdate,
decodeTokenUpdate decodeTokenUpdate
} from '../models/token-update'; } from '../apis/token-update';
import { import {
UrlInfoResponse, UrlInfoResponse,
UrlInfoRequest, UrlInfoRequest,
encodeUrlInfo, encodeUrlInfo,
decodeUrlInfo decodeUrlInfo
} from '../models/url-info'; } from '../apis/url-info';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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