2026-04-17 16:28:31 +08:00
|
|
|
|
package data
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"erp/consts/data"
|
|
|
|
|
|
entity "erp/model/entity/data"
|
|
|
|
|
|
|
2026-06-10 15:59:11 +08:00
|
|
|
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
2026-04-17 16:28:31 +08:00
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// CreateLiveAccountReq 创建直播账号请求
|
|
|
|
|
|
type CreateLiveAccountReq struct {
|
|
|
|
|
|
g.Meta `path:"/createLiveAccount" method:"post" tags:"直播账号管理" summary:"创建直播账号" dc:"创建新的直播账号"`
|
|
|
|
|
|
Platform string `json:"platform" v:"required" dc:"直播平台(抖音/快手/淘宝等)"`
|
|
|
|
|
|
AccountName string `json:"accountName" v:"required" dc:"账号名称"`
|
|
|
|
|
|
AccountId string `json:"accountId" v:"required" dc:"账号ID"`
|
|
|
|
|
|
Status int `json:"status" d:"1" dc:"状态(0停用 1正常)"`
|
|
|
|
|
|
Remark string `json:"remark" dc:"备注"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// CreateLiveAccountRes 创建直播账号响应
|
|
|
|
|
|
type CreateLiveAccountRes struct {
|
2026-04-21 13:31:10 +08:00
|
|
|
|
Id int64 `json:"id,string" dc:"账号ID"`
|
2026-04-17 16:28:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ListLiveAccountReq 获取直播账号列表请求
|
|
|
|
|
|
type ListLiveAccountReq struct {
|
|
|
|
|
|
g.Meta `path:"/listLiveAccounts" method:"get" tags:"直播账号管理" summary:"获取直播账号列表" dc:"分页查询直播账号列表"`
|
|
|
|
|
|
*beans.Page
|
2026-04-21 13:31:10 +08:00
|
|
|
|
Id int64 `json:"id,string" dc:"账号ID"`
|
2026-04-17 16:28:31 +08:00
|
|
|
|
Platform string `json:"platform" dc:"直播平台"`
|
|
|
|
|
|
AccountName string `json:"accountName" dc:"账号名称"`
|
|
|
|
|
|
AccountId string `json:"accountId" dc:"账号ID"`
|
|
|
|
|
|
Status *int `json:"status" dc:"状态(0停用 1正常)"`
|
|
|
|
|
|
Keyword string `json:"keyword" dc:"关键字(搜索平台/账号名称/账号ID)"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ListLiveAccountRes 获取直播账号列表响应
|
|
|
|
|
|
type ListLiveAccountRes struct {
|
|
|
|
|
|
List []LiveAccountItem `json:"list" dc:"直播账号列表"`
|
|
|
|
|
|
Total int `json:"total" dc:"总数"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// LiveAccountItem 直播账号列表项
|
|
|
|
|
|
type LiveAccountItem struct {
|
|
|
|
|
|
Id int64 `json:"id,string"`
|
|
|
|
|
|
Platform string `json:"platform"`
|
|
|
|
|
|
AccountName string `json:"accountName"`
|
|
|
|
|
|
AccountId string `json:"accountId"`
|
|
|
|
|
|
Status int `json:"status"`
|
|
|
|
|
|
StatusName string `json:"statusName"`
|
|
|
|
|
|
Remark string `json:"remark"`
|
|
|
|
|
|
CreatedAt int64 `json:"createdAt"`
|
|
|
|
|
|
UpdatedAt int64 `json:"updatedAt"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// GetLiveAccountReq 获取直播账号详情请求
|
|
|
|
|
|
type GetLiveAccountReq struct {
|
|
|
|
|
|
g.Meta `path:"/getLiveAccount" method:"get" tags:"直播账号管理" summary:"获取直播账号详情" dc:"获取直播账号详情"`
|
2026-04-21 13:31:10 +08:00
|
|
|
|
Id int64 `json:"id,string" v:"required" dc:"账号ID"`
|
2026-04-17 16:28:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// GetLiveAccountRes 获取直播账号详情响应
|
|
|
|
|
|
type GetLiveAccountRes struct {
|
|
|
|
|
|
*entity.LiveAccount
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// UpdateLiveAccountReq 更新直播账号请求
|
|
|
|
|
|
type UpdateLiveAccountReq struct {
|
|
|
|
|
|
g.Meta `path:"/updateLiveAccount" method:"put" tags:"直播账号管理" summary:"更新直播账号" dc:"更新直播账号信息"`
|
2026-04-21 13:31:10 +08:00
|
|
|
|
Id int64 `json:"id,string" v:"required" dc:"账号ID"`
|
2026-04-17 16:28:31 +08:00
|
|
|
|
Platform string `json:"platform" dc:"直播平台"`
|
|
|
|
|
|
AccountName string `json:"accountName" dc:"账号名称"`
|
|
|
|
|
|
AccountId string `json:"accountId" dc:"账号ID"`
|
|
|
|
|
|
Status *int `json:"status" dc:"状态(0停用 1正常)"`
|
|
|
|
|
|
Remark string `json:"remark" dc:"备注"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// DeleteLiveAccountReq 删除直播账号请求
|
|
|
|
|
|
type DeleteLiveAccountReq struct {
|
|
|
|
|
|
g.Meta `path:"/deleteLiveAccount" method:"delete" tags:"直播账号管理" summary:"删除直播账号" dc:"删除直播账号"`
|
2026-04-21 13:31:10 +08:00
|
|
|
|
Id int64 `json:"id,string" v:"required" dc:"账号ID"`
|
2026-04-17 16:28:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// UpdateLiveAccountStatusReq 更新直播账号状态请求
|
|
|
|
|
|
type UpdateLiveAccountStatusReq struct {
|
|
|
|
|
|
g.Meta `path:"/updateLiveAccountStatus" method:"put" tags:"直播账号管理" summary:"更新直播账号状态" dc:"更新直播账号状态"`
|
2026-04-21 13:31:10 +08:00
|
|
|
|
Id int64 `json:"id,string" v:"required" dc:"账号ID"`
|
2026-04-17 16:28:31 +08:00
|
|
|
|
Status data.AnchorStatus `json:"status" v:"required" dc:"状态(0停用 1正常)"`
|
|
|
|
|
|
}
|