增加上传图片接口
This commit is contained in:
parent
43ff1154b8
commit
fb4b31d87d
|
@ -48,6 +48,17 @@ public class TAmentPartyAffairsController extends BaseController
|
||||||
return prefix + "/affairs";
|
return prefix + "/affairs";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上传图片页面
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("base:affairs:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String upload()
|
||||||
|
{
|
||||||
|
return prefix + "/upload";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 党风廉政建设
|
* 党风廉政建设
|
||||||
* @return
|
* @return
|
||||||
|
@ -111,7 +122,7 @@ public class TAmentPartyAffairsController extends BaseController
|
||||||
public TableDataInfo list(TAmentPartyAffairs tAmentPartyAffairs)
|
public TableDataInfo list(TAmentPartyAffairs tAmentPartyAffairs)
|
||||||
{
|
{
|
||||||
startPage();
|
startPage();
|
||||||
List<TAmentPartyAffairs> list = tAmentPartyAffairsService.selectTAmentPartyAffairsListAll(tAmentPartyAffairs);
|
List<TAmentPartyAffairs> list = tAmentPartyAffairsService.selectTAmentPartyAffairsList(tAmentPartyAffairs);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@ public class ResourcesConfig implements WebMvcConfigurer
|
||||||
{
|
{
|
||||||
/** 本地文件上传路径 */
|
/** 本地文件上传路径 */
|
||||||
registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**").addResourceLocations("file:" + RuoYiConfig.getProfile() + "/");
|
registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**").addResourceLocations("file:" + RuoYiConfig.getProfile() + "/");
|
||||||
|
registry.addResourceHandler("/templates/**").addResourceLocations("classpath:/templates/");
|
||||||
|
|
||||||
/** swagger配置 */
|
/** swagger配置 */
|
||||||
registry.addResourceHandler("/swagger-ui/**").addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/");
|
registry.addResourceHandler("/swagger-ui/**").addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/");
|
||||||
|
|
Loading…
Reference in New Issue