Use Hibernate framework to operate pojo instance, bye bye SQL strings :)

This commit is contained in:
Sola
2015-12-05 01:34:13 +08:00
parent 8d9b8da42f
commit 60b4d9e23e
23 changed files with 494 additions and 334 deletions

View File

@@ -1,8 +1,8 @@
<!DOCTYPE html><html><head><title>Authorize</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'></head><body><div id='preview-contents' class='note-content'>
<div id="wmd-preview" class="preview-content"></div>
<div id="wmd-preview-section-1791" class="wmd-preview-section preview-content">
<div id="wmd-preview-section-1" class="wmd-preview-section preview-content">
</div><div id="wmd-preview-section-1806" class="wmd-preview-section preview-content">
</div><div id="wmd-preview-section-2" class="wmd-preview-section preview-content">
<h1 id="authorize">Authorize</h1>
@@ -12,35 +12,51 @@
<li><a href="#url">URL</a></li>
<li><a href="#method">Method</a></li>
<li><a href="#parameters">Parameters</a></li>
<li><a href="#response">Response</a><ul>
<li><a href="#format">Format</a></li>
<li><a href="#response-code">Response Code</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#signature">Signature</a></li>
</ul>
</div>
</div>
</div></div><div id="wmd-preview-section-1793" class="wmd-preview-section preview-content">
</div>
</div><div id="wmd-preview-section-329" class="wmd-preview-section preview-content">
<h2 id="url">URL</h2>
<p><a href="http://sola.love/ww/api/authorize" target="_blank">http://sola.love/ww/api/authorize</a></p>
<hr>
</div><div id="wmd-preview-section-1794" class="wmd-preview-section preview-content">
<p><a href="http://sola.love/ww/api/authorize" target="_blank">http://sola.love/ww/api/authorize</a></p></div><div id="wmd-preview-section-312" class="wmd-preview-section preview-content">
<h2 id="method">Method</h2>
<p>POST</p>
<hr>
</div><div id="wmd-preview-section-1795" class="wmd-preview-section preview-content">
<p>POST</p></div><div id="wmd-preview-section-304" class="wmd-preview-section preview-content">
<h2 id="parameters">Parameters</h2>
<hr>
<ul><li><code>wechat</code> Wechat ID</li>
</ul>
</ul></div><div id="wmd-preview-section-278" class="wmd-preview-section preview-content">
</div><div id="wmd-preview-section-1838" class="wmd-preview-section preview-content">
<h2 id="response">Response</h2>
<h2 id="response-code">Response Code</h2>
<hr></div><div id="wmd-preview-section-225" class="wmd-preview-section preview-content">
<h3 id="format">Format</h3>
<p>JSON</p>
</div><div id="wmd-preview-section-271" class="wmd-preview-section preview-content">
<h3 id="response-code">Response Code</h3>
<ul><li>Success <br>
<ul>
@@ -48,11 +64,12 @@
<li>Error <br>
<ul>
<li><code>-1</code> PARAMETER_REQUIRED</li>
<li><code>-9</code> AUTHORIZE_FAILED</li></ul></li>
<li><code>-9</code> AUTHORIZE_FAILED</li>
<li><code>-21</code> REQUEST_EXPIRED</li></ul></li>
</ul>
<hr></div><div id="wmd-preview-section-1797" class="wmd-preview-section preview-content">
<hr></div><div id="wmd-preview-section-371" class="wmd-preview-section preview-content">
<h1 id="signature">Signature</h1>
<p>Created by Sola on 2/15/2015</p></div><div id="wmd-preview-section-footnotes" class="preview-content"></div></div></body></html>
<p>Created by Sola on 12/3/2015</p></div><div id="wmd-preview-section-footnotes" class="preview-content"></div></div></body></html>

View File

