audit date is modified

This commit is contained in:
병준 박 2019-08-19 16:11:19 +09:00
parent 1824c56d2b
commit 0c686a458b
3 changed files with 13 additions and 13 deletions

View File

@ -114,26 +114,26 @@
</mat-cell> </mat-cell>
</ng-container> </ng-container>
<!-- CreatedAt Column --> <!-- createdDate Column -->
<ng-container matColumnDef="createdAt"> <ng-container matColumnDef="createdDate">
<mat-header-cell *matHeaderCellDef mat-sort-header fxHide fxShow.gt-sm <mat-header-cell *matHeaderCellDef mat-sort-header fxHide fxShow.gt-sm
>Created At</mat-header-cell >Created Date</mat-header-cell
> >
<mat-cell *matCellDef="let user" fxHide fxShow.gt-sm> <mat-cell *matCellDef="let user" fxHide fxShow.gt-sm>
<p class="text-truncate"> <p class="text-truncate">
{{ user.createdAt }} {{ user.createdDate | date: 'yyyy.MM.dd, HH:mm:ss' }}
</p> </p>
</mat-cell> </mat-cell>
</ng-container> </ng-container>
<!-- UpdatedAt Column --> <!-- Last Modified Date Column -->
<ng-container matColumnDef="updatedAt"> <ng-container matColumnDef="lastModifiedDate">
<mat-header-cell *matHeaderCellDef mat-sort-header fxHide fxShow.gt-sm <mat-header-cell *matHeaderCellDef mat-sort-header fxHide fxShow.gt-sm
>Updated At</mat-header-cell >Last Modified Date</mat-header-cell
> >
<mat-cell *matCellDef="let user" fxHide fxShow.gt-sm> <mat-cell *matCellDef="let user" fxHide fxShow.gt-sm>
<p class="text-truncate"> <p class="text-truncate">
{{ user.updatedAt }} {{ user.lastModifiedDate | date: 'yyyy.MM.dd, HH:mm:ss' }}
</p> </p>
</mat-cell> </mat-cell>
</ng-container> </ng-container>

View File

@ -38,8 +38,8 @@ export class ListComponent implements OnInit, OnDestroy, AfterViewInit {
'email', 'email',
'block', 'block',
'sendEmail', 'sendEmail',
'createdAt', 'createdDate',
'updatedAt' 'lastModifiedDate'
]; ];
@ViewChild(MatPaginator, { static: true }) @ViewChild(MatPaginator, { static: true })

View File

@ -1,9 +1,9 @@
export interface DateAudit { export interface DateAudit {
createdAt: Date; createdDate: Date;
updatedAt: Date; lastModifiedDate: Date;
} }
export interface UserDateAuditEntity extends DateAudit { export interface UserDateAuditEntity extends DateAudit {
createdBy: number; createdBy: number;
updatedBy: number; lastModifiedBy: number;
} }