rain
2024-03-22 35c8aca3b8107ee2a4fbb5790ce1eeb70f4bb461
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 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.
     * @param workspaceId
     * @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);
}