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

import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.module.system.api.customplateno.dto.CustomPlateNoSeqDTO;
import com.cf.imes.module.system.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.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * 自定义板编号序号feign接口
 *
 * @author Gqr
 * @since 2024/11/15 11:26
 */
@FeignClient(name = ApiConstants.NAME) // TODO 晨丰：fallbackFactory =
@Tag(name = "RPC 服务 - 自定义板编号序号")
public interface CustomPlateNoSeqApi {
    String PREFIX = ApiConstants.PREFIX + "/custom-plateno-seq";

    @GetMapping(PREFIX + "/organ")
    @Operation(summary = "获取组织下自定义版编号序号")
    CommonResult<CustomPlateNoSeqDTO> getOrgCustomPlateNoSeq();

    @PostMapping(PREFIX + "/organ")
    @Operation(summary = "更新组织下自定义版编号序号")
    CommonResult<Boolean> modifyOrgCustomPlateNoSeq(@RequestBody CustomPlateNoSeqDTO customPlateNoSeqDTO);
}
