package com.zt.plat.module.plandate;

import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.module.base.enums.ApiConstants;
import com.zt.plat.module.plandate.dto.ErpMonthProductivePlanCheckSaveReqDTO;
import com.zt.plat.module.plandate.dto.PlanDateSaveReqDTO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - base")
public interface PlanApi {
    String PREFIX = ApiConstants.PREFIX + "/api/plan";

    @PostMapping(PREFIX + "/create")
    @Operation(summary = "计划创建")
    CommonResult<Boolean> planCreate(PlanDateSaveReqDTO reqDTO);

    @PostMapping(PREFIX + "/monthProductivePlanCheckCreate")
    @Operation(summary = "月 productive plan check 创建")
    CommonResult<Boolean> monthProductivePlanCheckCreate(ErpMonthProductivePlanCheckSaveReqDTO reqDTO);
}
