81 lines
2.5 KiB
Go
81 lines
2.5 KiB
Go
package imports
|
|
|
|
import (
|
|
apiCast "fonchain-fiee/api/cast"
|
|
)
|
|
|
|
type ArtistAccount struct {
|
|
Name string `json:"name"`
|
|
Account map[apiCast.PlatformIDENUM]string `json:"account"`
|
|
}
|
|
type ArtistMedia struct {
|
|
Id string `json:"id"`
|
|
Name string `json:"name"`
|
|
Title string `json:"title"`
|
|
Img string `json:"img"`
|
|
Video string `json:"video"`
|
|
Youtube string `json:"youtube"`
|
|
Instagram string `json:"instagram"`
|
|
TikTok string `json:"tiktok"`
|
|
}
|
|
|
|
type FailedRecord struct {
|
|
Name string `json:"name"`
|
|
Msg string `json:"msg"`
|
|
}
|
|
type ArtistVideoDetail struct {
|
|
Id string `json:"id"`
|
|
ArtistName string `json:"artistName"`
|
|
Title string `json:"title"`
|
|
WorkUuid string `json:"workUuid"`
|
|
Youtube string `json:"youtube"`
|
|
Instagram string `json:"instagram"`
|
|
TikTok string `json:"tiktok"`
|
|
}
|
|
type CreateRequest struct {
|
|
Type string `json:"Type"`
|
|
DepartmentID int64 `json:"DepartmentID"`
|
|
Domain string `json:"Domain"`
|
|
MenuType int32 `json:"menuType"`
|
|
SaasPublishVideo *SaasPublishVideo `json:"SaasPublishVideo"`
|
|
}
|
|
|
|
type SaasPublishVideo struct {
|
|
Title string `json:"Title"`
|
|
Describe string `json:"Describe"`
|
|
IsYoutubeSee int32 `json:"IsYoutubeSee"`
|
|
IsTiktokScreen int32 `json:"IsTiktokScreen"`
|
|
IsTiktokComment int32 `json:"IsTiktokComment"`
|
|
IsTiktokQuote int32 `json:"IsTiktokQuote"`
|
|
IsTiktokAiGenerate int32 `json:"IsTiktokAiGenerate"`
|
|
Cover string `json:"Cover"`
|
|
PlatformIds []int32 `json:"PlatformIds"`
|
|
PublishAccounts []PublishAccount `json:"PublishAccounts"`
|
|
Videos []Video `json:"Videos"`
|
|
}
|
|
|
|
type PublishAccount struct {
|
|
AccountName string `json:"AccountName"`
|
|
AccountID string `json:"AccountID"`
|
|
}
|
|
|
|
type Video struct {
|
|
VideoAddress string `json:"VideoAddress"`
|
|
VideoThumbnail string `json:"VideoThumbnail"`
|
|
}
|
|
type APIResponse struct {
|
|
Status int `json:"status"`
|
|
Data ApprovalResponse `json:"data"`
|
|
Msg string `json:"msg"`
|
|
Code int `json:"code"`
|
|
Error interface{} `json:"error"`
|
|
Err string `json:"err"`
|
|
Keys []string `json:"keys"`
|
|
Positions interface{} `json:"positions"`
|
|
}
|
|
|
|
type ApprovalResponse struct {
|
|
ID uint64 `json:"ID"`
|
|
Success bool `json:"Success"`
|
|
}
|