rain
2024-06-14 8d9a2d656e4ae007590c622e5f7c228adacdca49
src/main/java/com/dji/sample/manage/service/IWorkspaceService.java
@@ -1,13 +1,24 @@
package com.dji.sample.manage.service;
import com.dji.sample.common.model.PaginationData;
import com.dji.sample.common.model.ResponseResult;
import com.dji.sample.component.mqtt.model.CommonTopicReceiver;
import com.dji.sample.manage.model.dto.WorkspaceDTO;
import com.dji.sample.manage.model.entity.WorkspaceEntity;
import org.springframework.messaging.MessageHeaders;
import java.util.Optional;
public interface IWorkspaceService {
    PaginationData<WorkspaceDTO> selectWorkspace(long page, long pageSize);
    Boolean createWorkspace(WorkspaceDTO dto);
    Boolean deleteWorkspaceById(Integer id);
    Boolean updateWorkspaceById(WorkspaceDTO dto);
    /**
     * Query the information of a workspace based on its workspace id.
@@ -25,9 +36,9 @@
    /**
     * Handle the request for obtaining the organization information corresponding to the device binding.
     * Note: If your business does not need to bind the dock to the organization,
     *       you can directly reply to the successful message without implementing business logic.
     * @param receiver
     */
    void replyOrganizationGet(CommonTopicReceiver receiver, MessageHeaders headers);
    WorkspaceEntity getWorkspaceById(int id);
}