Skip to content

Commit

Permalink
feat :: [#12] 수업 - common
Browse files Browse the repository at this point in the history
dto 추가
  • Loading branch information
Eunho0922 committed Feb 6, 2025
1 parent fdbe9ec commit b753fb7
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
File renamed without changes.
11 changes: 11 additions & 0 deletions src/class/common/data/class.article.dto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export class ClassArticleDTO {
classId: number;
articleId: number;
invDeg: number;

constructor(classId: number, articleId: number, invDeg: number) {
this.classId = classId;
this.articleId = articleId;
this.invDeg = invDeg;
}
}
34 changes: 34 additions & 0 deletions src/class/common/data/class.dto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { ClassArticleDTO } from './class.article.dto';

export class ClassDTO {
id: number;
name: string;
maxInvDeg: number;
curInvDeg: number;
baseMoney: number;
classNum: string;
starYN: boolean;
createdAt: string;
deleteYN: boolean;

constructor(
id: number,
name: string,
maxInvDeg: number,
curInvDeg: number,
baseMoney: number,
classNum: string,
starYN: boolean,
createdAt: string,
deleteYN: boolean
) {
this.id = id;
this.name = name;
(this.maxInvDeg = maxInvDeg), (this.curInvDeg = curInvDeg);
this.baseMoney = baseMoney;
this.classNum = classNum;
this.starYN = starYN;
this.createdAt = createdAt;
this.deleteYN = deleteYN;
}
}

0 comments on commit b753fb7

Please sign in to comment.