【新增】后台设计界面,导航租模块,链接类型里增加商品分类选择

This commit is contained in:
jianweie
2023-04-27 17:33:53 +08:00
parent 9cdd427efd
commit d19f29d1a2
8 changed files with 130 additions and 5 deletions

View File

@@ -84,6 +84,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
private readonly ICoreCmsPagesServices _pagesServices;
private readonly IToolsServices _toolsServices;
private readonly ICoreCmsReportsServices _reportsServices;
private readonly ICoreCmsGoodsCategoryServices _goodsCategoryServices;
@@ -110,7 +111,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
, ISysUserRoleServices sysUserRoleServices
, ISysOrganizationServices sysOrganizationServices,
ICoreCmsLogisticsServices logisticsServices, ISysLoginRecordServices sysLoginRecordServices, ISysNLogRecordsServices sysNLogRecordsServices, ICoreCmsBillPaymentsServices paymentsServices, ICoreCmsBillDeliveryServices billDeliveryServices, ICoreCmsUserServices userServices, ICoreCmsOrderServices orderServices, ICoreCmsBillAftersalesServices aftersalesServices, ICoreCmsSettingServices settingServices, ICoreCmsProductsServices productsServices, ICoreCmsServicesServices servicesServices, ISysRoleMenuServices sysRoleMenuServices
, IWeChatApiHttpClientFactory weChatApiHttpClientFactory, ICoreCmsPagesServices pagesServices, IToolsServices toolsServices, ICoreCmsReportsServices reportsServices)
, IWeChatApiHttpClientFactory weChatApiHttpClientFactory, ICoreCmsPagesServices pagesServices, IToolsServices toolsServices, ICoreCmsReportsServices reportsServices, ICoreCmsGoodsCategoryServices goodsCategoryServices)
{
_user = user;
_webHostEnvironment = webHostEnvironment;
@@ -146,6 +147,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
_pagesServices = pagesServices;
_toolsServices = toolsServices;
_reportsServices = reportsServices;
_goodsCategoryServices = goodsCategoryServices;
}
#region ()====================================================
@@ -1069,6 +1071,31 @@ namespace CoreCms.Net.Web.Admin.Controllers
#endregion
#region ============================================================
// POST: Api/Tools/GetGoodTypes
/// <summary>
/// 获取商品分类列表
/// </summary>
/// <returns></returns>
[HttpPost]
[Description("获取商品分类列表")]
public async Task<AdminUiCallBack> GetGoodTypes()
{
var jm = new AdminUiCallBack();
//获取数据
var list = await _goodsCategoryServices.QueryAsync();
//返回数据
jm.data = list;
jm.code = 0;
jm.msg = "数据调用成功!";
return jm;
}
#endregion
#region ============================================================
// POST: Api/Tools/GetNotices