|
|
@@ -9,6 +9,8 @@ import com.example.hotel.vo.UserForm;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @Author: chenyizong
|
|
|
* @Date: 2020-03-04
|
|
|
@@ -30,6 +32,11 @@ public class AdminServiceImpl implements AdminService {
|
|
|
System.out.println(e.getMessage());
|
|
|
return ResponseVO.buildFailure(ACCOUNT_EXIST);
|
|
|
}
|
|
|
- return ResponseVO.buildSuccess();
|
|
|
+ return ResponseVO.buildSuccess(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<User> getAllManagers() {
|
|
|
+ return adminMapper.getAllManagers();
|
|
|
}
|
|
|
}
|