parent
a44f34b8d1
commit
ab9776ca54
@ -1,4 +0,0 @@
|
|||||||
ALTER TABLE `opsli-boot`.`creater_table_column`
|
|
||||||
MODIFY COLUMN `field_length` int(11) NULL DEFAULT NULL COMMENT '字段长度' AFTER `field_type`,
|
|
||||||
MODIFY COLUMN `field_precision` int(11) NULL DEFAULT NULL COMMENT '字段精度' AFTER `field_length`,
|
|
||||||
MODIFY COLUMN `sort` int(6) NOT NULL COMMENT '排序(升序)' AFTER `dict_type_code`;
|
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,47 @@
|
|||||||
|
package org.opsli.modulars.tools.api;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.opsli.common.annotation.ApiRestController;
|
||||||
|
import org.opsli.common.annotation.ApiVersion;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* API 版本控制测试
|
||||||
|
*
|
||||||
|
* @author 周鹏程
|
||||||
|
* @date 2021年10月27日12:50:00
|
||||||
|
*/
|
||||||
|
@Api(tags = "API-测试版本控制")
|
||||||
|
@ApiRestController("/tools/api/{ver}")
|
||||||
|
public class ApiController {
|
||||||
|
|
||||||
|
@ApiOperation(value = "测试正常接口", notes = "测试正常接口")
|
||||||
|
@GetMapping("/test")
|
||||||
|
public String test() {
|
||||||
|
return "test 1";
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = ">= V1 && <= V4", notes = ">= V1 && <= V4")
|
||||||
|
@GetMapping("/fun")
|
||||||
|
public String fun1() {
|
||||||
|
return "fun 1";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = ">= V5 && <= V8", notes = ">= V5 && <= V8")
|
||||||
|
@ApiVersion(5)
|
||||||
|
@GetMapping("/fun")
|
||||||
|
public String fun2() {
|
||||||
|
return "fun 2";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = ">= V9", notes = ">= V9")
|
||||||
|
@ApiVersion(9)
|
||||||
|
@GetMapping("/fun")
|
||||||
|
public String fun3() {
|
||||||
|
return "fun 5";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue