发布记录

This commit is contained in:
daiyb 2026-02-26 14:41:14 +08:00
parent 1608207281
commit d526db4c31
3 changed files with 72 additions and 19 deletions

View File

@ -16928,6 +16928,8 @@ type PublishLogInfo struct {
ArtistSubNum string `protobuf:"bytes,11,opt,name=artistSubNum,proto3" json:"artistSubNum"` // 艺人订阅号
CreatedAt string `protobuf:"bytes,12,opt,name=createdAt,proto3" json:"createdAt"` // 创建时间
UpdatedAt string `protobuf:"bytes,13,opt,name=updatedAt,proto3" json:"updatedAt"` // 更新时间
WorkCategory uint32 `protobuf:"varint,14,opt,name=workCategory,proto3" json:"workCategory"`
ArtistName string `protobuf:"bytes,15,opt,name=artistName,proto3" json:"artistName"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@ -17053,6 +17055,20 @@ func (x *PublishLogInfo) GetUpdatedAt() string {
return ""
}
func (x *PublishLogInfo) GetWorkCategory() uint32 {
if x != nil {
return x.WorkCategory
}
return 0
}
func (x *PublishLogInfo) GetArtistName() string {
if x != nil {
return x.ArtistName
}
return ""
}
// 查询发布记录列表请求
type ListPublishLogReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
@ -17061,11 +17077,14 @@ type ListPublishLogReq struct {
PlatformID uint32 `protobuf:"varint,3,opt,name=platformID,proto3" json:"platformID"` // 平台ID可选0表示不过滤
PublishMediaStatus int32 `protobuf:"varint,4,opt,name=publishMediaStatus,proto3" json:"publishMediaStatus"` // 发布状态(可选,-1表示不过滤
PublishSource uint32 `protobuf:"varint,5,opt,name=publishSource,proto3" json:"publishSource"` // 发布来源可选0表示不过滤
StartTime string `protobuf:"bytes,6,opt,name=startTime,proto3" json:"startTime"` // 开始时间(可选)
EndTime string `protobuf:"bytes,7,opt,name=endTime,proto3" json:"endTime"` // 结束时间(可选)
PublishStartTime string `protobuf:"bytes,6,opt,name=publishStartTime,proto3" json:"publishStartTime"` // 开始时间(可选)
PublishEndTime string `protobuf:"bytes,7,opt,name=publishEndTime,proto3" json:"publishEndTime"` // 结束时间(可选)
Page int32 `protobuf:"varint,8,opt,name=page,proto3" json:"page"` // 页码
PageSize int32 `protobuf:"varint,9,opt,name=pageSize,proto3" json:"pageSize"` // 每页数量
ArtistSubNum string `protobuf:"bytes,10,opt,name=artistSubNum,proto3" json:"artistSubNum"` // 艺人订阅号(可选)
ArtistKeyword string `protobuf:"bytes,11,opt,name=artistKeyword,proto3" json:"artistKeyword"`
Title string `protobuf:"bytes,12,opt,name=title,proto3" json:"title"`
WorkCategory uint32 `protobuf:"varint,13,opt,name=workCategory,proto3" json:"workCategory"` // 作品类型可选0表示不过滤
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@ -17135,16 +17154,16 @@ func (x *ListPublishLogReq) GetPublishSource() uint32 {
return 0
}
func (x *ListPublishLogReq) GetStartTime() string {
func (x *ListPublishLogReq) GetPublishStartTime() string {
if x != nil {
return x.StartTime
return x.PublishStartTime
}
return ""
}
func (x *ListPublishLogReq) GetEndTime() string {
func (x *ListPublishLogReq) GetPublishEndTime() string {
if x != nil {
return x.EndTime
return x.PublishEndTime
}
return ""
}
@ -17170,6 +17189,27 @@ func (x *ListPublishLogReq) GetArtistSubNum() string {
return ""
}
func (x *ListPublishLogReq) GetArtistKeyword() string {
if x != nil {
return x.ArtistKeyword
}
return ""
}
func (x *ListPublishLogReq) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *ListPublishLogReq) GetWorkCategory() uint32 {
if x != nil {
return x.WorkCategory
}
return 0
}
// 查询发布记录列表响应
type ListPublishLogResp struct {
state protoimpl.MessageState `protogen:"open.v1"`
@ -20085,7 +20125,7 @@ const file_pb_fiee_cast_proto_rawDesc = "" +
"\x06remark\x18\x05 \x01(\tR\x06remark\x124\n" +
"\n" +
"authStatus\x18\x06 \x01(\x0e2\x14.Cast.AuthStatusENUMR\n" +
"authStatus\"\xa4\x03\n" +
"authStatus\"\xe8\x03\n" +
"\x0ePublishLogInfo\x12\x12\n" +
"\x04uuid\x18\x01 \x01(\tR\x04uuid\x12\x1a\n" +
"\bworkUuid\x18\x02 \x01(\tR\bworkUuid\x12\x14\n" +
@ -20104,7 +20144,11 @@ const file_pb_fiee_cast_proto_rawDesc = "" +
"artistUuid\x12\"\n" +
"\fartistSubNum\x18\v \x01(\tR\fartistSubNum\x12\x1c\n" +
"\tcreatedAt\x18\f \x01(\tR\tcreatedAt\x12\x1c\n" +
"\tupdatedAt\x18\r \x01(\tR\tupdatedAt\"\xd1\x02\n" +
"\tupdatedAt\x18\r \x01(\tR\tupdatedAt\x12\"\n" +
"\fworkCategory\x18\x0e \x01(\rR\fworkCategory\x12\x1e\n" +
"\n" +
"artistName\x18\x0f \x01(\tR\n" +
"artistName\"\xcd\x03\n" +
"\x11ListPublishLogReq\x12\x1a\n" +
"\bworkUuid\x18\x01 \x01(\tR\bworkUuid\x12\x1e\n" +
"\n" +
@ -20114,13 +20158,16 @@ const file_pb_fiee_cast_proto_rawDesc = "" +
"platformID\x18\x03 \x01(\rR\n" +
"platformID\x12.\n" +
"\x12publishMediaStatus\x18\x04 \x01(\x05R\x12publishMediaStatus\x12$\n" +
"\rpublishSource\x18\x05 \x01(\rR\rpublishSource\x12\x1c\n" +
"\tstartTime\x18\x06 \x01(\tR\tstartTime\x12\x18\n" +
"\aendTime\x18\a \x01(\tR\aendTime\x12\x12\n" +
"\rpublishSource\x18\x05 \x01(\rR\rpublishSource\x12*\n" +
"\x10publishStartTime\x18\x06 \x01(\tR\x10publishStartTime\x12&\n" +
"\x0epublishEndTime\x18\a \x01(\tR\x0epublishEndTime\x12\x12\n" +
"\x04page\x18\b \x01(\x05R\x04page\x12\x1a\n" +
"\bpageSize\x18\t \x01(\x05R\bpageSize\x12\"\n" +
"\fartistSubNum\x18\n" +
" \x01(\tR\fartistSubNum\"T\n" +
" \x01(\tR\fartistSubNum\x12$\n" +
"\rartistKeyword\x18\v \x01(\tR\rartistKeyword\x12\x14\n" +
"\x05title\x18\f \x01(\tR\x05title\x12\"\n" +
"\fworkCategory\x18\r \x01(\rR\fworkCategory\"T\n" +
"\x12ListPublishLogResp\x12(\n" +
"\x04data\x18\x01 \x03(\v2\x14.Cast.PublishLogInfoR\x04data\x12\x14\n" +
"\x05count\x18\x02 \x01(\x03R\x05count*T\n" +

View File

@ -25399,6 +25399,10 @@ func (m *PublishLogInfo) validate(all bool) error {
// no validation rules for UpdatedAt
// no validation rules for WorkCategory
// no validation rules for ArtistName
if len(errors) > 0 {
return PublishLogInfoMultiError(errors)
}
@ -25509,9 +25513,9 @@ func (m *ListPublishLogReq) validate(all bool) error {
// no validation rules for PublishSource
// no validation rules for StartTime
// no validation rules for PublishStartTime
// no validation rules for EndTime
// no validation rules for PublishEndTime
// no validation rules for Page
@ -25519,6 +25523,12 @@ func (m *ListPublishLogReq) validate(all bool) error {
// no validation rules for ArtistSubNum
// no validation rules for ArtistKeyword
// no validation rules for Title
// no validation rules for WorkCategory
if len(errors) > 0 {
return ListPublishLogReqMultiError(errors)
}

View File

@ -50,6 +50,7 @@ func MediaRouter(r *gin.RouterGroup) {
work.POST("import-batch", serviceCast.ImportWorkBatch)
work.POST("list-published", serviceCast.WorkListPublished)
work.POST("update-work-script", serviceCast.UpdateWorkScript)
work.POST("publish-log-list", serviceCast.PublishLogList)
}
workNoAuth := noAuth.Group("work")
@ -75,11 +76,6 @@ func MediaRouter(r *gin.RouterGroup) {
task.POST("download", serviceCast.DownloadTaskFile)
}
publishLog := auth.Group("publish-log")
{
publishLog.POST("list", serviceCast.PublishLogList)
}
layout := auth.Group("layout")
{
layout.POST("update", serviceCast.LayoutUpdate)