package com.yc.ship.module.trade.api.insurance;

import com.yc.ship.framework.common.pojo.CommonResult;
import com.yc.ship.module.trade.api.insurance.dto.InsuranceApplyReqDTO;
import com.yc.ship.module.trade.api.insurance.dto.InsuredRespDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import io.swagger.v3.oas.annotations.tags.Tag;

import javax.annotation.security.PermitAll;
import java.util.List;

/***
 *@return
 */
@Tag(name = "RPC 服务 - Insurance 保险")
public interface InsuranceApi {


    @Operation(summary = "申请投保")
    @PermitAll
    CommonResult<Boolean> applyInsurance(Long orderId);


    @Operation(summary = "通过订单号退保")
    @PermitAll
    CommonResult<Boolean> cancelInsurance(Long orderId);


}
