by Robin at 20241219
This commit is contained in:
parent
d78ed6a1ce
commit
a81ab39cf8
|
@ -3347,6 +3347,7 @@ func (s *Service) ApiUpdateZoneMoment(ctx *gin.Context, req *zonemomentproto.Api
|
|||
req.ZoneMoment.ManuallyReviewOpinion = goproto.String("") // 信息抹除
|
||||
req.ZoneMoment.ManuallyReviewOperator = goproto.Int64(0) // 信息抹除
|
||||
req.ZoneMoment.IsReedited = goproto.Int64(consts.IsReedited_Yes) // 已重新编辑
|
||||
req.ZoneMoment.ReeditTime = goproto.Int64(time.Now().Unix())
|
||||
}
|
||||
|
||||
err = _DefaultZoneMoment.OpUpdate(ctx, &zonemomentproto.OpUpdateReq{
|
||||
|
|
|
@ -653,10 +653,10 @@ func (handler *NotifBuilderHandler) handleAudZoneMomentReeditionPassed() {
|
|||
if zonemoment.GetIsReedited() != consts.IsReedited_Yes {
|
||||
return
|
||||
}
|
||||
ctStr := util.FormatTsAsNotifT(zonemoment.GetCt())
|
||||
reeditTimeStr := util.FormatTsAsNotifT(zonemoment.GetReeditTime())
|
||||
cTypeDesc := consts.ZoneMomentCTypeDescMap[zonemoment.GetCType()]
|
||||
mTypeDesc := consts.MTypeDescMap[zonemoment.GetMType()]
|
||||
DefaultService.utilWriteNotifInfo(ctx, consts.AudNotifTemp_ZoneMomentReeditionPassed, zonemoment.GetMid(), ctStr, cTypeDesc, mTypeDesc)
|
||||
DefaultService.utilWriteNotifInfo(ctx, consts.AudNotifTemp_ZoneMomentReeditionPassed, zonemoment.GetMid(), reeditTimeStr, cTypeDesc, mTypeDesc)
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -682,11 +682,11 @@ func (handler *NotifBuilderHandler) handleAudZoneMomentReeditionRejected() {
|
|||
preview.ImageIds = util.Int64Slice(coverIds)
|
||||
}
|
||||
|
||||
ctStr := util.FormatTsAsNotifT(zonemoment.GetCt())
|
||||
reeditTimeStr := util.FormatTsAsNotifT(zonemoment.GetReeditTime())
|
||||
cTypeDesc := consts.ZoneMomentCTypeDescMap[zonemoment.GetCType()]
|
||||
mTypeDesc := consts.MTypeDescMap[zonemoment.GetMType()]
|
||||
argsMap := make(map[string]any)
|
||||
argsMap["template_params"] = []any{ctStr, cTypeDesc, mTypeDesc, remarks}
|
||||
argsMap["template_params"] = []any{reeditTimeStr, cTypeDesc, mTypeDesc, remarks}
|
||||
argsMap["thumbnail"] = preview
|
||||
argsMap["build_hyperlink"] = DefaultService.utilBuildInwardHyperLink
|
||||
argsMap["hyperlink_params_map"] = util.NewHyperLinkParamsMapBuilder().NewEnds("app", "h5").WriteParamToAllEnd("id", zonemoment.GetId()).Map()
|
||||
|
|
|
@ -31,6 +31,7 @@ type ZoneMoment struct {
|
|||
ManuallyReviewOperator *int64 `json:"manually_review_operator" bson:"manually_review_operator"` // 人工复审操作人
|
||||
IsHeaded *int64 `json:"is_headed" bson:"is_headed"` // 是否已置顶
|
||||
IsReedited *int64 `json:"is_reedited" bson:"is_reedited"` // 是否已重新编辑
|
||||
ReeditTime *int64 `json:"reedit_time" bson:"reedit_time"` // 重新编辑时间
|
||||
Ct *int64 `json:"ct" bson:"ct"` // 创建时间
|
||||
Ut *int64 `json:"ut" bson:"ut"` // 更新时间
|
||||
DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记
|
||||
|
@ -146,6 +147,13 @@ func (p *ZoneMoment) GetIsReedited() int64 {
|
|||
return 0
|
||||
}
|
||||
|
||||
func (p *ZoneMoment) GetReeditTime() int64 {
|
||||
if p != nil && p.ReeditTime != nil {
|
||||
return *p.ReeditTime
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ZoneMomentStatInfo struct {
|
||||
Mid *int64 `json:"id" bson:"_id"` // mid
|
||||
Count *int64 `json:"count" bson:"count"` // count
|
||||
|
|
Loading…
Reference in New Issue