田源
2024-12-03 e973fb747f0d1a382fb9e4cdb20383a0a546ef67
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.vci.starter.revision.provider;
 
import com.vci.starter.web.pagemodel.BaseResult;
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.RequestParam;
 
/**
 * 版本的调用器
 * @author weidy
 * @date 2020/4/15
 */
@FeignClient(name="commonRevisionRuleProvider",url="${feign.pltServiceUrl}",path = "revisionRuleController")
public interface CommonRevisionRuleProvider {
 
    /**
     * 根据规则获取下一个版本号
     * @param ruleId 版本规则的英文名称
     * @param currentRevisionValue 当前的值
     * @return 先判断success,再取obj属性
     */
    @GetMapping("/getNextRevisionValue")
    BaseResult getNextRevisionValue(@RequestParam("ruleId") String ruleId, @RequestParam("currentRevisionValue") String currentRevisionValue);
}