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 303b96bb
authored
Oct 25, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref: 注入减少框架依赖 建议构造器注入
1 parent
43bccb7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 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 @
303b96b
package
com
.
dituhui
.
pea
.
order
.
controller
;
import
cn.hutool.core.date.DateUtil
;
import
com.dituhui.pea.common.PageResult
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.order.dto.MsgDTO
;
...
...
@@ -9,8 +8,7 @@ import com.dituhui.pea.order.dto.MsgResp;
import
com.dituhui.pea.order.service.MsgService
;
import
com.dituhui.pea.order.utils.AssertUtil
;
import
com.dituhui.pea.order.utils.CommonUtil
;
import
com.dituhui.pea.pojo.RoleInfo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.Valid
;
...
...
@@ -24,10 +22,10 @@ import java.util.Objects;
*/
@RestController
@RequestMapping
(
"/pea-order/msg"
)
@RequiredArgsConstructor
public
class
MsgController
{
@Autowired
private
MsgService
msgService
;
private
final
MsgService
msgService
;
/**
* 消息列表
...
...
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