Commit 9d762aa0 authored by liudong1993's avatar liudong1993

1

parent 6c900a13
...@@ -18,6 +18,11 @@ namespace Mall.Model.Extend.Assess ...@@ -18,6 +18,11 @@ namespace Mall.Model.Extend.Assess
/// 组图列表 /// 组图列表
/// </summary> /// </summary>
public List<AssessBrandImg> BrandImgList { get; set; } public List<AssessBrandImg> BrandImgList { get; set; }
/// <summary>
/// 所属分类名称
/// </summary>
public string CategoryName { get; set; }
} }
......
...@@ -176,6 +176,7 @@ namespace Mall.Module.Miai ...@@ -176,6 +176,7 @@ namespace Mall.Module.Miai
{ {
model.BrandImgList = JsonHelper.DeserializeObject<List<AssessBrandImg>>(model.BrandImg); model.BrandImgList = JsonHelper.DeserializeObject<List<AssessBrandImg>>(model.BrandImg);
} }
model.CategoryName = assess_CategoryRepository.GetEntity(model.CategoryId)?.Name ?? "";
} }
return model; return model;
} }
......
...@@ -102,6 +102,7 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -102,6 +102,7 @@ namespace Mall.WebApi.Controllers.MallBase
model.Id, model.Id,
model.CategoryId, model.CategoryId,
model.Name, model.Name,
model.CategoryName,
model.Logo, model.Logo,
model.IsHot, model.IsHot,
model.BrandImgList, model.BrandImgList,
......
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