From a0bce3b366451b3ca94e676eb98dd7b415375c14 Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期五, 17 一月 2025 14:00:00 +0800 Subject: [PATCH] 代码修改 --- Application/HStation.Application.Xhs.Core/01-project/XhsProject_Controller.cs | 40 ++++++++++------------------------------ 1 files changed, 10 insertions(+), 30 deletions(-) diff --git a/Application/HStation.Application.Xhs.Core/01-project/XhsProject_Controller.cs b/Application/HStation.Application.Xhs.Core/01-project/XhsProject_Controller.cs index f8d0ce0..4837beb 100644 --- a/Application/HStation.Application.Xhs.Core/01-project/XhsProject_Controller.cs +++ b/Application/HStation.Application.Xhs.Core/01-project/XhsProject_Controller.cs @@ -47,6 +47,16 @@ return vmList; } + /// <summary> + /// 鑾峰彇鏁伴噺 + /// </summary> + [Route("GetCount@V1.0")] + [HttpGet] + public int GetCount() + { + return _service.GetCount(); + } + #endregion #region Insert @@ -164,36 +174,6 @@ } } var bol = _service.UpdateTagName(input.ID, input.TagName); - return bol; - } - - /// <summary> - /// 鍙戝竷 - /// </summary> - [Route("Publish@V1.0")] - [HttpPut] - public bool Publish([Required] IDInput input) - { - var bol = _service.Publish(input.ID, out string Msg); - if (!bol) - { - throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, Msg); - } - return bol; - } - - /// <summary> - /// 寮冪敤锛堣皑鎱庢搷浣滐級 - /// </summary> - [Route("Deprecate@V1.0")] - [HttpPut] - public bool Deprecate([Required] IDInput input) - { - var bol = _service.Deprecate(input.ID, out string Msg); - if (!bol) - { - throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, Msg); - } return bol; } -- Gitblit v1.9.3