class NotifierHistoryController {

    private final NotifyHistoryRepository repository;

    public NotifierHistoryController(NotifyHistoryRepository repository) {
        this.repository = repository;
    }

    @PostMapping("/config/{configId}/_query")
    @Operation(summary = "根据通知配置ID查询通知记录")
    public Mono<PagerResult<NotifyHistory>> queryPagerByConfigId(@PathVariable String configId,
                                                                 @RequestBody Mono<QueryParamEntity> queryParam) {
        return queryParam
            .flatMap(param -> param
                .toNestQuery(q -> q.is(NotifyHistory::getNotifierId, configId))
                .execute(repository::queryPager));
    }

    @PostMapping("/template/{templateId}/_query")
    @Operation(summary = "根据通知模版ID查询通知记录")
    public Mono<PagerResult<NotifyHistory>> queryPagerByTemplateId(@PathVariable String templateId,
                                                                   @RequestBody Mono<QueryParamEntity> queryParam) {<FILL_FUNCTION_BODY>}


}

        return queryParam
            .flatMap(param -> param
                .toNestQuery(q -> q.is(NotifyHistory::getTemplateId, templateId))
                .execute(repository::queryPager));
    
<no_super_class>