Skip to content

Commit

Permalink
feat : 픽셀별 이미지 표현을 위한 Enum클래스 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
GangminRYOU committed Sep 22, 2023
1 parent b31fba3 commit fe3ef0b
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package com.github.msafriends.serviceproduct.modulecore.domain.productimage;

import lombok.Getter;

@Getter
public enum ResizedPixel {


SIZE_100(100),
SIZE_110(110),
SIZE_120(120),
SIZE_130(130),
SIZE_140(140),
SIZE_150(150),
SIZE_170(170),
SIZE_200(200),
SIZE_250(250),
SIZE_270(270),
SIZE_300(300);

private final int pixelSize;
private final String pixelKey;
private final String nameSuffix;
private final String pathPrefix;
ResizedPixel(int pixelSize) {
this.pixelSize = pixelSize;
this.pixelKey = String.valueOf(pixelSize);
this.nameSuffix = "_" + pixelSize;
this.pathPrefix = "/" + pixelSize + "/";
}
}

0 comments on commit fe3ef0b

Please sign in to comment.