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
76dfc5ed
Commit
76dfc5ed
authored
Oct 28, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7f677bcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
0 deletions
+68
-0
RB_MiAi_BaseInfo_Extend.cs
Mall.Model/Extend/Miai/RB_MiAi_BaseInfo_Extend.cs
+5
-0
AppletMiaiController.cs
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
+63
-0
No files found.
Mall.Model/Extend/Miai/RB_MiAi_BaseInfo_Extend.cs
View file @
76dfc5ed
...
...
@@ -38,6 +38,11 @@ namespace Mall.Model.Extend.Miai
/// </summary>
public
string
UserGroupIds
{
get
;
set
;
}
/// <summary>
/// 查看指定分组
/// </summary>
public
string
LookGroupIds
{
get
;
set
;
}
/// <summary>
/// 0-指定用户,1-按照匹配度,2-按照热度,3-按照最新
/// </summary>
...
...
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
View file @
76dfc5ed
...
...
@@ -19,6 +19,7 @@ using Microsoft.AspNetCore.Authorization;
using
Mall.Model.Entity.Miai
;
using
Dnc.Api.Throttle
;
using
Mall.Model.Extend.User
;
using
Mall.Model.Extend.MarketingCenter
;
namespace
Mall.WebApi.Controllers.MallBase
{
...
...
@@ -28,6 +29,9 @@ namespace Mall.WebApi.Controllers.MallBase
[
EnableCors
(
"AllowCors"
)]
public
class
AppletMiaiController
:
BaseController
{
/// <summary>
/// 用户处理类对象
/// </summary>
private
readonly
MiaiModule
miaiModule
=
new
MiaiModule
();
private
readonly
Module
.
Education
.
DynamicModule
dynamicModule
=
new
Module
.
Education
.
DynamicModule
();
private
readonly
MiniProgramModule
programModule
=
new
MiniProgramModule
();
...
...
@@ -2271,5 +2275,64 @@ namespace Mall.WebApi.Controllers.MallBase
#
endregion
#
region
获取用户特点分组
/// <summary>
/// 插入用户查看日志
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetUserGroupList
()
{
var
userInfo
=
base
.
AppletUserInfo
;
ResultPageModel
pageModel
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
base
.
RequestParm
.
msg
.
ToString
());
JObject
parms
=
JObject
.
Parse
(
base
.
RequestParm
.
msg
.
ToString
());
var
userBaseModel
=
miaiModule
.
GetBaseInfoModel
(
new
RB_MiAi_BaseInfo_Extend
()
{
UserId
=
userInfo
.
UserId
});
RB_MiAi_BaseInfo_Extend
query
=
new
RB_MiAi_BaseInfo_Extend
()
{
LookGroupIds
=
parms
.
GetStringValue
(
"lookGroupIds"
),
Sex
=
1
,
};
if
(
userBaseModel
.
Sex
==
1
)
{
query
.
Sex
=
2
;
}
if
(
userBaseModel
.
Sex
==
2
)
{
query
.
Sex
=
1
;
}
query
.
MallBaseId
=
base
.
RequestParm
.
MallBaseId
;
query
.
TenantId
=
base
.
RequestParm
.
TenantId
;
var
list
=
miaiModule
.
GetFirstBaseInfoPageList
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
List
<
object
>
result
=
new
List
<
object
>();
foreach
(
var
item
in
list
)
{
List
<
string
>
AlbumList
=
new
List
<
string
>();
if
(!
string
.
IsNullOrEmpty
(
item
.
Album
))
{
AlbumList
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
string
>>(
item
.
Album
);
}
result
.
Add
(
new
{
item
.
Age
,
AlbumList
=
AlbumList
,
Authentication
=
!
string
.
IsNullOrWhiteSpace
(
item
.
IDCardNo
)?
1
:
0
,
Education
=
item
.
EducationType
.
GetEnumName
(),
item
.
Height
,
item
.
IDCard
,
item
.
Industry
,
Marriage
=
item
.
Marriage
.
GetEnumName
(),
item
.
Photo
,
SexStr
=
item
.
Sex
==
1
?
"男"
:
"女"
,
item
.
YearMoneyTypeStr
,
id
=
item
.
UserId
,
name
=
item
.
Name
,
Score
=
0
,
});
}
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
pageData
=
result
;
return
ApiResult
.
Success
(
data
:
new
{
listStyle
=
1
,
list
=
result
});
}
#
endregion
}
}
\ No newline at end of file
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