Commit 2bd0f7d8 by huangfusuper

批量接口查询

parent 9e3bad5b
......@@ -15,4 +15,6 @@ public interface WorkspaceService {
List<Workspace> findAll();
Workspace findOneById(Integer id);
Workspace getByName(String workspaceName);
}
......@@ -27,4 +27,9 @@ public class WorkspaceServiceImpl implements WorkspaceService {
public Workspace findOneById(Integer id) {
return workspaceMapper.getById(id);
}
@Override
public Workspace getByName(String workspaceName) {
return workspaceMapper.getByName(workspaceName);
}
}
......@@ -6,7 +6,8 @@ package com.byit.enums;
*/
public enum TransferResultEnum implements IEnum {
SUCCESS("000000","调用成功"),
ERROR("500000","发生错误")
ERROR("500000","发生错误"),
PARAM_ERROR("600000","参数异常")
;
private String code;
......
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