2023-01-06 15:17:37 +08:00
|
|
|
package com.ai.da.service;
|
|
|
|
|
|
|
|
|
|
import com.ai.da.mapper.entity.PanTone;
|
|
|
|
|
import com.ai.da.model.dto.GetRgbByHsvBatchDTO;
|
|
|
|
|
import com.ai.da.model.vo.PantoneVO;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
2023-09-07 15:31:52 +08:00
|
|
|
import java.util.Map;
|
2023-01-06 15:17:37 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 服务类
|
|
|
|
|
*
|
|
|
|
|
* @author easy-generator
|
|
|
|
|
* @since 2022-09-30
|
|
|
|
|
*/
|
|
|
|
|
public interface PanToneService extends IService<PanTone> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据rgb值查询
|
|
|
|
|
*
|
|
|
|
|
* @param h
|
|
|
|
|
* @param s
|
|
|
|
|
* @param v
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
PantoneVO getByHSV(Integer h, Integer s, Integer v);
|
|
|
|
|
/**
|
|
|
|
|
* 根据TCX值查询
|
|
|
|
|
*
|
|
|
|
|
* @param txc
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
PantoneVO getByTCX(String txc);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据TRGB值查询
|
|
|
|
|
* @param r
|
|
|
|
|
* @param g
|
|
|
|
|
* @param b
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
PantoneVO getByRGB(Integer r,Integer g,Integer b);
|
|
|
|
|
|
2023-09-07 15:31:52 +08:00
|
|
|
Map<String,PantoneVO> getPantoneByRgbBatch(List<String> colors);
|
|
|
|
|
|
2023-09-06 13:53:15 +08:00
|
|
|
PantoneVO getPantoneByRgb(String color);
|
|
|
|
|
|
2023-01-06 15:17:37 +08:00
|
|
|
/**
|
|
|
|
|
* 根据hsv批量查询
|
|
|
|
|
* @param rgbByHsvBatch
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<PantoneVO> getRgbByHsvBatch(List<GetRgbByHsvBatchDTO> rgbByHsvBatch);
|
|
|
|
|
|
|
|
|
|
}
|