Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
983ee5f4
Commit
983ee5f4
authored
May 21, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增商品分类
parent
164c3848
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
239 additions
and
120 deletions
+239
-120
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+220
-113
TenantController.cs
Mall.WebApi/Controllers/User/TenantController.cs
+19
-7
No files found.
Mall.Module.Product/ProductModule.cs
View file @
983ee5f4
This diff is collapsed.
Click to expand it.
Mall.WebApi/Controllers/User/TenantController.cs
View file @
983ee5f4
...
...
@@ -19,6 +19,7 @@ using Mall.CacheKey;
using
Mall.Common.Plugin
;
using
Mall.Common.Enum.MallBase
;
using
Mall.Model.Entity.User
;
using
Mall.Module.Product
;
namespace
Mall.WebApi.Controllers.User
{
...
...
@@ -68,6 +69,11 @@ namespace Mall.WebApi.Controllers.User
/// </summary>
private
Module
.
User
.
EmployeeModule
employeeModule
=
new
Module
.
User
.
EmployeeModule
();
/// <summary>
/// 产品处理类
/// </summary>
private
ProductModule
productModule
=
new
ProductModule
();
#
region
商户信息
/// <summary>
...
...
@@ -504,49 +510,55 @@ namespace Mall.WebApi.Controllers.User
name
=
"常用"
,
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
>();
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"所有分类"
,
relation_id
=
0
,
is_edit
=
0
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"赞羊严选"
,
relation_id
=
9120
,
is_edit
=
0
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"严选旅游"
,
relation_id
=
10235
,
is_edit
=
0
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"台湾严选"
,
relation_id
=
10250
,
is_edit
=
0
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"日韩严选"
,
relation_id
=
10252
,
is_edit
=
0
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
catList
.
Add
(
new
{
key
=
"cat"
,
name
=
"欧洲严选"
,
relation_id
=
10253
,
is_edit
=
0
is_edit
=
0
,
imgBg
=
Common
.
Config
.
GetOssFileUrl
+
"/Static/cat-bg.png"
});
resultList
.
Add
(
new
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment