package com.cf.imes.module.executor.api.customplateno;

import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.module.executor.api.customplateno.dto.CustomPlateNoRuleDTO;
import com.cf.imes.module.executor.enums.ApiConstants;
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;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Gqr
 * @since 2024/11/28 18:18
 */
@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 订单自定义板编号序号")
public interface OrderCustomPlateNoApi {
    String PREFIX = ApiConstants.PREFIX + "/order/customplateno";

    @PostMapping(PREFIX + "/initValue")
    @Operation(summary = "复位/清零订单下的序号")
    CommonResult<Boolean> resetOrderSeq(@RequestBody CustomPlateNoRuleDTO ruleDTO);
}
