package com.hxhq.business.service;

import java.util.List;

import com.hxhq.business.domain.Study;
import com.hxhq.business.domain.StudySubjectUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hxhq.business.form.common.SignForm;
import com.hxhq.business.form.study.StudySubjectUserSaveForm;

/**
 * 试验-学科-成员Service接口
 *
 * @author hxhq
 * @date 2025-12-29
 */
public interface IStudySubjectUserService extends IService<StudySubjectUser>
{
    /**
     * 获取试验学科下的成员列表
     * @param studySubjectId
     * @return
     */
    List<StudySubjectUser> getListByStudySubjectId(Long studySubjectId);

    /**
     * 保存成员信息
     * @param form
     */
    void saveInfo(StudySubjectUserSaveForm form);

    /**
     * 根据studySubjectId进下删除
     * @param study
     * @param studySubjectId
     * @param sign
     */
    void deleteByStudySubjectId(Study study, Long studySubjectId, SignForm sign);

}
