[add] 接口文档

This commit is contained in:
lcj
2025-07-10 16:00:33 +08:00
parent 7b9176dff5
commit e623855b21
4 changed files with 11 additions and 16 deletions

View File

@ -6,6 +6,8 @@ import org.springframework.boot.context.metrics.buffering.BufferingApplicationSt
import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/** /**
* 启动程序 * 启动程序
@ -16,7 +18,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@EnableAsync @EnableAsync
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true) @EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableScheduling @EnableScheduling
public class DromaraApplication { public class DromaraApplication implements WebMvcConfigurer {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication application = new SpringApplication(DromaraApplication.class); SpringApplication application = new SpringApplication(DromaraApplication.class);
@ -25,4 +27,10 @@ public class DromaraApplication {
System.out.println("(♥◠‿◠)ノ゙ RuoYi-Vue-Plus启动成功 ლ(´ڡ`ლ)゙"); System.out.println("(♥◠‿◠)ノ゙ RuoYi-Vue-Plus启动成功 ლ(´ڡ`ლ)゙");
} }
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
}
} }

View File

@ -188,6 +188,8 @@ api-decrypt:
privateKey: MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYourNxaY7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKNPuH3owIDAQABAkAfoiLyL+Z4lf4Myxk6xUDgLaWGximj20CUf+5BKKnlrK+Ed8gAkM0HqoTt2UZwA5E2MzS4EI2gjfQhz5X28uqxAiEA3wNFxfrCZlSZHb0gn2zDpWowcSxQAgiCstxGUoOqlW8CIQDDOerGKH5OmCJ4Z21v+F25WaHYPxCFMvwxpcw99EcvDQIgIdhDTIqD2jfYjPTY8Jj3EDGPbH2HHuffvflECt3Ek60CIQCFRlCkHpi7hthhYhovyloRYsM+IS9h/0BzlEAuO0ktMQIgSPT3aFAgJYwKpqRYKlLDVcflZFCKY7u3UP8iWi1Qw0Y= privateKey: MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAqhHyZfSsYourNxaY7Nt+PrgrxkiA50efORdI5U5lsW79MmFnusUA355oaSXcLhu5xxB38SMSyP2KvuKNPuH3owIDAQABAkAfoiLyL+Z4lf4Myxk6xUDgLaWGximj20CUf+5BKKnlrK+Ed8gAkM0HqoTt2UZwA5E2MzS4EI2gjfQhz5X28uqxAiEA3wNFxfrCZlSZHb0gn2zDpWowcSxQAgiCstxGUoOqlW8CIQDDOerGKH5OmCJ4Z21v+F25WaHYPxCFMvwxpcw99EcvDQIgIdhDTIqD2jfYjPTY8Jj3EDGPbH2HHuffvflECt3Ek60CIQCFRlCkHpi7hthhYhovyloRYsM+IS9h/0BzlEAuO0ktMQIgSPT3aFAgJYwKpqRYKlLDVcflZFCKY7u3UP8iWi1Qw0Y=
springdoc: springdoc:
external-docs:
url: /doc.html
swagger-ui: swagger-ui:
path: /swagger-ui.html path: /swagger-ui.html
tags-sorter: alpha tags-sorter: alpha

View File

@ -77,11 +77,6 @@ public class SubConstructionUserUpdateReq implements Serializable {
*/ */
private String sfzBackPic; private String sfzBackPic;
/**
* 身份证号码
*/
private String sfzNumber;
/** /**
* 身份证有效开始期 * 身份证有效开始期
*/ */
@ -112,11 +107,6 @@ public class SubConstructionUserUpdateReq implements Serializable {
*/ */
private String yhkPic; private String yhkPic;
/**
* 银行卡号
*/
private String yhkNumber;
/** /**
* 开户行 * 开户行
*/ */

View File

@ -341,11 +341,6 @@ public class SubConstructionUserServiceImpl extends ServiceImpl<SubConstructionU
// 判断当前操作用户是否有权限 // 判断当前操作用户是否有权限
Long userId = LoginHelper.getUserId(); Long userId = LoginHelper.getUserId();
projectService.validAuth(oldConstructionUser.getProjectId(), userId); projectService.validAuth(oldConstructionUser.getProjectId(), userId);
// 对身份证号码进行加密
if (req.getSfzNumber() != null) {
String encrypt = idCardEncryptorUtil.encrypt(req.getSfzNumber());
constructionUser.setSfzNumber(encrypt);
}
// 操作数据库 // 操作数据库
return this.updateById(constructionUser); return this.updateById(constructionUser);
} }