chore: Image 인터페이스 수정(imgTypeCd)
This commit is contained in:
@@ -17,7 +17,7 @@ export interface ImageParams extends PageableParams {
|
||||
|
||||
export interface Image {
|
||||
imgSn: number;
|
||||
imgTypeCd: string;
|
||||
imgTypeCd: ImageType;
|
||||
imgTypeNm: string;
|
||||
imgTtl: string;
|
||||
lnkgUrlAddr: string;
|
||||
|
||||
@@ -37,7 +37,7 @@ export const columns: ColumnDef<Image>[] = [
|
||||
accessorKey: "imgTypeCd",
|
||||
header: "이미지구분",
|
||||
cell: ({ row }) => {
|
||||
const type = row.getValue("imgTypeCd") as string;
|
||||
const type = row.getValue("imgTypeCd");
|
||||
switch (type) {
|
||||
case IMAGE_TYPE.IMGSUB:
|
||||
return "서브이미지";
|
||||
|
||||
Reference in New Issue
Block a user