接口【优化】:新增公告界面分享类型,取消和文档的共享使用问题。

This commit is contained in:
jianweie code
2024-11-25 22:14:58 +08:00
parent 1b197e955a
commit fcb9f514be
2 changed files with 23 additions and 0 deletions

View File

@@ -2034,6 +2034,11 @@ namespace CoreCms.Net.Configuration
/// </summary> /// </summary>
[Description("13服务商品")] [Description("13服务商品")]
ServiceGoods = 13, ServiceGoods = 13,
/// <summary>
/// 14公告页面
/// </summary>
[Description("14公告页面")]
Notice = 14,
} }
/// <summary> /// <summary>

View File

@@ -615,6 +615,17 @@ namespace CoreCms.Net.Services
return jm; return jm;
} }
break; break;
case (int)GlobalEnumVars.UrlSharePageType.Notice:
if (parameter.ContainsKey("noticeId"))
{
str = parameter["noticeId"]?.ToString();
}
else
{
jm.msg = "参数必须传noticeId";
return jm;
}
break;
default: default:
jm.msg = GlobalErrorCodeVars.Code10000; jm.msg = GlobalErrorCodeVars.Code10000;
return jm; return jm;
@@ -746,6 +757,13 @@ namespace CoreCms.Net.Services
jm.status = true; jm.status = true;
} }
break; break;
case (int)GlobalEnumVars.UrlSharePageType.Notice:
if (arr.Length == 1)
{
jm.data = new { noticeId = arr[0] };
jm.status = true;
}
break;
default: default:
jm.msg = GlobalErrorCodeVars.Code10000; jm.msg = GlobalErrorCodeVars.Code10000;
return jm; return jm;