Commit 303b96bb by 刘鑫

pref: 注入减少框架依赖 建议构造器注入

1 parent 43bccb7c
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;
/**
* 消息列表
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!