获取文件上传地址

This commit is contained in:
hejinbo
2023-10-10 16:22:24 +08:00
parent 2d86bbb5e8
commit 4d4ab28c40
14 changed files with 1588 additions and 9 deletions
@@ -0,0 +1,39 @@
package com.ruoyi.common.enums;
import org.apache.http.client.methods.*;
/**
* @description 请求类型
* @author 澄泓
* @since JDK1.7
*/
public enum EsignRequestType {
POST{
@Override
public HttpRequestBase getHttpType(String url) {
return new HttpPost(url);
}
},
GET{
@Override
public HttpRequestBase getHttpType(String url) {
return new HttpGet(url);
}
},
DELETE{
@Override
public HttpRequestBase getHttpType(String url) {
return new HttpDelete(url);
}
},
PUT{
@Override
public HttpRequestBase getHttpType(String url) {
return new HttpPut(url);
}
},
;
public abstract HttpRequestBase getHttpType(String url);
}