mirror of https://github.com/jeecgboot/JimuReport
1.3.78版本发布
parent
469da9bc81
commit
96713cb932
|
@ -1,5 +0,0 @@
|
|||
*.js linguist-language=Java
|
||||
*.css linguist-language=Java
|
||||
*.html linguist-language=Java
|
||||
*.vue linguist-language=Java
|
||||
*.sql linguist-language=Java
|
|
@ -1,4 +1,4 @@
|
|||
package com.example.jmreport;
|
||||
package org.jeecg.modules;
|
||||
|
||||
import org.jeecg.modules.jmreport.common.util.oConvertUtils;
|
||||
import org.springframework.boot.SpringApplication;
|
|
@ -0,0 +1,34 @@
|
|||
package org.jeecg.modules.jmreport.config;
|
||||
|
||||
import org.jeecg.modules.jmreport.api.JmReportTokenServiceI;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
@Component
|
||||
public class JimuReportTokenService implements JmReportTokenServiceI {
|
||||
|
||||
@Override
|
||||
public String getToken(HttpServletRequest request) {
|
||||
return "123";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUsername(String s) {
|
||||
return "admin";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean verifyToken(String s) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpHeaders customApiHeader() {
|
||||
HttpHeaders header = new HttpHeaders();
|
||||
header.add("custom-header1", "Please set a custom value 1");
|
||||
header.add("token", "token value 2");
|
||||
return header;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue