duheng
2024-12-23 c1d2b33a3959f0e66ccf98158aad769e606637e5
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;
        }