com.project.ai.model.actuator.AbstractSameImgUpdateActuator Maven / Gradle / Ivy
The newest version!
package com.project.ai.model.actuator;
import com.project.ai.model.AbstractAiActuator;
import com.project.ai.model.ContentTypeEnum;
import com.project.ai.model.FieldEnum;
import com.project.ai.model.RequestTypeEnum;
import com.project.ai.model.request.imgsearch.ImgUpdateRequest;
import com.project.ai.model.response.imgsearch.ImgUpdateResponse;
/**
* @author yinshaobo on 2019-09-06 13:56
* 相同图更新
*/
public abstract class AbstractSameImgUpdateActuator extends AbstractAiActuator {
@Override
protected final String getUrl() {
return "https://aip.baidubce.com/rest/2.0/realtime_search/same_hq/update";
}
@Override
protected final FieldEnum getFieldEnum() {
return FieldEnum.图片搜索;
}
@Override
protected final RequestTypeEnum getRequestTypeEnum() {
return RequestTypeEnum.POST;
}
@Override
protected final ContentTypeEnum getContentTypeEnum() {
return ContentTypeEnum.FORM;
}
}