排班管理、主播管理、直播账号管理
This commit is contained in:
89
model/dto/data/live_account_dto.go
Normal file
89
model/dto/data/live_account_dto.go
Normal file
@@ -0,0 +1,89 @@
|
||||
package data
|
||||
|
||||
import (
|
||||
"erp/consts/data"
|
||||
entity "erp/model/entity/data"
|
||||
|
||||
"gitea.com/red-future/common/beans"
|
||||
"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 {
|
||||
Id int64 `json:"id" dc:"账号ID"`
|
||||
}
|
||||
|
||||
// ListLiveAccountReq 获取直播账号列表请求
|
||||
type ListLiveAccountReq struct {
|
||||
g.Meta `path:"/listLiveAccounts" method:"get" tags:"直播账号管理" summary:"获取直播账号列表" dc:"分页查询直播账号列表"`
|
||||
*beans.Page
|
||||
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:"获取直播账号详情"`
|
||||
Id int64 `json:"id" v:"required" dc:"账号ID"`
|
||||
}
|
||||
|
||||
// GetLiveAccountRes 获取直播账号详情响应
|
||||
type GetLiveAccountRes struct {
|
||||
*entity.LiveAccount
|
||||
}
|
||||
|
||||
// UpdateLiveAccountReq 更新直播账号请求
|
||||
type UpdateLiveAccountReq struct {
|
||||
g.Meta `path:"/updateLiveAccount" method:"put" tags:"直播账号管理" summary:"更新直播账号" dc:"更新直播账号信息"`
|
||||
Id int64 `json:"id" v:"required" dc:"账号ID"`
|
||||
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:"删除直播账号"`
|
||||
Id int64 `json:"id" 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"`
|
||||
Status data.AnchorStatus `json:"status" v:"required" dc:"状态(0停用 1正常)"`
|
||||
}
|
||||
Reference in New Issue
Block a user