新增用户发票抬头
<h5>简要描述</h5>
<ul>
<li>新增用户发票抬头</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{domian}}/shop/userInvoiceHeader</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>http请求header</h5>
<ul>
<li>Content-Type:application/json</li>
<li>charset:utf-8 `</li>
<li><strong>Authorization : Bearer {{access_token}}</strong></li>
</ul>
<h5>请求参数</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>说明</th>
<th>必选</th>
<th>类型</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>headerType</td>
<td>抬头类型 person:个人, enterprise:企业</td>
<td>是</td>
<td>String</td>
<td>enterprise</td>
</tr>
<tr>
<td>headerName</td>
<td>抬头</td>
<td>是</td>
<td>String</td>
<td>南京盘盈信息科技有限公司</td>
</tr>
<tr>
<td>taxNo</td>
<td>税号,企业必填</td>
<td>否</td>
<td>String</td>
<td>91310104084123648T</td>
</tr>
<tr>
<td>defaultInvoice</td>
<td>是否默认发票抬头(0:否 1:是)</td>
<td>否</td>
<td>Integer</td>
<td>1</td>
</tr>
<tr>
<td>...</td>
<td></td>
<td></td>
<td></td>
<td>参考实体类</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<pre><code> {</code></pre>
<p> "headerType": "enterprise",
"headerName": "南京盘盈信息科技有限公司",
"taxNo": "91310104084123648T",
"defaultInvoice": 1
}</p>
<h5>返回示例</h5>
<pre><code> 成功:
{</code></pre>
<p> "code": 0,
"msg": null,
"data": {
"id": 2,
"projectId": 2,
"userId": 4,
"headerType": "enterprise",
"headerName": "南京盘盈信息科技有限公司",
"taxNo": null,
"bankName": null,
"bankNo": null,
"address": null,
"phone": null,
"createTime": "2023-08-30 16:40:11",
"updateTime": "2023-08-30 16:40:11",
"defaultInvoice": 1
}
}</p>
<pre><code> 失败:
{
&quot;code&quot;: 401,
&quot;msg&quot;: &quot;error&quot;,
&quot;data&quot;: &quot;Full authentication is required to access this resource&quot;
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>int</td>
<td>返回状态码</td>
<td>0:成功 401:鉴权失败</td>
</tr>
<tr>
<td>msg</td>
<td>String</td>
<td>状态描述</td>
<td></td>
</tr>
<tr>
<td>data</td>
<td>String</td>
<td>返回数据</td>
<td></td>
</tr>
<tr>
<td>- id</td>
<td>int</td>
<td>id</td>
<td>1</td>
</tr>
<tr>
<td>- headerType</td>
<td>String</td>
<td>抬头</td>
<td></td>
</tr>
<tr>
<td>- taxNo</td>
<td>String</td>
<td>税号</td>
<td></td>
</tr>
<tr>
<td>- defaultInvoice</td>
<td>int</td>
<td>是否默认发票抬头(0:否 1:是)</td>
<td>1</td>
</tr>
<tr>
<td>- ...</td>
<td></td>
<td></td>
<td>参考实体类</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<p><strong>用户发票抬头实体类:</strong></p>
<pre><code>public class UserInvoiceHeader extends Model&lt;UserInvoiceHeader&gt; {
private static final long serialVersionUID = 1L;
/**
* 用户id
*/
@TableId
@ApiModelProperty(value=&quot;用户id&quot;)
private Integer id;
/**
* 项目id
*/
@ApiModelProperty(value=&quot;项目id&quot;)
private Integer projectId;
/**
* 用户id
*/
@ApiModelProperty(value=&quot;用户id&quot;)
private Integer userId;
/**
* 抬头类型 person:个人, enterprise:企业
*/
@ApiModelProperty(value=&quot;抬头类型 person:个人, enterprise:企业&quot;)
private String headerType;
/**
* 抬头
*/
@ApiModelProperty(value=&quot;抬头&quot;)
private String headerName;
/**
* 税号
*/
@ApiModelProperty(value=&quot;税号&quot;)
private String taxNo;
/**
* 开户银行
*/
@ApiModelProperty(value=&quot;开户银行&quot;)
private String bankName;
/**
* 银行账号
*/
@ApiModelProperty(value=&quot;银行账号&quot;)
private String bankNo;
/**
* 企业地址
*/
@ApiModelProperty(value=&quot;企业地址&quot;)
private String address;
/**
* 企业电话
*/
@ApiModelProperty(value=&quot;企业电话&quot;)
private String phone;
/**
* 邮箱
*/
@ApiModelProperty(value=&quot;邮箱&quot;)
private String mail;
/**
* 创建时间
*/
@ApiModelProperty(value=&quot;创建时间&quot;)
private LocalDateTime createTime;
/**
* 更新时间
*/
@ApiModelProperty(value=&quot;更新时间&quot;)
private LocalDateTime updateTime;
/**
* 是否默认发票抬头
*/
@ApiModelProperty(value=&quot;是否默认发票抬头&quot;)
private Integer defaultInvoice;
}</code></pre>