BusinessChargeItemRpc.java 1.04 KB
package com.diligrp.etrade.rpc;

import com.diligrp.etrade.core.domain.Message;
import com.diligrp.etrade.core.domain.PageMessage;
import com.diligrp.etrade.rpc.dto.BusinessChargeItemDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(name = "assets-service", contextId = "businessChargeItemRpc")
public interface BusinessChargeItemRpc {
    @PostMapping({"/api/businessChargeItem/listPage"})
    PageMessage<List<BusinessChargeItemDto>> listPage(BusinessChargeItemDto businessChargeItemDto);

    @PostMapping({"/api/businessChargeItem/listByExample"})
    Message<List<BusinessChargeItemDto>> listByExample(BusinessChargeItemDto businessChargeItemDto);

    @PostMapping({"/api/businessChargeItem/getById"})
    Message<BusinessChargeItemDto> getById(@RequestParam("id") Long id);

    @PostMapping({"/api/businessChargeItem/save"})
    Message save(BusinessChargeItemDto businessChargeItemDto);
}