You've already forked crud_generator
							
							
				mirror of
				https://github.com/ManyakRus/crud_generator.git
				synced 2025-10-31 00:17:48 +02:00 
			
		
		
		
	сделал if err != nil && crud_func.IsRecordNotFound(err) == false
This commit is contained in:
		
							
								
								
									
										142
									
								
								docs/Структуры.graphml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										142
									
								
								docs/Структуры.graphml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,142 @@ | ||||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||||
| <graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:java="http://www.yworks.com/xml/yfiles-common/1.0/java" xmlns:sys="http://www.yworks.com/xml/yfiles-common/markup/primitives/2.0" xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd"> | ||||
|   <!--Created by yEd 3.23.2--> | ||||
|   <key attr.name="Description" attr.type="string" for="graph" id="d0"/> | ||||
|   <key for="port" id="d1" yfiles.type="portgraphics"/> | ||||
|   <key for="port" id="d2" yfiles.type="portgeometry"/> | ||||
|   <key for="port" id="d3" yfiles.type="portuserdata"/> | ||||
|   <key attr.name="url" attr.type="string" for="node" id="d4"/> | ||||
|   <key attr.name="description" attr.type="string" for="node" id="d5"/> | ||||
|   <key for="node" id="d6" yfiles.type="nodegraphics"/> | ||||
|   <key for="graphml" id="d7" yfiles.type="resources"/> | ||||
|   <key attr.name="url" attr.type="string" for="edge" id="d8"/> | ||||
|   <key attr.name="description" attr.type="string" for="edge" id="d9"/> | ||||
|   <key for="edge" id="d10" yfiles.type="edgegraphics"/> | ||||
|   <graph edgedefault="directed" id="G"> | ||||
|     <data key="d0"/> | ||||
|     <node id="n0"> | ||||
|       <data key="d5"/> | ||||
|       <data key="d6"> | ||||
|         <y:GenericNode configuration="com.yworks.entityRelationship.small_entity"> | ||||
|           <y:Geometry height="49.0" width="327.0" x="333.0" y="97.0"/> | ||||
|           <y:Fill color="#E8EEF7" color2="#B7C9E3" transparent="false"/> | ||||
|           <y:BorderStyle color="#000000" type="line" width="1.0"/> | ||||
|           <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="45.90625" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="322.43359375" x="2.283203125" xml:space="preserve" y="1.546875">Tables | ||||
| - содержит только поля из БД, с нужными тегами | ||||
| - не изменять тут ничего<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel> | ||||
|           <y:StyleProperties> | ||||
|             <y:Property class="java.lang.Boolean" name="y.view.ShadowNodePainter.SHADOW_PAINTING" value="true"/> | ||||
|           </y:StyleProperties> | ||||
|         </y:GenericNode> | ||||
|       </data> | ||||
|     </node> | ||||
|     <node id="n1"> | ||||
|       <data key="d5"/> | ||||
|       <data key="d6"> | ||||
|         <y:GenericNode configuration="com.yworks.entityRelationship.small_entity"> | ||||
|           <y:Geometry height="59.0" width="454.0" x="490.5" y="204.0"/> | ||||
|           <y:Fill color="#E8EEF7" color2="#B7C9E3" transparent="false"/> | ||||
|           <y:BorderStyle color="#000000" type="line" width="1.0"/> | ||||
|           <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="59.875" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="436.298828125" x="8.8505859375" xml:space="preserve" y="-0.4375">Entities | ||||
| - содержит в себе Tables | ||||
| - временно содержит дополнительные поля (больше не добавлять) | ||||
| - не добавлять и не изменять тут ничего<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel> | ||||
|           <y:StyleProperties> | ||||
|             <y:Property class="java.lang.Boolean" name="y.view.ShadowNodePainter.SHADOW_PAINTING" value="true"/> | ||||
|           </y:StyleProperties> | ||||
|         </y:GenericNode> | ||||
|       </data> | ||||
|     </node> | ||||
|     <node id="n2"> | ||||
|       <data key="d5"/> | ||||
|       <data key="d6"> | ||||
|         <y:GenericNode configuration="com.yworks.entityRelationship.small_entity"> | ||||
|           <y:Geometry height="73.0" width="580.0" x="720.5" y="305.0"/> | ||||
|           <y:Fill color="#E8EEF7" color2="#B7C9E3" transparent="false"/> | ||||
|           <y:BorderStyle color="#000000" type="line" width="1.0"/> | ||||
|           <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="59.875" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="544.3984375" x="17.80078125" xml:space="preserve" y="6.5625">Objects | ||||
| - содержит в себе Entities | ||||
| - содержит дополнительные поля связанные с другими таблицами через foreign key | ||||
| - не добавлять и не изменять тут ничего<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel> | ||||
|           <y:StyleProperties> | ||||
|             <y:Property class="java.lang.Boolean" name="y.view.ShadowNodePainter.SHADOW_PAINTING" value="true"/> | ||||
|           </y:StyleProperties> | ||||
|         </y:GenericNode> | ||||
|       </data> | ||||
|     </node> | ||||
|     <node id="n3"> | ||||
|       <data key="d5"/> | ||||
|       <data key="d6"> | ||||
|         <y:GenericNode configuration="com.yworks.entityRelationship.small_entity"> | ||||
|           <y:Geometry height="73.0" width="580.0" x="303.0" y="452.0"/> | ||||
|           <y:Fill color="#E8EEF7" color2="#B7C9E3" transparent="false"/> | ||||
|           <y:BorderStyle color="#000000" type="line" width="1.0"/> | ||||
|           <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="31.9375" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="394.919921875" x="92.5400390625" xml:space="preserve" y="20.53125">Если надо добавить дополнительные поля в эти структуры, | ||||
| то надо делать новую отдельную структуру, в другой папке.<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel> | ||||
|           <y:StyleProperties> | ||||
|             <y:Property class="java.lang.Boolean" name="y.view.ShadowNodePainter.SHADOW_PAINTING" value="true"/> | ||||
|           </y:StyleProperties> | ||||
|         </y:GenericNode> | ||||
|       </data> | ||||
|     </node> | ||||
|     <node id="n4"> | ||||
|       <data key="d5"/> | ||||
|       <data key="d6"> | ||||
|         <y:ShapeNode> | ||||
|           <y:Geometry height="30.0" width="30.0" x="488.0" y="19.0"/> | ||||
|           <y:Fill hasColor="false" transparent="false"/> | ||||
|           <y:BorderStyle hasColor="false" raised="false" type="line" width="1.0"/> | ||||
|           <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="20" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="27.28125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="544.0390625" x="-61.01953125" xml:space="preserve" y="4.0">Схема имеющихся структур в сервисе sync_service<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.4530355097365406" nodeRatioX="6.533333333333333" nodeRatioY="0.5" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel> | ||||
|           <y:Shape type="rectangle"/> | ||||
|         </y:ShapeNode> | ||||
|       </data> | ||||
|     </node> | ||||
|     <edge id="e0" source="n0" target="n1"> | ||||
|       <data key="d9"/> | ||||
|       <data key="d10"> | ||||
|         <y:PolyLineEdge> | ||||
|           <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> | ||||
|           <y:LineStyle color="#000000" type="line" width="1.0"/> | ||||
|           <y:Arrows source="none" target="standard"/> | ||||
|           <y:BendStyle smoothed="false"/> | ||||
|         </y:PolyLineEdge> | ||||
|       </data> | ||||
|     </edge> | ||||
|     <edge id="e1" source="n1" target="n2"> | ||||
|       <data key="d9"/> | ||||
|       <data key="d10"> | ||||
|         <y:PolyLineEdge> | ||||
|           <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> | ||||
|           <y:LineStyle color="#000000" type="line" width="1.0"/> | ||||
|           <y:Arrows source="none" target="standard"/> | ||||
|           <y:BendStyle smoothed="false"/> | ||||
|         </y:PolyLineEdge> | ||||
|       </data> | ||||
|     </edge> | ||||
|     <edge id="e2" source="n1" target="n3"> | ||||
|       <data key="d9"/> | ||||
|       <data key="d10"> | ||||
|         <y:PolyLineEdge> | ||||
|           <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> | ||||
|           <y:LineStyle color="#000000" type="line" width="1.0"/> | ||||
|           <y:Arrows source="none" target="standard"/> | ||||
|           <y:BendStyle smoothed="false"/> | ||||
|         </y:PolyLineEdge> | ||||
|       </data> | ||||
|     </edge> | ||||
|     <edge id="e3" source="n2" target="n3"> | ||||
|       <data key="d9"/> | ||||
|       <data key="d10"> | ||||
|         <y:PolyLineEdge> | ||||
|           <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> | ||||
|           <y:LineStyle color="#000000" type="line" width="1.0"/> | ||||
|           <y:Arrows source="none" target="standard"/> | ||||
|           <y:BendStyle smoothed="false"/> | ||||
|         </y:PolyLineEdge> | ||||
|       </data> | ||||
|     </edge> | ||||
|   </graph> | ||||
|   <data key="d7"> | ||||
|     <y:Resources/> | ||||
|   </data> | ||||
| </graphml> | ||||
							
								
								
									
										
											BIN
										
									
								
								docs/Структуры.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/Структуры.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 48 KiB | 
		Reference in New Issue
	
	Block a user