|
@@ -115,6 +115,12 @@ public class DiagramController {
|
|
|
@RequestParam String projectId,
|
|
|
@RequestParam String groupCode) {
|
|
|
Diagram diagram = diagramManager.fromMapData(params);
|
|
|
+
|
|
|
+ if (diagram.getName() == null || diagram.getName().length() < 3
|
|
|
+ || diagram.getName().length() > 15) {
|
|
|
+ throw new BusinessException(ResponseCode.A0400.getCode(), "名称长度不能小于3,不能超过15");
|
|
|
+ }
|
|
|
+
|
|
|
diagram.setGroupCode(groupCode);
|
|
|
diagram.setProjectId(projectId);
|
|
|
|