增加上传图片接口

This commit is contained in:
liuwu 2023-08-25 14:01:42 +08:00
parent 43ff1154b8
commit fb4b31d87d
2 changed files with 13 additions and 1 deletions

View File

@ -48,6 +48,17 @@ public class TAmentPartyAffairsController extends BaseController
return prefix + "/affairs";
}
/**
* 上传图片页面
* @return
*/
@RequiresPermissions("base:affairs:view")
@GetMapping()
public String upload()
{
return prefix + "/upload";
}
/**
* 党风廉政建设
* @return
@ -111,7 +122,7 @@ public class TAmentPartyAffairsController extends BaseController
public TableDataInfo list(TAmentPartyAffairs tAmentPartyAffairs)
{
startPage();
List<TAmentPartyAffairs> list = tAmentPartyAffairsService.selectTAmentPartyAffairsListAll(tAmentPartyAffairs);
List<TAmentPartyAffairs> list = tAmentPartyAffairsService.selectTAmentPartyAffairsList(tAmentPartyAffairs);
return getDataTable(list);
}

View File

@ -42,6 +42,7 @@ public class ResourcesConfig implements WebMvcConfigurer
{
/** 本地文件上传路径 */
registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**").addResourceLocations("file:" + RuoYiConfig.getProfile() + "/");
registry.addResourceHandler("/templates/**").addResourceLocations("classpath:/templates/");
/** swagger配置 */
registry.addResourceHandler("/swagger-ui/**").addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/");