com.dahuatech.icc.brm.model.v202010.person.BrmPersonUploadImgRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-brm Show documentation
Show all versions of java-sdk-brm Show documentation
Dahua ICC Open API SDK for Java
package com.dahuatech.icc.brm.model.v202010.person;
import com.dahuatech.hutool.http.Method;
import com.dahuatech.icc.brm.constant.BrmConstant;
import com.dahuatech.icc.brm.constant.ParamConstant;
import com.dahuatech.icc.brm.exception.BusinessException;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.oauth.http.AbstractIccRequest;
import com.dahuatech.icc.util.CollectionUtil;
import java.io.File;
/**
* 人员图片上传
*
* @author 232676
* @since 1.0.0 2020/11/9 11:19
*/
public class BrmPersonUploadImgRequest extends AbstractIccRequest {
public BrmPersonUploadImgRequest(File file) {
super(BrmConstant.url(BrmConstant.BRM_URL_PERSON_UPLOAD_IMG_POST), Method.POST);
form("file", file);
}
public BrmPersonUploadImgRequest(String filePath) throws ClientException {
super(BrmConstant.url(BrmConstant.BRM_URL_PERSON_UPLOAD_IMG_POST), Method.POST);
form("file", new File(filePath));
}
@Override
public Class getResponseClass() {
return BrmPersonUploadImgResponse.class;
}
public void businessValid() {
}
}