Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e9cb7768
authored
Oct 25, 2023
by
Ren Ping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息模块开发-更改地址
1 parent
43bccb7c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/MsgController.java
project-order/src/main/java/com/dituhui/pea/order/controller/MsgController.java
View file @
e9cb776
...
...
@@ -23,7 +23,7 @@ import java.util.Objects;
* @date 2023/10/24
*/
@RestController
@RequestMapping
(
"/pea-order
/msg
"
)
@RequestMapping
(
"/pea-order"
)
public
class
MsgController
{
@Autowired
...
...
@@ -38,7 +38,7 @@ public class MsgController {
* @author RenPing
* @date 2023/10/24
*/
@GetMapping
(
"/list"
)
@GetMapping
(
"/
msg/
list"
)
public
Result
<
PageResult
<
MsgGroupResp
>>
list
(
@RequestHeader
(
name
=
"userId"
,
required
=
true
)
String
userId
,
MsgDTO
.
Request
request
)
{
CommonUtil
.
setNullValue
(
request
);
...
...
@@ -65,7 +65,7 @@ public class MsgController {
* @author RenPing
* @date 2023/10/24
*/
@RequestMapping
(
value
=
"/delete"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/
msg/
delete"
,
method
=
RequestMethod
.
POST
)
public
Result
<
Boolean
>
delete
(
@RequestHeader
(
name
=
"userId"
,
required
=
true
)
String
userId
,
@RequestBody
@Valid
MsgDTO
.
DeleteDto
deleteDto
)
{
AssertUtil
.
isNotEmpty
(
userId
,
"用户ID不能为空"
);
msgService
.
delete
(
deleteDto
.
getId
(),
userId
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment