From 309726f2be47c8f289b4955b374714b700fd18c3 Mon Sep 17 00:00:00 2001 From: Ke Chen Date: Fri, 10 Nov 2023 23:23:37 +0800 Subject: [PATCH] feat: change sensitive texts --- apis/floor/schemas.go | 1 + models/floor.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apis/floor/schemas.go b/apis/floor/schemas.go index aaafd56..037f2ca 100644 --- a/apis/floor/schemas.go +++ b/apis/floor/schemas.go @@ -121,6 +121,7 @@ func (s *SensitiveFloorResponse) FromModel(floor *models.Floor) *SensitiveFloorR s.UpdatedAt = floor.UpdatedAt s.Content = floor.Content s.Modified = floor.Modified + s.IsActualSensitive = floor.IsActualSensitive s.HoleID = floor.HoleID return s } diff --git a/models/floor.go b/models/floor.go index 1b1697a..6e5d45b 100644 --- a/models/floor.go +++ b/models/floor.go @@ -172,7 +172,7 @@ func (floor *Floor) SetDefaults() { } if floor.IsSensitive == true && (floor.IsActualSensitive == nil || *floor.IsActualSensitive == true) { - floor.Content = "此内容正在审核中" + floor.Content = "该内容被猫猫吃掉了" } }