文件可上传至阿里云OSS中,也可以从OSS中下载文件。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.fr.plugin.file.submit.oss;
|
|
|
|
|
|
|
|
import com.fr.decision.webservice.url.alias.URLAlias;
|
|
|
|
import com.fanruan.api.net.URLAliasKit;
|
|
|
|
import com.fr.decision.webservice.url.provider.AbstractURLAliasProvider;
|
|
|
|
|
|
|
|
public class OssURLAliasProvider extends AbstractURLAliasProvider {
|
|
|
|
@Override
|
|
|
|
public URLAlias[] registerAlias() {
|
|
|
|
return new URLAlias[]{
|
|
|
|
URLAliasKit.createPluginAlias("/oss/download", "/oss/download", true),
|
|
|
|
URLAliasKit.createPluginAlias("/oss/upload", "/oss/upload", true)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|