Skip to content

Commit

Permalink
카페 가입하기 부분에 정렬번호 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hangyeol0531 committed Sep 17, 2022
1 parent 74ea6af commit 88fbf2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/the-camp.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class TheCampClient {
if (soldier.hasCafe) continue;
// 가입 안되어있으면 가입시켜~~
await this.theCampService.registerCafe(
{ ...soldierInfo, 입영부대TypeCode: soldier.입영부대TypeCode },
{ ...soldierInfo, 정렬번호: soldier.정렬번호, 입영부대TypeCode: soldier.입영부대TypeCode, },
this.session,
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class RegisterCafeRequester {
}

private createPayload({
정렬번호,
이름,
군종,
관계,
Expand All @@ -35,7 +36,7 @@ export class RegisterCafeRequester {
입영부대TypeCode,
}: RegisterCafeDto): string {
return new Parameter({
regOrder: '',
regOrder: 정렬번호,
name: 이름,
enterDate: 입영일.replaceAll('-', ''),
birth: 생년월일.replaceAll('-', ''),
Expand All @@ -46,6 +47,7 @@ export class RegisterCafeRequester {
}).toString();
}


private createOptions(session: TheCampSession): AxiosRequestConfig {
return {
headers: {
Expand Down Expand Up @@ -73,6 +75,7 @@ export class RegisterCafeRequester {
}
}
export interface RegisterCafeDto {
정렬번호: string;
이름: string;
입영부대: 입영부대;
군종: 군종;
Expand Down

0 comments on commit 88fbf2e

Please sign in to comment.