BUGFIX: 获取pantone值为空时返回rgb和hsv
This commit is contained in:
@@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
@@ -43,4 +42,15 @@ public class PantoneVO {
|
||||
this.name = name;
|
||||
this.tcx = tcx;
|
||||
}
|
||||
|
||||
public PantoneVO(Integer r, Integer g, Integer b, Integer h, Integer s, Integer v) {
|
||||
this.r = r;
|
||||
this.g = g;
|
||||
this.b = b;
|
||||
this.h = h;
|
||||
this.s = s;
|
||||
this.v = v;
|
||||
this.name = "--";
|
||||
this.tcx = "--";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user