Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
137b98dd
Commit
137b98dd
authored
Sep 25, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客态展示关注关系
parent
68040f59
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
ch-core/src/main/java/com/wwdz/ch/core/consts/FollowFansEnum.java
...src/main/java/com/wwdz/ch/core/consts/FollowFansEnum.java
+1
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FollowFansRecordServiceImpl.java
...java/com/wwdz/ch/wx/impl/FollowFansRecordServiceImpl.java
+4
-0
No files found.
ch-core/src/main/java/com/wwdz/ch/core/consts/FollowFansEnum.java
View file @
137b98dd
...
...
@@ -7,6 +7,7 @@ public class FollowFansEnum {
FOLLOWED
(
1
,
"已关注"
),
BOTH_FOLLOWED
(
2
,
"互相关注"
),
BACK_FOLLOWED
(
3
,
"回关"
),
SELF
(
4
,
"本人"
),
;
private
int
code
;
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/FollowFansRecordServiceImpl.java
View file @
137b98dd
...
...
@@ -253,6 +253,10 @@ public class FollowFansRecordServiceImpl implements FollowFansRecordService {
}
else
{
id
=
followFansRecordVo
.
getFollowerId
();
}
if
(
id
==
dto
.
getCurrentUserId
())
{
followFansRecordVo
.
setRelation
(
""
);
followFansRecordVo
.
setRelationCode
(
FollowFansEnum
.
RelationEnum
.
SELF
.
getCode
());
}
if
(
currentFollowIdList
.
contains
(
id
)
&&
currentFansIdList
.
contains
(
id
))
{
followFansRecordVo
.
setRelation
(
"互相关注"
);
followFansRecordVo
.
setRelationCode
(
FollowFansEnum
.
RelationEnum
.
BOTH_FOLLOWED
.
getCode
());
...
...
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