mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	✨ ERP:初始化模块,立个 2024 年的 flag
This commit is contained in:
		@@ -0,0 +1,4 @@
 | 
			
		||||
### 请求 /transfer
 | 
			
		||||
GET {{baseUrl}}/erp/sale-order/demo
 | 
			
		||||
Authorization: Bearer {{token}}
 | 
			
		||||
tenant-id: {{adminTenentId}}
 | 
			
		||||
@@ -0,0 +1,23 @@
 | 
			
		||||
package cn.iocoder.yudao.module.erp.controller.admin.sale;
 | 
			
		||||
 | 
			
		||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
 | 
			
		||||
import io.swagger.v3.oas.annotations.tags.Tag;
 | 
			
		||||
import org.springframework.validation.annotation.Validated;
 | 
			
		||||
import org.springframework.web.bind.annotation.GetMapping;
 | 
			
		||||
import org.springframework.web.bind.annotation.RequestMapping;
 | 
			
		||||
import org.springframework.web.bind.annotation.RestController;
 | 
			
		||||
 | 
			
		||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
 | 
			
		||||
 | 
			
		||||
@Tag(name = "管理后台 - ERP 销售订单")
 | 
			
		||||
@RestController
 | 
			
		||||
@RequestMapping("/erp/sale-order")
 | 
			
		||||
@Validated
 | 
			
		||||
public class ErpSaleOrderController {
 | 
			
		||||
 | 
			
		||||
    @GetMapping("/demo")
 | 
			
		||||
    public CommonResult<Boolean> demo() {
 | 
			
		||||
        return success(true);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@@ -0,0 +1,6 @@
 | 
			
		||||
/**
 | 
			
		||||
 * 提供 RESTful API 给前端:
 | 
			
		||||
 * 1. admin 包:提供给管理后台 yudao-ui-admin 前端项目
 | 
			
		||||
 * 2. app 包:提供给用户 APP yudao-ui-app 前端项目,它的 Controller 和 VO 都要添加 App 前缀,用于和管理后台进行区分
 | 
			
		||||
 */
 | 
			
		||||
package cn.iocoder.yudao.module.erp.controller;
 | 
			
		||||
@@ -0,0 +1,10 @@
 | 
			
		||||
/**
 | 
			
		||||
 * erp 包下,企业资源管理(Enterprise Resource Planning)。
 | 
			
		||||
 * 例如说:采购、销售、库存、财务、产品等等
 | 
			
		||||
 *
 | 
			
		||||
 * 1. Controller URL:以 /erp/ 开头,避免和其它 Module 冲突
 | 
			
		||||
 * 2. DataObject 表名:以 erp_ 开头,方便在数据库中区分
 | 
			
		||||
 *
 | 
			
		||||
 * 注意,由于 Erp 模块下,容易和其它模块重名,所以类名都加载 Erp 的前缀~
 | 
			
		||||
 */
 | 
			
		||||
package cn.iocoder.yudao.module.erp;
 | 
			
		||||
		Reference in New Issue
	
	Block a user