You've already forked FrameTour-BE
48 lines
1.6 KiB
Java
48 lines
1.6 KiB
Java
package com.ycwl.basic.mapper;
|
|
|
|
import com.ycwl.basic.model.pc.task.entity.TaskEntity;
|
|
import com.ycwl.basic.model.pc.video.entity.MemberVideoEntity;
|
|
import com.ycwl.basic.model.pc.video.entity.VideoEntity;
|
|
import com.ycwl.basic.model.pc.video.req.VideoReqQuery;
|
|
import com.ycwl.basic.model.pc.video.resp.VideoRespVO;
|
|
import lombok.NonNull;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @Author:longbinbin
|
|
* @Date:2024/12/2 15:27
|
|
* 成片
|
|
*/
|
|
@Mapper
|
|
public interface VideoMapper {
|
|
List<VideoRespVO> list(VideoReqQuery videoReqQuery);
|
|
VideoRespVO getById(Long id);
|
|
int add(VideoEntity task);
|
|
int deleteById(Long id);
|
|
int update(VideoEntity task);
|
|
|
|
VideoEntity findByTaskId(@NonNull Long taskId);
|
|
|
|
|
|
int addRelation(MemberVideoEntity source);
|
|
int addRelations(List<MemberVideoEntity> list);
|
|
int updateRelation(MemberVideoEntity memberVideoEntity);
|
|
|
|
List<VideoRespVO> queryByRelation(VideoReqQuery videoReqQuery);
|
|
|
|
List<MemberVideoEntity> userFaceTemplateVideo(Long userId, Long faceId, Long templateId);
|
|
|
|
MemberVideoEntity queryRelationByMemberTask(Long userId, Long taskId);
|
|
List<MemberVideoEntity> listRelationByTask(Long taskId);
|
|
List<MemberVideoEntity> listRelationByFace(Long userId, Long faceId);
|
|
List<MemberVideoEntity> listRelationByFaceAndTemplate(Long userId, Long faceId, Long templateId);
|
|
|
|
List<TaskEntity> listTaskByScenicRelation(Long userId, Long scenicId);
|
|
|
|
MemberVideoEntity queryUserVideo(Long userId, Long videoId);
|
|
|
|
int updateRelationWhenTaskSuccess(Long taskId, Long videoId, int isBuy);
|
|
}
|