Sfoglia il codice sorgente

fix:新增删除问答、问答评论后的消息处理

Roc 2 anni fa
parent
commit
e96318eb65

+ 0 - 11
models/tables/company_approval_message/company_approval_message.go

@@ -127,17 +127,6 @@ type CompanyApprovalMessageReadReq struct {
 	Id int `description:"消息id"`
 }
 
-// MessageInfo 消息主要内容
-type MessageInfo struct {
-	CompanyName          string `json:"company_name"`
-	ProductId            int    `json:"product_id"`
-	CompanyProductStatus string `json:"company_product_status"`
-	Title                string `json:"title"`
-	Content              string `json:"content"`
-	UserId               uint64 `json:"user_id"`
-	UserName             string `json:"user_name"`
-}
-
 //变更为消息已读状态
 func ModifyCompanyApprovalMessageStatus(companyApprovalMessageId int) (err error) {
 	o := orm.NewOrm()

+ 1 - 0
services/yb/community_question_comment.go

@@ -98,6 +98,7 @@ func SoftDeleteQuestionComment(questionCommentId int) (err error, errMsg string)
 	err = questionCommentInfo.Update([]string{"Enabled", "ModifyTime"})
 	if err != nil {
 		errMsg = "删除提问失败"
+		return
 	}
 
 	// 删除评论后的逻辑处理