mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:43:26 +08:00
【新增】后台设计界面,导航租模块,链接类型里增加商品分类选择
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user