Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
eb4c13c0
Commit
eb4c13c0
authored
Oct 27, 2020
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
App意见反馈
parent
ce7cd666
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletions
+29
-1
api-app/src/main/java/com/jumeirah/api/app/controller/FeedbackController.java
+5
-1
api-app/src/main/java/com/jumeirah/api/app/entity/param/FeedbackAddParam.java
+24
-0
No files found.
api-app/src/main/java/com/jumeirah/api/app/controller/FeedbackController.java
View file @
eb4c13c0
package
com
.
jumeirah
.
api
.
app
.
controller
;
package
com
.
jumeirah
.
api
.
app
.
controller
;
import
com.jumeirah.api.app.entity.param.FeedbackAddParam
;
import
com.jumeirah.common.entity.Feedback
;
import
com.jumeirah.common.entity.Feedback
;
import
com.jumeirah.common.service.FeedbackService
;
import
com.jumeirah.common.service.FeedbackService
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
...
@@ -40,10 +41,13 @@ public class FeedbackController extends BaseController {
...
@@ -40,10 +41,13 @@ public class FeedbackController extends BaseController {
@PostMapping
(
"/add"
)
@PostMapping
(
"/add"
)
@OperationLog
(
name
=
"添加意见反馈"
,
type
=
OperationLogType
.
ADD
)
@OperationLog
(
name
=
"添加意见反馈"
,
type
=
OperationLogType
.
ADD
)
@ApiOperation
(
value
=
"添加意见反馈"
)
@ApiOperation
(
value
=
"添加意见反馈"
)
public
ApiResult
<
Boolean
>
addFeedback
(
@Validated
(
Add
.
class
)
@RequestBody
Feedback
feedback
)
throws
Exception
{
public
ApiResult
<
Boolean
>
addFeedback
(
@Validated
(
Add
.
class
)
@RequestBody
Feedback
AddParam
feedbackAddParam
)
throws
Exception
{
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
JwtToken
jwtToken
=
(
JwtToken
)
SecurityUtils
.
getSubject
().
getPrincipal
();
Feedback
feedback
=
new
Feedback
();
feedback
.
setUserId
(
jwtToken
.
getUserId
());
feedback
.
setUserId
(
jwtToken
.
getUserId
());
feedback
.
setContent
(
feedbackAddParam
.
getContent
());
boolean
flag
=
feedbackService
.
saveFeedback
(
feedback
);
boolean
flag
=
feedbackService
.
saveFeedback
(
feedback
);
return
ApiResult
.
result
(
flag
);
return
ApiResult
.
result
(
flag
);
}
}
...
...
api-app/src/main/java/com/jumeirah/api/app/entity/param/FeedbackAddParam.java
0 → 100644
View file @
eb4c13c0
package
com
.
jumeirah
.
api
.
app
.
entity
.
param
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
/**
* 意见反馈
*
* @author giao
* @since 2020-10-26
*/
@Data
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"FeedbackAddParam"
)
public
class
FeedbackAddParam
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
content
;
}
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