| | |
| | | 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 |