Commit b5c12fc1 authored by linruibiao's avatar linruibiao

整改接口

parent d9be4074
......@@ -11,7 +11,7 @@ public interface InstrumentPanelConfigService {
* @param optType
* @return
*/
Boolean saveInstrumentPanelConfig(InstrumentPanelConfigDTO config,Integer optType);
String saveInstrumentPanelConfig(InstrumentPanelConfigDTO config,Integer optType);
/**
* 根据仪表板id获取对应配置
......@@ -20,6 +20,5 @@ public interface InstrumentPanelConfigService {
*/
InstrumentPanelConfigVo getInstrumentPanelConfigByInstrumentPanelId(@NotNull String instrumentPanelId);
String publish(InstrumentPanelConfigDTO config);
}
......@@ -29,21 +29,21 @@ public interface InstrumentPanelGroupService extends IService<InstrumentPanelGro
* @param groupId
* @return
*/
Boolean delInstrumentPanelGroup(@NonNull String groupId);
String delInstrumentPanelGroup(@NonNull String groupId);
/**
* 修改仪表板分组
* @param group
* @return
*/
Boolean updateInstrumentPanelGroup(InstrumentPanelGroupDTO group);
String updateInstrumentPanelGroup(InstrumentPanelGroupDTO group);
/**
* 保存仪表板分组
* @param group
* @return
*/
Boolean saveInstrumentPanelGroup(InstrumentPanelGroupDTO group);
String saveInstrumentPanelGroup(InstrumentPanelGroupDTO group);
/**
* 加载仪表板树
......@@ -58,5 +58,5 @@ public interface InstrumentPanelGroupService extends IService<InstrumentPanelGro
* @param name
* @return
*/
List<PanelGroupVo> findNextNodes(String groupId, String name);
List<PanelGroupVo> children(String groupId, String name);
}
......@@ -12,7 +12,7 @@ public interface InstrumentPanelPermissionService {
* @param permissions
* @return
*/
Boolean saveInstrumentPanelPermission(List<InstrumentPanelPermissionDTO> permissions);
String saveInstrumentPanelPermission(List<InstrumentPanelPermissionDTO> permissions);
/**
* 从其他仪表板复制配置
......@@ -27,7 +27,7 @@ public interface InstrumentPanelPermissionService {
* @param otherInstrumentPanelId
* @return
*/
Boolean saveCopyToOtherInstrumentPanelPermission(List<InstrumentPanelPermissionDTO> permissions, String otherInstrumentPanelId);
String saveCopyToOtherInstrumentPanelPermission(List<InstrumentPanelPermissionDTO> permissions, String otherInstrumentPanelId);
/**
* 根据仪表板id获取仪表板权限
......
......@@ -28,7 +28,7 @@ public interface InstrumentPanelService extends IService<InstrumentPanel> {
* @param panel
* @return
*/
Boolean saveInstrumentPanel(InstrumentPanel panel);
String saveInstrumentPanel(InstrumentPanel panel);
/**
* 批量推送
......@@ -43,14 +43,14 @@ public interface InstrumentPanelService extends IService<InstrumentPanel> {
* @param id
* @return
*/
Boolean delPushInstrumentPanel(String id);
String delPushInstrumentPanel(String id);
/**
* 另存为
* @param instrumentPanelDTO
* @return
*/
Boolean saveAsInstrumentPanel(InstrumentPanelDTO instrumentPanelDTO);
String saveAsInstrumentPanel(InstrumentPanelDTO instrumentPanelDTO);
/**
* 是否显示恢复按钮
......@@ -64,12 +64,12 @@ public interface InstrumentPanelService extends IService<InstrumentPanel> {
* @param id
* @return
*/
Boolean recoveryInstrumentPanel(String id);
String recoveryInstrumentPanel(String id);
/**
* 下线
* @param id
* @return
*/
Boolean offline(String id);
String offline(String id);
}
......@@ -15,7 +15,7 @@ import org.springframework.stereotype.Service;
@Service
public class InstrumentPanelConfigServiceImpl implements InstrumentPanelConfigService {
@Override
public Boolean saveInstrumentPanelConfig(InstrumentPanelConfigDTO config,Integer optType) {
public String saveInstrumentPanelConfig(InstrumentPanelConfigDTO config,Integer optType) {
return null;
}
......@@ -23,4 +23,9 @@ public class InstrumentPanelConfigServiceImpl implements InstrumentPanelConfigSe
public InstrumentPanelConfigVo getInstrumentPanelConfigByInstrumentPanelId(String instrumentPanelId) {
return null;
}
@Override
public String publish(InstrumentPanelConfigDTO config) {
return null;
}
}
......@@ -29,17 +29,17 @@ public class InstrumentPanelGroupServiceImpl extends ServiceImpl<InstrumentPanel
}
@Override
public Boolean delInstrumentPanelGroup(@NonNull String groupId) {
public String delInstrumentPanelGroup(@NonNull String groupId) {
return null;
}
@Override
public Boolean updateInstrumentPanelGroup(InstrumentPanelGroupDTO group) {
public String updateInstrumentPanelGroup(InstrumentPanelGroupDTO group) {
return null;
}
@Override
public Boolean saveInstrumentPanelGroup(InstrumentPanelGroupDTO group) {
public String saveInstrumentPanelGroup(InstrumentPanelGroupDTO group) {
return null;
}
......@@ -49,7 +49,7 @@ public class InstrumentPanelGroupServiceImpl extends ServiceImpl<InstrumentPanel
}
@Override
public List<PanelGroupVo> findNextNodes(String groupId, String name) {
public List<PanelGroupVo> children(String groupId, String name) {
return null;
}
}
......@@ -18,7 +18,7 @@ import java.util.List;
@Service
public class InstrumentPanelPermissionImpl implements InstrumentPanelPermissionService {
@Override
public Boolean saveInstrumentPanelPermission(List<InstrumentPanelPermissionDTO> permissions){
public String saveInstrumentPanelPermission(List<InstrumentPanelPermissionDTO> permissions){
//判断仪表板的名称是否重复
//删除原本的权限
//插入现有的权限
......@@ -32,7 +32,7 @@ public class InstrumentPanelPermissionImpl implements InstrumentPanelPermissionS
}
@Override
public Boolean saveCopyToOtherInstrumentPanelPermission(List<InstrumentPanelPermissionDTO> permissions, String otherInstrumentPanelId) {
public String saveCopyToOtherInstrumentPanelPermission(List<InstrumentPanelPermissionDTO> permissions, String otherInstrumentPanelId) {
return null;
}
......
......@@ -26,7 +26,7 @@ public class InstrumentPanelServiceImpl extends ServiceImpl<InstrumentPanelMappe
}
@Override
public Boolean saveInstrumentPanel(InstrumentPanel panel) {
public String saveInstrumentPanel(InstrumentPanel panel) {
return null;
}
......@@ -36,12 +36,12 @@ public class InstrumentPanelServiceImpl extends ServiceImpl<InstrumentPanelMappe
}
@Override
public Boolean delPushInstrumentPanel(String id) {
public String delPushInstrumentPanel(String id) {
return null;
}
@Override
public Boolean saveAsInstrumentPanel(InstrumentPanelDTO instrumentPanelDTO) {
public String saveAsInstrumentPanel(InstrumentPanelDTO instrumentPanelDTO) {
return null;
}
......@@ -51,12 +51,12 @@ public class InstrumentPanelServiceImpl extends ServiceImpl<InstrumentPanelMappe
}
@Override
public Boolean recoveryInstrumentPanel(String id) {
public String recoveryInstrumentPanel(String id) {
return null;
}
@Override
public Boolean offline(String id) {
public String offline(String id) {
return null;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment