统一修改包

This commit is contained in:
chenbowen
2025-09-22 03:44:58 +08:00
parent f014ca7cf3
commit 58e2827a21
289 changed files with 1485 additions and 1485 deletions

View File

@@ -0,0 +1,20 @@
package com.zt.plat.base;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Base 服务器的启动类
*
* @author ZT
*/
@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${cloud.info.base-package}
@SpringBootApplication(scanBasePackages = {"${cloud.info.base-package}.base", "${cloud.info.base-package}.module"},
excludeName = {})
public class BaseServerApplication {
public static void main(String[] args) {
SpringApplication.run(BaseServerApplication.class, args);
}
}

View File

@@ -0,0 +1,29 @@
package com.zt.plat.base.controller.base;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zt.plat.framework.common.pojo.CommonResult;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
/**
* base 控制器
*
* @author ZT
*/
@Tag(name = "base")
@RestController
@RequestMapping("/base")
public class BaseDemoController {
@GetMapping("/hello")
@Operation(summary = "Hello base")
public CommonResult<String> hello() {
return success("Hello, base!");
}
}