Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
4e2a84a5
Commit
4e2a84a5
authored
Nov 07, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-bacground-im' into dev
parents
e66811f5
530230f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
ImQuestionBiz.java
...src/main/java/com/xxfc/platform/im/biz/ImQuestionBiz.java
+12
-0
ImQuestionController.java
.../java/com/xxfc/platform/im/rest/ImQuestionController.java
+6
-0
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/ImQuestionBiz.java
View file @
4e2a84a5
...
@@ -117,6 +117,18 @@ public class ImQuestionBiz extends BaseBiz<ImQuestionMapper, ImQuestion> {
...
@@ -117,6 +117,18 @@ public class ImQuestionBiz extends BaseBiz<ImQuestionMapper, ImQuestion> {
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
public
ObjectRestResponse
deleteById
(
Long
id
)
{
if
(
id
==
null
)
{
return
ObjectRestResponse
.
paramIsEmpty
();
}
ImQuestion
imQuestion
=
mapper
.
selectByPrimaryKey
(
id
);
if
(
imQuestion
==
null
)
{
return
ObjectRestResponse
.
createDefaultFail
();
}
imQuestion
.
setIsDel
(
true
);
updateSelectiveByIdRe
(
imQuestion
);
return
ObjectRestResponse
.
succ
();
}
public
ObjectRestResponse
update
(
Long
id
,
MsgTypeEnum
type
,
UpdateTypeEnum
updateType
)
{
public
ObjectRestResponse
update
(
Long
id
,
MsgTypeEnum
type
,
UpdateTypeEnum
updateType
)
{
if
(
id
==
null
||
type
==
null
)
{
if
(
id
==
null
||
type
==
null
)
{
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/rest/ImQuestionController.java
View file @
4e2a84a5
...
@@ -41,4 +41,10 @@ public class ImQuestionController {
...
@@ -41,4 +41,10 @@ public class ImQuestionController {
public
ObjectRestResponse
delete
(
Long
id
)
{
public
ObjectRestResponse
delete
(
Long
id
)
{
return
imQuestionBiz
.
delete
(
id
);
return
imQuestionBiz
.
delete
(
id
);
}
}
@GetMapping
(
value
=
"/bg/app/unauth/delete"
)
@ApiOperation
(
value
=
"删除问答信息"
)
public
ObjectRestResponse
deleteById
(
Long
id
)
{
return
imQuestionBiz
.
deleteById
(
id
);
}
}
}
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