获取指定图片url

This commit is contained in:
wanghao
2026-02-09 16:23:33 +08:00
parent b2b96290bf
commit 03f8be4c98
3 changed files with 14 additions and 0 deletions
@@ -484,4 +484,9 @@ public class ConSessionController extends JeecgController<ConSession, IConSessio
return conSessionService.exportXlsConSession(request, dto); return conSessionService.exportXlsConSession(request, dto);
} }
@GetMapping("/getPicUrl")
public Result<String> getPicUrl(){
return Result.ok(conSessionService.getPicUrl());
}
} }
@@ -85,5 +85,7 @@ public interface IConSessionService extends IService<ConSession> {
Result<List<com.renkang.im.entity.ImMsgRecordAll>> selectImMessageList(String groupId); Result<List<com.renkang.im.entity.ImMsgRecordAll>> selectImMessageList(String groupId);
Result<?> exportXlsConSession(HttpServletRequest request, ConSessionDTO dto); Result<?> exportXlsConSession(HttpServletRequest request, ConSessionDTO dto);
String getPicUrl();
} }
@@ -52,6 +52,7 @@ import org.jeecgframework.poi.excel.entity.enmus.ExcelType;
import org.jeecgframework.poi.exception.excel.enums.ExcelExportEnum; import org.jeecgframework.poi.exception.excel.enums.ExcelExportEnum;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.task.AsyncTaskExecutor; import org.springframework.core.task.AsyncTaskExecutor;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
@@ -1264,5 +1265,11 @@ public class ConSessionServiceImpl extends ServiceImpl<ConSessionMapper, ConSess
return sendTime; return sendTime;
} }
@Value("${banner.picUrl:}")
private String bannerPicUrl;
public String getPicUrl(){
// 读取配置文件的url
return bannerPicUrl;
}
} }