Browse Source

日志接口修改

chenw 6 years ago
parent
commit
013bce84e8

+ 3 - 4
applications/school/school-server/src/main/java/com/usoftchina/smartschool/school/common/controller/MessageLogController.java

@@ -9,15 +9,14 @@ import com.usoftchina.smartschool.school.dto.ListReqDTO;
 import com.usoftchina.smartschool.school.po.Messagelog;
 import com.usoftchina.smartschool.school.po.Messagelog;
 import com.usoftchina.smartschool.school.po.Operation;
 import com.usoftchina.smartschool.school.po.Operation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.*;
 
 
 /**
 /**
  * @author: guq
  * @author: guq
  * @create: 2019-01-23 16:23
  * @create: 2019-01-23 16:23
  **/
  **/
+@RestController
+@RequestMapping("/messagelog")
 public class MessageLogController {
 public class MessageLogController {
 
 
     @Autowired
     @Autowired

+ 2 - 0
applications/school/school-server/src/main/java/com/usoftchina/smartschool/school/common/service/impl/MessageLogServiceImpl.java

@@ -12,6 +12,7 @@ import com.usoftchina.smartschool.school.po.Messagelog;
 import com.usoftchina.smartschool.school.po.Operation;
 import com.usoftchina.smartschool.school.po.Operation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.MessageSource;
 import org.springframework.context.MessageSource;
+import org.springframework.stereotype.Service;
 import org.springframework.util.StringUtils;
 import org.springframework.util.StringUtils;
 
 
 import java.util.Date;
 import java.util.Date;
@@ -22,6 +23,7 @@ import java.util.Locale;
  * @author: guq
  * @author: guq
  * @create: 2019-01-23 16:24
  * @create: 2019-01-23 16:24
  **/
  **/
+@Service
 public class MessageLogServiceImpl implements MessageLogService{
 public class MessageLogServiceImpl implements MessageLogService{
     @Autowired
     @Autowired
     private MessageSource messageSource;
     private MessageSource messageSource;