mirror of https://gitee.com/answerdev/answer.git
update edit answer shortid
This commit is contained in:
parent
cacf5e309f
commit
0217125f6f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue