feat: 预览接口支持token校验用户是否有企标权限
This commit is contained in:
@@ -47,6 +47,19 @@ public class SysCommonController {
|
||||
@Resource
|
||||
private EnterpriseStandardAuthUserService authUserService;
|
||||
|
||||
|
||||
/**
|
||||
* 下载文件
|
||||
*
|
||||
* @param id 传入文件id
|
||||
* @param request
|
||||
* @param response
|
||||
*/
|
||||
@GetMapping(value = "/download/{id}")
|
||||
public void download(@PathVariable String id, HttpServletRequest request, HttpServletResponse response) {
|
||||
downloadAndViewWithWaterMark(id, response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 预览图片
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user