Commit 983ee5f4 authored by 黄奎's avatar 黄奎

新增商品分类

parent 164c3848
This diff is collapsed.
...@@ -19,6 +19,7 @@ using Mall.CacheKey; ...@@ -19,6 +19,7 @@ using Mall.CacheKey;
using Mall.Common.Plugin; using Mall.Common.Plugin;
using Mall.Common.Enum.MallBase; using Mall.Common.Enum.MallBase;
using Mall.Model.Entity.User; using Mall.Model.Entity.User;
using Mall.Module.Product;
namespace Mall.WebApi.Controllers.User namespace Mall.WebApi.Controllers.User
{ {
...@@ -68,6 +69,11 @@ namespace Mall.WebApi.Controllers.User ...@@ -68,6 +69,11 @@ namespace Mall.WebApi.Controllers.User
/// </summary> /// </summary>
private Module.User.EmployeeModule employeeModule = new Module.User.EmployeeModule(); private Module.User.EmployeeModule employeeModule = new Module.User.EmployeeModule();
/// <summary>
/// 产品处理类
/// </summary>
private ProductModule productModule = new ProductModule();
#region 商户信息 #region 商户信息
/// <summary> /// <summary>
...@@ -504,49 +510,55 @@ namespace Mall.WebApi.Controllers.User ...@@ -504,49 +510,55 @@ namespace Mall.WebApi.Controllers.User
name="常用", name="常用",
list= normalList list= normalList
}); });
productModule.GetCategoryListModule(new Model.Extend.Product.RB_Product_Category_Extend() { MallBaseId = RequestParm.MallBaseId, TenantId = RequestParm.TenantId, Tier = 1 });
List<object> catList = new List<object>(); List<object> catList = new List<object>();
catList.Add(new catList.Add(new
{ {
key = "cat", key = "cat",
name = "所有分类", name = "所有分类",
relation_id = 0, relation_id = 0,
is_edit = 0 is_edit = 0,
imgBg = Common.Config.GetOssFileUrl + "/Static/cat-bg.png"
}); });
catList.Add(new catList.Add(new
{ {
key = "cat", key = "cat",
name = "赞羊严选", name = "赞羊严选",
relation_id = 9120, relation_id = 9120,
is_edit = 0 is_edit = 0,
imgBg = Common.Config.GetOssFileUrl + "/Static/cat-bg.png"
}); });
catList.Add(new catList.Add(new
{ {
key = "cat", key = "cat",
name = "严选旅游", name = "严选旅游",
relation_id = 10235, relation_id = 10235,
is_edit = 0 is_edit = 0,
imgBg = Common.Config.GetOssFileUrl + "/Static/cat-bg.png"
}); });
catList.Add(new catList.Add(new
{ {
key = "cat", key = "cat",
name = "台湾严选", name = "台湾严选",
relation_id = 10250, relation_id = 10250,
is_edit = 0 is_edit = 0,
imgBg = Common.Config.GetOssFileUrl + "/Static/cat-bg.png"
}); });
catList.Add(new catList.Add(new
{ {
key = "cat", key = "cat",
name = "日韩严选", name = "日韩严选",
relation_id = 10252, relation_id = 10252,
is_edit = 0 is_edit = 0,
imgBg = Common.Config.GetOssFileUrl + "/Static/cat-bg.png"
}); });
catList.Add(new catList.Add(new
{ {
key = "cat", key = "cat",
name = "欧洲严选", name = "欧洲严选",
relation_id = 10253, relation_id = 10253,
is_edit = 0 is_edit = 0,
imgBg = Common.Config.GetOssFileUrl + "/Static/cat-bg.png"
}); });
resultList.Add(new resultList.Add(new
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment