update edit answer shortid

This commit is contained in:
aichy126 2023-06-12 14:56:26 +08:00
parent cacf5e309f
commit 0217125f6f
1 changed files with 1 additions and 0 deletions

View File

@ -560,6 +560,7 @@ func (as *AnswerService) SearchFormatInfo(ctx context.Context, answers []*entity
}
for _, item := range list {
item.ID = uid.EnShortID(item.ID)
item.MemberActions = permission.GetAnswerPermission(ctx, req.UserID, item.UserID, req.CanEdit, req.CanDelete)
}
return list, nil