From ac1e3f8deff3654fc9b90d4c268467846ff6b6b4 Mon Sep 17 00:00:00 2001 From: leejh Date: Wed, 25 Sep 2019 09:32:56 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=80=EC=88=98=EB=AA=85=20=EC=9E=AC?= =?UTF-8?q?=EC=A0=95=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/models/buddy-update.ts | 8 ++++---- .../src/lib/models/room-info.ts | 8 ++++---- .../src/lib/models/buddy.ts | 6 +++--- .../src/lib/models/room.ts | 4 ++-- .../src/lib/types/userInfo.ts | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/projects/ucap-webmessenger-protocol-buddy/src/lib/models/buddy-update.ts b/projects/ucap-webmessenger-protocol-buddy/src/lib/models/buddy-update.ts index 66c7fa13..2a349f31 100644 --- a/projects/ucap-webmessenger-protocol-buddy/src/lib/models/buddy-update.ts +++ b/projects/ucap-webmessenger-protocol-buddy/src/lib/models/buddy-update.ts @@ -11,14 +11,14 @@ import { export interface BuddyUpdateRequest extends ProtocolRequest { // 0. 사용자SEQ(n) - userSeq: number; + seq: number; // 1. 즐겨찾기여부(y) isFavorit: boolean; } export interface BuddyUpdateResponse extends ProtocolResponse { // 0. 사용자SEQ(n) - userSeq: number; + seq: number; // 1. 즐겨찾기여부(y) isFavorit: boolean; } @@ -28,7 +28,7 @@ export const encodeBuddyUpdate: ProtocolEncoder = ( ) => { const bodyList: PacketBody[] = []; - bodyList.push({ type: PacketBodyValue.Integer, value: req.userSeq }); + bodyList.push({ type: PacketBodyValue.Integer, value: req.seq }); bodyList.push({ type: PacketBodyValue.String, value: req.isFavorit ? 'Y' : 'N' @@ -41,7 +41,7 @@ export const decodeBuddyUpdate: ProtocolDecoder = ( message: ProtocolMessage ) => { return { - userSeq: message.bodyList[0], + seq: message.bodyList[0], isFavorit: message.bodyList[1] === 'Y' ? true : false } as BuddyUpdateResponse; }; diff --git a/projects/ucap-webmessenger-protocol-room/src/lib/models/room-info.ts b/projects/ucap-webmessenger-protocol-room/src/lib/models/room-info.ts index a9557f30..a76dd4ac 100644 --- a/projects/ucap-webmessenger-protocol-room/src/lib/models/room-info.ts +++ b/projects/ucap-webmessenger-protocol-room/src/lib/models/room-info.ts @@ -45,7 +45,7 @@ export interface RoomInfo { export interface UserInfoShort { // 0. 사용자SEQ - userSeq: number; + seq: number; // 1. 사용자명 name: string; // 2. 사진파일 @@ -76,7 +76,7 @@ export interface UserInfoShort { export interface UserInfo { // 0. 사용자SEQ - userSeq: number; + seq: number; // 1. 사용자명 name: string; // 2. 사진파일 @@ -232,7 +232,7 @@ export const decodeRoomUserShortData: ProtocolDecoder< message.bodyList.slice(1).forEach(userInfo => { const info = userInfo.split(BodyStringDivider); userInfos.push({ - userSeq: info[0], + seq: info[0], name: info[1], profileImageFile: info[2], isJoinRoom: info[3], @@ -262,7 +262,7 @@ export const decodeRoomUserData: ProtocolDecoder = ( message.bodyList.slice(1).forEach(userInfo => { const info = userInfo.split(BodyStringDivider); userInfos.push({ - userSeq: info[0], + seq: info[0], name: info[1], profileImageFile: info[2], grade: info[3], diff --git a/projects/ucap-webmessenger-protocol-sync/src/lib/models/buddy.ts b/projects/ucap-webmessenger-protocol-sync/src/lib/models/buddy.ts index 81a428f0..caeab8dd 100644 --- a/projects/ucap-webmessenger-protocol-sync/src/lib/models/buddy.ts +++ b/projects/ucap-webmessenger-protocol-sync/src/lib/models/buddy.ts @@ -12,7 +12,7 @@ import { UserInfo } from '../types/userInfo'; export interface BuddyInfo { // 사용자SEQ - userSeq: number; + seq: number; // 즐.찾 여부 isFavorit: boolean; // 친구여부 @@ -63,7 +63,7 @@ export const decodeSyncBuddyData: ProtocolDecoder = ( message.bodyList.forEach(buddyinfo => { const info = buddyinfo.split(BodyStringDivider); buddyInfos.push({ - userSeq: info[0], + seq: info[0], isFavorit: info[1] === 'Y' ? true : false, isBuddy: info[2] === 'Y' ? true : false }); @@ -81,7 +81,7 @@ export const decodeSyncBuddyDataDetail: ProtocolDecoder< const info = buddyinfo.split(BodyStringDivider); let i = 0; buddyInfos.push({ - userSeq: info[i], + seq: info[i], name: info[i++], profileImageFile: info[i++], grade: info[i++], diff --git a/projects/ucap-webmessenger-protocol-sync/src/lib/models/room.ts b/projects/ucap-webmessenger-protocol-sync/src/lib/models/room.ts index bcb18fa8..e5917126 100644 --- a/projects/ucap-webmessenger-protocol-sync/src/lib/models/room.ts +++ b/projects/ucap-webmessenger-protocol-sync/src/lib/models/room.ts @@ -105,7 +105,7 @@ export const decodeSyncRoomUserData: ProtocolDecoder< message.bodyList.slice(1).forEach(userInfo => { const info = userInfo.split(BodyStringDivider); userInfos.push({ - userSeq: info[0], + seq: info[0], name: info[1], profileImageFile: info[2], isJoinRoom: info[3], @@ -135,7 +135,7 @@ export const decodeSyncRoomUserDataDetail: ProtocolDecoder< message.bodyList.slice(1).forEach(userInfo => { const info = userInfo.split(BodyStringDivider); userInfos.push({ - userSeq: info[0], + seq: info[0], name: info[1], profileImageFile: info[2], grade: info[3], diff --git a/projects/ucap-webmessenger-protocol-sync/src/lib/types/userInfo.ts b/projects/ucap-webmessenger-protocol-sync/src/lib/types/userInfo.ts index 03cfee48..634d26b2 100644 --- a/projects/ucap-webmessenger-protocol-sync/src/lib/types/userInfo.ts +++ b/projects/ucap-webmessenger-protocol-sync/src/lib/types/userInfo.ts @@ -3,7 +3,7 @@ import { EmployeeType } from '@ucap-webmessenger/protocol-room'; export interface UserInfo { // 사용자SEQ - userSeq: number; + seq: number; // 사용자명 name: string; // 사진파일