package cn.ey.biz.module.system.api.timesheet;

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.enums.ApiConstants;
import cn.ey.biz.module.system.api.timesheet.dto.TimesheetApproveRuleDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Api(tags = "RPC 服务 - 审批规则")
public interface TimesheetApproveRuleApi {

    String PREFIX = ApiConstants.PREFIX + "/timesheet/approve/rule";

    @GetMapping(PREFIX + "/list")
    @ApiOperation("审批规则查询")
    R<List<TimesheetApproveRuleDTO>> listApproveRule();

}
