mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-11-04 10:57:10 +08:00 
			
		
		
		
	chore: 优化健康监测接口响应信息
This commit is contained in:
		@@ -36,6 +36,7 @@ import org.springframework.web.bind.annotation.RestController;
 | 
				
			|||||||
import top.continew.starter.core.autoconfigure.project.ProjectProperties;
 | 
					import top.continew.starter.core.autoconfigure.project.ProjectProperties;
 | 
				
			||||||
import top.continew.starter.extension.crud.annotation.EnableCrudRestController;
 | 
					import top.continew.starter.extension.crud.annotation.EnableCrudRestController;
 | 
				
			||||||
import top.continew.starter.web.annotation.EnableGlobalResponse;
 | 
					import top.continew.starter.web.annotation.EnableGlobalResponse;
 | 
				
			||||||
 | 
					import top.continew.starter.web.model.R;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * 启动程序
 | 
					 * 启动程序
 | 
				
			||||||
@@ -60,16 +61,11 @@ public class ContiNewAdminApplication implements ApplicationRunner {
 | 
				
			|||||||
        SpringApplication.run(ContiNewAdminApplication.class, args);
 | 
					        SpringApplication.run(ContiNewAdminApplication.class, args);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * 访问首页提示
 | 
					 | 
				
			||||||
     *
 | 
					 | 
				
			||||||
     * @return /
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    @Hidden
 | 
					    @Hidden
 | 
				
			||||||
    @SaIgnore
 | 
					    @SaIgnore
 | 
				
			||||||
    @GetMapping("/")
 | 
					    @GetMapping("/")
 | 
				
			||||||
    public String index() {
 | 
					    public R index() {
 | 
				
			||||||
        return "%s service started successfully.".formatted(projectProperties.getName());
 | 
					        return R.ok("%s service started successfully.".formatted(projectProperties.getName()), null);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user