85 lines
7.6 KiB
Plaintext
85 lines
7.6 KiB
Plaintext
<mxfile host="65bd71144e">
|
|
<diagram id="EsWSgBRg6HmPYJxvZoKw" name="第 1 页">
|
|
<mxGraphModel dx="812" dy="419" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
|
<root>
|
|
<mxCell id="0"/>
|
|
<mxCell id="1" parent="0"/>
|
|
<mxCell id="2" value="*gin.Engine<div>Server</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="120" y="140" width="210" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="3" value="Gin" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
|
<mxGeometry x="40" y="90" width="60" height="30" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="4" value="GoRestful" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
|
<mxGeometry x="650" y="100" width="60" height="30" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="5" value="<div><font color="#000000">restful.DefaultContainer</font></div><div>Server</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="414" y="140" width="210" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="6" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="120" y="230" width="210" height="100" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="7" value="Group" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
|
<mxGeometry x="50" y="230" width="60" height="30" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="8" value="group<div>/books</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="140" y="250" width="80" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="9" value="group<div>/comments</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="240" y="250" width="80" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="10" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="414" y="230" width="210" height="100" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="11" value="WebService" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
|
<mxGeometry x="650" y="230" width="60" height="30" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="12" value="ws<div>/books</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="440" y="250" width="80" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="13" value="ws<div>/comments</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="530" y="250" width="80" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="14" value="restful.DefaultContainer.Add(u.WebService())" style="text;whiteSpace=wrap;" vertex="1" parent="1">
|
|
<mxGeometry x="557" y="50" width="270" height="40" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="15" value="root.Group("")" style="text;whiteSpace=wrap;" vertex="1" parent="1">
|
|
<mxGeometry x="100" y="50" width="270" height="40" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="16" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="120" y="360" width="210" height="100" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="17" value="Route" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
|
<mxGeometry x="50" y="360" width="60" height="30" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="18" value="route<div>get('/')</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="150" y="380" width="70" height="40" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="19" value="route<div>get('/')</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="245" y="380" width="70" height="40" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="20" value="" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="414" y="360" width="210" height="100" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="21" value="Route" style="text;html=1;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
|
<mxGeometry x="660" y="360" width="60" height="30" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="22" value="ws.GET("/").To(u.findAllUsers)" style="text;whiteSpace=wrap;" vertex="1" parent="1">
|
|
<mxGeometry x="627" y="330" width="200" height="40" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="23" value="route<div>ws.GET('/')</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="430" y="380" width="70" height="40" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="24" value="route<div>ws.POST('/')</div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="540" y="380" width="70" height="40" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="25" value="findAllUsers(request *restful.Request, response *restful.Response)" style="text;whiteSpace=wrap;" vertex="1" parent="1">
|
|
<mxGeometry x="400" y="20" width="390" height="40" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="26" value="<div style="color: #f8f8f2;background-color: #272822;font-family: 'Cascadia Code NF', Menlo, Monaco, 'Courier New', monospace, Menlo, Monaco, 'Courier New', monospace;font-weight: normal;font-size: 12px;line-height: 18px;white-space: pre;"><div><span style="color: #a6e22e;">queryBook</span><span style="color: #f8f8f2;">(</span><span style="color: #fd971f;font-style: italic;">ctx</span><span style="color: #f8f8f2;"> </span><span style="color: #f92672;">*</span><span style="color: #a6e22e;text-decoration: underline;">gin</span><span style="color: #f8f8f2;">.</span><span style="color: #a6e22e;text-decoration: underline;">Context</span><span style="color: #f8f8f2;">)</span></div></div>" style="text;whiteSpace=wrap;html=1;" vertex="1" parent="1">
|
|
<mxGeometry x="100" y="20" width="220" height="40" as="geometry"/>
|
|
</mxCell>
|
|
</root>
|
|
</mxGraphModel>
|
|
</diagram>
|
|
</mxfile> |