新增
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>新增</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/system/swapPackage</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<pre><code>/** 运营商 */
@Excel(name = &quot;运营商&quot;)
private String operator;
/** 代理商 */
@Excel(name = &quot;代理商&quot;)
private String agent;
/** 是否通用套餐 1否 2是 */
@Excel(name = &quot;是否通用套餐 1否 2是&quot;)
private String generalFlag;
/** 套餐名称 */
@Excel(name = &quot;套餐名称&quot;)
private String packageName;
/** 套餐价格 */
@Excel(name = &quot;套餐价格&quot;)
private BigDecimal price;
/** 套餐类型 1限时套餐 2限次套餐 */
@Excel(name = &quot;套餐类型 1限时套餐 2限次套餐&quot;)
private String packageType;
/** 上下架状态 1默认上架 2默认下架 */
@Excel(name = &quot;上下架状态 1默认上架 2默认下架&quot;)
private String state;
/** 套餐数量(天或次) */
@Excel(name = &quot;套餐数量(天或次)&quot;)
private Long number;
/** 次卡有效天数 */
@Excel(name = &quot;次卡有效天数&quot;)
private Long effectiveDays;
/** 生效开始时间 */
@JsonFormat(pattern = &quot;yyyy-MM-dd HH:mm:ss&quot;)
@Excel(name = &quot;生效开始时间&quot;, width = 30, dateFormat = &quot;yyyy-MM-dd HH:mm:ss&quot;)
private Date effectiveTimeFrom;
/** 生效结束时间 */
@JsonFormat(pattern = &quot;yyyy-MM-dd HH:mm:ss&quot;)
@Excel(name = &quot;生效结束时间&quot;, width = 30, dateFormat = &quot;yyyy-MM-dd HH:mm:ss&quot;)
private Date effectiveTimeTo;
/** 是否永久有效 1否 2是 */
@Excel(name = &quot;是否永久有效 1否 2是&quot;)
private String foreverFlag;
</code></pre>
<h5>请求示例</h5>
<pre><code>{
&quot;operatorId&quot;: 1,
&quot;agentId&quot;:1,
&quot;operator&quot;: &quot;运营商1&quot;,
&quot;agent&quot;:&quot;代理商1&quot;,
&quot;generalFlag&quot;:&quot;1&quot;,
&quot;packageName&quot;: &quot;套餐111&quot;,
&quot;price&quot;: 23.67,
&quot;packageType&quot;:&quot;1&quot;,
&quot;state&quot;:&quot;1&quot;,
&quot;number&quot;:50,
&quot;effectiveDays&quot;:23,
&quot;effectiveTimeFrom&quot;:&quot;2025-03-15 00:00:00&quot;,
&quot;effectiveTimeTo&quot;:&quot;2025-03-15 00:00:00&quot;,
&quot;foreverFlag&quot;:&quot;1&quot;,
&quot;remark&quot;:&quot;34444&quot;
}</code></pre>
<h5>返回示例</h5>
<pre><code>{
&quot;msg&quot;: &quot;操作成功&quot;,
&quot;code&quot;: 200
}</code></pre>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>