Browse Source

fix:更改字段

Roc 2 years ago
parent
commit
338aa7b9d1

+ 3 - 2
controllers/message.go

@@ -287,7 +287,7 @@ func getQuestionMessage(companyApprovalMessageList []*company_approval_message.C
 	for _, v := range questionList {
 		approvalInfo := company_approval_message.ApprovalInfo{
 			ApplyName: v.RealName,
-			Type:      v.QuestionContent,
+			Title:     v.QuestionContent,
 			ApplyTime: v.CreateTime,
 			//ApprovalTime: time.Time{},
 		}
@@ -321,8 +321,9 @@ func getQuestionCommentMessage(companyApprovalMessageList []*company_approval_me
 	for _, v := range questionCommentList {
 		approvalInfo := company_approval_message.ApprovalInfo{
 			ApplyName: v.RealName,
-			Type:      v.Content,
+			Title:     v.Content,
 			ApplyTime: v.CreateTime,
+			Content:   `善斌lj`,
 			//ApprovalTime: time.Time{},
 		}
 		approvalInfoMap[int(v.CommunityQuestionCommentId)] = approvalInfo

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

@@ -60,6 +60,8 @@ type CompanyApprovalMessageList struct {
 type ApprovalInfo struct {
 	ApplyName    string    `description:"申请人姓名"`
 	Type         string    `description:"类型"`
+	Title        string    `description:"主题内容"`
+	Content      string    `description:"主体内容"`
 	CompanyName  string    `description:"客户信息"`
 	ApplyTime    time.Time `description:"提交时间"`
 	ApprovalTime time.Time `description:"审批时间"`