@@ -1,24 +1,36 @@
<!DOCTYPE html><html><head><title>绑定微信请求</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'></head><body><div id='preview-contents' class='note-content'>
<!DOCTYPE html><html><head><title>绑定微信请求 V1.3</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'></head><body><div id='preview-contents' class='note-content'>
<div id="wmd-preview" class="preview-content"></div>
<div id="wmd-preview-section-5" class="wmd-preview-section preview-content">
<div id="wmd-preview-section-1" class="wmd-preview-section preview-content">
</div><div id="wmd-preview-section-27" class="wmd-preview-section preview-content">
</div><div id="wmd-preview-section-36" class="wmd-preview-section preview-content">
<h1 id="绑定微信请求">绑定微信请求</h1>
<h1 id="绑定微信请求-v13">绑定微信请求 V1.3</h1>
</div><div id="wmd-preview-section-58" class="wmd-preview-section preview-content">
<blockquote>
<p>Edition : (1.3)2015/12/04 </p>
</blockquote>
<h2 id="url">URL</h2>
</div><div id="wmd-preview-section-37" class="wmd-preview-section preview-content">
<p><a href="http://sola.love" target="_blank">http://sola.love</a></p></div><div id="wmd-preview-section-94" class="wmd-preview-section preview-content">
<h2 id="绑定">绑定</h2>
<h2 id="method">Method</h2>
<hr>
</div><div id="wmd-preview-section-38" class="wmd-preview-section preview-content">
<h3 id="url">URL</h3>
<p><a href="http://sola.love" target="_blank">http://sola.love</a></p>
</div><div id="wmd-preview-section-39" class="wmd-preview-section preview-content">
<h3 id="method">Method</h3>
<p>POST</p>
</div><div id="wmd-preview-section-633" class="wmd-preview-section preview-content">
</div><div id="wmd-preview-section-40" class="wmd-preview-section preview-content">
<h2 id="params">Params</h2>
<h3 id="params">Params</h3>
<ul><li><code>wechatid</code> <strong>string</strong> 用户微信ID</li>
<li><code>name</code> <strong>string</strong> 姓名</li>
@@ -28,11 +40,25 @@
<li><code>block</code> <strong>integer</strong> 片区代码</li>
<li><code>room</code> <strong>integer</strong> 宿舍房号 </li>
<li><code>phone</code> <strong>string</strong> 手机号码</li>
</ul></div><div id="wmd-preview-section-657" class="wmd-preview-section preview-content">
</ul>
<h2 id="more">More</h2></div><div id="wmd-preview-section-2016" class="wmd-preview-section preview-content">
</div><div id="wmd-preview-section-41" class="wmd-preview-section preview-content">
<h3 id="片区代码">片区代码</h3>
<h3 id="more">More</h3>
</div><div id="wmd-preview-section-42" class="wmd-preview-section preview-content">
<h4 id="isp代码">ISP代码</h4>
<ul><li>电信 <code>1</code></li>
<li>联通 <code>2</code></li>
<li>移动 <code>3</code></li>
<li>其他 <code>4</code></li>
</ul>
</div><div id="wmd-preview-section-43" class="wmd-preview-section preview-content">
<h4 id="片区代码">片区代码</h4>
<ul><li>岐头生活区 <br>
<ul>
@@ -71,12 +97,55 @@
<ul>
<li>20栋 <code>60</code></li>
<li>21栋 <code>61</code></li></ul></li>
</ul></div><div id="wmd-preview-section-2112" class="wmd-preview-section preview-content">
</ul>
</div><div id="wmd-preview-section-44" class="wmd-preview-section preview-content">
<h2 id="绑定结果页">绑定结果页</h2>
<hr>
</div><div id="wmd-preview-section-45" class="wmd-preview-section preview-content">
<h3 id="url-1">URL</h3>
<p><a href="http://topaz.sinaapp.com/nm/result.html" target="_blank">http://topaz.sinaapp.com/nm/result.html</a></p>
</div><div id="wmd-preview-section-46" class="wmd-preview-section preview-content">
<h3 id="method-1">Method</h3>
<p>GET</p>
</div><div id="wmd-preview-section-47" class="wmd-preview-section preview-content">
<h3 id="params-1">Params</h3>
<ul><li><code>type</code> <strong>integer</strong> 绑定结果类型</li>
<li><code>msg</code> <strong>string</strong> 绑定结果说明</li>
</ul>
</div><div id="wmd-preview-section-48" class="wmd-preview-section preview-content">
<h3 id="more-1">More</h3>
</div><div id="wmd-preview-section-49" class="wmd-preview-section preview-content">
<h4 id="结果类型">结果类型</h4>
<ul><li>失败 <code>0</code></li>
<li>成功 <code>1</code></li>
<li><del>警告 <code>-1</code></del>(<em>不推荐使用</em>)</li>
</ul>
</div><div id="wmd-preview-section-50" class="wmd-preview-section preview-content">
<h2 id="author">Author</h2>
<p>LiuYue(hangxingliu)</p></div><div id="wmd-preview-section-2175" class="wmd-preview-section preview-content">
<p>LiuYue(hangxingliu)</p>
</div><div id="wmd-preview-section-51" class="wmd-preview-section preview-content">
<h2 id="date">Date</h2>
<p>2015/11/28</p></div><div id="wmd-preview-section-footnotes" class="preview-content"></div></div></body></html>
<p>2015/12/04</p></div><div id="wmd-preview-section-footnotes" class="preview-content"></div></div></body></html>