refactor: 简化api层相关调用

This commit is contained in:
meilin.huang
2024-02-25 12:46:18 +08:00
parent b56b0187cf
commit bf75483a3c
32 changed files with 212 additions and 201 deletions

View File

@@ -16,7 +16,7 @@ func (m *Msg) GetMsgs(rc *req.Ctx) {
condition := &entity.Msg{
RecipientId: int64(rc.GetLoginAccount().Id),
}
res, err := m.MsgApp.GetPageList(condition, rc.F.GetPageParam(), new([]entity.Msg))
res, err := m.MsgApp.GetPageList(condition, rc.GetPageParam(), new([]entity.Msg))
biz.ErrIsNil(err)
rc.ResData = res
}