yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.qianwen.smartman.modules.notify.controller;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import com.qianwen.core.boot.ctrl.BladeController;
import com.qianwen.core.mp.support.Query;
import com.qianwen.core.scanner.modular.annotation.GetResource;
import com.qianwen.core.scanner.modular.stereotype.ApiResource;
import com.qianwen.core.tool.api.R;
import com.qianwen.smartman.modules.notify.convert.NotifyHistoryConvert;
import com.qianwen.smartman.modules.notify.dto.NotifyHistoryDTO;
import com.qianwen.smartman.modules.notify.entity.NotifyHistoryEntity;
import com.qianwen.smartman.modules.notify.service.INotifyHistoryService;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
@ApiResource({"blade-notify/notify/history"})
@Api(value = "消息通知记录", tags = {"消息通知记录"})
@RestController
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/notify/controller/NotifierHistoryController.class */
public class NotifierHistoryController extends BladeController {
    private final INotifyHistoryService notifyHistoryService;
 
    public NotifierHistoryController(final INotifyHistoryService notifyHistoryService) {
        this.notifyHistoryService = notifyHistoryService;
    }
 
    @ApiOperationSupport(order = 1)
    @GetResource({"/list"})
    @ApiOperation(value = "消息通知记录列表", notes = "消息记录")
    public R<IPage<NotifyHistoryDTO>> configPageList(Query query, @RequestParam(required = false) String state, @RequestParam(required = false) String keyword, @RequestParam(required = false) String beginTime, @RequestParam(required = false) String endTime) {
        IPage<NotifyHistoryEntity> list = this.notifyHistoryService.listPage(query, state, keyword, beginTime, endTime);
        return R.data(NotifyHistoryConvert.INSTANCE.convertToPage(list));
    }
}