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_CurrencyController.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/WebAPI/Controllers/BaseSet/Gy_CurrencyController.cs b/WebAPI/Controllers/BaseSet/Gy_CurrencyController.cs
index 4ad4847..25e38f2 100644
--- a/WebAPI/Controllers/BaseSet/Gy_CurrencyController.cs
+++ b/WebAPI/Controllers/BaseSet/Gy_CurrencyController.cs
@@ -9,6 +9,7 @@
using System.Web.Http;
using WebAPI.Models;
using WebAPI.Service;
+using WebAPI.Utility;
namespace WebAPI.Controllers
{
@@ -334,6 +335,7 @@
/// <returns></returns>
[Route("Gy_Currency/AuditGy_Currency")]
[HttpGet]
+ [Permission(HModName = "Gy_Currency", Operate = "_Check")]
public object AuditGy_Currency(int HInterID, int IsAudit, string CurUserName)
{
try
@@ -429,6 +431,7 @@
/// <returns></returns>
[Route("Gy_Currency/StopGy_Currency")]
[HttpGet]
+ [Permission(HModName = "Gy_Currency", Operate = "_Stop")]
public object StopGy_Currency(int HInterID, int IsStop, string CurUserName)
{
try
--
Gitblit v1.9.1