配餐软件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

192 lines
4.6 KiB

2 years ago
<h1>�����</h1>
<h1>1. �����˺��ظ���</h1>
<blockquote>
<p>GET /api/vender/check/account?account=xxx</p>
</blockquote>
<h3>����:</h3>
<pre><code>{
&quot;body&quot;: false, // trueδ��ռ��,����
&quot;code&quot;: 200,
&quot;desc&quot;: &quot;�ɹ�&quot;,
&quot;success&quot;: true
}
</code></pre>
<h1>2. ���鵥λ�����ظ���</h1>
<blockquote>
<p>GET /api/vender/check/name?name=xxx</p>
</blockquote>
<h3>����:</h3>
<pre><code>{
&quot;body&quot;: false, // trueδ��ռ��,����
&quot;code&quot;: 200,
&quot;desc&quot;: &quot;�ɹ�&quot;,
&quot;success&quot;: true
}
</code></pre>
<h1>3. ��ѯ��λ����</h1>
<blockquote>
<p>GET /api/vender/config</p>
</blockquote>
<h3>����:</h3>
<pre><code>{
&quot;body&quot;: {
&quot;breakfast&quot;: 10.00,
&quot;dinner&quot;: 10.00,
&quot;lunch&quot;: 10.00
},
&quot;code&quot;: 200,
&quot;desc&quot;: &quot;�ɹ�&quot;,
&quot;success&quot;: true
}
</code></pre>
<h1>4. �޸ĵ�λ����</h1>
<blockquote>
<p>POST /api/vender/config</p>
</blockquote>
<h3>����:</h3>
<pre><code>Content-Type:application/x-www-form-urlencoded
vender=1 // ����
breakfast=10.00 // ����
dinner=10 // ����
lunch=10 // ����
</code></pre>
<h3>����:</h3>
<pre><code>{
&quot;code&quot;: 200,
&quot;desc&quot;: &quot;�ɹ�&quot;,
&quot;success&quot;: true
}
</code></pre>
<h1>5. ������ҵ</h1>
<blockquote>
<p>PUT /api/vender</p>
<p>�����˽ӿ�</p>
</blockquote>
<h3>����:</h3>
<pre><code>Content-Type:application/x-www-form-urlencoded
account=ccc // ����, ��ʼ����Ա�˺�, �����ظ�
password=BE56E057F20F883E // ����, MD5���ܺ���дȡ��16λ��ʾ��ԭ����Ϊ123456
name=�� // ����, �����
category=ѧУ // ����, ��λ����
expire=2019-10-10 // ����, ����ʱ��
icon=23423 //��λlogo, ǰ�˿��õ�base64�ַ���
address=
contacts=
phone=
email=
</code></pre>
<h3>����:</h3>
<pre><code>{
&quot;code&quot;: 200,
&quot;desc&quot;: &quot;�ɹ�&quot;,
&quot;success&quot;: true
}
</code></pre>
<h1>6. ɾ����ҵ</h1>
<blockquote>
<p>DELETE /api/vender</p>
<p>�����˽ӿ�</p>
</blockquote>
<h3>����:</h3>
<pre><code>Content-Type:application/x-www-form-urlencoded
vender=1 // ����
</code></pre>
<h3>����:</h3>
<pre><code>{
&quot;code&quot;: 200,
&quot;desc&quot;: &quot;�ɹ�&quot;,
&quot;success&quot;: true
}
</code></pre>
<h1>7. �޸���ҵ</h1>
<blockquote>
<p>POST /api/vender</p>
<p>���ѺͿ��ؽ������ˣ����������˻���ҵ�������˺Ų���</p>
</blockquote>
<h3>����:</h3>
<pre><code>Content-Type:application/x-www-form-urlencoded
venderId=1 // ����
expire=2019-10-10 // �������˿��ԸĹ���ʱ��
status=false // �������˿��Ը�״̬, false-�رգ�true-����
category=ѧУ // ��λ����
account=ccc // �İ󶨵����˻�, ���Զ�Ϊ���˻�������ԱȨ��, �����ظ�
name=�� // �ĵ�λ����
2 years ago
icon=23423 //��λlogo, �ȵ����ϴ��ӿ��ϴ����õ��ļ���
2 years ago
address=
contacts=
phone=
email=
</code></pre>
<h3>����:</h3>
<pre><code>{
&quot;code&quot;: 200,
&quot;desc&quot;: &quot;�ɹ�&quot;,
&quot;success&quot;: true
}
</code></pre>
<h1>8. ��ȡ��ҵ�б�</h1>
<blockquote>
<p>GET /api/vender</p>
<p>�����˽ӿ�</p>
</blockquote>
<h3>����:</h3>
<pre><code>keyword=1 // ���ݵ�λ����ģ��ƥ��
pageSize=20 // Ĭ��20, ȫ���DZ���
pageNo=0 // Ĭ��0, ��0��ʼ
</code></pre>
<h3>����:</h3>
<pre><code>{
&quot;body&quot;: {
&quot;content&quot;: [
{
&quot;account&quot;: &quot;xxx&quot;,
&quot;address&quot;: &quot;����·&quot;,
&quot;area&quot;: &quot;������&quot;,
&quot;category&quot;: &quot;Сѧ&quot;,
&quot;city&quot;: &quot;�ɶ���&quot;,
&quot;contacts&quot;: &quot;������&quot;,
&quot;expire&quot;: 1695033585000,
2 years ago
&quot;icon&quot;: &quot;1232334234.jpg&quot;,
2 years ago
&quot;id&quot;: 1,
&quot;name&quot;: &quot;�ɶ�ʵ��Сѧ&quot;,
&quot;phone&quot;: &quot;13919103408&quot;,
&quot;province&quot;: &quot;�Ĵ�ʡ&quot;,
&quot;status&quot;: true
}
],
&quot;number&quot;: 0,
&quot;size&quot;: 20,
&quot;totalElements&quot;: 1,
&quot;totalPages&quot;: 1
},
&quot;code&quot;: 200,
&quot;desc&quot;: &quot;�ɹ�&quot;,
&quot;success&quot;: true
}
</code></pre>
<h1>9. ��ȡ��ҵ�б�(��������������ѡ����ҵʹ��)</h1>
<blockquote>
<p>GET /api/vender/select</p>
<p>�����˽ӿ�</p>
</blockquote>
<h3>����:</h3>
<pre><code>keyword=1 // ���ݵ�λ����ģ��ƥ��
vendors=1,2,3 // ����ID������ȡ��λ��Ϣ
</code></pre>
<h3>����:</h3>
<pre><code>{
&quot;body&quot;: [
{
&quot;account&quot;: &quot;xxx&quot;,
&quot;category&quot;: &quot;Сѧ&quot;,
&quot;id&quot;: 1,
&quot;name&quot;: &quot;�ɶ�ʵ��Сѧ&quot;
}
],
&quot;code&quot;: 200,
&quot;desc&quot;: &quot;�ɹ�&quot;,
&quot;success&quot;: true
}
</code></pre>