|
|
@@ -1,16 +1,17 @@
|
|
|
package com.ydtech.modules.message.controller;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.ydtech.core.page.HttpResult;
|
|
|
import com.ydtech.modules.base.controller.BaseController;
|
|
|
import com.ydtech.modules.message.entity.MessageSecretary;
|
|
|
+import com.ydtech.modules.message.entity.MessageSecretaryListQueryVo;
|
|
|
import com.ydtech.modules.message.service.MessageSecretaryService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
+import org.apache.poi.ss.formula.functions.T;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -35,9 +36,10 @@ public class MessageSecretaryController extends BaseController {
|
|
|
/**
|
|
|
* 获取用户消息列表
|
|
|
*/
|
|
|
- @GetMapping("/getUserMessageList")
|
|
|
- public HttpResult<List<MessageSecretary>> getUserMessageList(String msgType){
|
|
|
- return HttpResult.ok(messageSecretaryService.getUserMessageList(getUserId(),msgType));
|
|
|
+ @PostMapping("/getUserMessageList")
|
|
|
+ public HttpResult<Page<MessageSecretary>> getUserMessageList(@RequestBody MessageSecretaryListQueryVo messageSecretaryListQueryVo){
|
|
|
+ Page page = buildPageRequest(messageSecretaryListQueryVo.getPageDto());
|
|
|
+ return HttpResult.ok(messageSecretaryService.getUserMessageList(page,getUserId(),messageSecretaryListQueryVo));
|
|
|
}
|
|
|
|
|
|
|