| | |
| | | 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 { |
| | | |
| | | /** |
| | | * Query the workspace information based on the primary key id of the database. |
| | | * @param id primary key id |
| | | * @return |
| | | */ |
| | | Optional<WorkspaceDTO> getWorkspaceById(int id); |
| | | 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. |
| | |
| | | * @return |
| | | */ |
| | | Optional<WorkspaceDTO> getWorkspaceByWorkspaceId(String workspaceId); |
| | | |
| | | /** |
| | | * Query the workspace of a workspace based on bind code. |
| | | * @param bindCode |
| | | * @return |
| | | */ |
| | | Optional<WorkspaceDTO> getWorkspaceNameByBindCode(String bindCode); |
| | | |
| | | /** |
| | | * Handle the request for obtaining the organization information corresponding to the device binding. |
| | | * @param receiver |
| | | */ |
| | | void replyOrganizationGet(CommonTopicReceiver receiver, MessageHeaders headers); |
| | | |
| | | WorkspaceEntity getWorkspaceById(int id); |
| | | } |