获取指定图片url
This commit is contained in:
+5
@@ -484,4 +484,9 @@ public class ConSessionController extends JeecgController<ConSession, IConSessio
|
||||
return conSessionService.exportXlsConSession(request, dto);
|
||||
}
|
||||
|
||||
@GetMapping("/getPicUrl")
|
||||
public Result<String> getPicUrl(){
|
||||
return Result.ok(conSessionService.getPicUrl());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
@@ -85,5 +85,7 @@ public interface IConSessionService extends IService<ConSession> {
|
||||
Result<List<com.renkang.im.entity.ImMsgRecordAll>> selectImMessageList(String groupId);
|
||||
|
||||
Result<?> exportXlsConSession(HttpServletRequest request, ConSessionDTO dto);
|
||||
|
||||
String getPicUrl();
|
||||
}
|
||||
|
||||
|
||||
+7
@@ -52,6 +52,7 @@ import org.jeecgframework.poi.excel.entity.enmus.ExcelType;
|
||||
import org.jeecgframework.poi.exception.excel.enums.ExcelExportEnum;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.core.task.AsyncTaskExecutor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -1264,5 +1265,11 @@ public class ConSessionServiceImpl extends ServiceImpl<ConSessionMapper, ConSess
|
||||
return sendTime;
|
||||
}
|
||||
|
||||
@Value("${banner.picUrl:}")
|
||||
private String bannerPicUrl;
|
||||
public String getPicUrl(){
|
||||
// 读取配置文件的url
|
||||
return bannerPicUrl;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user