diff --git a/include/endpoint.hrl b/apps/endpoint/include/endpoint.hrl similarity index 100% rename from include/endpoint.hrl rename to apps/endpoint/include/endpoint.hrl diff --git a/apps/endpoint/rebar.config b/apps/endpoint/rebar.config deleted file mode 100644 index 4f604c6..0000000 --- a/apps/endpoint/rebar.config +++ /dev/null @@ -1 +0,0 @@ -{erl_opts, [debug_info, {i, "include"}, {i, "../../include"}, {i, "../../../include"}]}. diff --git a/include/domain_model.hrl b/apps/iot/include/domain_model.hrl similarity index 100% rename from include/domain_model.hrl rename to apps/iot/include/domain_model.hrl diff --git a/include/iot.hrl b/apps/iot/include/iot.hrl similarity index 100% rename from include/iot.hrl rename to apps/iot/include/iot.hrl diff --git a/include/iot_tables.hrl b/apps/iot/include/iot_tables.hrl similarity index 100% rename from include/iot_tables.hrl rename to apps/iot/include/iot_tables.hrl diff --git a/include/protocol.hrl b/apps/iot/include/protocol.hrl similarity index 100% rename from include/protocol.hrl rename to apps/iot/include/protocol.hrl diff --git a/apps/iot/rebar.config b/apps/iot/rebar.config deleted file mode 100644 index 4f604c6..0000000 --- a/apps/iot/rebar.config +++ /dev/null @@ -1 +0,0 @@ -{erl_opts, [debug_info, {i, "include"}, {i, "../../include"}, {i, "../../../include"}]}. diff --git a/apps/iot/src/devtools/endpoint_kafka_test.erl b/apps/iot/src/devtools/endpoint_kafka_test.erl index 2912d2d..0baf85b 100644 --- a/apps/iot/src/devtools/endpoint_kafka_test.erl +++ b/apps/iot/src/devtools/endpoint_kafka_test.erl @@ -8,7 +8,7 @@ %%%------------------------------------------------------------------- -module(endpoint_kafka_test). -author("anlicheng"). --include("endpoint.hrl"). +-include_lib("endpoint/include/endpoint.hrl"). %% API -export([start_manual/0, test_consumer/0]). diff --git a/apps/iot/src/http/endpoint_handler.erl b/apps/iot/src/http/endpoint_handler.erl index dc4ce9c..d500bba 100644 --- a/apps/iot/src/http/endpoint_handler.erl +++ b/apps/iot/src/http/endpoint_handler.erl @@ -8,7 +8,7 @@ %%%------------------------------------------------------------------- -module(endpoint_handler). -author("licheng5"). --include("endpoint.hrl"). +-include_lib("endpoint/include/endpoint.hrl"). %% API -export([handle_request/4]). diff --git a/apps/iot/src/simulator/simulator_api_handler.erl b/apps/iot/src/simulator/simulator_api_handler.erl index f9be473..3605823 100644 --- a/apps/iot/src/simulator/simulator_api_handler.erl +++ b/apps/iot/src/simulator/simulator_api_handler.erl @@ -6,7 +6,7 @@ %%%------------------------------------------------------------------- -module(simulator_api_handler). --include("endpoint.hrl"). +-include_lib("endpoint/include/endpoint.hrl"). -export([handle_request/4]).