1、新增组件订单数据拉取接口;2、新增上传url产生文件数据/根据文件id获取文件地址接口;

This commit is contained in:
gaoqr
2026-07-29 10:04:14 +08:00
parent 445cc9b4fa
commit 10170d2ea2
44 changed files with 6382 additions and 11 deletions
@@ -0,0 +1,27 @@
package com.cf.imes.module.system.api.auth;
import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
/**
* 系统认证 RPC API。
*/
@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 认证")
public interface AuthApi {
String PREFIX = ApiConstants.PREFIX + "/auth";
/**
* 按当前登录用户及组织生成调用组件生产系统所需的 MES JWT。
*
* @return MES JWT;仅供后端内部调用,不返回给前端
*/
@GetMapping(PREFIX + "/mes-token")
@Operation(summary = "为当前登录用户生成 MES JWT")
CommonResult<String> getMesJwtToken();
}
@@ -0,0 +1,28 @@
package com.cf.imes.module.system.api.auth;
import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.module.system.service.auth.AdminAuthService;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;
import static com.cf.imes.framework.common.pojo.CommonResult.success;
/**
* 系统认证 RPC API 实现。
*/
@RestController
@Validated
public class AuthApiImpl implements AuthApi {
@Resource
private AdminAuthService authService;
/**
* {@inheritDoc}
*/
@Override
public CommonResult<String> getMesJwtToken() {
return success(authService.getMesJwtToken());
}
}