This commit is contained in:
Leufolium 2024-10-17 10:35:39 +08:00
parent 698a90904b
commit f30f710981
1 changed files with 10 additions and 0 deletions

View File

@ -6364,7 +6364,17 @@ func (m *Mongo) DeleteNotifBcsts(ctx *gin.Context, ids []int64) error {
}
func (m *Mongo) GetNotifBcstListByVersRange(ctx *gin.Context, vers_lb int64, vers_up int64) ([]*dbstruct.NotifBcst, error) {
list := make([]*dbstruct.NotifBcst, 0)
col := m.getColNotifBcst()
query := qmgo.M{
"del_flag": 0,
}
err := col.Find(ctx, query).Sort("-ct").Skip(int64(req.Offset)).Limit(int64(req.Limit)).All(&list)
if err == qmgo.ErrNoSuchDocuments {
err = nil
return list, err
}
return list, err
}
// 瑞文智商测试表相关