lixiaojun
2024-12-10 31a8e93cf1cc708b68456b88aa5b0031a41eb47a
Application/HStation.Application.Xhs.Core/01-project/XhsProject_Controller.cs
@@ -167,36 +167,6 @@
            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;
        }
        #endregion Update
        #region Exist