package com.qqchen.deploy.backend.workflow.service;

import com.qqchen.deploy.backend.framework.service.IBaseService;
import com.qqchen.deploy.backend.workflow.dto.FormDataDTO;
import com.qqchen.deploy.backend.workflow.dto.query.FormDataQuery;
import com.qqchen.deploy.backend.workflow.entity.FormData;

/**
 * 表单数据服务接口
 *
 * @author qqchen
 * @date 2025-10-24
 */
public interface IFormDataService extends IBaseService<FormData, FormDataDTO, FormDataQuery, Long> {

    /**
     * 提交表单数据
     *
     * @param dto 表单数据DTO
     * @return 提交后的表单数据
     */
    FormDataDTO submit(FormDataDTO dto);

    /**
     * 根据业务标识查询表单数据
     *
     * @param businessKey 业务标识
     * @return 表单数据
     */
    FormDataDTO getByBusinessKey(String businessKey);
}

