package cn.axzo.msg.center.service.admin;

import cn.axzo.msg.center.api.request.CmsMsgQueryReq;
import cn.axzo.msg.center.api.response.MessageNewRes;
import cn.axzo.msg.center.service.general.client.fallback.GeneralMessageClientFallback;
import cn.axzo.msg.center.service.general.request.GeneralMessageOldDataStatisticRequest;
import cn.axzo.msg.center.service.general.request.GeneralMessageSendRequest;
import cn.axzo.msg.center.service.general.response.GeneralMessageOldDataStatisticResponse;
import cn.azxo.framework.common.model.CommonResponse;
import cn.azxo.framework.common.model.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;

/**
 * 普通消息模块
 *
 * @author cold_blade
 * @version 1.0
 * @date 2023/10/18
 */
@Component
@FeignClient(value = "msg-center", url = "${server.serviceUrl:http://msg-center:8080}",
        fallback = GeneralMessageClientFallback.class)
public interface MessageAdminConsoleClient {

    /**
     *
     * @param diffDays diffDays
     * @param minRecordId minRecordId
     * @return 消息的唯一标识
     */
    @PostMapping("/admin/console/transform")
    CommonResponse<Void> transformPendingMessageRecord(@RequestParam Integer diffDays,
                                                       @RequestParam Long minRecordId);

}
