无关风月
2024-09-14 3f481005be717250a2ea87ff9367aa84d6a3eb13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.xinquan.user.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinquan.system.api.domain.AppUserViewingHistory;
 
import java.util.List;
 
/**
 * <p>
 * 用户观看历史 服务类
 * </p>
 *
 * @author mitao
 * @since 2024-09-06
 */
public interface AppUserViewingHistoryService extends IService<AppUserViewingHistory> {
 
    /**
     * 记录用户观看记录
     *
     * @param bizId       业务id
     * @param viewingType 观看类型 1=疗愈 2=课程
     */
    void saveViewingRecord(Long bizId, Integer viewingType);
 
    List<AppUserViewingHistory> cumulative(Long userId);
 
    int today(Long userId);
 
}