From a985e6ba578b4ec28a25932f871c4df76ce092f2 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期二, 12 五月 2026 15:02:39 +0800
Subject: [PATCH] 模块添加自定义标签鉴权 在Token启用的情况下。通过自定义标签定义的modname和Operate 判断用户是否有访问模块的权限
---
WebAPI/Controllers/BaseSet/Gy_UnitController.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/WebAPI/Controllers/BaseSet/Gy_UnitController.cs b/WebAPI/Controllers/BaseSet/Gy_UnitController.cs
index 0e2062e..f87a607 100644
--- a/WebAPI/Controllers/BaseSet/Gy_UnitController.cs
+++ b/WebAPI/Controllers/BaseSet/Gy_UnitController.cs
@@ -12,6 +12,7 @@
using WebAPI.Controllers.SCGL.鏃ヨ鍒掔鐞�;
using WebAPI.Models;
using WebAPI.Service;
+using WebAPI.Utility;
namespace WebAPI.Controllers
{
@@ -91,6 +92,7 @@
[Route("Gy_Unit/AuditGy_Unit")]
[HttpGet]
+ [Permission(HModName = "Gy_Unit", Operate = "_Check")]
public object AuditGy_Unit(string HInterID, int Type, string user)
{
try
@@ -192,6 +194,7 @@
[Route("Gy_Unit/JY_Json")]
[HttpGet]
+ [Permission(HModName = "Gy_Unit", Operate = "_Stop")]
public object JY_Json(long HItemID)
{
try
--
Gitblit v1.9.1