v2.4.2
<p>[toc]</p>
<h1>用户举报[协议调整]</h1>
<table>
<thead>
<tr>
<th style="text-align: left;">接口名</th>
<th style="text-align: left;">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">/v1/help/report</td>
<td style="text-align: left;">入参含义进行调整</td>
</tr>
</tbody>
</table>
<pre><code class="language-go">入参:
scene : 新增 "family" // 家族
scene_id : if scene == "family" then scene_id = !0
出参:
= 保持兼容不变
// 举报原因结构
type ReportReason struct {
Id int `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
Flag int `json:"flag"` // 示意如下:
// flag = 2 or 3 的 举报原因是用于语音房
// flag = 4 举报原因是用于家族
// flag = 1 or 3 用于其它
}</code></pre>
<h1>横幅管理-创建Banner [调整]</h1>
<table>
<thead>
<tr>
<th style="text-align: left;">接口名</th>
<th style="text-align: left;">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">/v1/sys/banner/create</td>
<td style="text-align: left;">入参增加字段</td>
</tr>
</tbody>
</table>
<pre><code class="language-yml">入参:
// 原有字段:
mark: string
scene: int 场景类型 参见开发文档枚举
photo_id: int
photo_lang: json_string
url: string
-------------
// 新增
rank: int // 排序值
begin_at: int64 // 投放开始时间
end_at: int64 // 投放结束时间
出参:
未调整</code></pre>
<h1>横幅管理-编辑Banner [调整]</h1>
<table>
<thead>
<tr>
<th style="text-align: left;">接口名</th>
<th style="text-align: left;">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">/v1/sys/banner/edit</td>
<td style="text-align: left;">入参增加字段</td>
</tr>
</tbody>
</table>
<pre><code>入参:
// 原有字段:
id: int64 // 主键id
mark: string
scene: int 场景类型 参见开发文档枚举
photo_id: int
photo_lang: json_string
url: string
-------------
// 新增
rank: int // 排序值
begin_at: int64 // 投放开始时间
end_at: int64 // 投放结束时间
出参:
未调整</code></pre>
<h1>动效协议结构[调整]</h1>
<pre><code>原结构:
type Video struct {
Id int64 `json:"id"`
Url string `json:"url"`
PreviewUrl string `json:"preview_url"`
Cover *Photo `json:"cover,omitempty"`
Duration int `json:"duration"`
Hash string `json:"hash,omitempty"`
}
新结构:
type Video struct {
Id int64 `json:"id"`
Url string `json:"url"`
Mp4Url string `json:"m4_url"` // ++ 在 坐骑 场景下 且 此动效为map4时 => 此字段有值, 且 url 字段为 空.
PreviewUrl string `json:"preview_url"`
Cover *Photo `json:"cover,omitempty"`
Duration int `json:"duration"`
Hash string `json:"hash,omitempty"`
}
</code></pre>
<h1>CP活动(H5)[新增]</h1>
<table>
<thead>
<tr>
<th style="text-align: left;">接口名</th>
<th style="text-align: left;">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">/v1/web/active/cpRank</td>
<td style="text-align: left;">别忘记带token</td>
</tr>
</tbody>
</table>
<pre><code class="language-go">入参: 无
出参:
{
Last []cpRankUnit `json:"last"` // 上周排行数据 top3
Curr []cpRankUnit `json:"curr"` // 本周排行数据 top10
Remains int64 `json:"remains"` // 结束剩余秒
SerCurTime int64 `json:"ser_cur_unix"` // 服务器当前时间戳
Mine *cpRankUnit `json:"mine"` // 我的(如果没数据 值为 null)
}
// cpRankUnit 子结构:
type cpRankUnit struct {
Rank int `json:"rank"`
SenderName string `json:"senderName"`
RecverName string `json:"recverName"`
SenderUrl string `json:"SenderUrl"`
RecverUrl string `json:"recverUrl"`
SenderSex int `json:"senderSex"`
RecverSex int `json:"recverSex"`
Point int `json:"point"`
}</code></pre>