@RestController
@RequestMapping("/api")
public class IdGenerateController
extends Object
提供算法枚举与在线生成接口
-
Constructor Summary
Constructors
-
Method Summary
org.springframework.http.ResponseEntity<?>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
IdGenerateController
public IdGenerateController()
-
Method Details
-
listAlgorithms
返回可用算法及其参数定义
-
generate
@PostMapping("/generate")
public org.springframework.http.ResponseEntity<?> generate(@RequestBody(required=false)
Map<String,Object> body)
根据算法与参数生成ID,支持批量