新增 erp 模块
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package cn.iocoder.yudao.module.erp.controller.admin.erp;
|
||||
|
||||
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 cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
/**
|
||||
* ERP 控制器
|
||||
*
|
||||
* @author ERP Module
|
||||
*/
|
||||
@Tag(name = "管理后台 - ERP")
|
||||
@RestController
|
||||
@RequestMapping("/admin/erp/erp")
|
||||
public class ErpController {
|
||||
|
||||
@GetMapping("/hello")
|
||||
@Operation(summary = "Hello ERP")
|
||||
public CommonResult<String> hello() {
|
||||
return success("Hello, ERP!");
|
||||
}
|
||||
|
||||
@GetMapping("/info")
|
||||
@Operation(summary = "ERP 模块信息")
|
||||
public CommonResult<String> info() {
|
||||
return success("ERP 模块已成功创建并运行");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user