Files
36Wisdom/biz/service/chapter_review.go
T
2026-08-14 13:34:21 +08:00

24 lines
471 B
Go

package service
import (
"context"
"github.com/gogf/gf/v2/frame/g"
"36wisdom/biz/dao"
)
type chapterReview struct{}
var ChapterReview = &chapterReview{}
// Insert 创建温故记录。
func (s *chapterReview) Insert(ctx context.Context, childId, strategyId int64, levelIds string) (int64, error) {
return dao.ChapterReview.InsertAndReturnId(ctx, g.Map{
"child_id": childId,
"strategy_id": strategyId,
"level_ids": levelIds,
"status": 1,
})
}