接口对接
This commit is contained in:
@@ -20,13 +20,14 @@ type CreateLiveAccountReq struct {
|
||||
|
||||
// CreateLiveAccountRes 创建直播账号响应
|
||||
type CreateLiveAccountRes struct {
|
||||
Id int64 `json:"id" dc:"账号ID"`
|
||||
Id int64 `json:"id,string" dc:"账号ID"`
|
||||
}
|
||||
|
||||
// ListLiveAccountReq 获取直播账号列表请求
|
||||
type ListLiveAccountReq struct {
|
||||
g.Meta `path:"/listLiveAccounts" method:"get" tags:"直播账号管理" summary:"获取直播账号列表" dc:"分页查询直播账号列表"`
|
||||
*beans.Page
|
||||
Id int64 `json:"id,string" dc:"账号ID"`
|
||||
Platform string `json:"platform" dc:"直播平台"`
|
||||
AccountName string `json:"accountName" dc:"账号名称"`
|
||||
AccountId string `json:"accountId" dc:"账号ID"`
|
||||
@@ -56,7 +57,7 @@ type LiveAccountItem struct {
|
||||
// GetLiveAccountReq 获取直播账号详情请求
|
||||
type GetLiveAccountReq struct {
|
||||
g.Meta `path:"/getLiveAccount" method:"get" tags:"直播账号管理" summary:"获取直播账号详情" dc:"获取直播账号详情"`
|
||||
Id int64 `json:"id" v:"required" dc:"账号ID"`
|
||||
Id int64 `json:"id,string" v:"required" dc:"账号ID"`
|
||||
}
|
||||
|
||||
// GetLiveAccountRes 获取直播账号详情响应
|
||||
@@ -67,7 +68,7 @@ type GetLiveAccountRes struct {
|
||||
// UpdateLiveAccountReq 更新直播账号请求
|
||||
type UpdateLiveAccountReq struct {
|
||||
g.Meta `path:"/updateLiveAccount" method:"put" tags:"直播账号管理" summary:"更新直播账号" dc:"更新直播账号信息"`
|
||||
Id int64 `json:"id" v:"required" dc:"账号ID"`
|
||||
Id int64 `json:"id,string" v:"required" dc:"账号ID"`
|
||||
Platform string `json:"platform" dc:"直播平台"`
|
||||
AccountName string `json:"accountName" dc:"账号名称"`
|
||||
AccountId string `json:"accountId" dc:"账号ID"`
|
||||
@@ -78,12 +79,12 @@ type UpdateLiveAccountReq struct {
|
||||
// DeleteLiveAccountReq 删除直播账号请求
|
||||
type DeleteLiveAccountReq struct {
|
||||
g.Meta `path:"/deleteLiveAccount" method:"delete" tags:"直播账号管理" summary:"删除直播账号" dc:"删除直播账号"`
|
||||
Id int64 `json:"id" v:"required" dc:"账号ID"`
|
||||
Id int64 `json:"id,string" v:"required" dc:"账号ID"`
|
||||
}
|
||||
|
||||
// UpdateLiveAccountStatusReq 更新直播账号状态请求
|
||||
type UpdateLiveAccountStatusReq struct {
|
||||
g.Meta `path:"/updateLiveAccountStatus" method:"put" tags:"直播账号管理" summary:"更新直播账号状态" dc:"更新直播账号状态"`
|
||||
Id int64 `json:"id" v:"required" dc:"账号ID"`
|
||||
Id int64 `json:"id,string" v:"required" dc:"账号ID"`
|
||||
Status data.AnchorStatus `json:"status" v:"required" dc:"状态(0停用 1正常)"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user